Files
solution-erp/.claude/agent-memory/investigator-api/MEMORY.md
pqhuy1987 d2f52ba586 [CLAUDE] Docs: S40 consolidate STATUS/HANDOFF 393KB→9KB + re-ground count drift + archive zero-loss
- STATUS.md 169.7KB→5.7KB, HANDOFF.md 223.6KB→3.4KB (giữ current+3 session, pointer logs)
- Full verbatim archived docs/_archive/{STATUS,HANDOFF}-preS40-fullhistory.md (zero info loss)
- Re-ground count: endpoints ~223→211, FE pages 53→65 (36+29), menu 85→~53; tables 84 confirmed correct (DbSet 77 + Identity 7)
- CLAUDE.md root patch: 33→40 mig, 60→84 bảng, 111→130 test
- S40 init audit: 7-agent live, RAG re-rank PASS 0.8789, 130 test PASS
- agent-memory S40 entries (investigator-codebase/api + test-specialist smoke audit)

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

38 lines
2.9 KiB
Markdown

# Investigator-API Agent — Persistent Memory
> **Persistent diary cross-session.** Auto-injected first 200 lines / 25KB at spawn.
> Update BEFORE every stop. Curate when > 25KB. 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.