# S95 — 2026-07-01 — Harness-17 adopt (Vòng tự-cải-thiện bộ-nhớ: Đo → Tinh-chỉnh → Kiểm)

> **Topic:** Adopt AI_INFRA Harness-17 (memory self-improvement loop Eval→Refine→Audit) qua `/check-email AI_INFRA` + `/adap-apply` + 3-workflow deep-verify. **em-main-led, HMW-mode ON, 0 production code.**

## Bối cảnh
Anh: `/check-email AI_INFRA` → `/adap-apply` step-by-step cẩn thận đúng install-guide → double-check → report trung-thực AI_INFRA. Sau đó anh yêu-cầu **review pass thứ 3** (fault-injection, "finish nếu áp vào sai") → cập-nhật report.

## Reconcile đầu
- **STAGE-1 email** (`AI_INFRA/broadcasts/outbox/se/`): 5 file đều đã processed → **0 directed mới**.
- **H16** (3 broadcast `memory-fidelity-eval`+`mfe-update`+`cd-judge-sub-update`): **đã áp trọn S93** (adap-report `harness-16-mfe.md` list cả 3 slug).
- **H17** (2 broadcast `harness-17-memory-self-improvement` + `checklist-harness-17`): **việc mới** — hash verify **MATCH ✓** cả 2 (PowerShell canonical strip-1-leading-newline), `reviewer_gate: PASS`.

## Adoption qua 3-workflow (Harness-9 mandate + anh-directed 3rd pass)
| WF | run-id | vai trò |
|---|---|---|
| **WF1 IMPLEMENT** | `wf_f085d7c4-d78` | 4-agent ground-truth: reuse-anchor + C1-audit-design + B1/B2/B3-draft + cross-harness-conflict |
| **WF2 REVIEW** | `wf_8e73c1d6-ee6` | 3-lane (code-gate + completeness 10/10 + honesty 0-overclaim) = PASS 0-blocking |
| **WF3 DEEP-REVERIFY** | `wf_6f44eddf-680` | fault-injection teeth-proof + integration + cross-doc = PASS 0 application-defect |

em-main = single-writer giữa các workflow (author 6 artifact).

## 10/10 mục 🔴 sàn ĐẠT
- **REUSE-cite (KHÔNG rebuild):** A2 load-fidelity=§H MFE · C3 single-writer=D9(§D.3) · CG-2 age-exempt=§G.2(b) value_protect · archive-action=§A archive-gate.
- **Build mới mechanized:** `scripts/memory-selfimprove-audit.ps1` (C1 spec-audit NO-API exit-0, emit CRITERIA+GAP KHÔNG frozen-tally; 3 mặt write-gov/change-gov/distillation-spectrum). Runtime-verified: A1/A2/A3/B1/B2 PASS + C-spectrum **bắt frontend-designer over-cap GAP:MED thật**.
- **Build mới convention:** `.claude/governance/reinject-ledger.md` (B2 CG-1 termination git-tracked append-only N=3, tách khỏi budget.json per §G.4(4)) + B1 signal→action map (4 loại) + B3 build-gap-vs-floor-rot phép-thử.
- **Codify:** engine `harness-11-engine.md` **§I** + artifact-map row + fix stale cap-comment (220K→380K pointer). **Wire:** `session-start §2.1.7` (loop-DÒ) + `session-end §L.b(c)` (loop-REFINE). **Vocab:** HCV alias no-seed ("coverage" 3-nghĩa: H2 harvest / H16 MFE-SUB / H17 A1) + detector C3-comment → **detector vẫn 27 flag** (0 fork thứ 4).

