Files
solution-erp/.claude/agent-memory/investigator-api/MEMORY.md
pqhuy1987 6f08d1f0eb [CLAUDE] Docs: S40 adopt AI_INFRA Tiered Memory Policy v1 (bulletin MUC 2)
- README Memory discipline -> tiered L1 HOT (soft-cap ~30KB) / L2 archive on-demand / L3 RAG just-in-time (thay hard >25KB)
- 7 agent MEMORY.md header -> tiered framing
- Anti-truncation rule soft-cap ~30KB
- Adopt per AI_INFRA Cross-Project Bulletin 2026-05-29; SE 7-agent in scope

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-05-29 16:58:39 +07:00

3.0 KiB

Investigator-API Agent — Persistent Memory

Persistent diary cross-session. Auto-injected first 200 lines / 25KB at spawn. Update BEFORE every stop. Tiered Memory v1: L1 HOT soft-cap ~30KB · L2 archive/ on-demand · L3 RAG search_memory just-in-time. Keep entry ≤ 1.5K chars (gotcha #53). NEW agent S39 (2026-05-29) — split từ investigator (external research half). Internal audit history ở investigator-codebase.


🎯 Role baseline

Read-only EXTERNAL research specialist. WebFetch/WebSearch official docs + NuGet/npm CVE + FE lib eval + cross-project reference (NamGroup/DH_Y_DUOC/BVAAU). Tools: Read, Bash, WebFetch, WebSearch + 5 RAG MCP. Output: findings + source URLs ≤ 500 words. Skill: dependency-audit-erp.

🚫 Split boundary

  • MINE: external docs, CVE scan, lib license+bundle eval, cross-project pattern port
  • NOT: internal codebase audit / SQL schema / grep symbol → investigator-codebase

🔑 Dependency pin constraints (flag violation)

  • MediatR 12.4.1 (gotcha #1) · Swashbuckle 6.9.0 (gotcha #2) · Node CI 20.x · LibreOffice 25.8.6 · @microsoft/signalr 8.0.7
  • New dep eval: license MIT? bundle gzipped impact? (vd FullCalendar v6 React MIT verified S36 — daygrid/timegrid OK, Premium chỉ scheduler — SOL chọn custom HTML grid save ~80KB instead)

🌐 Trusted source URLs

  • anthropic.com/engineering/ · cognition.ai/blog/ · learn.microsoft.com/en-us/aspnet/core/ + /ef/core/ · tanstack.com/query/latest · ui.shadcn.com · philschmid.de · eugeneyan.com · hamel.dev

📂 Cross-project reference paths

  • NamGroup D:\Dropbox\CONG_VIEC\NAMGROUP\SOURCECODE_CÔNG_TY\NAMGROUP\ (Phase 10 port — TblNhanVien/TblPhongHop/TblResource patterns)
  • DH_Y_DUOC D:\Dropbox\CONG_VIEC\DAI_Y_DUOC\DH_Y_DUOC_SOURCECODE\DH_Y_DUOC\ (clean arch + CQRS)
  • BVAAU D:\Dropbox\CONG_VIEC\BENHVIEN_A_AU\SOURCE_CODDE\ (multi-agent config — 7 agent split reference)

📅 Recent activity (last 10 FIFO)

  • 2026-05-29 (S39 agent split setup): NEW agent created từ split investigator. Seeded external-research half. Prior cross-project audits (NamGroup Phase 10 port G-H1/G-O2 + FullCalendar eval S36 + BVAAU 7-agent config S39) absorbed into role baseline.
  • 2026-05-29 (S40 FIRST SPAWN — smoke-verify + RAG fleet report): Agent load OK confirmed. list_projects → 7 project, total 39,798 chunks. Rerank pipeline LIVE verdict PASS (search_memory scope=self use_rerank=true → top rerank_score 0.8789, 3 results all carry rerank_score). Staleness >5d (vs 05-29): dh_y_duoc (05-23, 6d) / namgroup_main (05-22, 7d) / ashico_erp (05-22, 7d). solution_erp 05-28 fresh-ish but missing S37-S39 content. shared_global = 0 chunks (chưa promote pattern nào). MINOR drift: namgroup_main actual 11306 (brief said 11305). vipix_ai_infra (1652) = AI_INFRA hub root D:\...\AI_INFRA. No re-ingest performed (report-only).

🔄 Curate trigger

  • Size > 25KB → archive archive/<period>.md. Stale > 3 months → remove.