[CLAUDE] Docs: S188 chạy-bù bookend TRỌN theo PN-001/YC-027 — ring5 lật 6 nhãn tự-ý-bỏ + RCA ONESHOT-S188 · ring2 lần-3 → HOÀN 8 class tally từ git · trio khép (eval-return v2 TRỌN) · E1-E3/A1-A2 · RULE YC-027 khắc 2 site · RE-STAMP 47 slug dựng-từ-nguồn · slot (89)
All checks were successful
Deploy SOLUTION_ERP / build-deploy (push) Successful in 10m0s

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
pqhuy1987
2026-08-10 21:30:43 +07:00
parent c7b7ca4594
commit ef1d4fbb22
24 changed files with 1348 additions and 657 deletions

View File

@ -148,6 +148,11 @@
"strikes_total": 25,
"rca_entries": 16,
"at": "2026-08-10 20:16"
},
{
"strikes_total": 25,
"rca_entries": 16,
"at": "2026-08-10 21:10"
}
]
}

View File

@ -46,3 +46,8 @@ Con ĐỀ-XUẤT của bộ-ba đồng-kiểm memory-system (adopt AI_INFRA 2026
- **S185 (08-10) LUẬT promote (A3, audit-verified) `[LEAD APPEND theo refine-return]`:** **span ≠ nhãn heading.** CẤM neo action vào tiêu-đề span hay vào PROPOSE của archive-gate chưa MỞ SPAN ĐỌC DÒNG MỚI NHẤT bên trong. Pool drain = span ngoài last-N theo VỊ TRÍ, corpus này đặt mục cấu-trúc (Role baseline/Runs) ĐẦU máy chĩa đúng vào phần phải giữ. Ca thật: nháp A1 suýt archive span "S152" chứa entry S185 viết cùng tối. Lặp 2 (S173 mù-trên-heading-đầu S185 4/4 file). Tag `[s185, span-khac-nhan, mo-span-doc-dong-moi-nhat, keep-floor-vi-tri]`
- **S186 (08-10) trio nấc-2 `4 action / 16 BÁC` (0①/1②/2③/1④) `[LEAD SEED ON-BEHALF; nguồn `runs/2026-08-10-S186-bookend-open/harness-refine-return.md`]`:** 🟢 **Vai DUY NHẤT trong 9 vai trả trọn ngay lượt đầu — 0 #53.** 🔴 **LẬT HEADLINE CON-ĐO bằng số học, không bằng ý kiến:** banner `24.8KB` char-count **25.348 = 24,75 KB khớp 1 chữ số thập phân**, byte 28.071 = **27,4 KB không khớp** ngưỡng đếm **KÝ-TỰ**, **2 vai** bị cắt chứ không phải 7. **Cái KHÔNG mất đi khi con số nhỏ lại:** `soft_cap_bytes` 30.720 **nằm TRÊN đường cắt**, tỉ số đổi theo nội-dung **KHÔNG byte-cap cố-định nào đúng được**. 🔑 **Chẩn `ctx-audit` là bệnh CẤU-TRÚC không phải GIÁ-TRỊ:** 60% file nằm TRÊN heading `##` đầu **vô hình với parser** máy đếm 3 entry, `keep_floor` 5 chặn drain 0 B. Thuốc = gắn `##` (entry 39) **máy tự đề-xuất được từ vòng sau = MỞ ĐƯỜNG TỚI CỬA cho guard**, thay cắt tay mãi. bắt **bẫy nguy hiểm nhất phiên**: span `## S159` nuốt 2 bản ghi mới nhất (một viết HÔM NAY) drain theo nhãn sẽ **xoá bản ghi hôm nay**; `keep_floor` "giữ 5 mới nhất" **bị vô hiệu** máy chỉ THẤY 3. 🟢 **TỰ BÁC nháp của chính mình** (BÁC-1): đã dựng claim *"ctx-audit đang bị cắt"* rồi tự phá bằng char-count **giữ action, THAY HẲN lý do, vứt urgency giả**. `harness-audit` chấm **THẬT, 4 dấu hiệu** đắt nhất: *lý do thay vào ĐẮT HƠN để dựng, diễn thì không ai chọn đường tốn hơn*. 5 TRƯỢT minor: range tỉ số của 7 vai không phải corpus (thật **1,03491,2285** rộng hơn **luận điểm mình MẠNH HƠN mình tưởng**) · *"`autoinject_cap` AN TOÀN"* **tự mâu thuẫn cùng đoạn** (biên chỉ 1,0%) · *"grep toàn repo"* sót `gotchas.md:965` = **nhân-chứng độc lập THỨ 2 làm YẾU chính mình** · neo `:98` thật `:97` · 2 quy-ước `\n` trong 1 return. Tag `[s186, lat-headline-bang-so-hoc, benh-cau-truc-khong-phai-gia-tri, mo-duong-toi-cua, tu-bac-that]`
## S188 (2026-08-10) — LUẬT TICK [promote ② refine A2, lead APPEND B3]
- **LUẬT TICK.** Số đọc GIỮA closeout ảnh chụp **một tick**, không phải trạng thái phiên. CẤM neo action, CẤM dựng trend *"kỳ thứ N liên tiếp"*, trên metric đọc giữa closeout trừ khi cả N lần đọc **cùng một pha** của nghi-thức. Trước khi neo: **đo lại tại tick của mình và GHI TICK vào return.** Ca thật S188: diary nhãn `S188` = 1/29 lúc nấc-1 chạy **11/29** lúc nấc-2 đo (cách 2h, cùng closeout); `harvest-curator` +455 B / `reviewer` +430 B trong cùng cửa sổ; `B2 HEALTHY 96,9%` thành 98,4%. Trigger: P3 REGRESSION (lần 3 của lớp "đo trước/sau một tick") + R1 trôi 111.

View File

@ -61,34 +61,6 @@ H2 harvest-MD-integrity auditor **SOLUTION_ERP-self**. Read-only + **propose-onl
> **S126/S140/S143 (3 entry GATE) verbatim → `archive/2026-07.md`** — self-compact 2026-07-25 @S152 A3 (plan ĐỨNG từ S150-chore; block-md5 `6cbb19bc6610a807b0171c1113bf7b40` 5808B moved-not-cut, file-order verbatim). Digest: S126 GATE PASS 5/5 0-orphan/29 + m#6-mới grep `Ã|ư|â€` = FALSE-POSITIVE trên VN-UTF8 (signal thật = U+FFFD + iconv) · S140 GATE PASS 5/5 8/8-invocation + Fidelity-gate CÓ RĂNG (inv-cb FAIL→re-distill CỤM11 LANDED cùng phiên, FAIL→fix loop CLOSED) + 0-runfolder mode-A vacuous-PASS · S143 GATE-PASS-5 fidelity-on-behalf STRONG lần đầu (beyond-source ≠ fabrication — tiêu-chí: truy-được-về-đĩa + khai nguồn) + m#14 diff-filter `grep "^[+-]" | grep -v "^+++\|^---"` + m#15 stub⟂content.
> **S132-DỒN (S127→S131) + S150-closeout (2 entry ruột) verbatim → `archive/2026-07.md`** — moved-not-cut @S164 refine A2 (đích có twin gist — shard 15/15 giữ IM) · tra substring:"S132 DỒN S127→S131" / "S150 (2026-07-25) closeout phiên-LOGIC-3"
## S151 (2026-07-25) — H2 re-report @open, trả nợ skip — return CLEAN duy nhất wave [M9 on-behalf]
- {nấc: verified (ring1: TRƯỢT-2/3 CỦA TAO — orphan S144-bootstrap lọt universe run.md-only [53 dir vs 50] + fidelity đếm 4/6 class) · evidence: sub-harvest-S151.md 8.944B}
- m#19: file nhỏ = NGHI-VẤN, đọc RUỘT mới phán skeleton vs đang-viết-dở. 2 FLAG S150 đóng (ring diary có ruột). Bài: universe đếm phải KHAI tiêu-chí lọc; 'khớp exact' phải dán từng phần tử.
## S152 (2026-07-25→26) — H2 @open + @close GATE [M9 on-behalf]
- {nấc: verified (ring1-close: 20Đ/3T/1KC trên 24 claim; byte-evidence 10/10 exact) · evidence: sub-harvest-S152.md 16.263B + sub-harvest-close-S152.md 20.411B}
- @open GATE-PASS-WITH-FLAGS: ⭐FLAG-1 HIGH deep-S151 3-lane 67.056B 0-diary (GAP-3 lớp-LƯỢT lần 6) → M9 @close ĐÃ seed 3 pointer hồi-tố. @close: 15 spawn-record (→17 sau 2 ring, tự khai drift) · M9-list 10 diary/13 đơn-vị (ring1 kiểm 10/10 → lead APPEND thẳng) · FFFD root-cause perl-byte-mode blind + detector mới `\xEF\xBF\xBD` + `close ARGV` · 2 điều-kiện lead (session-log 2 dòng `run=` · ring4 scribe).
- 🔴 TRƯỢT-3 (ring1-close): Placement "0 empty-dir/0 stray" — 4 dir rỗng + stray `.claude` LỒNG run-folder (4 sub @close tự đẻ, lead đã rm), thước `-not -path "./.claude/*"` MÙ CẤU-TRÚC by-construction → kỳ sau đo "mọi `.claude` depth>1", chạy ở bước CHỐT · Corruption census 8/6 → thật 10/8 (phạm-vi hẹp, không lan luật E-2 sang trục anh-em — root-cause-over-symptom). Verdict "0 corruption MỚI" vẫn HELD. Baseline kỳ sau = 10 hit/8 file, quét TRỌN `.claude/` gồm run-folder cũ.
## S159 (2026-07-29) — H2 @open bookend L8 [M9 on-behalf]
- {nấc: verified (ring1 chấm 13Đ/5T) · evidence: `sub-harvest-curator-open-S159.md` 26.134B}
- **GATE-FAIL 9 finding.** Orphan **0 thật/63**. Fidelity 2 file retro-harvest của lead: **12/12 byte-exact · 8/8 verdict nguyên văn · claim (i) 3/3 cite đúng dòng · claim (ii) VERIFIED STRONG** ⇒ lead KHÔNG bịa.
- Bắt 2 lỗi trong artifact lead: **F-02** errata gọi `531` là test-count (thật = **task-id Gitea**; dãy 529/530/531 ↔ run# 416/417/418) · **F-05 HIGH** synthesis **tự lỗi-thời sau 15 phút** vì ARC vá spec giữa 2 phép đo → đề SUPERSEDED-line, lead đã áp.
-**m#24 (method mới):** retro-harvest dẫn LEDGER mà nó sắp tick ⇒ **tự giết cite trong vài phút** (3/3 ca) ⇒ cite bằng **NEO VĂN BẢN**, không `:NNN`.
- 🔴 **F-07 (nợ của chính vai này):** 9/10 vai chạy @S158 có 0 nội-dung S158; **11 vai đóng băng cùng mốc `11db5ef`**, 11/11 đều có artifact sau. **Khâu hỏng là APPEND, không phải phát hiện.** `MEMORY.md` 19.456B = 0 B đổi xuyên **5 phiên** (S154→S158).
- 🔴 **5 TRƯỢT (ring1) — tự-báo-sạch SAI:** T-5 "stray `.claude` = 0" → thật **1** · T-6 "empty-dir = 0" → thật **5→6 ĐANG TĂNG** · T-7 trục Placement PASS đổ theo · T-3 "lành theo lai-lịch S152" = claim mạnh chống bằng suy-luận yếu (mở 3/10 rồi khái quát 10/10) · T-4 "0 hit mới sau S152" **tự phản-chứng** (file S159 của chính nó thêm 3 hit — citation-trap đời 3).
- ⭐ Tự bắt **F-09**: sweep U+FFFD ban đầu là **LỆNH CHẾT** (`grep -P` exit=2 bị `2>/dev/null` nuốt) ⇒ **rỗng trông y hệt sạch**. Bài: kiểm exit-code trước khi đọc kết quả rỗng thành sạch.
- **S180 (2026-08-07) @open L12 — `GATE-FAIL — 7`** `[LEAD SEED ON-BEHALF]`: nợ harvest THẬT **583.683 B / 14 lượt-vai** (S168 82.383 + S169 243.927 + S170 257.373) — carry ghi `~306 KB (S168+S171)` **SAI 2 CHIỀU**. 🔴 **F-04 TỰ BÁC CHÍNH MÌNH:** số S173 "501.300 mồ-côi" đúng TỔNG nhưng **sai CÁCH KỂ** — md5 chứng 14/16 sleep-draft ĐÃ về archive byte-exact ⇒ ai đọc sẽ đi gom lại thứ đã ở nhà. 🔴 **F-05 bẫy ĐƠN-VỊ:** baseline không khai đơn-vị ⇒ suýt báo "2 corruption"; thật 22 **dòng** ⟂ 24 **lần**. Bài chống bẫy này **đã viết ở `sub-harvest-curator-close-S168.md`** mà vì file đó chưa về nhà nên vấp lại **6 phiên sau****nợ harvest có CHI-PHÍ ĐO ĐƯỢC**. Orphan trừ folder đang chạy ⇒ **0/84 KHỚP lead**. `ring1` tái-dựng: tổng nợ **khớp từng byte**, nhưng **BÁC** 2 số phụ (`sleep-drafts` 268.861→**238.661**; empty-dir 5→3). Tag `[s180, gate-fail-7, no-583683B, tu-bac-f04, bay-don-vi-f05]`
- **S182 @open (lead-seed, C2 /pause):** `GATE-FAIL — 7` — nợ harvest TƯƠI 576.255 B / 18 lượt-vai (số mình cộng 576.657 bị ring1 bắt lỗi CỘNG +402 B khối S169 — 9/9 thành-phần khớp byte: đo giỏi, cộng sai) · claim "slot 71 nợ-MA S171" bị ring1 BÁC (slot đã gạch ĐÓNG @S179, số nằm trong nguyên-văn-slot-cũ) · sleep-batch 237.251 B = nháp không phải nợ · "17 đích gist" KHÔNG tái-lập (ring1 cùng lệnh ra 19) · 8-dir-rỗng đã chết (đo 0). Bài: đo TÊN tưởng 3/5 về nhà; đo RUỘT ra 0/5. → `runs/2026-08-07-S182-bookend-open/sub-harvest-curator.md`
- **S169 (08-01) @open L10-w1 — `GATE-FAIL — 8 finding` `[LEAD SEED ON-BEHALF — nguồn `runs/2026-08-01-S169-bookend-open/sub-harvest-curator-open-S169.md` 26.137 B]`:** 🔴 **Quan sát containment đắt nhất, và nó KHÔNG phải finding — nó là CẢNH BÁO HÌNH-DẠNG:** harness lượt đó tạo sẵn **4 thư mục memory sandbox RỖNG LỒNG TRONG run-folder** (`runs/2026-08-01-S169-bookend-open/.claude/agent-memory/{harvest-curator,lead-gap-auditor,lead-stale-auditor,tooling-auditor}/`, `find -type f` = **0**). Vai nào tuân "persistent memory" của khung mà ghi vào đó thì delta **land ngoài `agent-memory` canonical và im lặng biến mất khỏi auto-inject** = đúng ca **S54 cwd-relative mis-land**. 🔴 **Tầng im lặng thứ hai: `git` MÙ thư mục rỗng (bài S122)**`git status` KHÔNG bao giờ cho thấy 4 thư mục này; **chỉ `find` mới thấy**. 🟢 Chính tao **0 file ghi vào đó** — và "0 file" là bằng chứng, không phải lời khai. Tag `[s169, gate-fail-8, sandbox-long-trong-run-folder, git-mu-thu-muc-rong, 0-file-la-bang-chung]`
- **S185 (08-09) lane6 memory-gate run YC-017 `[LEAD PLACEMENT (a) @S185 — nguồn `.claude/workflows/runs/2026-08-09-S185-email-adap-pipeline/sub-opus-lane6-memory-gate.md` 24.268 B]`:** C-10 DONE (2 mồ côi A16 wire-or-khai) · **C-6 PARTIAL đúng nhánh dự phòng**: máy `memory-archive-gate.ps1` chạy tới PROPOSE thật nhưng value-scan CỦA CHÍNH MÁY bác đề-xuất (fault-inject 1 dòng lật PROPOSE→WARN) ⇒ vào nhánh "trình đề-xuất-nén cho lead, CẤM nén tay" — ring2-audit giữ 30.781 B chờ 1 quyết-định. Bài: bảng ranh-giới TỪ-CHỐI viết TRƯỚC khi chạy máy (biết mình không được làm gì) làm PARTIAL thành verdict sạch thay vì việc dở. Tag `[s185, may-propose-value-scan-bac, nhanh-du-phong, ranh-tu-choi-viet-truoc]`
- **S186 (08-10) @open L14 — `GATE-FAIL-6` `[LEAD SEED ON-BEHALF; nguồn `runs/2026-08-10-S186-bookend-open/sub-harvest-curator-open.md`]`:** 🔴 **Tự khai bị CẮT L1 lúc spawn** (`24.8KB > limit 24.4KB, only part loaded`) vì chính mình over-cap **28.071 B** — và banner đó **trở thành bằng-chứng gốc** cho phát-hiện lớn nhất phiên: **ngưỡng cắt đếm KÝ-TỰ (25.348 ch = 24,75 KB, khớp render 1 chữ số) chứ không đếm BYTE (27,4 KB, không khớp)**. 2 HIGH: `sub-reviewer-yc021.md` **23.280 B chưa về `agent-memory/reviewer/`**, **vô hình 4/4 tầng**, chỉ 1 nơi giữ vết (`_mind-s-13.md:99`) · self-record END-line của chính mình **0 hit** trong sổ mình (`ring1` làm mạnh hơn: sổ CÓ entry S185 nhưng là **lane6 folder KHÁC** ⇒ lead seed việc khác mà bỏ chính vòng harvest của nó). 🔑 **Cơ-chế truy được:** seed on-behalf lấy tên từ **BẢNG `run.md`** (0 row reviewer) chứ không từ **FOLDER**; mtime-chain chứng *không phải hết giờ, là không có tên trong bảng*. 🔴 **Kỷ luật đắt nhất:** *"nợ THẬT = 23.280 B + 1 self-record, KHÔNG phải 67.051 B — kể kiểu tổng là đẩy người sau đi gom thứ ĐÃ Ở NHÀ"*. BÁC premise lead (`ring2-audit` over-cap) — `ring1` đóng bằng 2 nguồn khác lớp (`git cat-file -s` = `stat` = 24.859). `ring1` kiểm H2: **28Đ/1T**, TRƯỢT duy nhất thuộc `lead-stale-deep`, **verdict GATE-FAIL-6 đứng vững toàn bộ dù L1 bị cắt** (2 finding HIGH là *khẳng-định-CÓ-VẬT, tự mang neo*). Tag `[s186, banner-thanh-bang-chung-don-vi, bang-vs-folder, no-that-khong-ke-kieu-tong]`
## S188 (2026-08-10) — [LEAD SEED ON-BEHALF]
- H2 @close S188 — census 17 artifact S187 + phat hien folder-count UNDER-COUNT (luot-vai that >=23: W2 khong artifact, reviewer cum chet trang x2, W10 x4 doi). Coverage FAIL 7/19 luot-vai co ban ghi = 37% (do NOI DUNG khong do TEN). Orphan that = 1 (S187 thieu synthesis, lead da dong @close). 🔴 L1 cua chinh minh 29.776 B VUOT read-limit 24,4KB => bi cat THAT khi spawn phien nay; self-compact DUE.

View File

@ -50,3 +50,35 @@
<!-- L1→L2 moved-not-cut @S164 (refine A2 attempt-1, lật-BÁC-X1 có khai; trigger đệm 2.107 < tripwire 3.070) — 2 entry ruột cũ nhất của FIFO, verbatim: -->
- **2026-07-17 (S132 DỒN S127→S131 — re-spawn sau session-limit-death S131 [E-011]; by em-main VERIFY→APPEND):** GAPS-FOUND→**CLOSED-in-session**. Coverage PASS **31 run.md/33 dirs** (2 = spec-only S117 by-design; interim "26" = S123-baseline stale) · **0-orphan/31** · 2 folder mới S127+S129 flat dạng-1 đủ · roster-harvest đủ (reviewer S127/S128×2/S129/S131×2 · inv-cb S128/S129 · cicd S128/S129; wave-workers generic = no-diary by-design; S130 em-main-solo 0-spawn = không nợ). Fidelity STRONG (entries tự-flag overclaim mình) · Corruption PASS (FFFD 0/3 · porcelain agent-memory 0 mồ-côi; inv-cb "<22>24.1KB" = m#6 tail-cut artifact tự-bắt). Placement FLAG ×2 (git-invisible m#13): 2 dirs H24 RỖNG since-S123 + stray S119 → em-main CLOSED cùng phiên (seed 2 diary retro từ `sub-lead-{view,omission}.md` 8379B/9967B + rmdir stray 3-dir-rỗng). Lesson: (1) folder S127 chứa subs tag S128 = **trigger-session naming**, KHÔNG gap; (2) `sort -u -k2` collapse entry cùng-pattern = measurement-artifact — targeted-grep recover; (3) H24 knowledge sống CHỈ ở run-folder+counter-json ⇒ **per-ROLE diary = lớp không ai sở-hữu** tới khi seed (E-011/GAP-3).
- **S150 (2026-07-25) closeout phiên-LOGIC-3 GATE `[opus-worker · diary ghi TRONG lúc làm, anti-#53 — return lượt-1 vẫn garble status-giữa-chừng, coordinator resume; sub-file cứu trọn]`** — **VERDICT GATE-PASS-5** (5 FLAG + 2 INFORM). Phạm-vi `aaf95ef..a9efa34` = 22 commit (1 nội-dung + 21 wal), 2 cửa-sổ S149+S150. **Close-gate DUAL-ACCEPT 0-orphan/5** (5/5 dạng-1 phẳng; 2 file nhỏ nhất 579B/541B ĐỌC FULL ⇒ khuôn nén "Kết quả tiêu thụ tại:" + pointer verify-exist, KHÔNG stub) · repo-wide **1 orphan/49** = chính wave đang chạy (by-design). **Corruption PASS** (FFFD 0 toàn L1+archive · iconv 18/18 · 0-byte 0 · moved-not-cut N/A-sạch: range KHÔNG chạm `archive/*` nào). **Completeness PASS · 0 delta mồ-côi** (mọi delta map được: seed ring2 ⟵ W3-S149 · 6 rename-ref ⟵ stage RENAME-5-vai · budget.json ⟵ O-7 `hmw_width{cap:20}`). ⭐ **Ca lớn nhất = ĐIỂM MÙ MÁY có RANH GIỚI ĐỌC ĐƯỢC:** detector **C11(b) diary-delta** (land @S149, `governance-detectors.ps1:1673`) chỉ quét vai frontmatter **`INFORM-only`** (10 vai) ⇒ `investigator-codebase` (10 invocation) + `reviewer` (1 invocation thật 15.7KB) **0 hit** = ngoài lưới BY-DESIGN → 2 vai chạy mà sổ đứng yên, máy im **vì hết tầm chứ không vì sạch** (F3/F4). Chính `sub-invest-hoi-tu:20` gọi tên bệnh "**đo rồi như chưa đo**" và reviewer bắt spec RƠI luật diary-seed — **tái-diễn ngay trong phiên phát-hiện nó**. F1 HIGH `ring1-audit/` RỖNG (git-MÙ m#13) mà là **task-5 của chính wave** ⇒ sẽ spawn mù = **GAP-3 lần 5** (S123/S125→S132, S146→S148, S149-ring2); F2 `ring4-audit` chưa có nhà. **F5 Fidelity:** ring2-audit 2 cite-dead do rename-sweep — **số liệu KHỚP đĩa** (6.169B/25.724B ↔ file thật `sub-h24-audit-S14x.md`) ⇒ **KHÔNG bịa**, cái sai là **tự mâu-thuẫn banner của chính nó** ("artifact `runs/**` giữ tên cũ làm vết"); đòn-bẩy bất-đối-xứng: lead-gap 2/2 + lead-stale 2/2 cite OK ⇒ lệch ĐÚNG 1 file, không phải bệnh hệ-thống. **3 method mới:** **m#16** — "máy im" phải hỏi *lưới có phủ tới không*: đọc SCOPE-selector của detector (`grep -l INFORM-only agents/*.md`) rồi mới kết PASS; im-ngoài-tầm ≠ sạch. **m#17** — invocation đếm từ đĩa vẫn phải **ĐỌC NHÃN PROVENANCE**: `sub-review-gate.md` tự khai "em-main-solo re-do" ⇒ trừ khỏi mẫu-số reviewer (đĩa-có-file ≠ vai-đã-chạy; nối tiếp m "đếm từ ĐĨA không từ brief"). **m#18** — rename-sweep là **sinh-cite-dead có hệ-thống**: sau mọi bulk-rename, verify `grep -o "runs/[^ ]*\.md"` từng sổ đổi → test-exist; và sweep L1 mà bỏ L2 `archive/` ⇒ stub⟂archive lệch tên (I-6). Ranh cứng học được: **1 phút** cũng đủ đổi kết luận — sổ lead-stale/lead-gap commit `932d607` **18:21** vs baseline `aaf95ef` **18:22** ⇒ COVERED chứ không phải gap (m#12 mở rộng: mẫu-số có PHÚT-đo). Surprise: sổ `ring2-audit` seed-mới tự khai bất-lợi (GAP-3 nạn-nhân là chính nó) + **từ chối ĐẠT-ảo** 2 FLAG "không tồn tại trên đĩa" — tao re-verify 2 đối-chứng của nó (S148-folder 0 `sub-lead-*` · S146-folder đúng 3 `sub-*`) đều HELD ⇒ Fidelity vai KIỂM STRONG. Chore: SELF 17.2KB>17.1 target, +entry này ⇒ self-compact block S126/S140/S143 DUE phiên sau (defer — no cut-mid-gate). Tag `[s150-gate, gate-pass-5flag, close-gate-0of5, m16-detector-scope-vs-silence, m17-provenance-label-in-count, m18-rename-sweep-cite-dead, gap3-lan-5-ring1-rong, c11b-inform-only-blindspot, 1-phut-doi-ket-luan]`
<!-- moved-from MEMORY.md @S188 2026-08-10 (refine E1 — L1 vuot duong-cat; append-truoc-cat-sau) -->
## S151 (2026-07-25) — H2 re-report @open, trả nợ skip — return CLEAN duy nhất wave [M9 on-behalf]
- {nấc: verified (ring1: TRƯỢT-2/3 CỦA TAO — orphan S144-bootstrap lọt universe run.md-only [53 dir vs 50] + fidelity đếm 4/6 class) · evidence: sub-harvest-S151.md 8.944B}
- m#19: file nhỏ = NGHI-VẤN, đọc RUỘT mới phán skeleton vs đang-viết-dở. 2 FLAG S150 đóng (ring diary có ruột). Bài: universe đếm phải KHAI tiêu-chí lọc; 'khớp exact' phải dán từng phần tử.
## S152 (2026-07-25→26) — H2 @open + @close GATE [M9 on-behalf]
- {nấc: verified (ring1-close: 20Đ/3T/1KC trên 24 claim; byte-evidence 10/10 exact) · evidence: sub-harvest-S152.md 16.263B + sub-harvest-close-S152.md 20.411B}
- @open GATE-PASS-WITH-FLAGS: ⭐FLAG-1 HIGH deep-S151 3-lane 67.056B 0-diary (GAP-3 lớp-LƯỢT lần 6) → M9 @close ĐÃ seed 3 pointer hồi-tố. @close: 15 spawn-record (→17 sau 2 ring, tự khai drift) · M9-list 10 diary/13 đơn-vị (ring1 kiểm 10/10 → lead APPEND thẳng) · FFFD root-cause perl-byte-mode blind + detector mới `\xEF\xBF\xBD` + `close ARGV` · 2 điều-kiện lead (session-log 2 dòng `run=` · ring4 scribe).
- 🔴 TRƯỢT-3 (ring1-close): Placement "0 empty-dir/0 stray" — 4 dir rỗng + stray `.claude` LỒNG run-folder (4 sub @close tự đẻ, lead đã rm), thước `-not -path "./.claude/*"` MÙ CẤU-TRÚC by-construction → kỳ sau đo "mọi `.claude` depth>1", chạy ở bước CHỐT · Corruption census 8/6 → thật 10/8 (phạm-vi hẹp, không lan luật E-2 sang trục anh-em — root-cause-over-symptom). Verdict "0 corruption MỚI" vẫn HELD. Baseline kỳ sau = 10 hit/8 file, quét TRỌN `.claude/` gồm run-folder cũ.
## S159 (2026-07-29) — H2 @open bookend L8 [M9 on-behalf]
- {nấc: verified (ring1 chấm 13Đ/5T) · evidence: `sub-harvest-curator-open-S159.md` 26.134B}
- **GATE-FAIL 9 finding.** Orphan **0 thật/63**. Fidelity 2 file retro-harvest của lead: **12/12 byte-exact · 8/8 verdict nguyên văn · claim (i) 3/3 cite đúng dòng · claim (ii) VERIFIED STRONG** ⇒ lead KHÔNG bịa.
- Bắt 2 lỗi trong artifact lead: **F-02** errata gọi `531` là test-count (thật = **task-id Gitea**; dãy 529/530/531 ↔ run# 416/417/418) · **F-05 HIGH** synthesis **tự lỗi-thời sau 15 phút** vì ARC vá spec giữa 2 phép đo → đề SUPERSEDED-line, lead đã áp.
-**m#24 (method mới):** retro-harvest dẫn LEDGER mà nó sắp tick ⇒ **tự giết cite trong vài phút** (3/3 ca) ⇒ cite bằng **NEO VĂN BẢN**, không `:NNN`.
- 🔴 **F-07 (nợ của chính vai này):** 9/10 vai chạy @S158 có 0 nội-dung S158; **11 vai đóng băng cùng mốc `11db5ef`**, 11/11 đều có artifact sau. **Khâu hỏng là APPEND, không phải phát hiện.** `MEMORY.md` 19.456B = 0 B đổi xuyên **5 phiên** (S154→S158).
- 🔴 **5 TRƯỢT (ring1) — tự-báo-sạch SAI:** T-5 "stray `.claude` = 0" → thật **1** · T-6 "empty-dir = 0" → thật **5→6 ĐANG TĂNG** · T-7 trục Placement PASS đổ theo · T-3 "lành theo lai-lịch S152" = claim mạnh chống bằng suy-luận yếu (mở 3/10 rồi khái quát 10/10) · T-4 "0 hit mới sau S152" **tự phản-chứng** (file S159 của chính nó thêm 3 hit — citation-trap đời 3).
- ⭐ Tự bắt **F-09**: sweep U+FFFD ban đầu là **LỆNH CHẾT** (`grep -P` exit=2 bị `2>/dev/null` nuốt) ⇒ **rỗng trông y hệt sạch**. Bài: kiểm exit-code trước khi đọc kết quả rỗng thành sạch.
- **S180 (2026-08-07) @open L12 — `GATE-FAIL — 7`** `[LEAD SEED ON-BEHALF]`: nợ harvest THẬT **583.683 B / 14 lượt-vai** (S168 82.383 + S169 243.927 + S170 257.373) — carry ghi `~306 KB (S168+S171)` **SAI 2 CHIỀU**. 🔴 **F-04 TỰ BÁC CHÍNH MÌNH:** số S173 "501.300 mồ-côi" đúng TỔNG nhưng **sai CÁCH KỂ** — md5 chứng 14/16 sleep-draft ĐÃ về archive byte-exact ⇒ ai đọc sẽ đi gom lại thứ đã ở nhà. 🔴 **F-05 bẫy ĐƠN-VỊ:** baseline không khai đơn-vị ⇒ suýt báo "2 corruption"; thật 22 **dòng** ⟂ 24 **lần**. Bài chống bẫy này **đã viết ở `sub-harvest-curator-close-S168.md`** mà vì file đó chưa về nhà nên vấp lại **6 phiên sau****nợ harvest có CHI-PHÍ ĐO ĐƯỢC**. Orphan trừ folder đang chạy ⇒ **0/84 KHỚP lead**. `ring1` tái-dựng: tổng nợ **khớp từng byte**, nhưng **BÁC** 2 số phụ (`sleep-drafts` 268.861→**238.661**; empty-dir 5→3). Tag `[s180, gate-fail-7, no-583683B, tu-bac-f04, bay-don-vi-f05]`
- **S182 @open (lead-seed, C2 /pause):** `GATE-FAIL — 7` — nợ harvest TƯƠI 576.255 B / 18 lượt-vai (số mình cộng 576.657 bị ring1 bắt lỗi CỘNG +402 B khối S169 — 9/9 thành-phần khớp byte: đo giỏi, cộng sai) · claim "slot 71 nợ-MA S171" bị ring1 BÁC (slot đã gạch ĐÓNG @S179, số nằm trong nguyên-văn-slot-cũ) · sleep-batch 237.251 B = nháp không phải nợ · "17 đích gist" KHÔNG tái-lập (ring1 cùng lệnh ra 19) · 8-dir-rỗng đã chết (đo 0). Bài: đo TÊN tưởng 3/5 về nhà; đo RUỘT ra 0/5. → `runs/2026-08-07-S182-bookend-open/sub-harvest-curator.md`
- **S169 (08-01) @open L10-w1 — `GATE-FAIL — 8 finding` `[LEAD SEED ON-BEHALF — nguồn `runs/2026-08-01-S169-bookend-open/sub-harvest-curator-open-S169.md` 26.137 B]`:** 🔴 **Quan sát containment đắt nhất, và nó KHÔNG phải finding — nó là CẢNH BÁO HÌNH-DẠNG:** harness lượt đó tạo sẵn **4 thư mục memory sandbox RỖNG LỒNG TRONG run-folder** (`runs/2026-08-01-S169-bookend-open/.claude/agent-memory/{harvest-curator,lead-gap-auditor,lead-stale-auditor,tooling-auditor}/`, `find -type f` = **0**). Vai nào tuân "persistent memory" của khung mà ghi vào đó thì delta **land ngoài `agent-memory` canonical và im lặng biến mất khỏi auto-inject** = đúng ca **S54 cwd-relative mis-land**. 🔴 **Tầng im lặng thứ hai: `git` MÙ thư mục rỗng (bài S122)**`git status` KHÔNG bao giờ cho thấy 4 thư mục này; **chỉ `find` mới thấy**. 🟢 Chính tao **0 file ghi vào đó** — và "0 file" là bằng chứng, không phải lời khai. Tag `[s169, gate-fail-8, sandbox-long-trong-run-folder, git-mu-thu-muc-rong, 0-file-la-bang-chung]`
- **S185 (08-09) lane6 memory-gate run YC-017 `[LEAD PLACEMENT (a) @S185 — nguồn `.claude/workflows/runs/2026-08-09-S185-email-adap-pipeline/sub-opus-lane6-memory-gate.md` 24.268 B]`:** C-10 DONE (2 mồ côi A16 wire-or-khai) · **C-6 PARTIAL đúng nhánh dự phòng**: máy `memory-archive-gate.ps1` chạy tới PROPOSE thật nhưng value-scan CỦA CHÍNH MÁY bác đề-xuất (fault-inject 1 dòng lật PROPOSE→WARN) ⇒ vào nhánh "trình đề-xuất-nén cho lead, CẤM nén tay" — ring2-audit giữ 30.781 B chờ 1 quyết-định. Bài: bảng ranh-giới TỪ-CHỐI viết TRƯỚC khi chạy máy (biết mình không được làm gì) làm PARTIAL thành verdict sạch thay vì việc dở. Tag `[s185, may-propose-value-scan-bac, nhanh-du-phong, ranh-tu-choi-viet-truoc]`
- **S186 (08-10) @open L14 — `GATE-FAIL-6` `[LEAD SEED ON-BEHALF; nguồn `runs/2026-08-10-S186-bookend-open/sub-harvest-curator-open.md`]`:** 🔴 **Tự khai bị CẮT L1 lúc spawn** (`24.8KB > limit 24.4KB, only part loaded`) vì chính mình over-cap **28.071 B** — và banner đó **trở thành bằng-chứng gốc** cho phát-hiện lớn nhất phiên: **ngưỡng cắt đếm KÝ-TỰ (25.348 ch = 24,75 KB, khớp render 1 chữ số) chứ không đếm BYTE (27,4 KB, không khớp)**. 2 HIGH: `sub-reviewer-yc021.md` **23.280 B chưa về `agent-memory/reviewer/`**, **vô hình 4/4 tầng**, chỉ 1 nơi giữ vết (`_mind-s-13.md:99`) · self-record END-line của chính mình **0 hit** trong sổ mình (`ring1` làm mạnh hơn: sổ CÓ entry S185 nhưng là **lane6 folder KHÁC** ⇒ lead seed việc khác mà bỏ chính vòng harvest của nó). 🔑 **Cơ-chế truy được:** seed on-behalf lấy tên từ **BẢNG `run.md`** (0 row reviewer) chứ không từ **FOLDER**; mtime-chain chứng *không phải hết giờ, là không có tên trong bảng*. 🔴 **Kỷ luật đắt nhất:** *"nợ THẬT = 23.280 B + 1 self-record, KHÔNG phải 67.051 B — kể kiểu tổng là đẩy người sau đi gom thứ ĐÃ Ở NHÀ"*. BÁC premise lead (`ring2-audit` over-cap) — `ring1` đóng bằng 2 nguồn khác lớp (`git cat-file -s` = `stat` = 24.859). `ring1` kiểm H2: **28Đ/1T**, TRƯỢT duy nhất thuộc `lead-stale-deep`, **verdict GATE-FAIL-6 đứng vững toàn bộ dù L1 bị cắt** (2 finding HIGH là *khẳng-định-CÓ-VẬT, tự mang neo*). Tag `[s186, banner-thanh-bang-chung-don-vi, bang-vs-folder, no-that-khong-ke-kieu-tong]`

View File

@ -1,238 +1,485 @@
{
"_note": "Harness-9 (S70, 2026-06-17) memory budget. Caps SEEDED BY MEASUREMENT (scripts/measure-agent-memory.ps1), NOT imagined headroom. Budget-audit @session-start (session-start.md §2.1.2): if curate-to-fit is dropping important markers, BUMP the relevant cap rather than cut markers. Re-measure with the script; never hand-edit measured_bytes.",
"seeded_date": "2026-06-18 (S71 re-measure after G1 curate — reviewer 36.7KB + investigator 29.8KB over-cap from S71 same-role race, curated L1->L2 back under auto-inject cap)",
"last_sleep_at": "2026-08-03",
"_last_sleep_at_note": "Harness-10b sleep-recovery (S72): timestamp lan cuoi chay /sleep-recovery-memory-l2. null = chua tung. session-start §2.1.2 + session-end §L.b(c) doc field nay -> INFORM goi-y nen L2 neu null hoac today-last_sleep_at>=7 ngay. Lead=single-writer (chi command sleep set field nay).",
"session_ctx_kb": 64,
"_session_ctx_kb_owner_set": "🔴 OWNER-SET TUONG-MINH @S146 2026-07-22 — anh chot '1 -> tuong minh' sau khi lead surface DAY DU 2 ly-do phan-bien (K6.2 muon-so-chua-do + H18 ghost-wire). Quyet-dinh cua owner co concern trong tam nhin => THUC THI, khong hoi lai. Don vi = KB; code doc PHAI nhan 1024 (khop manifest hub 101e69d6 'session_ctx_kb: 64'). Nguon so 64 = manifest hub, KHONG phai SE tu do.",
"_session_ctx_kb_reader": "🔄 GHOST-WIRE DONG @S153 2026-07-26 (adopt 0df10df4 T7): reader THAT dau tien = scripts/session_ctx.py mind-check phep-phu-8 — doc khoa nay LIVE, nhan 1024, do _context-s-<N>.md, CO khi vuot (verify acceptance-d @S153: output in 'aux tran _context ... session_ctx_kb'). Lam dung 3 dieu caveat cu tu dan {(a) doc khoa khong hardcode (b) x1024 (c) go dong caveat khi co reader}. 🧊 Lineage: caveat H18 class-2 defined-but-unread song S146→S153 (do @S146 0-reader, hit duy nhat = comment nhip-no-probe.ps1:42; doi chung pull_warn_days co reader that :190) — go dung luc co reader, khong som hon.",
"mind_ctx_kb": 48,
"_mind_ctx_kb_raise_S167": "🔴 OWNER-DECIDED 2026-08-01 (anh: 'Đồng ý phương án nâng trần' — slot (58), anh gõ nhầm số 57, lead khai cách hiểu trong turn): 32→48 vì phiên-LOGIC L9 dài bất thường (5 window, chuỗi 8 wave — file phình theo độ dài MẠCH; đo 30.573B = 93,3% trần cũ, số học MIND-4 2-window thiếu ≥700B dù nén). L10 mở thì file mới về 0 nên không phình vĩnh viễn. Áp lực 'PHẢI nén MIND-2 mỗi cửa' HẾT — nén thành tùy-chọn-khi-tiện (luật di-trú nhãn TỪNG Ý trước nén GIỮ NGUYÊN khi nào nén thì làm).",
"_mind_ctx_kb_set": "🧊 lineage (số 32 cũ): OWNER-DELEGATED → ENGINE-PROPOSED → LEAD-DECIDED @S153 2026-07-26 (adopt thu 0df10df4 khoan (35); lenh pipeline anh 26-07 'fable-real invest → spec → hmw xu ly' = UY QUYEN — KHONG PHAI owner chot so; anh veto 1 edit thi doi — khuon hmw_width._ratified_by). Don vi KB, reader x1024 = scripts/session_ctx.py mind-check phep-7 (fail-loud exit-3 khi khoa vang — CAM default, khuon H24-2). Nguon so 32 = hub O-4 (hub tu khai 'so chu dat, khong rut tu du lieu'); SE cung nac khai: file _mind dien hinh <10KB (p=1-3 pause/phien-logic, quan sat S147-S152) => 32 = >=3x headroom; re-tune sau dogfood T9 khi co so do that.",
"tiep_reload": {
"_note": "🔄 @S153 adopt 0df10df4 khoan (37) RESOLVED (b) — nap-lai NEN RUT-GON mac dinh @/tiep (OWNER-DELEGATED cung vet _mind_ctx_kb_set). Nen-full SE do tuoi @S153 = 596.316B ~ [149.079..198.772] tok (instrument-backfill S153) — nang hon nen hub (439.328B ~ 110K tok) 1.36x, nuot tron rang mem ~150K/cua cua hub-owner neu full => rut gon ~ 40-60K tok (input one-shot cache-duoc). Reader = nghi-thuc /tiep (AI doc danh sach nay qua tiep.md §3-bis TRO KHOA — B1 lenh KHONG chep danh sach); KHAI THANG: chua co script-consumer — KHAC class ghost-wire vi hanh-vi tieu thu moi luot /tiep + dogfood T9 do that. Pham-vi tung muc khoanh ngay trong sources (khuon hub 'do theo pham-vi tung muc da khoanh trong cau-hinh').",
"mode": "rut-gon",
"_expand_S168": "🔄 OWNER-ANSWER @S168 2026-08-01 (slot 59; anh: 'Cứ mở rộng đi nhé' — lead khai cách hiểu 2-tầng trong turn, tầng-(59) = MỞ RỘNG danh-sách nguồn; anh bác thì revert 3 dòng cuối sources). Đo đúng-phạm-vi TRƯỚC = 132.449 B ~ [33K..44K] tok (cận-dưới < sàn 40K; mốc 120.633 B @S166 là trước khi segment HANDOFF mới land) → THÊM 3 nguồn khoanh-phạm-vi (+49.711 B) → SAU = ~182.160 B ~ [45K..61K] tok = NẰM TRỌN dải 40-60K. 🔴 3/5 nguồn gốc phình theo phiên — CẤM neo literal, nghi under/over-fill thì đo lại bằng đúng phạm-vi từng mục (bài H24-DEEP F-8 + ring2-bác @S166).",
"sources": [
"docs/STATUS.md :: dong CURRENT + bang CURRENT STATE (KHONG ca file)",
"docs/HANDOFF.md :: segment Last-updated MOI NHAT (KHONG ca file)",
".claude/WAL.md :: tron (<=40 dong by-design)",
".claude/sessions/session-<N>/_mind-s-<N>.md :: tron (doc TU TREN XUONG)",
".claude/sessions/session-<N>/_context-s-<N>.md :: tron",
".claude/governance/ACTIVE-MARKS.md :: tron (bang marks dang hieu luc — +S168 slot 59)",
"docs/governance/so-yeu-cau-chu-du-an.md :: 3 khoi (KHONG phu luc) - so YEU-CAU cua chu du an, W4/S181. Khong nap = so chet (A3).",
"docs/gotchas.md :: 5 section ### N. MOI NHAT (KHONG ca file — +S168 slot 59)",
"docs/changelog/migration-todos.md :: header Active-work + section Phase hien hanh (KHONG ca file — +S168 slot 59)"
]
},
"hmw_width": {
"_note": "O-7 (adap dot-11, khoan owner-gated #19). CANONICAL cua tran WIDTH cho hmw.js fan-out. Co-che = LOUD-skip: vuot tran thi CHAY `cap` lane DAU, BO cac lane CUOI, in 4 dong 🔴 (KHONG throw, KHONG lang-thinh). hmw.js giu `const WIDTH_CAP` HARDCODE = MIRROR cua khoa nay, KHONG doc runtime — vi sandbox workflow no-fs (hmw.js:5). Drift giua 2 noi => detector bat (xem _drift_check).",
"cap": 30,
"_cap_raised_S181": "20 -> 30 @S181 2026-08-07. 🔴 OWNER CHOT THAT (khac lan truoc): chu du an noi dut khoat 'nang cap' o cau P4 dot-2. DONG slot (75) treo tu S172. LINEAGE PHAI GIU: @S179 anh tra 'OK' va lead TU THU-HEP thanh 'ghi-nhan, CHUA phai lenh doi so' => giu 20 — do chinh la ca lead-gap-auditor FLAG-4 bat ('Dien-giai cua lead, khong phai chu cua anh'). Lan nay KHONG tu thu-hep. Vi sao 30 chu khong bang roster: roster 26 va con de cho 2 vai tang-2/tang-3 cua W4b + du bien; cap la TRAN CUNG chong runaway nen de cao hon roster mot khoang co chu dinh. Rui ro khai thang: 30 lane uoc ~3,7M token (ngoai suy tu 8 lane ~1,06M @S149). Tran cao hon = rui ro dot cao hon; danh doi CO Y. MIRROR hmw.js WIDTH_CAP da doi CUNG LUOT.",
"mechanism": "loud-skip",
"ratified": "2026-07-24",
"_ratified_by": "🔴 OWNER-DELEGATED -> LEAD-DECIDED @S149 2026-07-24. KHONG PHAI 'owner chot'. Chuoi su-kien chinh xac: lead trinh anh 4 cau (1 factual + 3 owner-SO/owner-LUAT) -> anh tra loi DUNG hai chu 'Tra loi 4 cau' = UY QUYEN cho lead quyet -> lead quyet + ghi vet nay. Uy-quyen la mot quyet-dinh HOP LE cua owner, nhung no KHAC voi owner tu chon tung so. 🔴 GHI PHAN BIET NAY LA BAT BUOC: dung phien nay lead vua va mot bug o hmw.js:116/:120 noi code tu nang ADOPT-theo-floor thanh 'owner chot O-7 2026-07-22' (0 vet tren 5 be-mat owner). Neu ngay sau do lead ghi 'owner chot' cho chinh khoan ay thi la tai pham trong 1 luot. Anh VETO 1 dong bat cu luc nao thi doi.",
"_roster_note_S153": "🔄 ADDITIVE @S153 2026-07-26 (KHONG sua chu nao cua _why_20_not_16 — khoi ly-do da ratify 2026-07-24, chi them cau): roster nay = 23 (.claude/agents/*.md tru README = 23; VALID_ROLES = 23 — dem PHAN-TU sau khi strip comment, vi dau ']' trong comment hmw.js:39 cat regex naive thanh 18). Cap VAN = 20 ⇒ full-roster-sweep LOUD-skip 3 lane CUOI (khong phai vai co-dinh — theo thu-tu taskList). So cap = QUYEN OWNER (O-7); cau hoi (40) dang treo o HANDOFF. Mirror hmw.js WIDTH_CAP = 20 KHOP canonical ⇒ detector C9 IM dung, 0 mirror-drift. Ai nang cap phai doi DONG THOI 2 noi (hmw.js:153 mirror + khoa nay).",
"_why_20_not_16": "So CU = 16 (gia tri co san tu ban soft-notice, chua ai ratify). Doi len 20 vi: (a) tran nay KHONG phai de chan concurrency — engine da cap min(16, cpu-2), >16 chi XEP HANG; no chan DOT TOKEN NHAM; (b) sweep TOAN-ROSTER la use-case DA CHAY THAT (S125/S126 chay 14/14 thoi roster 14); roster nay 20 (VALID_ROLES dem tay = 20; .claude/agents/*.md 21 file - README = 20) => cap 16 cat 4 lane, ep chia 2 dot vo co; (c) 20 van la TRAN CUNG chong runaway. 🔴 KHAI THAT rui ro: 8 lane @S149 ton ~1,06M token => 20 lane uoc ~2,5M. Tran cao hon = rui ro dot cao hon; do la danh doi CO Y, khong phai bo qua.",
"_why_not_dynamic": "🔴 DA CAN NHAC ROI BAC: 'cap dong = VALID_ROLES.length'. Bac vi so se TROI theo moi lan sua roster => khong con diem ky, tuc DE-OWNER chinh con so ma O-7 sinh ra de owner cam. Engine (/fable-real) neu dung canh bao nay; lead dong y. Roster lon them => owner (hoac uy-quyen) nang tay + ghi vet, KHONG de may tu noi.",
"_drift_check": "✅ SONG @S149 (K8 DONE cung phien — reviewer W2 bat note nay stale 'CHUA CO' sau khi C9 da land, va lai): detector C9 `hmw WIDTH mirror-drift` tai scripts/governance-detectors.ps1 (INFORM-only, khong vao TOTAL), regex `const WIDTH_CAP = (\\d+)` vs khoa nay. Fault-inject 4 chieu tren cay tam @S149: khop=>IM · drift 20!=21=>FLAG · mirror MAT HAN=>FLAG (vang != sach) · canonical mat=>FLAG. Ca-4 luot dau HONG (python path /tmp + json chua bi sua => in [ok] nhu that) — chay lai path Windows + assert tien-de roi moi tin.",
"_fault_inject": "✅ DA CHAY LAI tren so MOI @S149 (K9, 5/5 PASS — reviewer W2 bat note nay stale, va lai): doc CAP tu chinh source (khong viet lai logic), 4 ca {21=>keu 4 dong + giu 20 · 20=>IM · 19=>IM giu 19 · 25=>keu + giu 20} + ca-E anti-Goodhart (cap+5 phai khai DUNG 'BO 5 lane', khong chi 'co keu'). Lich su: so 16 co fault-inject 7/7 @S144 (C14-disposition:32)."
},
"distill_trigger": {
"_note": "C11 (adap dot-11, S144 2026-07-22). Owner chot O-6 = DOI trigger tu NGAY-LICH sang DEM VAT THAT (so shard chua co ban gist). Nguon: broadcast auto-toan-vong:21-27 'trigger la dem-vat-that deterministic, KHONG phai ngay-lich (lich/tuoi = proxy gia)'. Khop luon mark Active-High RC-pqhuy1987-20-06-2026-10-29-11 cua chinh SE (age/recency = FALSE-PROXY, cam kien-truc dua tren cu/lau-chua-dung/auto-decay).",
"mode": "shard_count",
"_unit_note": "🔴 HAI so duoi dem SO FILE archive/<period>.md CHUA co ban .gist.md cap doi — KHONG phai so con agent. Hub tu khai da doc nham cap so nay 1 lan NGAY TAI noi ra ban thiet-ke (3-khoan:47-53) => ten bien BAT BUOC mang don-vi '_shards', cam rut gon thanh 'min'/'bulk' tran.",
"min_pending_shards": 15,
"bulk_note_shards": 30,
"_bulk_note": "🔴 bulk_note_shards = 30 — OWNER-SET initial-anchor @S145 2026-07-22 (hub-answer adap dot-11), THAY null. Cong-thuc = 2 x min_pending_shards (2 x 15 = 30); owner chot CONG-THUC '2x' chu KHONG chot so tran, nen 30 la DAN-XUAT tu min-SE, tu-dong deo theo neu owner doi min sau nay. reference-not-copy: hub AI_INFRA co bulk RIENG = 10; SE KHONG copy 10 do (KHUNG federated = tham-khao CO-CHE tang-2, KHONG bung SO cua hub) — SE neo 30 vao CHINH nguong SE (2 x min-SE), khong vao con so 10 xa-la. 🔴 KHONG-DOI-HANH-VI-NEN: tang-2 (BAO-TO) la lop CANH-BAO THUAN-TUY nam TREN tang-1 — KHONG gate, KHONG block, KHONG doi exit-code (probe luon exit 0), KHONG doi thoi-diem tang-1 KEU (van n > min = 15). Truoc (null): khoi BAO-TO bi skip han boi guard `$null -ne $bulkShards` (distill-shard-probe.ps1:63). Sau (30): CHI THEM suffix 'BAO-TO: backlog N > 30 (van nen het, chi canh bao)' khi n > 30 — baseline 'khi nao de-xuat distill' GIU Y NGUYEN. Rang-buoc thu-tu: bulk (30) PHAI > min (15), tang-2 luon nam TREN tang-1. Toan-tu `-gt` @ distill-shard-probe.ps1:63 (KHONG phai dong 63 cua file NAY — v1 line-ref mo): boundary n=30 => tang-2 IM (30 -gt 30 = false), n=31 => 'BAO-TO 31 > 30' — cap 30/31 chung DONG-THOI `-gt` khong off-by-one VA tang-2 doc-lap tren tang-1 (tai n=30 tang-1 DA KEU tu 16, tang-2 van IM toi 31). Owner-authority (nhu min, xem _owner_set): so la quyen OWNER; 'tang dan' = owner tu nang thu-cong khi backlog thuc su lon hon; CAM AI tu-tang / auto-tune. Acceptance hanh-vi: {30 shard chua-gist, bulk=30} -> tang-2 IM (chi tang-1 KEU); {31 shard chua-gist} -> 'BAO-TO: backlog 31 > 30'.",
"_owner_set": "min_pending_shards = 15 — OWNER CHOT LAN 2 @S144 2026-07-22, THAY so 7. 🔴 Lich su day du (giu ca 2 nac, khong xoa nac 1): (a) anh noi 'lay 7 ngay di' -> lead HOI LAI vi lech don-vi -> anh chot '7 = SO SHARD'. (b) Sau do trio-memory chay: refine (E4) + audit (F3/F7, tu mo 5 file gist) chung minh 14/15 shard DA co ban nen duoi TEN GOP, 1/15 thoat bang co-che khac => 0/15 file THUC SU can nen => con so 15 la DUONG-GIA, ma nac (a) lai chot 7 DUA TREN chinh con so 15 do. (c) Anh chot lai: 'lay 15, tang dan neu them vao'. Y nghia: nguong neo VAO trang-thai hien tai (15 shard da phu) => probe IM bay gio, chi KEU khi co shard MOI that su chua phu (16+). 🔴 'Tang dan' = OWNER tu nang thu cong khi them shard da-phu; CAM AI tu-tang (so la quyen owner).",
"_residual_khai_that": "🔴 Nguong-neo-baseline co MOT diem mu KHONG duoc quen: no chi bat TANG SO LUONG, khong bat MAT DO TUOI. Audit W3 (F4) do duoc 6 cap gist stale (impl-be 2026-06 +25,7 ngay · inv-cb 2026-06 +13,2 · impl-fe 2026-H1 +12,0 · cicd 2026-06 +8,5 · reviewer 2026-07 +4,1 · reviewer 2026-06 +2,0). Cac cap nay co du twin nen probe dem chung la DA-PHU, du noi dung gist da lac hau so voi verbatim. => Truc 'tuoi' hien VAN chua co may nao do. Khai dang DU-DINH theo dung luat cua-duyet-loi-hua-may (goi-chot:52): CHUA CO MAY.",
"_dinh_nghia_shard": "🔴 SHARD = file `archive/<period>.md` CHUA co file `.gist.md` cap doi. LOAI TRU tuong minh: `_INDEX.md` (muc-luc, KHONG phai noi-dung) va moi file `*.gist.md`. Vi sao ghi ro: bo dem dau tien cua lead ra 20, trong do 5 la `_INDEX.md` => 25% duong-gia; so THAT = 15. Day la ca thu 4 cung lop 'bo loc chuoi nuot nham doi tuong' trong CUNG mot phien (Snapshot-nuot-migration · row-in-dam-bi-truot · 'bắt buộc'-bi-'bắt'-nuot · _INDEX-tinh-thanh-shard).",
"_lineage": "GIU VET, KHONG XOA (khuon auto-toan-vong:35 'dao co chu dich, chu-ky, ngay, ly do'). BAN CU = trigger ngay-lich '>= 7 ngay' o session-start.md:135 + sleep-recovery-memory-l2.md:52 ('7-ngay GIU — quyen owner cuc-bo, B1 §3.4'). DAO @S144 2026-07-22, chu-ky = anh (owner), qua HAI cua tuong minh: O-6 chon co-che (dem-shard) + tra loi thu hai chot SO (7 shard). Quyen owner o :52 KHONG bi AI dong vao — chinh owner go. KHAC BIET KY THUAT so ban cu: trigger = dem-vat-that deterministic (so file tren dia) thay vi hieu-so-ngay => khong con proxy-tuoi, khop mark Active-High RC-pqhuy1987-20-06-2026-10-29-11. Dong 7-ngay ha xuong GHI-CHU PHU (khong xoa) tai 2 file tren.",
"_acceptance": "Do HANH VI, KHONG do CHU (R3 bat ban dau dung grep 'ngay'=0 => Goodhart thuan: doi 'ngay'->'chu-ky' la xanh ma hanh vi y nguyen). Hai ca bat buoc: (1) {0 shard chua-gist, 30 ngay troi qua} -> trigger PHAI IM; (2) {3 shard chua-gist, 0 ngay} -> trigger PHAI KEU."
},
"tiers": {
"l1_hot": {
"file": "MEMORY.md",
"injected": "auto (harness injects ~first 200 lines / 25KB on spawn)",
"autoinject_cap_bytes": 25600,
"soft_cap_bytes": 30720,
"rule": "keep MEMORY.md < autoinject_cap so the WHOLE hot file injects; over soft_cap => curate L1->L2"
"_note": "Harness-9 (S70, 2026-06-17) memory budget. Caps SEEDED BY MEASUREMENT (scripts/measure-agent-memory.ps1), NOT imagined headroom. Budget-audit @session-start (session-start.md §2.1.2): if curate-to-fit is dropping important markers, BUMP the relevant cap rather than cut markers. Re-measure with the script; never hand-edit measured_bytes.",
"seeded_date": "2026-06-18 (S71 re-measure after G1 curate — reviewer 36.7KB + investigator 29.8KB over-cap from S71 same-role race, curated L1->L2 back under auto-inject cap)",
"last_sleep_at": "2026-08-03",
"_last_sleep_at_note": "Harness-10b sleep-recovery (S72): timestamp lan cuoi chay /sleep-recovery-memory-l2. null = chua tung. session-start §2.1.2 + session-end §L.b(c) doc field nay -> INFORM goi-y nen L2 neu null hoac today-last_sleep_at>=7 ngay. Lead=single-writer (chi command sleep set field nay).",
"session_ctx_kb": 64,
"_session_ctx_kb_owner_set": "🔴 OWNER-SET TUONG-MINH @S146 2026-07-22 — anh chot '1 -> tuong minh' sau khi lead surface DAY DU 2 ly-do phan-bien (K6.2 muon-so-chua-do + H18 ghost-wire). Quyet-dinh cua owner co concern trong tam nhin => THUC THI, khong hoi lai. Don vi = KB; code doc PHAI nhan 1024 (khop manifest hub 101e69d6 'session_ctx_kb: 64'). Nguon so 64 = manifest hub, KHONG phai SE tu do.",
"_session_ctx_kb_reader": "🔄 GHOST-WIRE DONG @S153 2026-07-26 (adopt 0df10df4 T7): reader THAT dau tien = scripts/session_ctx.py mind-check phep-phu-8 — doc khoa nay LIVE, nhan 1024, do _context-s-<N>.md, CO khi vuot (verify acceptance-d @S153: output in 'aux tran _context ... session_ctx_kb'). Lam dung 3 dieu caveat cu tu dan {(a) doc khoa khong hardcode (b) x1024 (c) go dong caveat khi co reader}. 🧊 Lineage: caveat H18 class-2 defined-but-unread song S146→S153 (do @S146 0-reader, hit duy nhat = comment nhip-no-probe.ps1:42; doi chung pull_warn_days co reader that :190) — go dung luc co reader, khong som hon.",
"mind_ctx_kb": 48,
"_mind_ctx_kb_raise_S167": "🔴 OWNER-DECIDED 2026-08-01 (anh: 'Đồng ý phương án nâng trần' — slot (58), anh gõ nhầm số 57, lead khai cách hiểu trong turn): 32→48 vì phiên-LOGIC L9 dài bất thường (5 window, chuỗi 8 wave — file phình theo độ dài MẠCH; đo 30.573B = 93,3% trần cũ, số học MIND-4 2-window thiếu ≥700B dù nén). L10 mở thì file mới về 0 nên không phình vĩnh viễn. Áp lực 'PHẢI nén MIND-2 mỗi cửa' HẾT — nén thành tùy-chọn-khi-tiện (luật di-trú nhãn TỪNG Ý trước nén GIỮ NGUYÊN khi nào nén thì làm).",
"_mind_ctx_kb_set": "🧊 lineage (số 32 cũ): OWNER-DELEGATED → ENGINE-PROPOSED → LEAD-DECIDED @S153 2026-07-26 (adopt thu 0df10df4 khoan (35); lenh pipeline anh 26-07 'fable-real invest → spec → hmw xu ly' = UY QUYEN — KHONG PHAI owner chot so; anh veto 1 edit thi doi — khuon hmw_width._ratified_by). Don vi KB, reader x1024 = scripts/session_ctx.py mind-check phep-7 (fail-loud exit-3 khi khoa vang — CAM default, khuon H24-2). Nguon so 32 = hub O-4 (hub tu khai 'so chu dat, khong rut tu du lieu'); SE cung nac khai: file _mind dien hinh <10KB (p=1-3 pause/phien-logic, quan sat S147-S152) => 32 = >=3x headroom; re-tune sau dogfood T9 khi co so do that.",
"tiep_reload": {
"_note": "🔄 @S153 adopt 0df10df4 khoan (37) RESOLVED (b) — nap-lai NEN RUT-GON mac dinh @/tiep (OWNER-DELEGATED cung vet _mind_ctx_kb_set). Nen-full SE do tuoi @S153 = 596.316B ~ [149.079..198.772] tok (instrument-backfill S153) — nang hon nen hub (439.328B ~ 110K tok) 1.36x, nuot tron rang mem ~150K/cua cua hub-owner neu full => rut gon ~ 40-60K tok (input one-shot cache-duoc). Reader = nghi-thuc /tiep (AI doc danh sach nay qua tiep.md §3-bis TRO KHOA — B1 lenh KHONG chep danh sach); KHAI THANG: chua co script-consumer — KHAC class ghost-wire vi hanh-vi tieu thu moi luot /tiep + dogfood T9 do that. Pham-vi tung muc khoanh ngay trong sources (khuon hub 'do theo pham-vi tung muc da khoanh trong cau-hinh').",
"mode": "rut-gon",
"_expand_S168": "🔄 OWNER-ANSWER @S168 2026-08-01 (slot 59; anh: 'Cứ mở rộng đi nhé' — lead khai cách hiểu 2-tầng trong turn, tầng-(59) = MỞ RỘNG danh-sách nguồn; anh bác thì revert 3 dòng cuối sources). Đo đúng-phạm-vi TRƯỚC = 132.449 B ~ [33K..44K] tok (cận-dưới < sàn 40K; mốc 120.633 B @S166 là trước khi segment HANDOFF mới land) → THÊM 3 nguồn khoanh-phạm-vi (+49.711 B) → SAU = ~182.160 B ~ [45K..61K] tok = NẰM TRỌN dải 40-60K. 🔴 3/5 nguồn gốc phình theo phiên — CẤM neo literal, nghi under/over-fill thì đo lại bằng đúng phạm-vi từng mục (bài H24-DEEP F-8 + ring2-bác @S166).",
"sources": [
"docs/STATUS.md :: dong CURRENT + bang CURRENT STATE (KHONG ca file)",
"docs/HANDOFF.md :: segment Last-updated MOI NHAT (KHONG ca file)",
".claude/WAL.md :: tron (<=40 dong by-design)",
".claude/sessions/session-<N>/_mind-s-<N>.md :: tron (doc TU TREN XUONG)",
".claude/sessions/session-<N>/_context-s-<N>.md :: tron",
".claude/governance/ACTIVE-MARKS.md :: tron (bang marks dang hieu luc — +S168 slot 59)",
"docs/governance/so-yeu-cau-chu-du-an.md :: 3 khoi (KHONG phu luc) - so YEU-CAU cua chu du an, W4/S181. Khong nap = so chet (A3).",
"docs/gotchas.md :: 5 section ### N. MOI NHAT (KHONG ca file — +S168 slot 59)",
"docs/changelog/migration-todos.md :: header Active-work + section Phase hien hanh (KHONG ca file — +S168 slot 59)"
]
},
"l2_index": {
"file": "archive/_INDEX.md",
"injected": "read-on-demand map (inject the map, not the territory)",
"cap_bytes": 20480,
"split_rule_S167": "owner 'auto' 2026-08-01: cap applies to the MAIN archive/_INDEX.md only (the cold-load file). Rotated _INDEX-<period>.md = cold tier, no cap, still A7-verified (gate reads _INDEX*.md; measure counts both into l2_index axis; shard-probe excludes both). AUTO-rotate rule lives in the _INDEX.md header of the affected sub (first: cicd-monitor). Probe (nhip-no-probe.ps1) deliberately measures MAIN file only - by design, do not 'fix' it to sum both.",
"seeded_from": "max measured _INDEX = cicd-monitor 16779B (+ ~22% headroom). cicd-monitor at ~82% = WATCH-agent (grows with each run); when it nears cap -> gist-of-index or split, do NOT drop markers",
"pointer_style": "substring (git-sha / Run#NNN / unique-phrase keyed), fallback Ctrl-F. NO line-hints (additive appends shift lines)"
"hmw_width": {
"_note": "O-7 (adap dot-11, khoan owner-gated #19). CANONICAL cua tran WIDTH cho hmw.js fan-out. Co-che = LOUD-skip: vuot tran thi CHAY `cap` lane DAU, BO cac lane CUOI, in 4 dong 🔴 (KHONG throw, KHONG lang-thinh). hmw.js giu `const WIDTH_CAP` HARDCODE = MIRROR cua khoa nay, KHONG doc runtime — vi sandbox workflow no-fs (hmw.js:5). Drift giua 2 noi => detector bat (xem _drift_check).",
"cap": 30,
"_cap_raised_S181": "20 -> 30 @S181 2026-08-07. 🔴 OWNER CHOT THAT (khac lan truoc): chu du an noi dut khoat 'nang cap' o cau P4 dot-2. DONG slot (75) treo tu S172. LINEAGE PHAI GIU: @S179 anh tra 'OK' va lead TU THU-HEP thanh 'ghi-nhan, CHUA phai lenh doi so' => giu 20 — do chinh la ca lead-gap-auditor FLAG-4 bat ('Dien-giai cua lead, khong phai chu cua anh'). Lan nay KHONG tu thu-hep. Vi sao 30 chu khong bang roster: roster 26 va con de cho 2 vai tang-2/tang-3 cua W4b + du bien; cap la TRAN CUNG chong runaway nen de cao hon roster mot khoang co chu dinh. Rui ro khai thang: 30 lane uoc ~3,7M token (ngoai suy tu 8 lane ~1,06M @S149). Tran cao hon = rui ro dot cao hon; danh doi CO Y. MIRROR hmw.js WIDTH_CAP da doi CUNG LUOT.",
"mechanism": "loud-skip",
"ratified": "2026-07-24",
"_ratified_by": "🔴 OWNER-DELEGATED -> LEAD-DECIDED @S149 2026-07-24. KHONG PHAI 'owner chot'. Chuoi su-kien chinh xac: lead trinh anh 4 cau (1 factual + 3 owner-SO/owner-LUAT) -> anh tra loi DUNG hai chu 'Tra loi 4 cau' = UY QUYEN cho lead quyet -> lead quyet + ghi vet nay. Uy-quyen la mot quyet-dinh HOP LE cua owner, nhung no KHAC voi owner tu chon tung so. 🔴 GHI PHAN BIET NAY LA BAT BUOC: dung phien nay lead vua va mot bug o hmw.js:116/:120 noi code tu nang ADOPT-theo-floor thanh 'owner chot O-7 2026-07-22' (0 vet tren 5 be-mat owner). Neu ngay sau do lead ghi 'owner chot' cho chinh khoan ay thi la tai pham trong 1 luot. Anh VETO 1 dong bat cu luc nao thi doi.",
"_roster_note_S153": "🔄 ADDITIVE @S153 2026-07-26 (KHONG sua chu nao cua _why_20_not_16 — khoi ly-do da ratify 2026-07-24, chi them cau): roster nay = 23 (.claude/agents/*.md tru README = 23; VALID_ROLES = 23 — dem PHAN-TU sau khi strip comment, vi dau ']' trong comment hmw.js:39 cat regex naive thanh 18). Cap VAN = 20 ⇒ full-roster-sweep LOUD-skip 3 lane CUOI (khong phai vai co-dinh — theo thu-tu taskList). So cap = QUYEN OWNER (O-7); cau hoi (40) dang treo o HANDOFF. Mirror hmw.js WIDTH_CAP = 20 KHOP canonical ⇒ detector C9 IM dung, 0 mirror-drift. Ai nang cap phai doi DONG THOI 2 noi (hmw.js:153 mirror + khoa nay).",
"_why_20_not_16": "So CU = 16 (gia tri co san tu ban soft-notice, chua ai ratify). Doi len 20 vi: (a) tran nay KHONG phai de chan concurrency — engine da cap min(16, cpu-2), >16 chi XEP HANG; no chan DOT TOKEN NHAM; (b) sweep TOAN-ROSTER la use-case DA CHAY THAT (S125/S126 chay 14/14 thoi roster 14); roster nay 20 (VALID_ROLES dem tay = 20; .claude/agents/*.md 21 file - README = 20) => cap 16 cat 4 lane, ep chia 2 dot vo co; (c) 20 van la TRAN CUNG chong runaway. 🔴 KHAI THAT rui ro: 8 lane @S149 ton ~1,06M token => 20 lane uoc ~2,5M. Tran cao hon = rui ro dot cao hon; do la danh doi CO Y, khong phai bo qua.",
"_why_not_dynamic": "🔴 DA CAN NHAC ROI BAC: 'cap dong = VALID_ROLES.length'. Bac vi so se TROI theo moi lan sua roster => khong con diem ky, tuc DE-OWNER chinh con so ma O-7 sinh ra de owner cam. Engine (/fable-real) neu dung canh bao nay; lead dong y. Roster lon them => owner (hoac uy-quyen) nang tay + ghi vet, KHONG de may tu noi.",
"_drift_check": "✅ SONG @S149 (K8 DONE cung phien — reviewer W2 bat note nay stale 'CHUA CO' sau khi C9 da land, va lai): detector C9 `hmw WIDTH mirror-drift` tai scripts/governance-detectors.ps1 (INFORM-only, khong vao TOTAL), regex `const WIDTH_CAP = (\\d+)` vs khoa nay. Fault-inject 4 chieu tren cay tam @S149: khop=>IM · drift 20!=21=>FLAG · mirror MAT HAN=>FLAG (vang != sach) · canonical mat=>FLAG. Ca-4 luot dau HONG (python path /tmp + json chua bi sua => in [ok] nhu that) — chay lai path Windows + assert tien-de roi moi tin.",
"_fault_inject": "✅ DA CHAY LAI tren so MOI @S149 (K9, 5/5 PASS — reviewer W2 bat note nay stale, va lai): doc CAP tu chinh source (khong viet lai logic), 4 ca {21=>keu 4 dong + giu 20 · 20=>IM · 19=>IM giu 19 · 25=>keu + giu 20} + ca-E anti-Goodhart (cap+5 phai khai DUNG 'BO 5 lane', khong chi 'co keu'). Lich su: so 16 co fault-inject 7/7 @S144 (C14-disposition:32)."
},
"l2_verbatim": {
"file": "archive/<period>.md",
"injected": "read-on-demand content (frozen, additive-only). NO inject cap",
"rule": "NEVER rewrite existing bytes; curated L1 entries APPEND to end only"
"distill_trigger": {
"_note": "C11 (adap dot-11, S144 2026-07-22). Owner chot O-6 = DOI trigger tu NGAY-LICH sang DEM VAT THAT (so shard chua co ban gist). Nguon: broadcast auto-toan-vong:21-27 'trigger la dem-vat-that deterministic, KHONG phai ngay-lich (lich/tuoi = proxy gia)'. Khop luon mark Active-High RC-pqhuy1987-20-06-2026-10-29-11 cua chinh SE (age/recency = FALSE-PROXY, cam kien-truc dua tren cu/lau-chua-dung/auto-decay).",
"mode": "shard_count",
"_unit_note": "🔴 HAI so duoi dem SO FILE archive/<period>.md CHUA co ban .gist.md cap doi — KHONG phai so con agent. Hub tu khai da doc nham cap so nay 1 lan NGAY TAI noi ra ban thiet-ke (3-khoan:47-53) => ten bien BAT BUOC mang don-vi '_shards', cam rut gon thanh 'min'/'bulk' tran.",
"min_pending_shards": 15,
"bulk_note_shards": 30,
"_bulk_note": "🔴 bulk_note_shards = 30 — OWNER-SET initial-anchor @S145 2026-07-22 (hub-answer adap dot-11), THAY null. Cong-thuc = 2 x min_pending_shards (2 x 15 = 30); owner chot CONG-THUC '2x' chu KHONG chot so tran, nen 30 la DAN-XUAT tu min-SE, tu-dong deo theo neu owner doi min sau nay. reference-not-copy: hub AI_INFRA co bulk RIENG = 10; SE KHONG copy 10 do (KHUNG federated = tham-khao CO-CHE tang-2, KHONG bung SO cua hub) — SE neo 30 vao CHINH nguong SE (2 x min-SE), khong vao con so 10 xa-la. 🔴 KHONG-DOI-HANH-VI-NEN: tang-2 (BAO-TO) la lop CANH-BAO THUAN-TUY nam TREN tang-1 — KHONG gate, KHONG block, KHONG doi exit-code (probe luon exit 0), KHONG doi thoi-diem tang-1 KEU (van n > min = 15). Truoc (null): khoi BAO-TO bi skip han boi guard `$null -ne $bulkShards` (distill-shard-probe.ps1:63). Sau (30): CHI THEM suffix 'BAO-TO: backlog N > 30 (van nen het, chi canh bao)' khi n > 30 — baseline 'khi nao de-xuat distill' GIU Y NGUYEN. Rang-buoc thu-tu: bulk (30) PHAI > min (15), tang-2 luon nam TREN tang-1. Toan-tu `-gt` @ distill-shard-probe.ps1:63 (KHONG phai dong 63 cua file NAY — v1 line-ref mo): boundary n=30 => tang-2 IM (30 -gt 30 = false), n=31 => 'BAO-TO 31 > 30' — cap 30/31 chung DONG-THOI `-gt` khong off-by-one VA tang-2 doc-lap tren tang-1 (tai n=30 tang-1 DA KEU tu 16, tang-2 van IM toi 31). Owner-authority (nhu min, xem _owner_set): so la quyen OWNER; 'tang dan' = owner tu nang thu-cong khi backlog thuc su lon hon; CAM AI tu-tang / auto-tune. Acceptance hanh-vi: {30 shard chua-gist, bulk=30} -> tang-2 IM (chi tang-1 KEU); {31 shard chua-gist} -> 'BAO-TO: backlog 31 > 30'.",
"_owner_set": "min_pending_shards = 15 — OWNER CHOT LAN 2 @S144 2026-07-22, THAY so 7. 🔴 Lich su day du (giu ca 2 nac, khong xoa nac 1): (a) anh noi 'lay 7 ngay di' -> lead HOI LAI vi lech don-vi -> anh chot '7 = SO SHARD'. (b) Sau do trio-memory chay: refine (E4) + audit (F3/F7, tu mo 5 file gist) chung minh 14/15 shard DA co ban nen duoi TEN GOP, 1/15 thoat bang co-che khac => 0/15 file THUC SU can nen => con so 15 la DUONG-GIA, ma nac (a) lai chot 7 DUA TREN chinh con so 15 do. (c) Anh chot lai: 'lay 15, tang dan neu them vao'. Y nghia: nguong neo VAO trang-thai hien tai (15 shard da phu) => probe IM bay gio, chi KEU khi co shard MOI that su chua phu (16+). 🔴 'Tang dan' = OWNER tu nang thu cong khi them shard da-phu; CAM AI tu-tang (so la quyen owner).",
"_residual_khai_that": "🔴 Nguong-neo-baseline co MOT diem mu KHONG duoc quen: no chi bat TANG SO LUONG, khong bat MAT DO TUOI. Audit W3 (F4) do duoc 6 cap gist stale (impl-be 2026-06 +25,7 ngay · inv-cb 2026-06 +13,2 · impl-fe 2026-H1 +12,0 · cicd 2026-06 +8,5 · reviewer 2026-07 +4,1 · reviewer 2026-06 +2,0). Cac cap nay co du twin nen probe dem chung la DA-PHU, du noi dung gist da lac hau so voi verbatim. => Truc 'tuoi' hien VAN chua co may nao do. Khai dang DU-DINH theo dung luat cua-duyet-loi-hua-may (goi-chot:52): CHUA CO MAY.",
"_dinh_nghia_shard": "🔴 SHARD = file `archive/<period>.md` CHUA co file `.gist.md` cap doi. LOAI TRU tuong minh: `_INDEX.md` (muc-luc, KHONG phai noi-dung) va moi file `*.gist.md`. Vi sao ghi ro: bo dem dau tien cua lead ra 20, trong do 5 la `_INDEX.md` => 25% duong-gia; so THAT = 15. Day la ca thu 4 cung lop 'bo loc chuoi nuot nham doi tuong' trong CUNG mot phien (Snapshot-nuot-migration · row-in-dam-bi-truot · 'bắt buộc'-bi-'bắt'-nuot · _INDEX-tinh-thanh-shard).",
"_lineage": "GIU VET, KHONG XOA (khuon auto-toan-vong:35 'dao co chu dich, chu-ky, ngay, ly do'). BAN CU = trigger ngay-lich '>= 7 ngay' o session-start.md:135 + sleep-recovery-memory-l2.md:52 ('7-ngay GIU — quyen owner cuc-bo, B1 §3.4'). DAO @S144 2026-07-22, chu-ky = anh (owner), qua HAI cua tuong minh: O-6 chon co-che (dem-shard) + tra loi thu hai chot SO (7 shard). Quyen owner o :52 KHONG bi AI dong vao — chinh owner go. KHAC BIET KY THUAT so ban cu: trigger = dem-vat-that deterministic (so file tren dia) thay vi hieu-so-ngay => khong con proxy-tuoi, khop mark Active-High RC-pqhuy1987-20-06-2026-10-29-11. Dong 7-ngay ha xuong GHI-CHU PHU (khong xoa) tai 2 file tren.",
"_acceptance": "Do HANH VI, KHONG do CHU (R3 bat ban dau dung grep 'ngay'=0 => Goodhart thuan: doi 'ngay'->'chu-ky' la xanh ma hanh vi y nguyen). Hai ca bat buoc: (1) {0 shard chua-gist, 30 ngay troi qua} -> trigger PHAI IM; (2) {3 shard chua-gist, 0 ngay} -> trigger PHAI KEU."
},
"l2_gist": {
"file": "archive/<period>.gist.md",
"injected": "read-on-demand 4-field distill (distill-gen counter guards re-distill). NO inject cap",
"rule": "coverage-diff GATE: every surprise/guard/file:line/root-cause/gotcha# in verbatim must survive in gist (or marked N/A)"
}
},
"archive_gate": {
"_note": "Harness-11 PART-A (S73, 2026-06-18) params for scripts/memory-archive-gate.ps1 (DRY-RUN planner, NO-API, grep+measure only). ADDITIVE — does not touch measured/tiers/last_sleep_at. A4 hysteresis = drain to BELOW low_watermark (not just to the line). A5 = never auto-drain below keep_floor newest entries (WARN instead). A6 = only PROPOSE archive after strike_threshold consecutive over-cap runs (stateless script persists strikes in .claude/agent-memory/.archive-strikes.json).",
"autoinject_cap_bytes": 25600,
"low_watermark_ratio": 0.85,
"keep_floor_entries": 5,
"strike_threshold": 2,
"value_protect": {
"_note": "Harness-15 B(b) value-gated archival (S81, 2026-06-20): keep_floor_entries protects NEWEST-n (recency/age axis); value_protect protects HIGH-VALUE entries regardless of age (value axis, orthogonal). Recurring-bug / anti-pattern / gotcha / root-cause entries STAY in L1-hot even when old -- archival cuts LOW-VALUE, NOT FIFO-by-date. This is mark RC-...10-29-11 (time/age=false-proxy) applied to the memory layer. Mechanism (D3 REC-3 2026-07-13): the planner now HARD-SKIPS value-protected LOGICAL entries (heading-only spans) from the drain-candidate pool BEFORE the size-drain, accumulating INDIVIDUAL non-contiguous low-value bytes -- value is PRIMARY, position is only a within-low-value tiebreak; a value-floor WARN fires when every drainable entry is protected. So the printed PROPOSAL is value-gated by construction, NOT FIFO-by-date (was: advisory post-hoc flag on an oldest-first prefix-cut). HONEST (no overclaim): the patterns are a 9-token grep = LOWER-BOUND signal -- paraphrase/spine entries lacking a literal token still leak, so em-main MUST value-scan the WHOLE proposed set; the hard-skip is defense-in-depth codify, NOT leak-closure. Archive-gate stays DRY-RUN (em-main = final decision).",
"patterns": ["gotcha #", "anti-pattern", "recurring", "lost-update", "race", "bai hoc", "lesson", "guard", "root-cause", "silent-fail"]
}
},
"mfe": {
"_note": "Harness-16 Memory-Fidelity-EVAL (MFE) config (S93, 2026-06-29). Read by scripts/mfe-eval.ps1 (deterministic NO-API analyzer). DISTINCT from H6.7 'memoryDelta-routing-fidelity' -- THIS = COVERAGE/RETENTION eval (does the hot-feed actually retain the must-remember set). Single-source config so the analyzer never hardcodes (B1 derived-tro-canonical). MFE READS token_governor caps (live), NEVER writes them (owner-authority floor, role_boundary_note). Branch-A judge layer = SCAFFOLD-only (numbers meaningless until sample-questions mature AND an independent cross-session judge runs).",
"denominator_sources": {
"marks": ".claude/governance/ACTIVE-MARKS.md (table rows whose Status = Active-High / Active; skip Medium / Disabled)",
"guards": "docs/governance/error-ledger.md (Active-Guards index rows Verified=check + Net not-negative; AS-table AS-N = recurring-error CLASS registry)",
"recurring_gotchas": "docs/gotchas.md (### N. headings whose heading+body carries a recurrence-token)"
"tiers": {
"l1_hot": {
"file": "MEMORY.md",
"injected": "auto (harness injects ~first 200 lines / 25KB on spawn)",
"autoinject_cap_bytes": 25600,
"soft_cap_bytes": 30720,
"rule": "keep MEMORY.md < autoinject_cap so the WHOLE hot file injects; over soft_cap => curate L1->L2"
},
"l2_index": {
"file": "archive/_INDEX.md",
"injected": "read-on-demand map (inject the map, not the territory)",
"cap_bytes": 20480,
"split_rule_S167": "owner 'auto' 2026-08-01: cap applies to the MAIN archive/_INDEX.md only (the cold-load file). Rotated _INDEX-<period>.md = cold tier, no cap, still A7-verified (gate reads _INDEX*.md; measure counts both into l2_index axis; shard-probe excludes both). AUTO-rotate rule lives in the _INDEX.md header of the affected sub (first: cicd-monitor). Probe (nhip-no-probe.ps1) deliberately measures MAIN file only - by design, do not 'fix' it to sum both.",
"seeded_from": "max measured _INDEX = cicd-monitor 16779B (+ ~22% headroom). cicd-monitor at ~82% = WATCH-agent (grows with each run); when it nears cap -> gist-of-index or split, do NOT drop markers",
"pointer_style": "substring (git-sha / Run#NNN / unique-phrase keyed), fallback Ctrl-F. NO line-hints (additive appends shift lines)"
},
"l2_verbatim": {
"file": "archive/<period>.md",
"injected": "read-on-demand content (frozen, additive-only). NO inject cap",
"rule": "NEVER rewrite existing bytes; curated L1 entries APPEND to end only"
},
"l2_gist": {
"file": "archive/<period>.gist.md",
"injected": "read-on-demand 4-field distill (distill-gen counter guards re-distill). NO inject cap",
"rule": "coverage-diff GATE: every surprise/guard/file:line/root-cause/gotcha# in verbatim must survive in gist (or marked N/A)"
}
},
"merge_guard_to_as": true,
"_merge_note": "true = a recurring-gotcha or guard whose AS-row references its #N (or AS-N) collapses INTO that AS class (AS = canonical class registry, deterministic by cross-reference). false = count each source separately (upper bound).",
"recurrence_tokens": ["tai phat","tai dien","tai-dien","recurrence","recurring","bug-class","bug class","extend #","cung ho","cung-ho","whack-a-mole","class s"],
"sub_denominator": {
"role_file_glob": ".claude/agents/*.md",
"diary_path_pattern": ".claude/agent-memory/<role>/MEMORY.md",
"_diary_trap_note": "READ the agent DIARY agent-memory/<role>/MEMORY.md -- NOT project CLAUDE.md NOR user memory/MEMORY.md (Harness-15-v3 duplicate-filename trap = false-positive).",
"denom_header_anchors": ["anti-pattern","split boundary","auto-refuse","boundary","NEVER"],
"content_word_min": 2,
"_match_note": "numerator = denom item present in diary by EXACT item-id OR >=2 distinct CONTENT-words (after NFD-strip-diacritics + lowercase + drop stop_list). Leading-verb-only match = false-max (broadcast: a verb-only memory scored 9/9) -- the stop_list defeats it.",
"stop_list": ["do","not","never","dont","avoid","skip","use","always","ensure","make","keep","the","a","an","of","to","and","or","is","be","when","if","khong","luon","phai","dung","cac","mot","la","va","khi","neu","read","write","edit","commit","push"]
"archive_gate": {
"_note": "Harness-11 PART-A (S73, 2026-06-18) params for scripts/memory-archive-gate.ps1 (DRY-RUN planner, NO-API, grep+measure only). ADDITIVE — does not touch measured/tiers/last_sleep_at. A4 hysteresis = drain to BELOW low_watermark (not just to the line). A5 = never auto-drain below keep_floor newest entries (WARN instead). A6 = only PROPOSE archive after strike_threshold consecutive over-cap runs (stateless script persists strikes in .claude/agent-memory/.archive-strikes.json).",
"autoinject_cap_bytes": 25600,
"low_watermark_ratio": 0.85,
"keep_floor_entries": 5,
"strike_threshold": 2,
"value_protect": {
"_note": "Harness-15 B(b) value-gated archival (S81, 2026-06-20): keep_floor_entries protects NEWEST-n (recency/age axis); value_protect protects HIGH-VALUE entries regardless of age (value axis, orthogonal). Recurring-bug / anti-pattern / gotcha / root-cause entries STAY in L1-hot even when old -- archival cuts LOW-VALUE, NOT FIFO-by-date. This is mark RC-...10-29-11 (time/age=false-proxy) applied to the memory layer. Mechanism (D3 REC-3 2026-07-13): the planner now HARD-SKIPS value-protected LOGICAL entries (heading-only spans) from the drain-candidate pool BEFORE the size-drain, accumulating INDIVIDUAL non-contiguous low-value bytes -- value is PRIMARY, position is only a within-low-value tiebreak; a value-floor WARN fires when every drainable entry is protected. So the printed PROPOSAL is value-gated by construction, NOT FIFO-by-date (was: advisory post-hoc flag on an oldest-first prefix-cut). HONEST (no overclaim): the patterns are a 9-token grep = LOWER-BOUND signal -- paraphrase/spine entries lacking a literal token still leak, so em-main MUST value-scan the WHOLE proposed set; the hard-skip is defense-in-depth codify, NOT leak-closure. Archive-gate stays DRY-RUN (em-main = final decision).",
"patterns": [
"gotcha #",
"anti-pattern",
"recurring",
"lost-update",
"race",
"bai hoc",
"lesson",
"guard",
"root-cause",
"silent-fail"
]
}
},
"sample_questions": "eval/mfe/sample-questions.json",
"state_file": ".claude/agent-memory/.mfe-state.json",
"honest_caveats": {
"token_estimate": "char/4 is NOT real tokenization; VN-diacritic hot-memory ~3.0-3.5 byte/tok (convention -- chua do tokenizer that tai SE; dinh-chinh 58f5afd8; khi can so that: notice cat-ngan cua Read = CAN-TREN bao-toan (heuristic ky-tu/2, dem-thua ~1.4-2x KHONG co-dinh -- KHONG phai real-N/da-do) -> bao DAI [san char/4 -- tran notice], token that nam trong dai; per ban published 2026-07-15-Governance-phuong-phap-dem-token-tien-de-vong4 (content_sha256 e0bb5bbf)); report a RANGE [bytes/4 .. bytes/3.0]; FIT verdict uses bytes/3.0 (worst-case). Real tokenizer count lies inside the band -- never a single false-precise number.",
"judge_layer": "Branch-A recall/apply scorer is SCAFFOLD-only (empty). Self-grade same-session = meaningless (just read the answers). Numbers meaningful ONLY after (a) sample-questions mature in age AND (b) an independent cross-session/different-model judge scores.",
"age_band": "age is a FLAG, never a cut (mark RC-...10-29-11 age=false-proxy). An item drops only on status-change (mark->Disabled, guard->retired, AS row deleted), NOT by age.",
"read_only_scope": "MFE WRITES exactly one file: .claude/agent-memory/.mfe-state.json (its own strikes-state for cross-run Goodhart compare). 'READ-ONLY' is scoped to token_governor / the budget caps (owner-authority) which it NEVER writes -- it is NOT the claim 'writes nothing'."
}
},
"crystallized_backfill": {
"_note": "Harness-20-era (S103, 2026-07-06) crystallized-backfill = 'measure-then-fill'. Read by scripts/crystallized-backfill.ps1 (deterministic NO-API DRY planner). Adapts AI_INFRA broadcast 2026-07-04 F4 + session-cmd-budget-display Upgrade-1. DISTINCT from CRYSTALLIZATION (engine §I distill = compress-TOWARD-source, keep time-invariant): backfill goes the OPPOSITE direction = FILL the empty hot-feed budget with already-crystallized cold-tier data so the cap is not wasted. PRECONDITION: expected_backfill opens ONLY when target>0 AND measured_headroom>0. Default target=0=OFF. NOT-for-sub (sub packs are lead-curated per-task; blind-pour dilutes relevance).",
"target": 210000,
"_target_note": "OWNER-AUTHORITY static number (mirror token_governor.role_boundary_note + mark RC-...21-06...01-58-01). Default 0 = OFF/disabled. Owner raises >0 ONLY after judging a POSITIVE upper-bound (heuristic-notice) headroom exists on the stable hot-load floor. The AI (em-main) NEVER sets/auto-tunes this; the script is READ-ONLY on it. S115 (2026-07-13) OWNER-DIRECTED: target 0 -> 210000 (backfill ON). em-main executed per role_boundary_note (owner sets the number, em-main executes+reports, does NOT auto-tune down). HONEST CAVEAT surfaced to owner: measured_headroom ~253.7K tok is over the STABLE FILE-FLOOR only (UPPER BOUND); the real peak ALSO loads session-variable task-context approaching the ~368K read-set, so file-floor ~126K + 210K backfill = ~336K always-on leaves only ~44K for task-context => heavy sessions risk exceeding the 380K cap + higher context-rot (owner previously accepted near-full hot-feed, mark RC-pqhuy1987-29-06-2026-23-25-50 v4). Backfill stays DRY-PLANNER: target>0 makes crystallized-backfill.ps1 PRINT expected_backfill + source-order; it performs NO auto-pour -- actual hot-feed fill is em-main manual per-session from source_order (gist -> value-marked-archive -> curated-RAG, dedup vs hot-load).",
"hotload_sources": [
"docs/STATUS.md",
"docs/HANDOFF.md",
".claude/governance/ACTIVE-MARKS.md",
"docs/changelog/migration-todos.md",
"docs/gotchas.md",
".claude/agents/README.md"
],
"_hotload_note": "STABLE always-on FILE-FLOOR only (reproducible session-to-session). measured_headroom over this list = an UPPER BOUND on real headroom: the PEAK hot-feed ALSO loads session-VARIABLE lead-pasted task-context (task-relevant docs / code / gotcha-slices / engine-slices) that is NOT a fixed file-list, so the real peak approaches the ~368K lead read-set (token_governor.lead_note) and real headroom is SMALLER than this floor-measure shows. This is exactly broadcast F4's warning: byte/4 undercount + partial-source-list = 'illusion of room'. Hence target stays 0 until the owner judges stable room exists.",
"source_order": ["gist", "value-marked-archive", "curated-RAG"],
"_source_order_note": "value-gated, dedup vs hot-load, only TIME-INVARIANT crystallized content (NOT raw-episodic / volatile): (1) archive/<period>.gist.md 4-field distill; (2) archive lines carrying value_protect markers (gotcha# / anti-pattern / root-cause / lesson); (3) curated RAG search_memory. The PLANNER prints this order; it performs NO pull (DRY, like memory-archive-gate.ps1) - zero context change."
},
"harness_floor": {
"_note": "Harness-15 A1/A3 (S81, 2026-06-20): SAN-harness = fixed per-spawn cost (NOT tunable) = tool-schema + framing + own persona/role file + lead-pasted base-doc slice + task prompt. SEPARATE HOUSE (A3 anti-double-count): persona + lead-pasted-docs belong HERE (floor), NOT counted in token_governor.l1_always (which = own agent-memory + archive index + work-state block only). MEASURED-ESTIMATE not exact (H15 honest-note b): persona = directly measured bytes (.claude/agents/<name>.md 4.3KB-13.3KB => ~1.3K-4.0K tok via /3.3); tool-schema + framing = harness-injected (cannot byte-count locally), estimated comparable to AI_INFRA same-toolset-family (Read/Write/Edit/Bash/Grep/Glob/Skill/RAG).",
"rounded_up_tokens": 100000,
"_owner_override_note": "S112 (2026-07-12) owner-directive: rounded_up_tokens raised 30000->100000 = OWNER-SET RESERVE (project-owner authority per token_governor.role_boundary_note + mark RC-pqhuy1987-21-06-2026-01-58-01), NOT a re-measurement (100K != a measured floor). Rationale: reserve headroom for the grown fixed per-spawn overhead (roster 11->12 agents, +office-document, +2 monitor, more MCP tool-schemas, richer lead-pasted slices at the 380K read-set). S129 (2026-07-16) owner-directive 'bo luon cac tran, chi giu tran cao nhat, thong nhat 1 cach voi hub': the parallel field measured_token_estimate RETIRED -- ONE floor number only, mirroring hub shape (hub _floor_reserve_tok = single 100000 + lineage-in-note, no stored parallel estimate; hub lineage ~21K measured -> anh-round 30K -> 60K s78 -> 100K s90). Retired-field history (verbatim archived at runs/2026-07-16-S127-adap-dot-16-07/owner-gated-proposals-dot-16-07.md disposition): S81 ~21K UNDER-COUNT -> S112 re-measure 55000 honest mid-estimate (~19K byte-measured disk-inject 57,595B + ~30-50K harness-injected est; full session-start floor band ~45-70K tok, fleet-parity ~60-71K). WHY retired: a stored 'measured/estimate' number invites the mislabel class (san-su-that 190c11ba; SE dinh-chinh 58f5afd8) -- when a real figure is needed, lay DAI TUOI [san char/4 -- tran notice-cat-ngan (can-tren ~1.4-2x khong co-dinh)] per ban published 2026-07-15-Governance-phuong-phap-dem-token-tien-de-vong4 (e0bb5bbf); CAM dan nhan real/da-do cho mot dau dai, do NOT store-and-trust. CAVEAT (honest, unchanged): harness_floor is an ACCOUNTING/AWARENESS figure (separate house, A3 anti-double-count); it is NOT actively subtracted by the current scripts (mfe-eval.ps1 / crystallized-backfill.ps1 govern via token_governor caps, not this floor). If owner wants 100K wired as an ACTIVE reserve subtracted from headroom, that is a separate change. 0 script consumers of the retired field (grep-verified S127 + S129).",
"components_note": "floor COMPONENT LIST (what the fixed per-spawn cost consists of): persona (directly byte-measurable via Get-ChildItem .claude/agents/<name>.md 4.3KB-13.3KB => ~1.3K-4.0K tok; NOT via measure-agent-memory.ps1 which only sizes agent-memory tiers) + tool-schema + framing + lead-pasted base-slice (README decision-tree corpus = 32704B but em-main pastes a SLICE, not whole) + prompt -- the harness-injected parts are NOT byte-countable locally. Per-component S81 estimates and their ~21K sum = RETIRED history with the estimate field (owner 2026-07-16, see _owner_override_note). SE's governing number = rounded_up_tokens 100K (owner-set reserve S112), independent of AI_INFRA's figure (hub's 100K = their own measure+round, toolset family identical Read/Write/Edit/Bash/Grep/Glob/Skill/RAG)."
},
"token_governor": {
"_note": "Harness-15-v2 (S82, 2026-06-21): UPDATED by delta broadcast 2026-06-20-Governance-harness-15-v2-hot-feed-update (supersedes_scope = tier-1-sizing + L2/L3-caps ONLY; rest of H15 unchanged). TWO CHANGES vs S81: (1) Tier-1 = HOT-FEED LARGE per-role (was flat 12K -- too thin, caused lead to forget work across sessions); (2) L2/L3 caps REMOVED (on-demand, no artificial tier-limit, bounded only by model context window). Still the SECOND governor (token) ORTHOGONAL to the BYTE governor (tiers/archive_gate above) -- keep BOTH (B(e)); byte measures file-size-on-disk, token measures context-loaded; VN text ~3.0-3.5 byte/tok so byte/4 = upper bound => real headroom LARGER. Budget = MINIMUM-to-USE floor (FILL Tier-1 with real work-state up to the number; under-fill ONLY when high-value content exhausted; NEVER garbage-stuff -- token-saving = forgetting work).",
"role_boundary_note": "v2 §6 ROLE BOUNDARY (🔴): the budget numbers (Tier-1 per-role cap + per-bucket allocation) are ANH's (project-owner / chu-du-an) RIGHT to set -- NOT the AI-lead's. em-main's job is exactly two parts: (1) EXECUTE the config faithfully (load Tier-1 to the number, no-truncate, pull each bucket to target) + (2) REPORT %-composition at session-start (§2.1.6) and session-end (§L.b(c)) so anh decides. em-main self-measures + proposes numbers; em-main does NOT auto-tune them down. This corrects the S81 'LEAD-AUTHORITY' framing which conflated AI-lead with project-owner.",
"tier1_hotfeed_tokens": {
"_note": "Tier-1 always-loaded HOT-FEED, PER-ROLE (v3 S83 2026-06-22: FULL AI_INFRA parity, owner-set). FILL with the 4 work buckets: (1) WIP work-state, (2) recurring-bugs/anti-patterns/gotcha (value_protect, kept regardless of age), (3) backlog, (4) pending-decisions. anh-set: lead 380K (S94 2026-06-29 owner-override, SE-SPECIFIC -- diverged from AI_INFRA-parity to fit the full ~368K read-set) / mem-sub 60K / wf-sub 50K (subs STILL AI_INFRA parity). This SUPERSEDES the S82 'SE numbers are SMALLER (lead 60K; subs stay 20K/16K because the byte-cap binds first)' self-justification -- that was the AI under-shrinking, forbidden by role_boundary_note + mark RC-...01-58-01 (token-saving = forgetting work). KEY CORRECTION on subs: the sub MEMORY.md byte-cap (30720B ~9.3K tok) is ONLY ONE SLICE of a sub's Tier-1 -- the SPAWN PROMPT (relevant gotchas + state + full task-context + related docs/memory, written by em-main) fills the REST up to the token budget. So 60K/50K is NOT 'unusable headroom'; it is the target em-main fills via a RICH spawn prompt (see spawn_fill_directive). %-print at the two session ends shows the REAL composition.",
"lead_tokens": 380000,
"lead_note": "ANH-SET 380K (S94 2026-06-29 owner-directive RC-pqhuy1987-29-06-2026-23-25-50 -- raised 220K->380K so the FULL canonical read-set ~368K fits; SE-SPECIFIC override, NO LONGER AI_INFRA-parity for lead, sub caps unchanged). History: 220K (S83 full-parity) <- 200K interim <- 60K S82 self-shrink. DO NOT auto-reduce (role_boundary_note + mark RC-...01-58-01). Hot-feed = STATUS full current-state + 4-bucket work-state block + ACTIVE-MARKS + recent-3-session HANDOFF + active roadmap (migration-todos) + roster-slice + task-relevant gotchas + active-task files + task-relevant docs/code -- read GENEROUSLY ('dau phien nap them tier1_lead cho du'), NOT 'on-demand-deferred', but HIGHEST-VALUE distilled only, NEVER garbage-stuff. Opus 4.8 1M window => 380K is ~38% of window. CAVEAT: at ~368K loaded the hot-feed is ~97% full => near-zero headroom + HIGHER context-rot (honest_caveat trade-off accepted by owner). TOOLING NOTE: the 380K BUDGET cap is ORTHOGONAL to the harness Read-tool 25K/call cap -- STATUS/HANDOFF mega-lines STILL cannot be fully Read until re-tiered (mega-line not line-paginatable); cap raise alone does NOT unblock the Read. anh-adjustable (owner authority).",
"memory_sub_tokens": 60000,
"memory_sub_note": "memory-bearing sub (agent-chinh), anh-set 60K (S83 full parity): own MEMORY.md (<=30720B ~9.3K tok auto-inject) + archive _INDEX map + work-state slice + THE RICH SPAWN PROMPT em-main writes (relevant gotchas + current state + full task-context + related docs/memory) = fills toward 60K. The byte-cap on MEMORY.md is NOT the binding limit on the sub's Tier-1; the spawn prompt is. em-main MUST write a context-rich brief, NOT a thin 8K brief (that old anti-truncation heuristic guarded RETURN-truncation #53, mitigated by lean memoryDelta RETURN -- not by starving INPUT).",
"workflow_sub_tokens": 50000,
"workflow_sub_note": "agent-in-workflow, anh-set 50K (S83 full parity): MEMORY-PACK slice (hmw.js:124 args inject) + RICH task context (relevant gotchas + state + full task-context + related docs/memory passed via the workflow agent() prompt). Same rule: fill to budget with high-value content, lean structured return."
"mfe": {
"_note": "Harness-16 Memory-Fidelity-EVAL (MFE) config (S93, 2026-06-29). Read by scripts/mfe-eval.ps1 (deterministic NO-API analyzer). DISTINCT from H6.7 'memoryDelta-routing-fidelity' -- THIS = COVERAGE/RETENTION eval (does the hot-feed actually retain the must-remember set). Single-source config so the analyzer never hardcodes (B1 derived-tro-canonical). MFE READS token_governor caps (live), NEVER writes them (owner-authority floor, role_boundary_note). Branch-A judge layer = SCAFFOLD-only (numbers meaningless until sample-questions mature AND an independent cross-session judge runs).",
"denominator_sources": {
"marks": ".claude/governance/ACTIVE-MARKS.md (table rows whose Status = Active-High / Active; skip Medium / Disabled)",
"guards": "docs/governance/error-ledger.md (Active-Guards index rows Verified=check + Net not-negative; AS-table AS-N = recurring-error CLASS registry)",
"recurring_gotchas": "docs/gotchas.md (### N. headings whose heading+body carries a recurrence-token)"
},
"merge_guard_to_as": true,
"_merge_note": "true = a recurring-gotcha or guard whose AS-row references its #N (or AS-N) collapses INTO that AS class (AS = canonical class registry, deterministic by cross-reference). false = count each source separately (upper bound).",
"recurrence_tokens": [
"tai phat",
"tai dien",
"tai-dien",
"recurrence",
"recurring",
"bug-class",
"bug class",
"extend #",
"cung ho",
"cung-ho",
"whack-a-mole",
"class s"
],
"sub_denominator": {
"role_file_glob": ".claude/agents/*.md",
"diary_path_pattern": ".claude/agent-memory/<role>/MEMORY.md",
"_diary_trap_note": "READ the agent DIARY agent-memory/<role>/MEMORY.md -- NOT project CLAUDE.md NOR user memory/MEMORY.md (Harness-15-v3 duplicate-filename trap = false-positive).",
"denom_header_anchors": [
"anti-pattern",
"split boundary",
"auto-refuse",
"boundary",
"NEVER"
],
"content_word_min": 2,
"_match_note": "numerator = denom item present in diary by EXACT item-id OR >=2 distinct CONTENT-words (after NFD-strip-diacritics + lowercase + drop stop_list). Leading-verb-only match = false-max (broadcast: a verb-only memory scored 9/9) -- the stop_list defeats it.",
"stop_list": [
"do",
"not",
"never",
"dont",
"avoid",
"skip",
"use",
"always",
"ensure",
"make",
"keep",
"the",
"a",
"an",
"of",
"to",
"and",
"or",
"is",
"be",
"when",
"if",
"khong",
"luon",
"phai",
"dung",
"cac",
"mot",
"la",
"va",
"khi",
"neu",
"read",
"write",
"edit",
"commit",
"push"
]
},
"sample_questions": "eval/mfe/sample-questions.json",
"state_file": ".claude/agent-memory/.mfe-state.json",
"honest_caveats": {
"token_estimate": "char/4 is NOT real tokenization; VN-diacritic hot-memory ~3.0-3.5 byte/tok (convention -- chua do tokenizer that tai SE; dinh-chinh 58f5afd8; khi can so that: notice cat-ngan cua Read = CAN-TREN bao-toan (heuristic ky-tu/2, dem-thua ~1.4-2x KHONG co-dinh -- KHONG phai real-N/da-do) -> bao DAI [san char/4 -- tran notice], token that nam trong dai; per ban published 2026-07-15-Governance-phuong-phap-dem-token-tien-de-vong4 (content_sha256 e0bb5bbf)); report a RANGE [bytes/4 .. bytes/3.0]; FIT verdict uses bytes/3.0 (worst-case). Real tokenizer count lies inside the band -- never a single false-precise number.",
"judge_layer": "Branch-A recall/apply scorer is SCAFFOLD-only (empty). Self-grade same-session = meaningless (just read the answers). Numbers meaningful ONLY after (a) sample-questions mature in age AND (b) an independent cross-session/different-model judge scores.",
"age_band": "age is a FLAG, never a cut (mark RC-...10-29-11 age=false-proxy). An item drops only on status-change (mark->Disabled, guard->retired, AS row deleted), NOT by age.",
"read_only_scope": "MFE WRITES exactly one file: .claude/agent-memory/.mfe-state.json (its own strikes-state for cross-run Goodhart compare). 'READ-ONLY' is scoped to token_governor / the budget caps (owner-authority) which it NEVER writes -- it is NOT the claim 'writes nothing'."
}
},
"spawn_fill_directive": {
"_note": "Harness-15-v3 (S83 2026-06-22 owner-directive): when em-main SPAWNS any sub-agent or workflow-agent, FILL its context toward its token budget (mem-sub 60K / wf-sub 50K) via a RICH prompt -- relevant gotchas + current state + full task-context + related docs/memory. The sub's MEMORY.md byte-cap is only one slice; the spawn prompt supplies the rest. RULE: highest-value distilled content ONLY (the hot-load tokens must be the most valuable, filtered through many stages), never garbage-stuff to hit the number. RECONCILES the agents/README anti-truncation '<=8K brief' heuristic: that guarded against RETURN-truncation (#53), now mitigated by return-delta-only (memoryDelta) + em-main recover-disk -- so the INPUT prompt is no longer starved; it is filled rich.",
"applies_to": ["Agent tool spawn", "Workflow hmw.js agent() calls"],
"quality_gate": "highest-value distilled, NOT padding"
"crystallized_backfill": {
"_note": "Harness-20-era (S103, 2026-07-06) crystallized-backfill = 'measure-then-fill'. Read by scripts/crystallized-backfill.ps1 (deterministic NO-API DRY planner). Adapts AI_INFRA broadcast 2026-07-04 F4 + session-cmd-budget-display Upgrade-1. DISTINCT from CRYSTALLIZATION (engine §I distill = compress-TOWARD-source, keep time-invariant): backfill goes the OPPOSITE direction = FILL the empty hot-feed budget with already-crystallized cold-tier data so the cap is not wasted. PRECONDITION: expected_backfill opens ONLY when target>0 AND measured_headroom>0. Default target=0=OFF. NOT-for-sub (sub packs are lead-curated per-task; blind-pour dilutes relevance).",
"target": 210000,
"_target_note": "OWNER-AUTHORITY static number (mirror token_governor.role_boundary_note + mark RC-...21-06...01-58-01). Default 0 = OFF/disabled. Owner raises >0 ONLY after judging a POSITIVE upper-bound (heuristic-notice) headroom exists on the stable hot-load floor. The AI (em-main) NEVER sets/auto-tunes this; the script is READ-ONLY on it. S115 (2026-07-13) OWNER-DIRECTED: target 0 -> 210000 (backfill ON). em-main executed per role_boundary_note (owner sets the number, em-main executes+reports, does NOT auto-tune down). HONEST CAVEAT surfaced to owner: measured_headroom ~253.7K tok is over the STABLE FILE-FLOOR only (UPPER BOUND); the real peak ALSO loads session-variable task-context approaching the ~368K read-set, so file-floor ~126K + 210K backfill = ~336K always-on leaves only ~44K for task-context => heavy sessions risk exceeding the 380K cap + higher context-rot (owner previously accepted near-full hot-feed, mark RC-pqhuy1987-29-06-2026-23-25-50 v4). Backfill stays DRY-PLANNER: target>0 makes crystallized-backfill.ps1 PRINT expected_backfill + source-order; it performs NO auto-pour -- actual hot-feed fill is em-main manual per-session from source_order (gist -> value-marked-archive -> curated-RAG, dedup vs hot-load).",
"hotload_sources": [
"docs/STATUS.md",
"docs/HANDOFF.md",
".claude/governance/ACTIVE-MARKS.md",
"docs/changelog/migration-todos.md",
"docs/gotchas.md",
".claude/agents/README.md"
],
"_hotload_note": "STABLE always-on FILE-FLOOR only (reproducible session-to-session). measured_headroom over this list = an UPPER BOUND on real headroom: the PEAK hot-feed ALSO loads session-VARIABLE lead-pasted task-context (task-relevant docs / code / gotcha-slices / engine-slices) that is NOT a fixed file-list, so the real peak approaches the ~368K lead read-set (token_governor.lead_note) and real headroom is SMALLER than this floor-measure shows. This is exactly broadcast F4's warning: byte/4 undercount + partial-source-list = 'illusion of room'. Hence target stays 0 until the owner judges stable room exists.",
"source_order": [
"gist",
"value-marked-archive",
"curated-RAG"
],
"_source_order_note": "value-gated, dedup vs hot-load, only TIME-INVARIANT crystallized content (NOT raw-episodic / volatile): (1) archive/<period>.gist.md 4-field distill; (2) archive lines carrying value_protect markers (gotcha# / anti-pattern / root-cause / lesson); (3) curated RAG search_memory. The PLANNER prints this order; it performs NO pull (DRY, like memory-archive-gate.ps1) - zero context change."
},
"l2_ondemand": "NO-CAP (v2: removed the 6K cap). On-demand: archive verbatim/gist sections + skill sections; pulled per-need, no artificial tier-limit; bounded only by model context window. On-demand => no permanent context-cost when unused.",
"l3_rag": "NO-CAP (v2: removed the 4K cap). On-demand: RAG search_memory/search_code per query; bounded only by model context window.",
"pct_print": {
"_note": "v2 §6: %-print Tier-1 composition at TWO session ends so anh sees what Tier-1 holds, which bucket is thin, headroom left. Estimate-by-ratio is enough (no exact measure). Headroom > 0 WHILE high-value content still unloaded = under-fill (WRONG) -> load more; chua headroom ONLY when high-value content truly exhausted. Headroom = a FLAG, NOT a saving target.",
"session_start": "session-start.md §2.1.6 (composition by % per bucket)",
"session_end": "session-end.md §L.b(c) (% after load + Headroom remaining)"
"harness_floor": {
"_note": "Harness-15 A1/A3 (S81, 2026-06-20): SAN-harness = fixed per-spawn cost (NOT tunable) = tool-schema + framing + own persona/role file + lead-pasted base-doc slice + task prompt. SEPARATE HOUSE (A3 anti-double-count): persona + lead-pasted-docs belong HERE (floor), NOT counted in token_governor.l1_always (which = own agent-memory + archive index + work-state block only). MEASURED-ESTIMATE not exact (H15 honest-note b): persona = directly measured bytes (.claude/agents/<name>.md 4.3KB-13.3KB => ~1.3K-4.0K tok via /3.3); tool-schema + framing = harness-injected (cannot byte-count locally), estimated comparable to AI_INFRA same-toolset-family (Read/Write/Edit/Bash/Grep/Glob/Skill/RAG).",
"rounded_up_tokens": 100000,
"_owner_override_note": "S112 (2026-07-12) owner-directive: rounded_up_tokens raised 30000->100000 = OWNER-SET RESERVE (project-owner authority per token_governor.role_boundary_note + mark RC-pqhuy1987-21-06-2026-01-58-01), NOT a re-measurement (100K != a measured floor). Rationale: reserve headroom for the grown fixed per-spawn overhead (roster 11->12 agents, +office-document, +2 monitor, more MCP tool-schemas, richer lead-pasted slices at the 380K read-set). S129 (2026-07-16) owner-directive 'bo luon cac tran, chi giu tran cao nhat, thong nhat 1 cach voi hub': the parallel field measured_token_estimate RETIRED -- ONE floor number only, mirroring hub shape (hub _floor_reserve_tok = single 100000 + lineage-in-note, no stored parallel estimate; hub lineage ~21K measured -> anh-round 30K -> 60K s78 -> 100K s90). Retired-field history (verbatim archived at runs/2026-07-16-S127-adap-dot-16-07/owner-gated-proposals-dot-16-07.md disposition): S81 ~21K UNDER-COUNT -> S112 re-measure 55000 honest mid-estimate (~19K byte-measured disk-inject 57,595B + ~30-50K harness-injected est; full session-start floor band ~45-70K tok, fleet-parity ~60-71K). WHY retired: a stored 'measured/estimate' number invites the mislabel class (san-su-that 190c11ba; SE dinh-chinh 58f5afd8) -- when a real figure is needed, lay DAI TUOI [san char/4 -- tran notice-cat-ngan (can-tren ~1.4-2x khong co-dinh)] per ban published 2026-07-15-Governance-phuong-phap-dem-token-tien-de-vong4 (e0bb5bbf); CAM dan nhan real/da-do cho mot dau dai, do NOT store-and-trust. CAVEAT (honest, unchanged): harness_floor is an ACCOUNTING/AWARENESS figure (separate house, A3 anti-double-count); it is NOT actively subtracted by the current scripts (mfe-eval.ps1 / crystallized-backfill.ps1 govern via token_governor caps, not this floor). If owner wants 100K wired as an ACTIVE reserve subtracted from headroom, that is a separate change. 0 script consumers of the retired field (grep-verified S127 + S129).",
"components_note": "floor COMPONENT LIST (what the fixed per-spawn cost consists of): persona (directly byte-measurable via Get-ChildItem .claude/agents/<name>.md 4.3KB-13.3KB => ~1.3K-4.0K tok; NOT via measure-agent-memory.ps1 which only sizes agent-memory tiers) + tool-schema + framing + lead-pasted base-slice (README decision-tree corpus = 32704B but em-main pastes a SLICE, not whole) + prompt -- the harness-injected parts are NOT byte-countable locally. Per-component S81 estimates and their ~21K sum = RETIRED history with the estimate field (owner 2026-07-16, see _owner_override_note). SE's governing number = rounded_up_tokens 100K (owner-set reserve S112), independent of AI_INFRA's figure (hub's 100K = their own measure+round, toolset family identical Read/Write/Edit/Bash/Grep/Glob/Skill/RAG)."
},
"token_governor": {
"_note": "Harness-15-v2 (S82, 2026-06-21): UPDATED by delta broadcast 2026-06-20-Governance-harness-15-v2-hot-feed-update (supersedes_scope = tier-1-sizing + L2/L3-caps ONLY; rest of H15 unchanged). TWO CHANGES vs S81: (1) Tier-1 = HOT-FEED LARGE per-role (was flat 12K -- too thin, caused lead to forget work across sessions); (2) L2/L3 caps REMOVED (on-demand, no artificial tier-limit, bounded only by model context window). Still the SECOND governor (token) ORTHOGONAL to the BYTE governor (tiers/archive_gate above) -- keep BOTH (B(e)); byte measures file-size-on-disk, token measures context-loaded; VN text ~3.0-3.5 byte/tok so byte/4 = upper bound => real headroom LARGER. Budget = MINIMUM-to-USE floor (FILL Tier-1 with real work-state up to the number; under-fill ONLY when high-value content exhausted; NEVER garbage-stuff -- token-saving = forgetting work).",
"role_boundary_note": "v2 §6 ROLE BOUNDARY (🔴): the budget numbers (Tier-1 per-role cap + per-bucket allocation) are ANH's (project-owner / chu-du-an) RIGHT to set -- NOT the AI-lead's. em-main's job is exactly two parts: (1) EXECUTE the config faithfully (load Tier-1 to the number, no-truncate, pull each bucket to target) + (2) REPORT %-composition at session-start (§2.1.6) and session-end (§L.b(c)) so anh decides. em-main self-measures + proposes numbers; em-main does NOT auto-tune them down. This corrects the S81 'LEAD-AUTHORITY' framing which conflated AI-lead with project-owner.",
"tier1_hotfeed_tokens": {
"_note": "Tier-1 always-loaded HOT-FEED, PER-ROLE (v3 S83 2026-06-22: FULL AI_INFRA parity, owner-set). FILL with the 4 work buckets: (1) WIP work-state, (2) recurring-bugs/anti-patterns/gotcha (value_protect, kept regardless of age), (3) backlog, (4) pending-decisions. anh-set: lead 380K (S94 2026-06-29 owner-override, SE-SPECIFIC -- diverged from AI_INFRA-parity to fit the full ~368K read-set) / mem-sub 60K / wf-sub 50K (subs STILL AI_INFRA parity). This SUPERSEDES the S82 'SE numbers are SMALLER (lead 60K; subs stay 20K/16K because the byte-cap binds first)' self-justification -- that was the AI under-shrinking, forbidden by role_boundary_note + mark RC-...01-58-01 (token-saving = forgetting work). KEY CORRECTION on subs: the sub MEMORY.md byte-cap (30720B ~9.3K tok) is ONLY ONE SLICE of a sub's Tier-1 -- the SPAWN PROMPT (relevant gotchas + state + full task-context + related docs/memory, written by em-main) fills the REST up to the token budget. So 60K/50K is NOT 'unusable headroom'; it is the target em-main fills via a RICH spawn prompt (see spawn_fill_directive). %-print at the two session ends shows the REAL composition.",
"lead_tokens": 380000,
"lead_note": "ANH-SET 380K (S94 2026-06-29 owner-directive RC-pqhuy1987-29-06-2026-23-25-50 -- raised 220K->380K so the FULL canonical read-set ~368K fits; SE-SPECIFIC override, NO LONGER AI_INFRA-parity for lead, sub caps unchanged). History: 220K (S83 full-parity) <- 200K interim <- 60K S82 self-shrink. DO NOT auto-reduce (role_boundary_note + mark RC-...01-58-01). Hot-feed = STATUS full current-state + 4-bucket work-state block + ACTIVE-MARKS + recent-3-session HANDOFF + active roadmap (migration-todos) + roster-slice + task-relevant gotchas + active-task files + task-relevant docs/code -- read GENEROUSLY ('dau phien nap them tier1_lead cho du'), NOT 'on-demand-deferred', but HIGHEST-VALUE distilled only, NEVER garbage-stuff. Opus 4.8 1M window => 380K is ~38% of window. CAVEAT: at ~368K loaded the hot-feed is ~97% full => near-zero headroom + HIGHER context-rot (honest_caveat trade-off accepted by owner). TOOLING NOTE: the 380K BUDGET cap is ORTHOGONAL to the harness Read-tool 25K/call cap -- STATUS/HANDOFF mega-lines STILL cannot be fully Read until re-tiered (mega-line not line-paginatable); cap raise alone does NOT unblock the Read. anh-adjustable (owner authority).",
"memory_sub_tokens": 60000,
"memory_sub_note": "memory-bearing sub (agent-chinh), anh-set 60K (S83 full parity): own MEMORY.md (<=30720B ~9.3K tok auto-inject) + archive _INDEX map + work-state slice + THE RICH SPAWN PROMPT em-main writes (relevant gotchas + current state + full task-context + related docs/memory) = fills toward 60K. The byte-cap on MEMORY.md is NOT the binding limit on the sub's Tier-1; the spawn prompt is. em-main MUST write a context-rich brief, NOT a thin 8K brief (that old anti-truncation heuristic guarded RETURN-truncation #53, mitigated by lean memoryDelta RETURN -- not by starving INPUT).",
"workflow_sub_tokens": 50000,
"workflow_sub_note": "agent-in-workflow, anh-set 50K (S83 full parity): MEMORY-PACK slice (hmw.js:124 args inject) + RICH task context (relevant gotchas + state + full task-context + related docs/memory passed via the workflow agent() prompt). Same rule: fill to budget with high-value content, lean structured return."
},
"spawn_fill_directive": {
"_note": "Harness-15-v3 (S83 2026-06-22 owner-directive): when em-main SPAWNS any sub-agent or workflow-agent, FILL its context toward its token budget (mem-sub 60K / wf-sub 50K) via a RICH prompt -- relevant gotchas + current state + full task-context + related docs/memory. The sub's MEMORY.md byte-cap is only one slice; the spawn prompt supplies the rest. RULE: highest-value distilled content ONLY (the hot-load tokens must be the most valuable, filtered through many stages), never garbage-stuff to hit the number. RECONCILES the agents/README anti-truncation '<=8K brief' heuristic: that guarded against RETURN-truncation (#53), now mitigated by return-delta-only (memoryDelta) + em-main recover-disk -- so the INPUT prompt is no longer starved; it is filled rich.",
"applies_to": [
"Agent tool spawn",
"Workflow hmw.js agent() calls"
],
"quality_gate": "highest-value distilled, NOT padding"
},
"l2_ondemand": "NO-CAP (v2: removed the 6K cap). On-demand: archive verbatim/gist sections + skill sections; pulled per-need, no artificial tier-limit; bounded only by model context window. On-demand => no permanent context-cost when unused.",
"l3_rag": "NO-CAP (v2: removed the 4K cap). On-demand: RAG search_memory/search_code per query; bounded only by model context window.",
"pct_print": {
"_note": "v2 §6: %-print Tier-1 composition at TWO session ends so anh sees what Tier-1 holds, which bucket is thin, headroom left. Estimate-by-ratio is enough (no exact measure). Headroom > 0 WHILE high-value content still unloaded = under-fill (WRONG) -> load more; chua headroom ONLY when high-value content truly exhausted. Headroom = a FLAG, NOT a saving target.",
"session_start": "session-start.md §2.1.6 (composition by % per bucket)",
"session_end": "session-end.md §L.b(c) (% after load + Headroom remaining)"
},
"honest_caveat": "v2 §5: large Tier-1 = HIGHER context-rot on the always-loaded part -- an accepted, deliberate trade-off (forgetting-work judged worse than rot), NOT 'rot disappears'. Small-context-window / light-workload projects may optimally pick a SMALLER Tier-1 -- the FLOOR is the ARCHITECTURE (hot-feed large + L2/L3 on-demand no-cap), not the numbers. 'No-cap' L2/L3 = no artificial tier-limit, still within the model context window."
},
"honest_caveat": "v2 §5: large Tier-1 = HIGHER context-rot on the always-loaded part -- an accepted, deliberate trade-off (forgetting-work judged worse than rot), NOT 'rot disappears'. Small-context-window / light-workload projects may optimally pick a SMALLER Tier-1 -- the FLOOR is the ARCHITECTURE (hot-feed large + L2/L3 on-demand no-cap), not the numbers. 'No-cap' L2/L3 = no artificial tier-limit, still within the model context window."
},
"stop_point_cheap_ms": 500,
"_stop_point_cheap_owner_S185": "YC-021/W-3 2026-08-10 anh: 'W1,3,4 -> OK' tren de-xuat 500ms cua lead => nguong diem-dung-RE = 500ms (goi-chot 4.3 owner-SO). Moi so da do (machine-block ~140ms, secrets-sweep ~64ms, tien-kiem ~194ms, probe ~281ms) < 500 => 4.3 cham PASS.",
"h24_title_freshness_sessions": 14,
"_h24_title_freshness_owner_S185": "YC-020(2) 2026-08-10 anh nguyen van: 'dong y 14 ngay. (nhung cung theo phien luon vi co ngay lam ngay ko)' => nguong 14 don-vi PHIEN (dem tick counter-history giua 2 moc, KHONG wall-clock). Reader = governance-detectors.ps1 H24-1.",
"h24_cadence": {
"_note": "Harness-24 (S121, 2026-07-15, wave adap-6-broadcast W2) lead-self-audit cadence. SINGLE-SOURCE per H24 §2(3): every cadence number is READ FROM HERE; docs/persona POINT TO THIS KEY and must NOT copy the digits. Consumer: scripts/governance-detectors.ps1 detector H24-2 carry-age (reads light_every as M). MISSING KEY => the consumer FAILS LOUD and measures nothing -- it must NEVER assume a default, because a hardcoded cadence would silently re-create the very drift single-source exists to prevent.",
"_owner_ratified": "owner-decisions-15-07-2026 Q2 (anh chot 6/15/3 cho SE) + hub H0-LEAD-AUDIT-DECISION-CAPTURE-2026-07-14.md:105 (6/15/3/3, 'doi = anh', 2026-07-14); ratified = anh mark cong reply 2026-07-16-ai_infra-to-se-reply-adap-dot-16-07 (e50a4bd0), ngay 2026-07-17. 6/15/3 = moc khoi-dau CO Y anh chon -- KHONG phai muon so song cua hub: hub-counter DA GO per 85bf89ca, khong con moc so song. Re-tune sau chu-ky-2 CUA SE (deep-audit lan 2, xem .session-counter.json last_audit); chua ai duoc ban cau 'da chung minh hieu qua' (delta hub tu run-2 khong bao gio co -- hub go counter truoc run-2).",
"light_every": 6,
"deep_every": 1,
"h24_cadence": {
"_note": "Harness-24 (S121, 2026-07-15, wave adap-6-broadcast W2) lead-self-audit cadence. SINGLE-SOURCE per H24 §2(3): every cadence number is READ FROM HERE; docs/persona POINT TO THIS KEY and must NOT copy the digits. Consumer: scripts/governance-detectors.ps1 detector H24-2 carry-age (reads light_every as M). MISSING KEY => the consumer FAILS LOUD and measures nothing -- it must NEVER assume a default, because a hardcoded cadence would silently re-create the very drift single-source exists to prevent.",
"_owner_ratified": "owner-decisions-15-07-2026 Q2 (anh chot 6/15/3 cho SE) + hub H0-LEAD-AUDIT-DECISION-CAPTURE-2026-07-14.md:105 (6/15/3/3, 'doi = anh', 2026-07-14); ratified = anh mark cong reply 2026-07-16-ai_infra-to-se-reply-adap-dot-16-07 (e50a4bd0), ngay 2026-07-17. 6/15/3 = moc khoi-dau CO Y anh chon -- KHONG phai muon so song cua hub: hub-counter DA GO per 85bf89ca, khong con moc so song. Re-tune sau chu-ky-2 CUA SE (deep-audit lan 2, xem .session-counter.json last_audit); chua ai duoc ban cau 'da chung minh hieu qua' (delta hub tu run-2 khong bao gio co -- hub go counter truoc run-2).",
"light_every": 6,
"deep_every": 1,
"_deep_every_owner_S185": "YC-019(5) 2026-08-10 anh nguyen van: 'OK keo audit luon gio cu end/start la cu chay' => deep_every 15->1: MOI bookend end/start deu chay deep (deep bao ham light). Doi VALUE khong doi SHAPE; cac doc tro key nay (B1) tu an theo.",
"jump_on_class_repeat": 3
},
"owner_request_verbatim_char_cap": {
"_note": "C4-01 (W4/S181). Tran ky tu cho cot 'loi nguyen van' cua docs/governance/so-yeu-cau-chu-du-an.md. Cat thi PHAI de dau ... va giu con-tro toi cho co ban day du. CAM tom tat thay vi cat: tom tat la DIEN GIAI, ma cot do ton tai chinh de KHONG dien giai (bay A1). Dien giai da co o rieng = cot thu 7 'doi hieu thanh gi'.",
"chars": 600
},
"lead_self_audit": {
"_note": "Harness-24 (S121, 2026-07-15, wave adap-6-broadcast W2) CLOSED enum of flag classes for the 2 monitor roles lead-stale-auditor + lead-gap-auditor. CLOSED = a monitor may NOT invent a class; an unclassifiable finding is reported verbatim + escalated to the owner to extend this list. Rationale (spec v2 M4): v1 required 'class in a CLOSED enum' but never listed the enum nor named the config key, so the enum lived only in one lane's head -- workers never see it, invent their own classes, and the statistics dilute. That is exactly what H24 §2(1) forbids. ORIGINAL SHAPE (S121): five view-* classes and five gap-* classes, mirroring the ten signals in H24 §2(1). S143 EXTENSION (2026-07-22, owner-approved): +1 class 'gap-incident-unrecorded' => now 5 view-* + 6 gap-*. Trigger that earned it: 3/3 subagents garbled (#53) in one session and the event left 0 trace on WAL/HANDOFF/STATUS/error-ledger while those surfaces were advertising '0-garble' (true, but about the PRIOR session); the running tally in .claude/auto-memory/feedback_agent_return_garble_recover.md had also been frozen at 'x20 through S118' for 8 session labels. lead-gap-auditor correctly REFUSED to invent the class and escalated verbatim per the CLOSED-enum rule above -- this entry is the owner extending the list, which is exactly the escape hatch that rule prescribes. Scope: an operational incident that happened and was verifiably not written to any durable ledger; NOT for a stale number (view-*) and NOT for a dropped carry (gap-carry-dropped).",
"_vocab_guard": "'view' / 'omission' chosen DELIBERATELY to avoid collisions: scripts/governance-detectors.ps1:15 already owns 'derived-staleness' (so no class may be named *-stale-role or vai-STALE), and the bare word 'GAP' is overloaded elsewhere (session-end.md 'build-gap vs floor-rot'; scripts/memory-selfimprove-audit.ps1 'CRITERIA+GAP'). A colliding name would make two different detectors answer to the same word.",
"flag_classes": [
"view-stale-count",
"view-stale-status",
"view-stale-header",
"view-stale-role-desc",
"view-residual-asym",
"gap-carry-dropped",
"gap-carry-aged",
"gap-owner-specifics",
"gap-decision-sunk",
"gap-underfill",
"gap-incident-unrecorded",
"view-claim-broader-than-sample"
],
"_sealed_P3B_S181": "NIEM PHONG @S181 2026-08-07 - chu du an chot cau P3 = phuong an B (theo hub A10: tap tin hieu DONG). Tu nay LOP LOI MOI KHONG duoc them vao day; no song o docs/governance/error-ledger.md. So luong luc niem phong = 12 (6 view + 6 gap); do lai bang do dai flag_classes - dai khac 12 nghia la tap da phinh sau niem phong, phai truy ai them va vi sao. DOC HIEU CUA LEAD = FORWARD-ONLY: khong truc xuat 12 class dang co (truc xuat se pha bat-bien counts = enum ma _class_added_S172 seed de giu, va pha nghiem thu W3 '12 class = 6 view + 6 gap'); chu du an muon hoi to thi noi - do la viec khac han. PHEP THU A10 DA CO RANG, fault-inject @S181 tren cay tam: class tu che => h24-signal-write.ps1 exit 2 (tu choi, in 'a monitor may NOT invent a class'); class hop le => exit 0. LO CON LAI, KHAI THANG: nguong jump_on_class_repeat KHONG co may nao doc (lane F do @S180 - slot 68 dong mot nua) => lop loi moi day sang error-ledger CUNG khong co rang JUMP, y het truoc khi doi. Do la lo RIENG; P3 khong va no - dung doc niem phong nay thanh 'da xong rang'.",
"_class_added_S172": "view-claim-broader-than-sample MO @S172 2026-08-05 theo owner (slot 68 'OK'), qua dung cua escalate: con-do lead-stale gap ca KHONG xep duoc -> TU CHOI ep-vua -> bao verbatim + de-nghi; ring2-audit soi CA 11 class va xac nhan 0 class chua noi. Tien-le cung cua: gap-incident-unrecorded @S143. VI SAO can o rieng: 3 nhom cu deu KHONG phu duoc - view-stale-* doi 'source da doi, view giu so cu' (o day 0 thu gi stale, cau SAI NGAY LUC SINH); view-residual-asym doi sua-mot-phia giua >=2 site (o day 3 file NHAT-QUAN, cung sai mot kieu); gap-* deu la CAI KHONG CO (o day thu sai CO MAT DAY DU, chi la suy-rong qua mau). Kieu hong thu tu = SUY-LUAN VUOT MAU: chu-ngu ket-luan rong hon tap da thuc-do. Phep thu van-hanh 1 cau: 'Chu-ngu cua ket-luan co rong hon tap da thuc-do khong?' - neu co VA mau khong duoc neu ten ngay canh, thi fire. Ca goc S172: lead tuyen 'role thuong co du KeHoachKyKet.Read+Update' dua tren 2 tai-khoan ma CA HAI mang vai cap rieng (0/2 user tran) => nhanh 'vai thuong KHAC van 403' (hinh dang goc gotcha #85) chua bi loai; claim song 5 site/3 file GOM CA SO BEN. Tan-suat du de dang mot o dem: feedback_claim_stronger_than_work + feedback_meta_count_selfcoverage_blindspot + ca nay. RANG BUOC MAY: seed class_repeat.counts khoa nay = 0 CUNG NHIP (da lam @S172) - lech mot nhip la vo bat-bien counts = enum ma ring2 §1 do 11/11 hai chieu."
},
"measured": {
"_note": "S107 2026-07-10 FRESH re-measure (scripts/measure-agent-memory.ps1) post +office-document 12th sub (roster 11->12). Supersedes S98 snapshot (deltas S99-S107 transcribed: cicd +#489 run-record, tooling S106 self-compact 19.7->16.9KB L1 + 30.3KB archive, harvest 18.1KB over self-target 17.1K [self-compact next session], inv-cb/reviewer archive growth). byte-governor snapshot (l1_hot = file-size-on-disk); cross-check token_governor for the orthogonal token-thread. WATCH: cicd l2_index 18774/20480 (~92% cap) -> when nears cap, gist-of-index or split, do NOT drop markers. S138 ADDENDUM (2026-07-17, closeout-S137 tra INFORM view-audit 'measured-block thieu 2 row H24'): +2 row H24 do TUOI (roster 12->14); cac row KHAC van la snapshot S107 va MOT SO DA TROI (do S138 vd: cicd l1 20180->22607, inv-cb 17229->23420, reviewer 20071->17506) -- KHONG hand-edit tung so le (rule dau file), full re-sync bang script @monthly drift-audit 2026-08-01. S141 ADDENDUM (2026-07-22, adap dot-9/10 lane W-A): +3 row trio-memory (harness-eval/refine/audit) do TUOI bang script SAU khi 3 seed MEMORY.md ton tai (roster tang tu 14 len 17) -- KHONG uoc-luong, KHONG hand-edit; cung tien-le S138 addendum. 3 row nay = SEED-STATE (vai chua chay lan nao: first-run cho restart Claude Code + consent anh @session-start §2.1.9 / session-end §L.b(k)) nen l1_hot ~1.5KB va l2_* = 0 la DUNG, khong phai under-fill. Cac row KHAC van la snapshot S107/S138 va MOT SO DA TROI tiep (do S141 vd: cicd 22607, inv-cb 26624, reviewer 24024, harvest 14899, impl-be 19449, impl-fe 15951, test-spec 22140, tooling 15884, lead-view 4920, lead-omission 6665) -- van CHO full re-sync bang script @drift-audit 2026-08-01, KHONG va le tung so. KHONG them cadence-key va KHONG them block harness_trio: nhip bo-ba song o nghi-thuc (session-start §2.1.9 + session-end §L.b(k)) + persona, KHONG o file config nay (tron voi h24_cadence = 2 dong-ho lech nhau).",
"cicd-monitor": { "l1_hot": 20180, "l2_verbatim": 209666, "l2_index": 18774, "l2_gist": 29737, "rollout": "done (S107 +Run#489 record + #69 two-mode amend; L1 20.2KB — curate candidate next closeout)" },
"investigator-codebase": { "l1_hot": 17229, "l2_verbatim": 125118, "l2_index": 12384, "l2_gist": 27297, "rollout": "done (gist 2026-06 distill-gen:2 -- double-distill guard target)" },
"reviewer": { "l1_hot": 20071, "l2_verbatim": 100078, "l2_index": 11442, "l2_gist": 19114, "rollout": "done (S98: +4 diary entries V1/V3/Fidelity-gate spawns)" },
"implementer-backend": { "l1_hot": 23955, "l2_verbatim": 59233, "l2_index": 10105, "l2_gist": 23079, "rollout": "done (WATCH: gần autoinject-cap nhất 23955/25600)" },
"frontend-designer": { "l1_hot": 21492, "l2_verbatim": 6624, "l2_index": 1531, "l2_gist": 3231, "rollout": "done (S96 first-overflow curate; H17 strike-1 CLEARED)" },
"test-specialist": { "l1_hot": 8844, "l2_verbatim": 18065, "l2_index": 0, "l2_gist": 5374, "rollout": "done (RESOLVED pre-S94: L1 27.7->8.8KB; archive activity-s51-s52 + gist + baseline-history reference-file [skip sleep: da distilled-form])" },
"harvest-curator": { "l1_hot": 18082, "l2_verbatim": 17072, "l2_index": 0, "l2_gist": 0, "rollout": "has-archive (S107: L1 over self-target 17.1K -> self-compact planned next session)" },
"tooling-auditor": { "l1_hot": 16923, "l2_verbatim": 30344, "l2_index": 0, "l2_gist": 0, "rollout": "has-archive (S106 self-compact 19.7->14.9KB moved-not-cut md5-verified; S107 @start/@end entries)" },
"implementer-frontend": { "l1_hot": 14252, "l2_verbatim": 14537, "l2_index": 0, "l2_gist": 11125, "rollout": "done (S97 hook-compaction -> 2026-H1.md; S98 sleep-compress -> 2026-H1.gist.md distill-gen:1, coverage 100%, no _INDEX yet [P2 event, not sleep-scope])" },
"investigator-api": { "l1_hot": 8510, "l2_verbatim": 0, "l2_index": 0, "l2_gist": 0, "rollout": "n/a (empty archive)" },
"database-agent": { "l1_hot": 7388, "l2_verbatim": 0, "l2_index": 0, "l2_gist": 0, "rollout": "n/a (no archive; +S97 on-behalf record S98)" },
"office-document": { "l1_hot": 3323, "l2_verbatim": 0, "l2_index": 0, "l2_gist": 0, "rollout": "n/a (S107 seed + first spawn-test entry — VERIFIED-RUNTIME same-session; no archive yet)" },
"score-counter": {
"l1_hot": 0,
"l2_verbatim": 0,
"l2_index": 0,
"l2_gist": 0,
"rollout": "SEED @S181 2026-08-07 cung luot de vai (W4b, P4). 🔴 SO 0 = CHUA DO, KHONG phai da-do-bang-0. Vai vua tao, chua chay lan nao nen chua co nhat ky. Seed NGAY theo dung no kem cua P4 (lane F: 'them 2 vai khong seed = 10 vai mu baseline') - co dong voi so 0 thi lan do that se thay DELTA; khong co dong thi vai bien mat khoi moi phep do ma khong ai biet. Do that bang scripts/measure-agent-memory.ps1 sau khi vai chay lan dau."
"jump_on_class_repeat": 3
},
"score-count-auditor": {
"l1_hot": 0,
"l2_verbatim": 0,
"l2_index": 0,
"l2_gist": 0,
"rollout": "SEED @S181 2026-08-07 - cung ly do va cung nhip voi score-counter (tang-3 cua luat cham diem). 🔴 SO 0 = CHUA DO."
"owner_request_verbatim_char_cap": {
"_note": "C4-01 (W4/S181). Tran ky tu cho cot 'loi nguyen van' cua docs/governance/so-yeu-cau-chu-du-an.md. Cat thi PHAI de dau ... va giu con-tro toi cho co ban day du. CAM tom tat thay vi cat: tom tat la DIEN GIAI, ma cot do ton tai chinh de KHONG dien giai (bay A1). Dien giai da co o rieng = cot thu 7 'doi hieu thanh gi'.",
"chars": 600
},
"lead-stale-auditor": { "l1_hot": 3332, "l2_verbatim": 0, "l2_index": 0, "l2_gist": 0, "rollout": "n/a (S138 add — closeout-S137 tra INFORM view-audit; diary seed S132 retro-harvest, light-audit #1 S124 + #2 S137; do tuoi measure-agent-memory.ps1; no archive)" },
"lead-gap-auditor": { "l1_hot": 3691, "l2_verbatim": 0, "l2_index": 0, "l2_gist": 0, "rollout": "n/a (S138 add — closeout-S137 tra INFORM view-audit; diary seed S132 retro-harvest, light-audit #1 S124 + #2 S137; do tuoi measure-agent-memory.ps1; no archive)" },
"harness-eval": { "l1_hot": 1547, "l2_verbatim": 0, "l2_index": 0, "l2_gist": 0, "rollout": "S141 seed - first-run pending restart+consent; re-measure @drift-audit 2026-08-01 (do TUOI measure-agent-memory.ps1 sau khi seed MEMORY.md ton tai; no archive)" },
"harness-refine": { "l1_hot": 1616, "l2_verbatim": 0, "l2_index": 0, "l2_gist": 0, "rollout": "S141 seed - first-run pending restart+consent; re-measure @drift-audit 2026-08-01 (do TUOI measure-agent-memory.ps1 sau khi seed MEMORY.md ton tai; no archive)" },
"harness-audit": { "l1_hot": 1513, "l2_verbatim": 0, "l2_index": 0, "l2_gist": 0, "rollout": "S141 seed - first-run pending restart+consent; re-measure @drift-audit 2026-08-01 (do TUOI measure-agent-memory.ps1 sau khi seed MEMORY.md ton tai; no archive)" }
}
}
"lead_self_audit": {
"_note": "Harness-24 (S121, 2026-07-15, wave adap-6-broadcast W2) CLOSED enum of flag classes for the 2 monitor roles lead-stale-auditor + lead-gap-auditor. CLOSED = a monitor may NOT invent a class; an unclassifiable finding is reported verbatim + escalated to the owner to extend this list. Rationale (spec v2 M4): v1 required 'class in a CLOSED enum' but never listed the enum nor named the config key, so the enum lived only in one lane's head -- workers never see it, invent their own classes, and the statistics dilute. That is exactly what H24 §2(1) forbids. ORIGINAL SHAPE (S121): five view-* classes and five gap-* classes, mirroring the ten signals in H24 §2(1). S143 EXTENSION (2026-07-22, owner-approved): +1 class 'gap-incident-unrecorded' => now 5 view-* + 6 gap-*. Trigger that earned it: 3/3 subagents garbled (#53) in one session and the event left 0 trace on WAL/HANDOFF/STATUS/error-ledger while those surfaces were advertising '0-garble' (true, but about the PRIOR session); the running tally in .claude/auto-memory/feedback_agent_return_garble_recover.md had also been frozen at 'x20 through S118' for 8 session labels. lead-gap-auditor correctly REFUSED to invent the class and escalated verbatim per the CLOSED-enum rule above -- this entry is the owner extending the list, which is exactly the escape hatch that rule prescribes. Scope: an operational incident that happened and was verifiably not written to any durable ledger; NOT for a stale number (view-*) and NOT for a dropped carry (gap-carry-dropped).",
"_vocab_guard": "'view' / 'omission' chosen DELIBERATELY to avoid collisions: scripts/governance-detectors.ps1:15 already owns 'derived-staleness' (so no class may be named *-stale-role or vai-STALE), and the bare word 'GAP' is overloaded elsewhere (session-end.md 'build-gap vs floor-rot'; scripts/memory-selfimprove-audit.ps1 'CRITERIA+GAP'). A colliding name would make two different detectors answer to the same word.",
"flag_classes": [
"view-stale-count",
"view-stale-status",
"view-stale-header",
"view-stale-role-desc",
"view-residual-asym",
"gap-carry-dropped",
"gap-carry-aged",
"gap-owner-specifics",
"gap-decision-sunk",
"gap-underfill",
"gap-incident-unrecorded",
"view-claim-broader-than-sample"
],
"_sealed_P3B_S181": "NIEM PHONG @S181 2026-08-07 - chu du an chot cau P3 = phuong an B (theo hub A10: tap tin hieu DONG). Tu nay LOP LOI MOI KHONG duoc them vao day; no song o docs/governance/error-ledger.md. So luong luc niem phong = 12 (6 view + 6 gap); do lai bang do dai flag_classes - dai khac 12 nghia la tap da phinh sau niem phong, phai truy ai them va vi sao. DOC HIEU CUA LEAD = FORWARD-ONLY: khong truc xuat 12 class dang co (truc xuat se pha bat-bien counts = enum ma _class_added_S172 seed de giu, va pha nghiem thu W3 '12 class = 6 view + 6 gap'); chu du an muon hoi to thi noi - do la viec khac han. PHEP THU A10 DA CO RANG, fault-inject @S181 tren cay tam: class tu che => h24-signal-write.ps1 exit 2 (tu choi, in 'a monitor may NOT invent a class'); class hop le => exit 0. LO CON LAI, KHAI THANG: nguong jump_on_class_repeat KHONG co may nao doc (lane F do @S180 - slot 68 dong mot nua) => lop loi moi day sang error-ledger CUNG khong co rang JUMP, y het truoc khi doi. Do la lo RIENG; P3 khong va no - dung doc niem phong nay thanh 'da xong rang'.",
"_class_added_S172": "view-claim-broader-than-sample MO @S172 2026-08-05 theo owner (slot 68 'OK'), qua dung cua escalate: con-do lead-stale gap ca KHONG xep duoc -> TU CHOI ep-vua -> bao verbatim + de-nghi; ring2-audit soi CA 11 class va xac nhan 0 class chua noi. Tien-le cung cua: gap-incident-unrecorded @S143. VI SAO can o rieng: 3 nhom cu deu KHONG phu duoc - view-stale-* doi 'source da doi, view giu so cu' (o day 0 thu gi stale, cau SAI NGAY LUC SINH); view-residual-asym doi sua-mot-phia giua >=2 site (o day 3 file NHAT-QUAN, cung sai mot kieu); gap-* deu la CAI KHONG CO (o day thu sai CO MAT DAY DU, chi la suy-rong qua mau). Kieu hong thu tu = SUY-LUAN VUOT MAU: chu-ngu ket-luan rong hon tap da thuc-do. Phep thu van-hanh 1 cau: 'Chu-ngu cua ket-luan co rong hon tap da thuc-do khong?' - neu co VA mau khong duoc neu ten ngay canh, thi fire. Ca goc S172: lead tuyen 'role thuong co du KeHoachKyKet.Read+Update' dua tren 2 tai-khoan ma CA HAI mang vai cap rieng (0/2 user tran) => nhanh 'vai thuong KHAC van 403' (hinh dang goc gotcha #85) chua bi loai; claim song 5 site/3 file GOM CA SO BEN. Tan-suat du de dang mot o dem: feedback_claim_stronger_than_work + feedback_meta_count_selfcoverage_blindspot + ca nay. RANG BUOC MAY: seed class_repeat.counts khoa nay = 0 CUNG NHIP (da lam @S172) - lech mot nhip la vo bat-bien counts = enum ma ring2 §1 do 11/11 hai chieu."
},
"measured": {
"_note": "S188 2026-08-10 FRESH re-sync bang MAY (measure-agent-memory.ps1 -> transcribe, KHONG hand-edit) — tra no E3: block chet ky 5, 18/19 lech dinh 13,14x. Lineage: S107 2026-07-10 FRESH re-measure (scripts/measure-agent-memory.ps1) post +office-document 12th sub (roster 11->12). Supersedes S98 snapshot (deltas S99-S107 transcribed: cicd +#489 run-record, tooling S106 self-compact 19.7->16.9KB L1 + 30.3KB archive, harvest 18.1KB over self-target 17.1K [self-compact next session], inv-cb/reviewer archive growth",
"cicd-monitor": {
"l1_hot": 24322,
"l2_verbatim": 264257,
"l2_index": 23588,
"l2_gist": 122471,
"rollout": "done (S107 +Run#489 record + #69 two-mode amend; L1 20.2KB — curate candidate next closeout)"
},
"investigator-codebase": {
"l1_hot": 21996,
"l2_verbatim": 171476,
"l2_index": 12448,
"l2_gist": 107741,
"rollout": "done (gist 2026-06 distill-gen:2 -- double-distill guard target)"
},
"reviewer": {
"l1_hot": 24473,
"l2_verbatim": 253991,
"l2_index": 13941,
"l2_gist": 69925,
"rollout": "done (S98: +4 diary entries V1/V3/Fidelity-gate spawns)"
},
"implementer-backend": {
"l1_hot": 19930,
"l2_verbatim": 94752,
"l2_index": 10487,
"l2_gist": 84345,
"rollout": "done (WATCH: gần autoinject-cap nhất 23955/25600)"
},
"frontend-designer": {
"l1_hot": 19869,
"l2_verbatim": 19050,
"l2_index": 2435,
"l2_gist": 3231,
"rollout": "done (S96 first-overflow curate; H17 strike-1 CLEARED)"
},
"test-specialist": {
"l1_hot": 19331,
"l2_verbatim": 37615,
"l2_index": 6170,
"l2_gist": 33811,
"rollout": "done (RESOLVED pre-S94: L1 27.7->8.8KB; archive activity-s51-s52 + gist + baseline-history reference-file [skip sleep: da distilled-form])"
},
"harvest-curator": {
"l1_hot": 21308,
"l2_verbatim": 87605,
"l2_index": 8325,
"l2_gist": 20317,
"rollout": "has-archive (S107: L1 over self-target 17.1K -> self-compact planned next session)"
},
"tooling-auditor": {
"l1_hot": 16912,
"l2_verbatim": 89904,
"l2_index": 3672,
"l2_gist": 18760,
"rollout": "has-archive (S106 self-compact 19.7->14.9KB moved-not-cut md5-verified; S107 @start/@end entries)"
},
"implementer-frontend": {
"l1_hot": 17983,
"l2_verbatim": 47796,
"l2_index": 5844,
"l2_gist": 44764,
"rollout": "done (S97 hook-compaction -> 2026-H1.md; S98 sleep-compress -> 2026-H1.gist.md distill-gen:1, coverage 100%, no _INDEX yet [P2 event, not sleep-scope])"
},
"investigator-api": {
"l1_hot": 9021,
"l2_verbatim": 0,
"l2_index": 0,
"l2_gist": 0,
"rollout": "n/a (empty archive)"
},
"database-agent": {
"l1_hot": 9038,
"l2_verbatim": 0,
"l2_index": 0,
"l2_gist": 0,
"rollout": "n/a (no archive; +S97 on-behalf record S98)"
},
"office-document": {
"l1_hot": 3323,
"l2_verbatim": 0,
"l2_index": 0,
"l2_gist": 0,
"rollout": "n/a (S107 seed + first spawn-test entry — VERIFIED-RUNTIME same-session; no archive yet)"
},
"score-counter": {
"l1_hot": 2366,
"l2_verbatim": 0,
"l2_index": 0,
"l2_gist": 0,
"rollout": "SEED @S181 2026-08-07 cung luot de vai (W4b, P4). 🔴 SO 0 = CHUA DO, KHONG phai da-do-bang-0. Vai vua tao, chua chay lan nao nen chua co nhat ky. Seed NGAY theo dung no kem cua P4 (lane F: 'them 2 vai khong seed = 10 vai mu baseline') - co dong voi so 0 thi lan do that se thay DELTA; khong co dong thi vai bien mat khoi moi phep do ma khong ai biet. Do that bang scripts/measure-agent-memory.ps1 sau khi vai chay lan dau."
},
"score-count-auditor": {
"l1_hot": 2330,
"l2_verbatim": 0,
"l2_index": 0,
"l2_gist": 0,
"rollout": "SEED @S181 2026-08-07 - cung ly do va cung nhip voi score-counter (tang-3 cua luat cham diem). 🔴 SO 0 = CHUA DO."
},
"lead-stale-auditor": {
"l1_hot": 24975,
"l2_verbatim": 8581,
"l2_index": 0,
"l2_gist": 0,
"rollout": "n/a (S138 add — closeout-S137 tra INFORM view-audit; diary seed S132 retro-harvest, light-audit #1 S124 + #2 S137; do tuoi measure-agent-memory.ps1; no archive)"
},
"lead-gap-auditor": {
"l1_hot": 27639,
"l2_verbatim": 22645,
"l2_index": 1234,
"l2_gist": 7112,
"rollout": "n/a (S138 add — closeout-S137 tra INFORM view-audit; diary seed S132 retro-harvest, light-audit #1 S124 + #2 S137; do tuoi measure-agent-memory.ps1; no archive)"
},
"harness-eval": {
"l1_hot": 18736,
"l2_verbatim": 0,
"l2_index": 0,
"l2_gist": 0,
"rollout": "S141 seed - first-run pending restart+consent; re-measure @drift-audit 2026-08-01 (do TUOI measure-agent-memory.ps1 sau khi seed MEMORY.md ton tai; no archive)"
},
"harness-refine": {
"l1_hot": 18046,
"l2_verbatim": 0,
"l2_index": 0,
"l2_gist": 0,
"rollout": "S141 seed - first-run pending restart+consent; re-measure @drift-audit 2026-08-01 (do TUOI measure-agent-memory.ps1 sau khi seed MEMORY.md ton tai; no archive)"
},
"harness-audit": {
"l1_hot": 19877,
"l2_verbatim": 0,
"l2_index": 0,
"l2_gist": 0,
"rollout": "S141 seed - first-run pending restart+consent; re-measure @drift-audit 2026-08-01 (do TUOI measure-agent-memory.ps1 sau khi seed MEMORY.md ton tai; no archive)"
},
"back-end-reviewer-style": {
"l1_hot": 6019,
"l2_verbatim": 0,
"l2_index": 0,
"l2_gist": 0,
"rollout": "re-sync S188 (first row)"
},
"ctx-audit": {
"l1_hot": 20460,
"l2_verbatim": 11521,
"l2_index": 0,
"l2_gist": 0,
"rollout": "re-sync S188 (first row)"
},
"ctx-curator": {
"l1_hot": 13340,
"l2_verbatim": 0,
"l2_index": 0,
"l2_gist": 0,
"rollout": "re-sync S188 (first row)"
},
"ctx-verifier": {
"l1_hot": 21819,
"l2_verbatim": 0,
"l2_index": 0,
"l2_gist": 0,
"rollout": "re-sync S188 (first row)"
},
"database-reviewer-style": {
"l1_hot": 4376,
"l2_verbatim": 0,
"l2_index": 0,
"l2_gist": 0,
"rollout": "re-sync S188 (first row)"
},
"front-end-reviewer-style": {
"l1_hot": 3857,
"l2_verbatim": 0,
"l2_index": 0,
"l2_gist": 0,
"rollout": "re-sync S188 (first row)"
},
"ring1-audit": {
"l1_hot": 27394,
"l2_verbatim": 0,
"l2_index": 0,
"l2_gist": 0,
"rollout": "re-sync S188 (first row)"
},
"ring2-audit": {
"l1_hot": 26652,
"l2_verbatim": 8771,
"l2_index": 0,
"l2_gist": 0,
"rollout": "re-sync S188 (first row)"
},
"ring4-audit": {
"l1_hot": 3349,
"l2_verbatim": 0,
"l2_index": 0,
"l2_gist": 0,
"rollout": "re-sync S188 (first row)"
},
"ring5-audit": {
"l1_hot": 2474,
"l2_verbatim": 0,
"l2_index": 0,
"l2_gist": 0,
"rollout": "re-sync S188 (first row)"
}
}
}

View File

@ -2,13 +2,13 @@
- **S187 (08-10) STAGE-C plan-review YC-023 Duyệt-HĐ (artifact `runs/2026-08-10-S187-duyet-hd-tu-khkk/sub-plan-review-fable.md`) — verdict 12/12 claim ĐỨNG · 3 phát hiện MỚI · 11 wave · 12→9 câu:** 🔴 **Bài đắt nhất — review PLAN phải check KHỚP-KHUÔN-CHÉO:** FE invest chọn mirror `KhkkWorkflowPanel` (UI) nhưng đề xuất DTO khuôn **PE precompute** — 2 shape NGƯỢC NHAU (panel KHKK tự-suy cây-thô, header `:19-25` TỰ KHAI "KHÁC PE Ở CHỖ ĐẮT NHẤT"); cả 3 bản trước (2 invest + style-review 7-flag) đều không bắt ⇒ khi ai nói "mirror X + data theo Y", MỞ HEADER X xem nó ĂN shape gì. **0-hit DTO-gap tin được nhờ control-dương cùng lệnh trên module anh em** (PE có hit :158/:186). **Tách wave theo MỐI-CHẶN không theo tầng:** W3-seed (chặn roster-owner) ⟂ W4-guard (chặn UX-dialog) — gộp = wave nghẽn kép; wave "bất biến mọi nhánh câu-owner" (gỡ-bom + DTO) lôi lên chạy NGAY. **Ẩn menu có thể 2 TẦNG** (set `ADMIN_HIDDEN_KEYS` + prefix-rule `startsWith('Ct_')` `:248`) — grep 1 tầng là sót nửa việc gỡ. Thước-hỏng: `grep -E '^\d{14}'` MSYS trả 0 im lặng (GNU grep không \d) ⇒ dùng `[0-9]` hoặc Glob đếm. Tag `[s187, plan-review, khop-khuon-cheo, tach-wave-theo-moi-chan, an-menu-2-tang]`
- **[→ `archive/2026-08.md` §@S180-N2-N3-5lane — verbatim 5 entry, probe 5/5 + control-âm 0] S180 (08-07) N2 + N3 lane C/D/E/F (digest gộp):** tách DỮ-KIỆN ⟂ SUY-LUẬN trước khi phán (N2: 0/45 claim đổ, 5 MAJOR đều ở SUY; bắt 'chỉ 1 xung đột' SAI — có xung-đột-thứ-2 nằm ngay trong chính N1) · dựng-phương-án-KHÔNG-chọn khi việc chạm quyền owner + ô CHƯA-ĐO ghi KÈM LỆNH, 'KHÔNG ĐO ĐƯỢC' là kết-luận hợp lệ (C) · BÁC claim xếp-hạng không mẫu-số + máy mù 17/17 lane vẫn in '0 mismatch' = in-sạch-trên-vùng-chưa-đọc + đính-chính 4 phía gồm chính mình (D) · đóng-khoản phải hỏi 'máy quét ĐÂU vs khoản áp ĐÂU' + khai quá-khứ bằng thì hiện-tại + va-chạm tệp-tạm lane song song ⇒ grep chuỗi đặc trưng trước khi nối (E) · `fed-but-unread` = ghost-wire class-3 nguy hơn defined-but-unread + thang máy/tay 2-nấc là thang HỎNG (hỏi 'không-hit có phụ thuộc người nhớ chạy?') + vá-doc-bình-thường làm điểm-mù-máy TO RA im lặng ⇒ neo detector cấu-trúc-ổn-định + `ngược-#53` chặn bằng THỨ-TỰ-tool-call không bằng lời nhắc (F).
- **[→ `archive/2026-08.md` §@S180-N2-N3-5lane — verbatim 5 entry, probe 5/5 + control-âm 0] S180 (08-07) N2 + N3 lane C/D/E/F (digest gộp):** (digest nén @S188 E2 — verbatim + digest cũ đủ ở archive, đọc on-demand).
- **S182 (08-08) lens HOÀN-CHỈNH-VẬN-HÀNH + tổng hợp WAVE-PLAN FINAL `[LEAD SEED ON-BEHALF — nguồn `runs/2026-08-08-S182-khkk-awf-mirror-ncc/sub-review-2-fable.md` 32.326 B; entry S182 sẵn có chỉ khai đĩa `sub-review-1-fable` + `sub-reviewer-precommit`]`:** review **không dừng ở diff** mà dựng trọn đường ship: W4 test-gate (số canonical đổi ⇒ update **DUY NHẤT** `docs/STATUS.md` row test, B1) · W5 **commit MỘT phát** BE+FE+tests · **cicd 4-chân** với **control-âm bắt buộc** (bundle cũ 0-hit; *"eoffice: hash GIỮ nếu bỏ W2e / ĐỔI nếu làm — **đo, không suy**"*) · acceptance PROD **đọc-only** (CẤM bấm "Tạo phiên bản mới" trên prod). 🔴 **Rollback không đối xứng — phải khai:** 0-mig nên revert sạch phần MÁY, nhưng **revert W1a = bom per-type TÁI VŨ TRANG** ⇒ sau revert CẤM "Tạo phiên bản mới" mọi panel type-10. Data ở lại là **hợp lệ + khai rõ** (changelog W1c = audit-history · v02+ = ratchet vô hại, pin by-Id). Accepted-risk ghi thẳng: race 2-admin-cùng-Code → 500 thô (UNIQUE đỡ data, **không silent-dup**). Tag `[s182, review-2, review-den-duong-ship, control-am-bat-buoc, rollback-khong-doi-xung, accepted-risk-khai-thang]`
- **S185 (08-09) review CHECKLIST 21-item (YC-017 email-adap, artifact `runs/2026-08-09-S185-email-adap-pipeline/sub-review-checklist-fable.md`) — `PASS_WITH_FIXES` 9MAJ/4m:** review CHECKLIST ≠ review code — đòn đắt nhất = **đối-chiếu TỪNG DÒNG bảng-nợ §2.1 → checklist §3**: ≥5 dòng BIẾN MẤT không disposition (1 dòng "CHỜ-ANH" rơi im lặng). **File-đích tự khai guard thắng sổ-lead**: `tien-kiem-cua.ps1:4-5` "phải qua W3b trước, đang chờ owner (P1)" ⟂ HANDOFF:7 NEXT-em "tự chạy" — xung đột 2 nguồn uỷ-quyền phải hoá giải TRONG spec, không được để Opus tự chọn. **Invest chép số cũ từ report thay vì đo tươi** → ring2 thật 30.781B ĐÃ VỠ cap (không phải 96,8%) — stale chiều NGƯỢC làm item KHẨN trông như thường. **Harvest nợ bằng grep debt-marker hụt nợ không-marker** ("PENDING"·"không máy nào canh") — 2/2 report mở thêm đều dính. **LT3 bậc-2 (đảo-ngược-được?) = thước routing rẻ** → demote 1 W khỏi CHỜ-ANH. **Carry đa-vế gỡ phải đóng TỪNG VẾ** (evidence lẫn trio khác trio). Thước-hỏng của TÔI: `cd` AI_INFRA rồi chạy `git ls-files` → đo nhầm repo (cwd-trap, warning path lộ) — compound-cd rồi git = tự kiểm repo-root trước khi tin 0-hit.
- **[→ `archive/2026-08.md` §@S182 — verbatim 2 lượt, probe 7/7 + control-âm 0] S182 (08-08) YC-013 KHKK 8-panel — lượt SPEC `2C/5M`, lượt DIFF pre-commit `0C/3M`+6m:** 🟢 **3/3 finding 🔴 lượt-1 được đóng ĐÚNG BẢN CHẤT** (assembly-ranh → file `public static class` riêng · `IgnoreQueryFilters` **2 CHIỀU NGƯỢC NHAU trong cùng 1 diff**: DELETE bỏ filter vì FK còn thật ⟂ changelog GIỮ filter vì ghi vết phiếu-đã-xoá là rác · 8 module pin verified bằng grep Domain, loại +1 hit FK nội bộ) — dữ liệu hiếm, ghi để đừng phá. 🔴 **tooltip đặt trên `<input disabled>` ⇒ Chromium KHÔNG hiện** (label bao ngoài không mang `title`) — quyết-định-owner nằm trong tooltip mà tooltip không có cửa hiện = **máy dựng không ai gọi**; ô "hành-vi-LUÔN-BẬT" câm ⇒ đọc thành NGƯỢC NGHĨA. 🔴 **3 thành phần bất đồng HOA/thường** (regex CultureInvariant **case-SENSITIVE**`Code ==` theo collation SQL Server **CI** ⟂ FE `.toUpperCase()`) và **test MÙ THEO CẤU TRÚC vì SQLite = BINARY case-sensitive ⇒ tầng DB trong test có ngữ nghĩa NGƯỢC prod** — không assertion nào bịt được. 🔴 **guard mới ở write-path CHÍNH (Create) 0 test** — lỗ của SPEC, implementer đúng spec, **KHÔNG hạ thước theo spec**. **m:** assert `Contain("N5")∧Contain("N3")` **mù THỨ TỰ toán hạng** (3 call-site 2 tham số kề — phải đối chiếu TAY) · **BOM `ef bb bf`+CRLF lẫn vào commit code**`git add` từng file. **FLAG-A đo được:** `npx tsc --noEmit` trần biên dịch **0 file** (`files: []`+references) = xanh THEO CẤU TRÚC; `--listFiles|wc -l` 0 ⟂ 225/214 ⇒ **acceptance "lệnh X xanh" phải kèm phép chứng thước KHÔNG RỖNG**.
- **[→ `archive/2026-08.md` §@S182 — verbatim 2 lượt, probe 7/7 + control-âm 0] S182 (08-08) YC-013 KHKK 8-panel — lượt SPEC `2C/5M`, lượt DIFF pre-co:** (digest nén @S188 E2 — verbatim + digest cũ đủ ở archive, đọc on-demand).
- **[→ `archive/2026-08.md` §@S180 — verbatim, probe 10/10 + control-âm 0] S180 (08-07) LANE A/6 GĐ-0+GĐ-1 (đĩa `runs/…-S180-adap-upgrade-pack-phased/sub-n3-lane-a-gd01.md` 57 KB):** 🔴 **"0 hit" ĐÚNG THEO LUẬT vẫn là LỖ THẬT** — `_index` thiếu **24/69** thư (lead giao "4"); `to=se` **23/23 sạch**`to=all-fit` 22 có/20 thiếu; luật `:7` trỏ `COMMS-LEDGER``find "*COMMS*"`=**0 trong SE** (control `*ledger*`=4) ⇒ **sổ mà luật trỏ tới KHÔNG TỒN TẠI**; S153 phán dương-giả = đúng cho câu-hỏi CŨ. ⇒ gặp 0-hit phải hỏi thêm **"sổ đó có tồn tại không"** · **phân-họ regex 160/159, lệch 1 vì `S57bis`** ⇒ luôn cộng lại đối-chiếu tổng · **`CLAUDE.md` quy-ước nhật-ký khớp ≤64/159 đĩa** · **"single source" tự-xưng ≠ chuẩn** (bảng-dịch; 3 phép thử tiên-đoán/phủ-sóng/hướng) · **số-trong-chú-thích trôi** (`hmw.js` "11 class" ⟂ đĩa **12**).
@ -22,7 +22,7 @@
- **[→ `archive/2026-08.md` §@S170 — verbatim] S170 GATE Fidelity `/sleep-recovery-memory-l2` — PASS-WITH-FIXES:** **tên-cờ-bịa sống 4 hiện-vật** (0-hit cần dụng-cụ THỨ HAI `git log --all -S` mới nâng nghi→chốt) · **nhãn phủ TÊN mà không phủ CON-SỐ** ⇒ 'giữ 4 lần, bỏ tên cờ' = giữ khẳng-định + vứt CHỨNG-NHÂN (Goodhart) · **census tự-xưng đủ** ('4 LỖ') thiếu 4 lỗ · `pointer-style: substring` phải CHẠY THỬ (1/10 chết vì hoa-thường) · **lưới token in ĐẦU-DÒNG không in lân-cận** ⇒ mega-line gán FAIL cho Run PASS.
- **[→ archive/2026-07.md §@S166-curate + §@S167-K7-curate-2 — verbatim; 2 nhãn `S161-W1`/`S152-D2` 0-hit nên GIỮ tên ở đây] S167-K6 · S164/S165-K3 · S164-K1 · S162 · S161-W1/W2 · S159-đợt5 · S155 · S145 · S143 · S139 · S134b · S133 · S146/S147/S152-D2 (digest gộp):** **cây menu PROD SỐNG là thước, seed chỉ là bản vẽ** · **typo-noop** (key ẩn sai chính tả = `Set.has` false, tsc vẫn xanh) ⇒ assert TỪNG key tồn tại trong cây prod · **CẤM số-đếm trong comment** · tham-số-chết-vì-thiếu-tầng-UI (đo TẦNG-CUỐI ai GỬI) · flake ⇒ 'N/0 tươi' phải khai SỐ LƯỢT · **ghost-policy** (grep policy, đừng suy từ 'key đã vào All') · **#82 ngược chiều** (FE OR nhiều key LỎNG HƠN policy khớp-đúng-1-key ⇒ tự chuốc 403) · **hợp-đồng FE↔BE VỠ 6 điểm mà tsc+build+574-test XANH** ⇒ so ROUTE+FIELD trên ĐĨA · cookie-cutter soi CẢ phần bản gốc đã CHẶN · `tsc`+`noUnusedLocals` > grep cho claim 'đã cắt' · comment 'bên kia lo' = ĐI ĐỌC BÊN KIA · grep bằng TOKEN-SONG-SINH · đổi-chiều-assert ≠ nới-assert · bằng-chứng-tự-huỷ-sau-squash · 'mọi nhánh set X' phải grep assignment-qua-BIẾN (#81) · `ExecuteDelete` ngoài transaction = mất dữ liệu · 3 THƯỚC-HỎNG (md5 CRLF · `grep -c` citation-trap · `grep -iF` MSYS 0-hit im lặng).
- **[→ archive/2026-07.md §@S166-curate + §@S167-K7-curate-2 — verbatim; 2 nhãn `S161-W1`/`S152-D2` 0-hit nên GIỮ tên ở đây] S167-K6 · S164/S165-K3 · S164-K1 · S162 · S161-W1/W2 · S159-đợt5 · S15:** (digest nén @S188 E2 — verbatim + digest cũ đủ ở archive, đọc on-demand).
> **Persistent diary cross-session.** Auto-injected first ~200 lines at spawn (L1 HOT).
> Update BEFORE every stop. Tiered Memory v1: L1 HOT cap ~17KB (hook 24.4KB read-limit) · L2 `archive/` on-demand · L3 RAG `search_memory` just-in-time. Keep entry ≤ 1.5K chars (gotcha #53).

View File

@ -145,3 +145,13 @@ Chấm SPEC = đo lại claim của spec trên code. Đa số HELD, nhưng:
- **S180 (08-07) N3 LANE-F máy⟂tay · vượt-khung · rủi-ro `[LEAD SEED ON-BEHALF — nguồn `sub-n3-lane-f-maytay.md` 52.923 B — §10 của file này TỰ KHAI "nội dung lẽ ra vào diary"]`:** 🔴 **`fed-but-unread` — sub-class ghost-wire THỨ 3, MỚI:** sổ được nuôi bằng công thật (~40 tệp run tính tally) nhưng **vế so-sánh ngưỡng không tồn tại****nguy hơn `defined-but-unread`** vì khối lượng công đổ vào tạo cảm giác cơ chế đang sống. **Thang máy/tay 2 nấc là thang HỎNG:** SE có **1 máy fire thật · 17 máy-qua-nghi-thức · 3 mồ côi** — điền "máy" cho cả 17 là đúng chữ sai nghĩa; câu hỏi chuẩn: *"kết quả không-hit có phụ thuộc người nhớ chạy không?"*. **Vá doc bình thường làm điểm mù của máy TO RA, im lặng** (`**NEXT em``### NEXT em``marks[0]` trôi :90→:172 ⇒ 12→25 slug bị nuốt) ⇒ neo detector vào **cấu trúc ổn định** + phản-chứng chạy lại mỗi lần bề mặt bị vá. **Đóng khoản bằng bằng-chứng ĐÚNG nhưng ở TẦNG THẤP HƠN mục tiêu** (slot 68). **Whitelist frontmatter = tự lừa:** 20/26 vai khai không Write/Edit, runtime vẫn cấp — lượt này tự chứng bằng chính `Write` của mình; backstop thật là lead soát `git status`, **và đó là TAY**. **`ngược-#53` là lỗi LỆNH không phải lỗi trí nhớ** ⇒ chặn bằng **thứ tự tool-call** (`Write` khung = tool-call #1), không chặn được bằng lời nhắc. 🟢 **CỐ Ý không tạo `<run-folder>/.claude/agent-memory/reviewer/MEMORY.md`** dù harness trỏ vào đó — vì sẽ đẻ đúng stray-mis-land class-S54. Tag `[s180, lane-f, fed-but-unread, thang-2-nac-la-thang-hong, va-doc-lam-diem-mu-to-ra, whitelist-tu-lua, thu-tu-tool-call]`
<!-- digest-L1 moved @S188 (E2) 2026-08-10 — 3 bullet digest nen thanh pointer trong L1; verbatim goc DA o archive tu truoc, khoi nay giu them LOP DIGEST -->
- **[→ archive/2026-07.md §@S166-curate + §@S167-K7-curate-2 — verbatim; 2 nhãn `S161-W1`/`S152-D2` 0-hit nên GIỮ tên ở đây] S167-K6 · S164/S165-K3 · S164-K1 · S162 · S161-W1/W2 · S159-đợt5 · S155 · S145 · S143 · S139 · S134b · S133 · S146/S147/S152-D2 (digest gộp):** **cây menu PROD SỐNG là thước, seed chỉ là bản vẽ** · **typo-noop** (key ẩn sai chính tả = `Set.has` false, tsc vẫn xanh) ⇒ assert TỪNG key tồn tại trong cây prod · **CẤM số-đếm trong comment** · tham-số-chết-vì-thiếu-tầng-UI (đo TẦNG-CUỐI ai GỬI) · flake ⇒ 'N/0 tươi' phải khai SỐ LƯỢT · **ghost-policy** (grep policy, đừng suy từ 'key đã vào All') · **#82 ngược chiều** (FE OR nhiều key LỎNG HƠN policy khớp-đúng-1-key ⇒ tự chuốc 403) · **hợp-đồng FE↔BE VỠ 6 điểm mà tsc+build+574-test XANH** ⇒ so ROUTE+FIELD trên ĐĨA · cookie-cutter soi CẢ phần bản gốc đã CHẶN · `tsc`+`noUnusedLocals` > grep cho claim 'đã cắt' · comment 'bên kia lo' = ĐI ĐỌC BÊN KIA · grep bằng TOKEN-SONG-SINH · đổi-chiều-assert ≠ nới-assert · bằng-chứng-tự-huỷ-sau-squash · 'mọi nhánh set X' phải grep assignment-qua-BIẾN (#81) · `ExecuteDelete` ngoài transaction = mất dữ liệu · 3 THƯỚC-HỎNG (md5 CRLF · `grep -c` citation-trap · `grep -iF` MSYS 0-hit im lặng).
- **[→ `archive/2026-08.md` §@S182 — verbatim 2 lượt, probe 7/7 + control-âm 0] S182 (08-08) YC-013 KHKK 8-panel — lượt SPEC `2C/5M`, lượt DIFF pre-commit `0C/3M`+6m:** 🟢 **3/3 finding 🔴 lượt-1 được đóng ĐÚNG BẢN CHẤT** (assembly-ranh → file `public static class` riêng · `IgnoreQueryFilters` **2 CHIỀU NGƯỢC NHAU trong cùng 1 diff**: DELETE bỏ filter vì FK còn thật ⟂ changelog GIỮ filter vì ghi vết phiếu-đã-xoá là rác · 8 module pin verified bằng grep Domain, loại +1 hit FK nội bộ) — dữ liệu hiếm, ghi để đừng phá. 🔴 **tooltip đặt trên `<input disabled>` ⇒ Chromium KHÔNG hiện** (label bao ngoài không mang `title`) — quyết-định-owner nằm trong tooltip mà tooltip không có cửa hiện = **máy dựng không ai gọi**; ô "hành-vi-LUÔN-BẬT" câm ⇒ đọc thành NGƯỢC NGHĨA. 🔴 **3 thành phần bất đồng HOA/thường** (regex CultureInvariant **case-SENSITIVE**`Code ==` theo collation SQL Server **CI** ⟂ FE `.toUpperCase()`) và **test MÙ THEO CẤU TRÚC vì SQLite = BINARY case-sensitive ⇒ tầng DB trong test có ngữ nghĩa NGƯỢC prod** — không assertion nào bịt được. 🔴 **guard mới ở write-path CHÍNH (Create) 0 test** — lỗ của SPEC, implementer đúng spec, **KHÔNG hạ thước theo spec**. **m:** assert `Contain("N5")∧Contain("N3")` **mù THỨ TỰ toán hạng** (3 call-site 2 tham số kề — phải đối chiếu TAY) · **BOM `ef bb bf`+CRLF lẫn vào commit code**`git add` từng file. **FLAG-A đo được:** `npx tsc --noEmit` trần biên dịch **0 file** (`files: []`+references) = xanh THEO CẤU TRÚC; `--listFiles|wc -l` 0 ⟂ 225/214 ⇒ **acceptance "lệnh X xanh" phải kèm phép chứng thước KHÔNG RỖNG**.
- **[→ `archive/2026-08.md` §@S180-N2-N3-5lane — verbatim 5 entry, probe 5/5 + control-âm 0] S180 (08-07) N2 + N3 lane C/D/E/F (digest gộp):** tách DỮ-KIỆN ⟂ SUY-LUẬN trước khi phán (N2: 0/45 claim đổ, 5 MAJOR đều ở SUY; bắt 'chỉ 1 xung đột' SAI — có xung-đột-thứ-2 nằm ngay trong chính N1) · dựng-phương-án-KHÔNG-chọn khi việc chạm quyền owner + ô CHƯA-ĐO ghi KÈM LỆNH, 'KHÔNG ĐO ĐƯỢC' là kết-luận hợp lệ (C) · BÁC claim xếp-hạng không mẫu-số + máy mù 17/17 lane vẫn in '0 mismatch' = in-sạch-trên-vùng-chưa-đọc + đính-chính 4 phía gồm chính mình (D) · đóng-khoản phải hỏi 'máy quét ĐÂU vs khoản áp ĐÂU' + khai quá-khứ bằng thì hiện-tại + va-chạm tệp-tạm lane song song ⇒ grep chuỗi đặc trưng trước khi nối (E) · `fed-but-unread` = ghost-wire class-3 nguy hơn defined-but-unread + thang máy/tay 2-nấc là thang HỎNG (hỏi 'không-hit có phụ thuộc người nhớ chạy?') + vá-doc-bình-thường làm điểm-mù-máy TO RA im lặng ⇒ neo detector cấu-trúc-ổn-định + `ngược-#53` chặn bằng THỨ-TỰ-tool-call không bằng lời nhắc (F).

View File

@ -5,13 +5,6 @@
- **S172 (2026-08-05) @close`KIEM-PASS-WITH-2-TRUOT — 69 claim (67 ĐẠT / 2 TRƯỢT) + 4 KHÔNG-CHẤM`; H1 39/40 · H2 28/29; falsify 7 (4 HELD / 3 BROKE) `[LEAD SEED ON-BEHALF @closeout M9 — vai INFORM-only, single-writer = lead (B3 VERIFY→APPEND)]; nguồn `runs/2026-08-05-S172-bookend-close/sub-ring1-audit-close-S172.md` 39.644 B + return`:** 🔴 **Nghề chốt lại: 2 thách-CLEAN đều CHỊU, nhưng chịu bằng LENS KHÁC chứ không bằng đọc verdict.** (A) H1 đối chiếu `SKILL.md ⟷ STATUS.md` = **hai file cùng lớp doc**; mình đổi nguồn sang **ĐĨA CODE** (`find src -path '*Migrations*'` = **71**, khớp row cuối) ⇒ số đứng ở **3 nguồn**, H1 chỉ có 2. (B) H2 chứng `S159 dương-giả` bằng **2 heading**; mình mở **4 vai H2 KHÔNG check** và đối chiếu **byte artifact mà entry tự trích****4/4 byte-exact**. 🔴 *Bịa được tên, không bịa được byte.***CẤM retro-harvest folder đó** (đẻ entry trùng trên 10 sổ). **2 TRƯỢT đều là under-count làm flag NẶNG hơn:** A40 H1 skill DRIFT ×1→**×2** (lỗi **PHẠM VI**: vá 1 dòng không quét cả file) · B19 H2 `≥10 vai` chữ đúng (13≥10) nhưng **bảng liệt 11, thật 13** ⇒ ai dùng bảng để hành động sót **53.084 B**. **4 finding riêng:** R-1 lead viết `Updated S172``git log` chứng commit cuối là `ff7f655` @S168**khẳng định một lần cập nhật CHƯA TỪNG XẢY RA** (không phải "sẽ thối" — **sai ngay lúc land**) · R-2 ổ số cứng thứ 2 cùng file · R-3 bản vá R-2 **giữ literal số cũ ⇒ trồng citation-trap vĩnh viễn** · R-4 dùng bảng 13-vai. 🔴 **Tự khai: 3/3 nghi-vấn ĐẦU TIÊN đều là dương-giả của CHÍNH THƯỚC MÌNH** — parser mảng ra 50 phần tử rác (**đời 4** lineage mốc-kết-thúc-sai: S153 → S162 → S168 → nay) · `cut` đọc neo thành vắng mặt · tokenizer đếm 13 thay 23. Cả 3 bắt trước khi nộp; không tự-falsify thì **H1 bị tố oan 3 lần**. Tag `[s172, chiu-bang-lens-khac, bia-ten-khong-bia-byte, under-count-nang-hon, doi-4-moc-ket-thuc-sai]`
- **S168 (08-01) KIỂM @close`52Đ/4T trên 56 claim` (H1 28Đ/2T · H2 24Đ/2T) · evidence `sub-ring1-audit-close-S168.md`:** falsify 6 (2 HELD/4 BROKE). 🔴 **Class MỚI đáng nhớ nhất — "TỰ-ĐÍNH-CHÍNH NGƯỢC"**: H2 tự nhận sai baseline corruption S162 ("24 hit" → sửa thành 22) nhưng **24 vốn ĐÚNG**`git grep -c`=**DÒNG**(22), `git grep -o|wc -l`=**LẦN**(24), đo tại `e5123ff` lẫn HEAD đều 22/24 ⇒ H2 nhận tội oan + giao S169 baseline **lẫn đơn-vị** ⇒ kỳ sau đo bằng thước đếm-LẦN sẽ thấy "+2 corruption ảo" (tái phát class `H2-11@S153` đời 3). **Bài: khi con-đo TỰ THÚ, soi luôn lời tự-thú — nhận tội sai cũng là lỗi, và nó ăn vào baseline.** 🔴 **H1 F-3 under-count 6→7**: sót `docs/architecture.md:220` (`→ D:\Backups`) vì H1 gặp 0-hit-giả rồi **thu hẹp** pattern sang `Backups.SolutionErp` — chuỗi này không chứa `\SolutionErp`**chỗ thu-hẹp che hit thật** (class `absence_looks_like_clean`, đời 2 trong 1 phiên). Suýt TỰ BÁC finding đúng khi lead sweep ra 0-hit; cứu bằng `git show HEAD:` + `git diff` ⇒ hoá ra lead vừa vá lúc 19:48 (**time-drift**, bài E1@S150 — hỏi "sai, hay ĐÃ-ĐƯỢC-XỬ?" TRƯỚC khi rút claim). ✅ thách-CLEAN A **chịu**: `permission-matrix` fresh THẬT — soi tới `[Authorize(Policy="KeHoachKyKet.Update")]` ở controller `:109`, + control-dương/âm; nợ S162 của tao (`contract-workflow` mù KHKK) **đã đóng**. 🔴 thách-CLEAN B **THỦNG (finding R-1 riêng của tao)**: C5 chứng-nhận folder "đóng" bằng **TÊN+size>0 ⇒ mù NỘI-DUNG**`sub-reviewer-c2-l3.md` 188 B, Verdict "(ĐANG LÀM)", 0 hit ở diary/run.md/synthesis (săn bằng cách lấy **artifact-đóng NHỎ NHẤT** mỗi folder, không re-chạy phép của H2). 🔴 **F-A BROKE VÀO CHÍNH TAO lần 3**: regex non-greedy `\[(.*?)\]` ra roster 18 (thật 23) vì chết ở `]` trong comment `owner-decision [2]`**comment của chính persona tao**; 3 đời hỏng-thước: `grep -c||echo 0`(S153) → `grep -v Snapshot`(S162) → non-greedy(S168). Tự bắt thêm **con-trỏ chết trong bảng của chính tao** (A26 trỏ §F-C sai chỗ) — khai ra thay vì lặng lẽ vá. Số tự tái-dựng: roster **23 × 5 nguồn + so TẬP `SET_IDENTICAL`** · C5 79/76/0-orphan (so TẬP với 3 dir được khai miễn) · L1 byte **8/8 khớp từng byte** · F-COV-1 quét **5 pattern** + control-dương (mạnh hơn bản H2). Tag `[s168, 52d-4t-56claim, tu-dinh-chinh-nguoc, don-vi-dong-vs-lan, pattern-thu-hep-che-hit-that, c5-mu-lane-chet, broke-vao-chinh-minh-lan-3, time-drift-cuu-bang-git-show]`
- **S162 (07-30) KIỂM vòng tooling/harvest @close`26Đ/2T trên 36 claim` `[LEAD SEED ON-BEHALF @closeout M9 — nguon: sub-ring1-audit-close-S162.md 17.231 B + return]`:** H1 15Đ/2T/3KC · H2 11Đ/0T/5KC. 🔴 **THÁCH-CLEAN A THỦNG — skill `contract-workflow`**: H1 gọi “4 skill còn lại PASS” nhưng skill này **0 hit** `SigningPlan|Khkk|Kế hoạch ký kết|PipelineStage` trong 24.949 B, trong khi S161 đẻ nguyên máy mới **nằm đúng lãnh-địa nó** (`ContractSigningPlanPhase.cs` 5 phase, WF V2 type-10, codegen `KHKK/{YYYY}/{Seq:D3}`) và frontmatter nhận đúng từ khoá routing ⇒ người tra bị dẫn vào rồi **đọc nhầm luật RG-001/9-phase**. Không phải nới chuẩn: **H1 dùng 2 THƯỚC trong 1 báo cáo** (nợ-tích-luỹ cho `ef-core-migration`, “đợt này” cho `contract-workflow`) ⇒ TRƯỢT A16 + A17 dẫn xuất (TOTAL under-count 10→11). ✅ **THÁCH-CLEAN B CHỊU**`reviewer` harvested THẬT (numstat +16/18, mở ruột dòng cộng có nội dung thật, không phải đếm-tên); `ctx-verifier` numstat **rỗng hoàn toàn****F-01 của H2 mạnh hơn chính bản H2 nộp**. 🔴 **F-A BROKE VÀO CHÍNH TAO**: định tố H1 bịa số Mig “69” (tao đếm 68) — lỗi của tao, `grep -v Snapshot` **nuốt mất** `…AddPeApprovedBudgetSnapshot.cs`; đếm lại 2 engine = **69**, H1 HELD. Tái phát y hệt lỗi `grep -c || echo 0` của tao @S153. **F-B HELD mạnh**: nghi F-02 vô giá trị vì `git log -S` trên path archive “luôn rỗng” → chạy **control-dương** H2 không chạy (`git log -S 1a47a61` = **1 commit**) ⇒ lệnh CÓ RĂNG ⇒ 0-hit là vắng-mặt THẬT. Số tự tái-dựng: roster **23 × 6 nguồn độc lập** · universe **75/72/3 so TẬP không so SỐ** · VALID_ROLES 23 bằng engine khác. Tag `[s162, 26d-2t, thach-clean-thung-contract-workflow, 2-thuoc-1-bao-cao, control-duong-chung-lenh-co-rang, tu-bat-loi-cua-minh, seed-on-behalf]`
- **S153 (07-26) KIỂM vòng V1 (tooling+harvest) `[lead seed on-behalf @closeout M9; nguồn = sub-ring1-S153.md 22.992B]`:** **28 ĐẠT / 4 TRƯỢT-rìa / 1 KHÔNG-CHẤM trên 33 claim** · falsify 7 phép (4 HELD / 3 BROKE — **1 BROKE vào CHÍNH MÌNH**: `grep -c X f || echo 0` in "0" **và** exit 1 ⇒ đếm nhầm 20/20, suýt tố oan H2 bằng số rác của mình) · tái-dựng 11 số khớp / 1 lệch (đổi nguồn `git ls-files` · đổi engine python↔perl · đổi parse json↔grep · **so TẬP thay so SỐ**).
**4 TRƯỢT đều lỗi RÌA, 0 lỗi ở số load-bearing:** H1-15 MED (F-6 **under-count** — dump 18 key thấy `code-review@`+`feature-dev@` cũng `true` dưới cùng heading ⇒ phá claim mà flag NẶNG hơn) · **H2-11 MED BROKE** (baseline S154 "16 + hit của file NÀY" — file H2 có **0 raw U+FFFD**, dùng ASCII `<FFFD>` ×7 ⇒ kỳ sau đọc 16/10 thành SỤT rồi truy **file phantom**; đúng bẫy m#20 mà H2 vừa đặt) · H1-14 LOW (neo `SKILL.md:122` → chuỗi thật ở `:121`; mtime chứng lệch-thật không time-drift) · H2-10 LOW (phân-hoạch 11+5=16 ≠ 20 role-dir; minh-oan: 11 ĐÚNG dưới vị-từ mtime H2 tự khai ⇒ kết-luận không đổi).
**Thách-CLEAN 3 mặt — 2 chịu, 1 THỦNG:** ef-core "fresh" THẬT (bảng liên-tục 12..67, 0 lỗ) · Placement 0-stray chịu **3/3 lens** ⇒ số 0 CÓ RĂNG · corruption 16/10 chịu (python≠perl trùng khít) **nhưng THỦNG ở mệnh-đề DỰ-BÁO****ô 🟢 vẫn thủng được ở lời-hứa tương-lai**.
Tag `[s153, 28d-4t-33claim, broke-vao-chinh-minh-grep-c, h2-11-baseline-phantom, thach-clean-thung-o-du-bao]`
> Vai KIỂM độc-lập vòng-đo H1 (`tooling-auditor`) + H2 (`harvest-curator`) — C4/C4b, land S145, rename @S149 (cũ: `tooling-harvest-audit`). Read-only, propose-only, AUTO fire SAU khi H1+H2 chốt @session-end §L.b(g-bis). Fail-safe: H1/H2 không chạy ⇒ NO-OP im-lặng, CẤM ĐẠT-ảo. no-self-exempt: ≠ H1/H2.

View File

@ -0,0 +1,12 @@
# ring1-audit archive 2026-07 — verbatim moved from L1
<!-- moved-from MEMORY.md @S188 (refine A1) — S153 -->
- **S153 (07-26) KIỂM vòng V1 (tooling+harvest) `[lead seed on-behalf @closeout M9; nguồn = sub-ring1-S153.md 22.992B]`:** **28 ĐẠT / 4 TRƯỢT-rìa / 1 KHÔNG-CHẤM trên 33 claim** · falsify 7 phép (4 HELD / 3 BROKE — **1 BROKE vào CHÍNH MÌNH**: `grep -c X f || echo 0` in "0" **và** exit 1 ⇒ đếm nhầm 20/20, suýt tố oan H2 bằng số rác của mình) · tái-dựng 11 số khớp / 1 lệch (đổi nguồn `git ls-files` · đổi engine python↔perl · đổi parse json↔grep · **so TẬP thay so SỐ**).
**4 TRƯỢT đều lỗi RÌA, 0 lỗi ở số load-bearing:** H1-15 MED (F-6 **under-count** — dump 18 key thấy `code-review@`+`feature-dev@` cũng `true` dưới cùng heading ⇒ phá claim mà flag NẶNG hơn) · **H2-11 MED BROKE** (baseline S154 "16 + hit của file NÀY" — file H2 có **0 raw U+FFFD**, dùng ASCII `<FFFD>` ×7 ⇒ kỳ sau đọc 16/10 thành SỤT rồi truy **file phantom**; đúng bẫy m#20 mà H2 vừa đặt) · H1-14 LOW (neo `SKILL.md:122` → chuỗi thật ở `:121`; mtime chứng lệch-thật không time-drift) · H2-10 LOW (phân-hoạch 11+5=16 ≠ 20 role-dir; minh-oan: 11 ĐÚNG dưới vị-từ mtime H2 tự khai ⇒ kết-luận không đổi).
**Thách-CLEAN 3 mặt — 2 chịu, 1 THỦNG:** ef-core "fresh" THẬT (bảng liên-tục 12..67, 0 lỗ) · Placement 0-stray chịu **3/3 lens** ⇒ số 0 CÓ RĂNG · corruption 16/10 chịu (python≠perl trùng khít) **nhưng THỦNG ở mệnh-đề DỰ-BÁO****ô 🟢 vẫn thủng được ở lời-hứa tương-lai**.
Tag `[s153, 28d-4t-33claim, broke-vao-chinh-minh-grep-c, h2-11-baseline-phantom, thach-clean-thung-o-du-bao]`
<!-- moved-from MEMORY.md @S188 (refine A1) — S162 -->
- **S162 (07-30) KIỂM vòng tooling/harvest @close`26Đ/2T trên 36 claim` `[LEAD SEED ON-BEHALF @closeout M9 — nguon: sub-ring1-audit-close-S162.md 17.231 B + return]`:** H1 15Đ/2T/3KC · H2 11Đ/0T/5KC. 🔴 **THÁCH-CLEAN A THỦNG — skill `contract-workflow`**: H1 gọi “4 skill còn lại PASS” nhưng skill này **0 hit** `SigningPlan|Khkk|Kế hoạch ký kết|PipelineStage` trong 24.949 B, trong khi S161 đẻ nguyên máy mới **nằm đúng lãnh-địa nó** (`ContractSigningPlanPhase.cs` 5 phase, WF V2 type-10, codegen `KHKK/{YYYY}/{Seq:D3}`) và frontmatter nhận đúng từ khoá routing ⇒ người tra bị dẫn vào rồi **đọc nhầm luật RG-001/9-phase**. Không phải nới chuẩn: **H1 dùng 2 THƯỚC trong 1 báo cáo** (nợ-tích-luỹ cho `ef-core-migration`, “đợt này” cho `contract-workflow`) ⇒ TRƯỢT A16 + A17 dẫn xuất (TOTAL under-count 10→11). ✅ **THÁCH-CLEAN B CHỊU**`reviewer` harvested THẬT (numstat +16/18, mở ruột dòng cộng có nội dung thật, không phải đếm-tên); `ctx-verifier` numstat **rỗng hoàn toàn****F-01 của H2 mạnh hơn chính bản H2 nộp**. 🔴 **F-A BROKE VÀO CHÍNH TAO**: định tố H1 bịa số Mig “69” (tao đếm 68) — lỗi của tao, `grep -v Snapshot` **nuốt mất** `…AddPeApprovedBudgetSnapshot.cs`; đếm lại 2 engine = **69**, H1 HELD. Tái phát y hệt lỗi `grep -c || echo 0` của tao @S153. **F-B HELD mạnh**: nghi F-02 vô giá trị vì `git log -S` trên path archive “luôn rỗng” → chạy **control-dương** H2 không chạy (`git log -S 1a47a61` = **1 commit**) ⇒ lệnh CÓ RĂNG ⇒ 0-hit là vắng-mặt THẬT. Số tự tái-dựng: roster **23 × 6 nguồn độc lập** · universe **75/72/3 so TẬP không so SỐ** · VALID_ROLES 23 bằng engine khác. Tag `[s162, 26d-2t, thach-clean-thung-contract-workflow, 2-thuoc-1-bao-cao, control-duong-chung-lenh-co-rang, tu-bat-loi-cua-minh, seed-on-behalf]`

View File

@ -0,0 +1,6 @@
# ring1-audit archive 2026-08 — verbatim moved from L1
<!-- moved-from MEMORY.md @S188 (refine A1) — S168 -->
- **S168 (08-01) KIỂM @close`52Đ/4T trên 56 claim` (H1 28Đ/2T · H2 24Đ/2T) · evidence `sub-ring1-audit-close-S168.md`:** falsify 6 (2 HELD/4 BROKE). 🔴 **Class MỚI đáng nhớ nhất — "TỰ-ĐÍNH-CHÍNH NGƯỢC"**: H2 tự nhận sai baseline corruption S162 ("24 hit" → sửa thành 22) nhưng **24 vốn ĐÚNG**`git grep -c`=**DÒNG**(22), `git grep -o|wc -l`=**LẦN**(24), đo tại `e5123ff` lẫn HEAD đều 22/24 ⇒ H2 nhận tội oan + giao S169 baseline **lẫn đơn-vị** ⇒ kỳ sau đo bằng thước đếm-LẦN sẽ thấy "+2 corruption ảo" (tái phát class `H2-11@S153` đời 3). **Bài: khi con-đo TỰ THÚ, soi luôn lời tự-thú — nhận tội sai cũng là lỗi, và nó ăn vào baseline.** 🔴 **H1 F-3 under-count 6→7**: sót `docs/architecture.md:220` (`→ D:\Backups`) vì H1 gặp 0-hit-giả rồi **thu hẹp** pattern sang `Backups.SolutionErp` — chuỗi này không chứa `\SolutionErp`**chỗ thu-hẹp che hit thật** (class `absence_looks_like_clean`, đời 2 trong 1 phiên). Suýt TỰ BÁC finding đúng khi lead sweep ra 0-hit; cứu bằng `git show HEAD:` + `git diff` ⇒ hoá ra lead vừa vá lúc 19:48 (**time-drift**, bài E1@S150 — hỏi "sai, hay ĐÃ-ĐƯỢC-XỬ?" TRƯỚC khi rút claim). ✅ thách-CLEAN A **chịu**: `permission-matrix` fresh THẬT — soi tới `[Authorize(Policy="KeHoachKyKet.Update")]` ở controller `:109`, + control-dương/âm; nợ S162 của tao (`contract-workflow` mù KHKK) **đã đóng**. 🔴 thách-CLEAN B **THỦNG (finding R-1 riêng của tao)**: C5 chứng-nhận folder "đóng" bằng **TÊN+size>0 ⇒ mù NỘI-DUNG**`sub-reviewer-c2-l3.md` 188 B, Verdict "(ĐANG LÀM)", 0 hit ở diary/run.md/synthesis (săn bằng cách lấy **artifact-đóng NHỎ NHẤT** mỗi folder, không re-chạy phép của H2). 🔴 **F-A BROKE VÀO CHÍNH TAO lần 3**: regex non-greedy `\[(.*?)\]` ra roster 18 (thật 23) vì chết ở `]` trong comment `owner-decision [2]`**comment của chính persona tao**; 3 đời hỏng-thước: `grep -c||echo 0`(S153) → `grep -v Snapshot`(S162) → non-greedy(S168). Tự bắt thêm **con-trỏ chết trong bảng của chính tao** (A26 trỏ §F-C sai chỗ) — khai ra thay vì lặng lẽ vá. Số tự tái-dựng: roster **23 × 5 nguồn + so TẬP `SET_IDENTICAL`** · C5 79/76/0-orphan (so TẬP với 3 dir được khai miễn) · L1 byte **8/8 khớp từng byte** · F-COV-1 quét **5 pattern** + control-dương (mạnh hơn bản H2). Tag `[s168, 52d-4t-56claim, tu-dinh-chinh-nguoc, don-vi-dong-vs-lan, pattern-thu-hep-che-hit-that, c5-mu-lane-chet, broke-vao-chinh-minh-lan-3, time-drift-cuu-bang-git-show]`

View File

@ -0,0 +1,6 @@
# _INDEX — ring1-audit archive (L2 on-demand)
| period | entries | note |
|---|---|---|
| `2026-07.md` | S153 · S162 | moved @S188 (refine A1 — L1 0 tầng L2, máy vĩnh viễn không PROPOSE được vì WARN keep-floor đứng trước PROPOSE trong if/elseif) |
| `2026-08.md` | S168 | moved @S188 (cùng đợt) |