## WF3 fault-injection (chứng RĂNG THẬT, không chỉ reasoning)
13 inject vào cây tạm (`-RepoRoot`): A1 bắt store_memory/delete_memory GAP:HIGH · A1 no-false-flag body-mention · A2 bắt xoá-memoryDelta/writeGuard HIGH · C-spectrum bắt over-cap MED(27KB)/HIGH(32KB>softcap) + no-false-flag-khi-có-gist + boundary off-by-one đúng · B1 bắt detector-missing HIGH/exit≠0 MED · B2/A3 teeth. **8/8 md5 khớp repo sau restore.** Anti-Goodhart: inject gist→FLIP GAP→PASS (recompute); mutate cap→99999 live-echo (single-source thật).

## Dogfood C3 (AS-10 4-fire, E-006 recurrence S95)
WF1 (investigator-codebase tự-compact MEMORY.md 25.5→16.98KB, claim archive-move nhưng `archive/2026-06.md` KHÔNG tồn-tại → giữ = **mất 8.5KB**) + WF3-Lane-A (reviewer tự-ghi diary + new file). git-diff post-P2 caught BOTH → **em-main revert**. cicd-monitor diary **KEPT** (normal-spawn, không return-only = legit). 🔑 **Instruction-fix NOT 100%:** WF3 CÓ explicit "TUYỆT ĐỐI return-only" mà reviewer VẪN tự-ghi → persona-write stochastic → **git-diff-revert = net mandatory** (không phải instruction-alone). Guard HELD 4/4, 0 escape. Chính C3-floor đang adopt đã cứu data.

## Report tới AI_INFRA
- `docs/governance/adap-reports/2026-06-30-Governance-harness-17-memory-self-improvement.md` (+ section Deep-reverify WF3) + checklist-pointer.
- 2 email `broadcasts/outbox/ai_infra/`: adopt-report (hash `54789e19`) + deep-reverify-update (`8c94fa34`) — cả 2 hash self-consistent (`.gitattributes broadcasts/** eol=lf` giữ hash stable).

## Commit + deploy
- `18a17f5` (adopt; 2 `.ps1` → CI trigger) → cicd **Run #476 PASS** (~5m08s, 434 test, prod 200×3, bundle rotate benign #69 admin `CkZ1MjC1→0T6vVJST`/user `_-gpX7_Y→BGXEVZO6` CSS-frozen, Mig 59 unchanged).
- `65b434a` (deep-reverify; all `.md` → **CI-skip** docs-only).

## Lessons (§L)
1. **Fault-injection-via-`-RepoRoot`-temp chứng checker-teeth** — chạy checker trên cây-tạm-có-lỗi confirm nó FLAG (không chỉ happy-path PASS). → user-memory `feedback_faultinjection_proves_teeth`.
2. **Lane B #53 empty-return → em-main self-gate** (feedback_workflow_fanout_reliability confirmed lần nữa): cross-doc consistency lane trả rỗng → em-main grep tự verify (N=3/HCV/run-id/hash/detector-27).
3. **Cardinality của vocab:** 1-từ-nhiều-nghĩa ("coverage" 3, "memory-fidelity" 2) → đặt tên-định-danh + alias-map + **KHÔNG seed detector** (seed→false-flag). 2-workflow bắt, 1-workflow trượt.
4. **AS-10 instruction-fix NOT 100%** — explicit-return-only giảm nhưng không diệt persona-write; git-diff-revert là net thật.

## State (GIỮ NGUYÊN — 0 production code)
Mig 59 · 88 bảng · 434 test (45D+389I) · gotcha 76 · menu 54 · RAG 2430 · prod 17 user/7 NCC. Bundle live `0T6vVJST`/`BGXEVZO6` (Run #476).

## NEXT
- **em:** frontend-designer distill (H17 loop's live finding: MEMORY.md 26129B over-cap WATCH strike-1; archive-gate propose khi strike-2) · monthly 2026-07-01 re-tier mega-line + ef-core SKILL Mig→59 + docs/CLAUDE Budget-removed + 3 vocab-fork alias-map.
- **anh:** ⚠️ restart CLI (§2.1.7 + §L.b(c) H17-loop wire + command `.md` no hot-reload). Pending product carry (Section B / Ngưỡng CEO / "C" chuyển phiếu).
