Adopt AI_INFRA 2026-07-13 broadcast ab6c387e (presence-not-age selector, type=update) + directed 6c32df89 rec-3, via /fable-clone 5-lane reviewer ensemble (wf_b621aac4-f0b) -> spec -> /fable-real deep-pass (PASS-WITH-FIXES, M1+M2 applied) -> HMW execute (em-main solo; governance single-writer D9). D2 (hmw.js): unknown-role fail-soft-WARN -> up-front STOP-HARD throw (before parallel; preserves null/'' role-less inherit-lead path). node --check + stub 7/7. Doc-sync 5 live lines (ultra-on/README/harness-11-engine/runbook). D3 (memory-archive-gate.ps1): value_protect advisory-flag -> pre-selection HARD-SKIP (value-primary; heading-only spans; non-contiguous byte accum) + value-floor WARN. Fault-inject ALL PASS + real regression A7 242/242. DRY-RUN. D1 (reinject-ledger.md): presence re-verify stamp + 3 honest-notes + BUILD-GAP. Re-verify: reinject (i) + MFE age-band (iii) already COMPLIANT; only the archive-gate age-trace needed hardening. D3 = defense-in-depth codify, NOT leak-closure (9-token grep unchanged; em-main value-scan stays the guarantee). adap-report + email AI_INFRA (8b9dc5165d5a); inbox STAGE-2 processed. No new User-Mark (codify-only). #53 garble x1 (lane-4) recovered from disk, 0 loss. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
6.8 KiB
REINJECT-LEDGER — Harness-17 CG-1 termination ledger (SOLUTION_ERP)
Sổ-ghi chốt-dừng (termination) cho vòng tự-cải-thiện bộ-nhớ (Harness-17 §I). Ghi mỗi lần một mục-sàn floor-rot (đã-từng-ở-hot-mem nay RỚT) được reinject verbatim trở lại L1 — để CG-1 chặn reinject-loop vô-hạn.
🔴 Vì sao file RIÊNG (không nhét vào
memory-budget.json):memory-budget.json= quyền cấp-ngân-sách của anh (project-owner) — MFE + audit chỉ đọctoken_governor, KHÔNG ghi (ranh-giới §G.4(4), markRC-…21-06…01-58-01). Trộn reinject-state vào đó = AI lấn quyền cấp-ngân-sách. Ledger này = git-tracked · append-only · single-writer em-main (D9) — mirror provenance-model củaACTIVE-MARKS.md. NEVER overwrite dòng cũ.
CG-1 rule (chốt-dừng — H17 mục B2)
- Mỗi
item-idđược reinject TỐI-ĐA 1 lần trong N phiên (SE solo-dev: N = 3). N nhỏ hơn multi-dev vì solo = 1 người-điều-phối, feedback-loop nhanh (đủ 3 phiên để work-state block bơm lại "ngấm"). - Sau reinject, phiên MFE kế đo-lại: nếu mục ĐÃ hiện diện lại trong L1 →
status=resolved, đóng chu-kỳ (KHÔNG reinject nữa). - Nếu đo-lại VẪN thiếu → KHÔNG tự-reinject lần-2 (KHÔNG ghi
attempt=2). Thay vào →status=escalated+ báo anh (project-owner): có thể build-gap (cơ-chế bơm chưa đủ — cần extend) HOẶC cần anh quyết tăng-budget / đổi-placement (mirror MFE H3 2-ca: thiếu-CHỖ→tăng-budget-anh-quyết vs rot→sắp-xếp-lại). AI KHÔNG tự-loop. - Chỉ floor-rot mới vào ledger này (phân-loại qua phép-thử B3 §I): item ĐÃ-từng-tồn-tại ∩ CÒN-giá-trị ∩ RỚT-khỏi-L1. Item chưa-từng-dựng = build-gap (đi dựng cơ-chế, KHÔNG reinject). Item hết-giá-trị = để cold-archive (rớt đúng-đắn).
Schema (mỗi dòng = 1 chu-kỳ reinject; append newest xuống cuối)
| Cột | Nghĩa |
|---|---|
item-id |
id ổn-định mục-sàn rớt (RC-sig · AS-N · gotcha #N · guard-name) |
source |
file canonical chứa verbatim (ACTIVE-MARKS.md · error-ledger.md · gotchas.md) |
detected |
phiên MFE/audit phát-hiện floor-rot (S<NN>) |
reinjected |
phiên em-main reinject verbatim (S<NN>) |
attempt |
lần thứ mấy (rule ≤1 trong N=3; nếu cần lần-2 → escalate, KHÔNG reinject) |
remeasured |
phiên MFE đo-lại sau reinject (S<NN>) |
status |
reinjected → resolved (đo-lại đủ) HOẶC escalated (đo-lại vẫn thiếu → anh quyết) |
Cách đọc (ví-dụ minh-hoạ — KHÔNG phải dòng thật):
| gotcha #57 | docs/gotchas.md | S96 | S96 | 1 | S97 | resolved |= chu-kỳ đóng đúng: S96 audit FLAG gotcha #57 rớt khỏi L1 → em-main APPEND verbatim từgotchas.md→ S97 đo-lại thấy lại →resolved, dừng. Chu-kỳ escalate: reinjectattempt=1@S96 → S97 đo-lại VẪN thiếu →status=escalated, báo anh (build-gap? tăng-budget? đổi-placement?) — KHÔNG ghiattempt=2.
Ledger (append-only — single-writer em-main)
| item-id | source | detected | reinjected | attempt | remeasured | status |
|---|---|---|---|---|---|---|
| (chưa có floor-rot nào được reinject — ledger khởi-tạo trống S95, 2026-07-01) |
Nấc honest: ledger = convention (em-main append tay, git-tracked audit-trail — KHÔNG OS-hook auto-write, nhất-quán CAVEAT engine "no-OS-hook"). Tín-hiệu floor-rot feed = mechanized (
mfe-eval.ps1age-band +memory-selfimprove-audit.ps1). Detection per-item-L1-presence hiện partial (MFE age-band chỉ đo marks-có-date; AS/guard/gotcha mang session-ref chưa có pass so-từng-item-trong-L1 — xem §I honest nấc + CAVEAT C4 self-blind-spot).
Re-verify: presence-not-age selector (broadcast ab6c387e, adopt S115 · 2026-07-13)
AI_INFRA broadcast
ab6c387e(type=update) — re-verify the memory refine-step selector decides by PRESENCE/COVERAGE, not AGE. Verdict per floor:
- (i) Reinject = MET (presence-based). Trigger = floor-rot
"ĐÃ-từng-ở-L1 ∩ CÒN-giá-trị ∩ RỚT-khỏi-L1"(coverage-gap, this file:12) = the broadcast (i) condition "should be present but is missing." Age plays no part in what-to-reinject. The CG-1reinjectedsession column is a reinject-event rate-limiter / loop-breaker (≤1 per N=3 sessions), NOT an age-rank → OK per broadcast (iii) carve-out ("date used only for last-seen/loop-breaking = OK"). Drop-date test: dropping the column changes only the rate-limit/termination count, never the selection. - (iii) MFE age-band = FLAG-only (COMPLIANT).
mfe-eval.ps1$oldNis computed thenWrite-Host-printed ("KEPT status-driven age-blind") with no downstream consumer; the denominator is gated by STATUS, not date. Drop-date test: changes one diagnostic count, not the denominator / FIT / Goodhart / any selection. - (ii)+(iii) Archive-gate = RED-FLAG surfaced → HARDENED (D3, S115). The planner's oldest-by-position base ordering tripped the (iii) self-check; fixed in
scripts/memory-archive-gate.ps1by promotingvalue_protectfrom an advisory post-hoc flag to a pre-selection HARD-SKIP (value-primary; position = within-low-value tiebreak) + a value-floor WARN. Fault-injection-verified (protected-not-drained + permutation-invariant + value-floor). Seememory-budget.json:value_protect._note.
BUILD-GAP (honest, disclosed): mechanized per-item-L1-presence detection is still PARTIAL — the MFE age-band counts present marks (by date), not per-item drops; AS/guard/gotcha carrying session-refs have no per-item-in-L1 pass yet. So reinject-detection stays convention + em-main judgement, not full mechanization (do NOT overclaim). Consistent with §I honest nấc + CAVEAT C4.
3 honest-notes (broadcast §5 — MANDATORY):
- Basis = ONE occurrence already fixed elsewhere → proactive-prevention, NOT a spreading SE incident.
- SPECIFIC-APPLICATION, not a new rule — SE reinject + MFE age-band were already presence/flag-based (quick re-verify, no change); only the archive-gate needed hardening.
- Floor = FUNCTION not FORM — implemented in SE's own script shape; no hub structure/filenames copied.
Provenance:
/fable-clone reviewer5-lane ensemble (wf_b621aac4-f0b) → specruns/2026-07-13-presence-not-age-adopt/spec-presence-not-age-adopt-13-07-2026.md→/fable-real reviewerdeep-pass (PASS-WITH-FIXES; M1+M2 applied) → HMW execute D1/D2/D3. Applies existing markRC-…10-29-11(age=false-proxy) to the selector layer; codify-only (no new mark).