- Summary: Parameterized Policy-Aware RAG retrieval rules, froze V3 dataset & experiment contract, and validated dev-split metrics.
- Author: Codex
- Scope:
- Policy-Aware Retrieval
- RAG evaluation v3
- Configuration schema & tests
- Files:
experiments/version_aware_rag/configs/v3/experiment.schema.tsexperiments/version_aware_rag/src/versioning/types.tsexperiments/version_aware_rag/src/retrieval/version_aware.tsexperiments/version_aware_rag/src/retrieval/result_diversification.tsexperiments/version_aware_rag/scripts/v3/run_experiment.tsexperiments/version_aware_rag/tests/unit/ablation_control_fixtures.test.tsexperiments/version_aware_rag/POLICY_PARAMETER_FREEZE_REPORT_V3.mdexperiments/version_aware_rag/WALKTHROUGH_V3.md
- API:
- Added:
none - Changed:
none - Removed:
none
- Added:
- Env:
- Added:
none - Changed:
none - Removed:
none
- Added:
- Notes:
- Policy parameters (
retain_relation_boost,condition_boost,expansion_seed_threshold,expansion_min_base_score,diversification_penalty) are now fully configurable via YAML schemas. - Frozen V3 dataset and policy parameter benchmarks (MRR 0.424, nDCG 0.325, Recall 30.0%).
- Policy parameters (
- Summary: Added Version-Aware RAG experiment framework, PDF guideline parsing tool, shared infrastructure, and updated project documentation.
- Author: Codex
- Scope:
- Version-Aware RAG evaluation
- PDF document processing
- Shared infrastructure
- Repository documentation & dependencies
- Files:
experiments/version_aware_rag/src/rag_clean/pdf_to_clean_markdown.pysrc/shared/config.tssrc/shared/hash.tssrc/shared/manifest.tspackage.jsonREADME.mdREADME_zh.mdREADME_jp.mdtechnical_docs/CHANGELOG.md
- API:
- Added:
none - Changed:
none - Removed:
none
- Added:
- Env:
- Added:
none - Changed:
none - Removed:
none
- Added:
- Notes:
- Added
src/rag_clean/pdf_to_clean_markdown.pyfor transforming official PDF guidelines into structured Markdown with tabular prose. - Built the Version-Aware RAG framework to handle multi-version guideline conflicts (Dietary Guidelines for Americans 2015-2030).
- Updated dependencies and extended shared TypeScript modules in
src/shared/.
- Added
- Summary: Hardened RAG admin route authentication and prevent failed chat turns from leaving
__PENDING__rows behind. - Author: Codex
- Scope:
- RAG admin auth
- chat failure persistence
- repository documentation
- Files:
src/server/ragDocuments.tssrc/server/ragDocuments.test.tssrc/serverHandlers.tssrc/server/serverHandlers.test.tsREADME.mdREADME_zh.mdtechnical_docs/CHANGELOG.md
- API:
- Added:
none - Changed:
RAG document admin routes now require forwarded admin identity headers - Removed:
none
- Added:
- Env:
- Added:
none - Changed:
none - Removed:
none
- Added:
- Notes:
/api/chatnow rewrites failed placeholder replies from__PENDING__to[FAILED] ...when the model run errors after persistence starts.- Bare
Authorizationheaders no longer grant admin access to RAG document routes.
- Summary: Reworked conversation memory so
chat_rooms.summarystores a traceable summary index before falling back to rawdiet_chat_historyturns. - Author: Codex
- Scope:
- conversation memory persistence
- summary retrieval formatting
- repository documentation
- Files:
src/serverHandlers.tssrc/server/roomSummaryIndex.tssrc/server/roomSummaryIndex.test.tsagent_skills/db_tools.tssrc/server/serverHandlers.test.tssrc/server/dbTools.test.tsdocs/supabase/2026-06-22-chat-room-summary-index-migration.sqlREADME.mdREADME_zh.mdtechnical_docs/CHANGELOG.md
- API:
- Added:
none - Changed:
chat_rooms.summarypayload shape now supports structured summary index entries - Removed:
none
- Added:
- Env:
- Added:
none - Changed:
none - Removed:
none
- Added:
- Notes:
- Runtime context now feeds a room summary index first, and each summary entry can point back to raw chat rows and archival summary rows.
- Added a Supabase backfill migration that converts legacy
chat_rooms.summarytext into JSONB summary index arrays.
- Summary: Changed the default Google chat model from Gemma 3 31B to Gemma 4 31B and synchronized the related documentation.
- Author: Codex
- Scope:
- model routing
- repository documentation
- Files:
src/server/modelRouting.ts.env.exampleREADME.mdREADME_zh.mdtechnical_docs/CHANGELOG.md
- API:
- Added:
none - Changed:
none - Removed:
none
- Added:
- Env:
- Added:
none - Changed:
GOOGLE_CHAT_MODEL - Removed:
none
- Added:
- Notes:
- Default Google chat model is now
gemma-4-31b-it;.envcan still override it explicitly.
- Default Google chat model is now
- Summary: Rewrote the project documentation in English and Chinese, and added explicit Codex maintenance rules for future versioned updates.
- Author: Codex
- Scope:
- repository documentation
- agent maintenance workflow
- Files:
README.mdREADME_zh.mdAGENT.mdtechnical_docs/CHANGELOG.md
- API:
- Added:
none - Changed:
none - Removed:
none
- Added:
- Env:
- Added:
none - Changed:
none - Removed:
none
- Added:
- Notes:
- Future feature work must update both READMEs and append a new change entry here when behavior changes.
- Summary: Added standalone SQLite mode, shared storage adapters, terminal CLI support, and rewritten multilingual deployment docs.
- Author: Codex
- Scope:
- storage
- cli
- docker
- docs
- Files:
src/storage/runtime.tssrc/storage/sqlite/adapter.tssrc/storage/supabase/adapter.tssrc/cli.tssrc/serverHandlers.tssrc/server/ragDocuments.tssrc/server/knowledgeIngestion.tsREADME.mdREADME_zh.mdREADME_jp.md
- API:
- Added:
none - Changed:
startup and deployment behavior - Removed:
none
- Added:
- Env:
- Added:
STORAGE_BACKEND,SQLITE_DB_PATH,CLI_USER_ID,CLI_THREAD_ID - Changed:
none - Removed:
none
- Added:
- Notes:
- Standalone deployments now default to SQLite.
- Supabase mode remains available for existing integrations.
- Added standalone SQLite schema and sample seed references under
docs/sqlite/.
- Summary: Added project-background notes to the English, Chinese, and Japanese READMEs explaining the move from stack-coupled usage to an independent service direction.
- Author: Codex
- Scope:
- repository documentation
- Files:
README.mdREADME_zh.mdREADME_jp.mdtechnical_docs/CHANGELOG.md
- API:
- Added:
none - Changed:
none - Removed:
none
- Added:
- Env:
- Added:
none - Changed:
none - Removed:
none
- Added:
- Notes:
- Documented the original relationship with
PU-Hub/healthy-dietandhealthy-diet-web. - Clarified why this repository is now being presented as an independent deployable project.
- Documented the original relationship with
- Summary: Added
agent_config.jsondriven role, prompt, RAG, and MOHW defaults so forks can repurpose the project into other advisor agents with less code editing. - Author: Codex
- Scope:
- config
- runtime
- rag
- docs
- Files:
agent_config.jsonsrc/config/agentConfig.tssrc/server/agentRuntime.tsagent_skills/file_tools.tssrc/server/ragSearch.tssrc/server/mohwConfig.tsREADME.mdREADME_zh.mdREADME_jp.md.env.example
- API:
- Added:
none - Changed:
runtime configuration and RAG search behavior - Removed:
none
- Added:
- Env:
- Added:
none - Changed:
MOHW_NEWS_SYNC_ENABLED - Removed:
none
- Added:
- Notes:
- Prompt file locations now resolve from
agent_config.json. - RAG enabled sources and search tuning now resolve from
agent_config.json. MOHW_NEWS_SYNC_ENABLEDnow overrides the repo default fromagent_config.jsonwhen explicitly set.
- Prompt file locations now resolve from