# harness-refine (nac 2/3 — con DE-XUAT) — V3 bookend @open S159 (phien-LOGIC L8)

VERDICT: **2 ACTION** (0 reinject / 0 promote / 1 archive / 1 distill) + **1 ESCALATE gop 6 dong** + **10 BAC** + **5 NHUONG**

> Ghi-dia-trong-luc-lam (chong #53). Propose-only, single-writer = lead. 0 instrument chay lai (do la nac 1). Moi so nen = eval-return; so tao TU CONG deu dan phep tinh ra.

## 0. Tien-de — fail-closed KHONG kich

- PIN `runs/2026-07-29-S159-bookend-open/harness-eval-return.md` = **TON TAI, 7.714 B, co so nguyen-van** => duoc phep de-xuat.
- `.claude/governance/reinject-ledger.md` = **ledger THAT 0 dong** (`:34` placeholder, khoi-tao S95) => CG-1 khong chan doi-tuong nao QUA LEDGER; chot-dung phai tra tu **artifact vai**.
- **CANH BAO VE CHINH SO CUA TAO:** diary `harness-refine/MEMORY.md` nam trong **tap dong-bang 11 vai** (eval §F) — no dung o **S153**, THIEU S154 + S158. So-do chot-dung neu chi doc diary = **sai 2 vong**. Tao phai doc 4 file return tu DIA de dung lai: `runs/2026-07-25-S152-trio-memory/` · `runs/2026-07-26-S153-bookend-open/` · `runs/2026-07-26-S154-bookend-open/` · `runs/2026-07-28-S158-bookend-close/harness-refine-return.md`.
  **Neu chi tin diary, lượt nay tao DA de-xuat attempt-3 tren `_INDEX`** (diary chi biet toi S153). Chan duoc la nho DOC RUN-FOLDER, khong nho diary => xem E-block dong 6.

## 1. So-do CHOT-DUNG per doi-tuong (tra tu dia lượt nay, khong tu tri-nho)

| doi-tuong | attempt da co | trang-thai do HOM NAY (bang chung) | he-qua |
|---|---|---|---|
| `cicd-monitor/archive/_INDEX.md` | D1@S151 **LAND** (22634→19322) · A1@S153 · escalate S154-E1 · escalate S158-E1 | A1 **CHUA LAND**: header van **2.169 B**, van con chu `Total **78 records**`; `git show --stat 11db5ef` = **KHONG cham file** | **CAM attempt-3** (tu cam-ket diary `:4`). Chi bo-sung datum vao E-block |
| `harness-refine/MEMORY.md` (`## Luat cung`) | A3(ii)@S154 promote luat 2-CUA | **CHUA LAND** — `grep "HAI CUA\|2-cửa"` = **0 hit** | Cua B (chua-tung-thuc-thi) => **cam de-xuat lai**, vao E-block |
| `memory-budget.json` (chu lac-hau) | A2@S154 (3 vung chu) | **CHUA LAND** — `SEED-STATE` 1 hit · `first-run pending restart+consent` **x3** · `WATCH: gần autoinject-cap nhất 23955/25600` con nguyen | Cua B => **cam de-xuat lai**, vao E-block |
| `memory-budget.json` (`tiers.l1_hot`) thuoc 17,1K | A1@S158 (WIRE/RETIRE/RELABEL) | **CHUA LAND** — `grep self_target_bytes` = **0 hit** | A1@S158 tu dat "CAM attempt-2" => vao E-block |
| 19 gist thieu `COVERAGE-TOKENS` | A2@S153 | CHUA LAND (S154-B5 do 5/19) | cam de-xuat lai |
| `ctx-curator` · `ctx-verifier` heading | A1@S154 | escalate S158-E3 (chuyen lane tooling) | da chuyen lane |

**Doc thang:** **6/6 de-xuat cua tao qua S153+S154+S158 deu CHUA duoc thi-hanh.** Vay nen lượt nay tao **KHONG de nhieu action**; hai action duoi day co chung mot dac-diem: **doi-tuong MOI, su-kien MOI**, khong dam lai bat cu doi-tuong nao dang treo.

## 2. BANG ACTION (4 lop)

| # | action | lop | doi-tuong `file:path` | trigger (SO nao cua con-DO) | chot-dung | owner-gate |
|---|---|---|---|---|---|---|
| **A1** | **Tran byte cho lượt APPEND dang xep hang** cua rieng `tooling-auditor`: 3 muc S154/S158/S159 phai viet dang con-tro nen, **<= 700 B/muc** (tro ve `runs/.../sub-tooling-auditor-*.md`), thay vi khuon 1,5K/muc. Neu lead thay khong the nen duoi 700 B => **DUNG, hoi owner** (khong tu tran cap, khong tu drain) | **④ distill** (nen tai LUC GHI, khong dong 1 byte san co) | `.claude/agent-memory/tooling-auditor/MEMORY.md` (**lượt ghi**, khong phai file hien-tai) | eval §A `tooling-auditor l1_hot = **23464**` = **91,7%** cua `autoinject_cap 25600`. Tao cong: headroom = 25600−23464 = **2.136 B**. eval §F xep vai nay trong **11 vai dong-bang tai `11db5ef`**, ma dia co **3 artifact** sau moc do (S154 · S158-close · S159-open) => **3 muc xep hang**. Khuon nen cua chinh corpus = *"Keep entry <= 1.5K chars"* (`harvest-curator/MEMORY.md:9`) => 3 x 1536 = **4.608 B** > 2.136 B ⇒ **thieu 2.472 B ⇒ VUOT cap may 25600** (28.072). Tran 700 B: 3 x 700 = 2.100 <= 2.136 (du 36 B) | **attempt-1 tren doi-tuong "lượt ghi"**. 🚧 Phan-biet CUNG voi thu tao **da BAC 2 lan** (S154-B1, S158-B7): kia la *drain file dang co* — van BAC, xem X1. Neu vong sau muc da land ma l1 > 25600 ⇒ **leo-thang OWNER** (cap/nhip = so cua anh), **CAM tao de-xuat lan 2** | **LEAD** B3 (0 so doi, 0 policy doi). Vai `tooling-auditor` co the tu ap khi duoc goi lai |
| **A2** | **Xep hang self-compact cho `investigator-codebase` o lượt spawn KE** (vai nay da tu lam duoc: co **10 shard** trong `archive/` + tien-le tu nen ve ~17,1K @S155). Nen khoi CU nhat theo dung khuon vai da dung (`moved-not-cut` + block-md5 + giu file-order). **Tao KHONG chon byte muc-tieu**, chi neo dieu-kien: dua headroom tro lai **> 3.070 B** | **③ archive** (L1→L2) | `.claude/agent-memory/investigator-codebase/MEMORY.md` (+ `archive/`) | eval §A `investigator-codebase = **23285**` = **91,0%** cap. Tao cong: headroom = 25600−23285 = **2.315 B** < **3.070 B** = tripwire cua chinh tao @S151 — chinh thuoc nay S158-B7 dung de noi "CHUA cham" cho fd/impl-be, nay no **CHAM** (dung thuoc 2 chieu). Toc do: return S158 do vai nay **20.646 B** (2026-07-28) → eval hom nay **23.285** = **+2.639 B / 1 ngay**, nhanh nhat doi hinh. eval §F xep vai nay vao nhom **DANG ghi** (1 trong 7 vai co ghi sau moc; 3 hit "S158") ⇒ tang that, khong phai dong-bang | **attempt-1** (vai nay chua tung la doi-tuong action cua tao; S158-A1 chi diem ten no trong bo 9 vai vuot **thuoc 17,1K dang treo owner** — **A2 KHONG dung thuoc do**, chi dung cap may 25600 + tripwire 3.070). Vong sau con < 3.070 B ⇒ **leo-thang OWNER**, CAM attempt-2 | **LEAD** dat lich, hoac chinh vai tu nen o lượt ke. 0 so/policy doi ⇒ chua can owner |

### Zero co ly-do (khong bia cho du 4 lop)

- **① reinject = 0.** `reinject-ledger.md` **0 dong that** tu S95; de neo 1 reinject can phep do **per-item-L1-presence** ma chinh ledger `:50` **tu khai la BUILD-GAP, PARTIAL**; eval S159 **khong co so nao** do presence-per-item ⇒ neo bang gi cung la bia ⇒ **fail-closed dung o lop nay**. Ung-vien to nhat (noi-dung S154→S158 cua 20/23 vai khong bao gio vao L1) la **chua-tung-o-L1** ⇒ theo `ledger:12` = **build-gap, KHONG phai floor-rot** ⇒ cam ghi vao ledger.
- **② promote = 0.** Ung-vien that su co (luat *"de-xuat phai co o trang-thai THI-HANH; vong sau doc DIA truoc khi coi la xong"* — lượt nay 6/6 chua land la bang chung du) nhung **cho dat = `harness-refine/MEMORY.md` `## Luat cung`, dung doi-tuong ma A3(ii)@S154 CHUA LAND** ⇒ chot-dung cua chinh tao cam de-xuat lai ⇒ **day sang E-block**, khong tinh la action.

## 3. ESCALATE — mot khoi gop, KHONG leo-thang tung-mon lan 3

**Ly do gop:** S154 gui E1/E2/E3, S158 gui lai E1/E2/E3, hom nay se la **lan thu 3**. Leo-thang lap lai tung mon chinh la anti-pattern ma vai nay bi cam. Nen: **1 bang disposition, moi dong 1 quyet-dinh** (theo bai S119: bang tung dong thay so tong). Tao **khong** de-xuat lai bat ky mon nao trong bang.

| # | doi-tuong | do hom nay | lead/owner can chot |
|---|---|---|---|
| Q1 | `cicd-monitor/archive/_INDEX.md` | **19.484/20.480 = 95,14%**, con **996 B** (eval §G). Datum MOI lượt nay: `git diff c2d01f0..9649fc7` cho thay +162 B la **DUNG 1 dong record moi** (`S155 #416`) ⇒ **~161 B/record (1 mau, KHONG phai rate)** ⇒ con cho cho **~6 record**. Header van khai `Total 78 records` trong khi dia dem **100 dong record** ⇒ do lech tu-dem **da tang** | **LEAD**: thi-hanh nguyen-van A1@S153 **HOAC HUY va ghi ro**. Neu chon **nang cap 20480** ⇒ **OWNER**. Luu y cau-truc: `memory-budget.json > tiers.l2_index.seeded_from` tu ke 2 loi thoat = *"gist-of-index **or split**"* — **gist da tieu @S152**, con **split** thi header `_INDEX:3` khai bi chan (*"gate chi doc `_INDEX.md`"*) ⇒ het loi thoat trong tam AI |
| Q2 | `harness-refine/MEMORY.md` `## Luat cung` | A3(ii)@S154 **0 hit**. Nay them 1 luat nua xep hang (verify-landed) ⇒ **hong o co-che DAT-CHO, khong o noi-dung** — dung y A3@S154 da du-bao | **LEAD**: dat 2 luat vao diary (hoac bac ca 2, ghi ro) |
| Q3 | `memory-budget.json` — 3 vung chu lac-hau (A2@S154) | Con nguyen: `SEED-STATE` x1 · `first-run pending restart+consent` **x3** · `WATCH ... 23955/25600` x1 (dinh sai vai — dinh that la tooling 23464) | **LEAD** (chu-only, 0 so). Doi du 1 chu-so ⇒ **OWNER** |
| Q4 | thuoc **17,1K** (A1@S158) | `self_target_bytes` **0 hit** ⇒ chua WIRE/RETIRE/RELABEL. 9 vai dang "vi-pham im-lang" mot thuoc khong may nao soi | **OWNER** (so/thuoc) |
| Q5 | `crystallized-backfill` headroom | **172.247 tok** vs moc `_target_note`@S115 **~253,7K** ⇒ **−81,5K**; target owner 210.000 > headroom ⇒ **headroom BINDS**, backfill khong mo duoc. `_target_note` tu ghi: *"The AI (em-main) NEVER sets/auto-tunes this"* | **OWNER**: tien-de S115 da het dung ⇒ ha target, hay nen san hot-load, hay chap nhan backfill dong. **Tao khong chon so** (va nguon hot-load = doc du-an, ngoai truc agent-memory — xem N5) |
| Q6 | **so-do chot-dung cua vai nam NGOAI diary** | diary refine dung o S153 (dong-bang `11db5ef`) trong khi da chay S154 + S158 ⇒ lan sau spawn se **dem thieu attempt** va rat de de-xuat attempt-3. Lượt nay thoat duoc **chi vi tao doc 4 file return trong run-folder** | **LEAD**: hoac seed diary (Q2), hoac chinh-thuc coi `runs/**/harness-refine-return.md` la nguon chot-dung va ghi dieu do vao khuon lượt sau |

## 4. DA CAN-NHAC ROI BAC (10) — bat buoc hien dien

| # | ung-vien | phan | ly do (neo dia/so) |
|---|---|---|---|
| **X1** | ③ archive/drain **file hien-tai** cua `tooling-auditor` (23.464 = 91,7%) | **BAC (lan 3 giu nguyen lap-truong)** | `memory-archive-gate.ps1:205` **tu dat luat**: *propose only after 2 consecutive over-cap*. eval §C: **0/23 over cap, strike 0/23**. Vai nay **23.464 = byte Y-HET S154 va S158** ⇒ **0 su-kien moi tren FILE**. Dung ngưỡng rieng de ngưỡng may = lan quyen dat-so owner. Su-kien moi nam o **lượt GHI sap toi** ⇒ da tach ra A1, va A1 **khong drain 1 byte nao** |
| **X2** | ③ archive `harvest-curator` theo self-target 17,1K (19.456 > 17.510) | **BAC** | Thuoc 17,1K **dang treo owner** (Q4) — nen theo mot thuoc chua duoc phe = dung canh-bao B6@S158 (*tu-Goodhart*). Doi chieu thuoc MAY thi vai nay **du cho**: 25600−19456 = **6.144 B** > 3 muc x 1536 = 4.608 B ⇒ khong co ap-luc may |
| **X3** | ① reinject / bom **6 row `measured{}`** thieu (17/23 — ctx-audit, ctx-curator, ctx-verifier, ring1, ring2, ring4) | **BAC — DA QUEUED + sai lop** | `budget.json:2` va `:185` **cam hand-edit tung so le**; `HANDOFF` muc ⑤ da hen **full re-sync @drift-audit 2026-08-01** = con **3 ngay**. Theo `ledger:12` day la **build-gap** (6 vai deu **co that tren dia**: 9188/3556/6475/7884/13964/2315 B — chua tung co row, khong phai rot) ⇒ **cam vao ledger**. Ve tao GIU: **sau 2026-08-01 van 17 row ⇒ luc do moi la no that** |
| **X4** | ④ distill lai header `_INDEX` (attempt-3) | **BAC** | Chinh diary tao `:4` cam. Do lai: header **2.169 B**, `11db5ef` khong cham file ⇒ A1@S153 chua chay. De-xuat lan 3 = dung anti-pattern lap-vo-han ⇒ chi day datum vao **Q1** |
| **X5** | ② promote luat "verify-landed" vao diary tao | **BAC** | Cung doi-tuong voi A3(ii)@S154 **chua land** ⇒ cua B ⇒ cam de-xuat lai (→ **Q2**) |
| **X6** | ③ archive `frontend-designer` 21.492 · `implementer-backend` 21.987 | **BAC — chua cham tripwire** | headroom **4.108 B** / **3.613 B** > **3.070 B**. Them: ca 2 **khong co artifact nao** sau moc `11db5ef` ⇒ **0 muc xep hang** ⇒ khong dinh co-che A1. fd con dong-bang tu 2026-07-01 |
| **X7** | Sua **mau-so per-role coverage** (23/23 = 100% ma 20/23 diary 0 noi-dung S158) | **BAC action ⇒ NHUONG lane** | Cho hong nam trong **instrument** (mau-so la role-file TINH, khong do recency), khong nam trong corpus. Ap dung dung logic B1@S158: *ben can sua = ben DOC sai proxy* ⇒ lane eval/tooling |
| **X8** | Nang `l2_index.cap_bytes` 20480 → ~22.000 cho het 95,14% | **BAC — doi thuoc** | Doi thuoc de xoa tin-hieu = **roi tap-do** (Goodhart). So la **quyen owner** (`role_boundary_note`). Tao neu cam-do nay ra de lead thay, **khong chon** |
| **X9** | Bam vao **`run-chua-gom 1`** + **OVERDUE:light 6/6** (eval §E) | **BAC — ngoai truc** | Do la nhip-vong/run-trace, khong phai agent-memory corpus ⇒ N2/N3 |
| **X10** | Dung **PARK-file** + lich APPEND cho 11 vai | **BAC — trung lane H2** | `harvest-curator` **da de** nguyen ven o `sub-harvest-curator-open-S159.md:191-192` (PARK 4-field vao run-folder, APPEND o cua dau tien het freeze). Lap lai = lan H2. Tao **chi gan RANG-BUOC BYTE** len lượt append do (A1) — phan dung truc tao (suc chua corpus), va noi ro A1 **phu-thuoc** de-xuat cua H2 duoc chap-nhan |

## 5. NHUONG (5)

| # | tin-hieu | nhuong ai | vi sao |
|---|---|---|---|
| N1 | lead hot-feed / carry / work-state underfill | **`lead-gap-auditor`** | RANH SAC — tao chi cham agent-memory persistent corpus |
| N2 | instrument doc sai (mau-so coverage tinh · `l2idx 0 over` nhi-phan trong khi 95,14% · mtime-nhu-do-tuoi) | **`harness-eval` / tooling** | sua ben DO, khong sua ben BI DO |
| N3 | noi-dung harvest + lich APPEND + `run-chua-gom 1` | **`harvest-curator` (H2)** | H2 da co de-xuat PARK tren dia |
| N4 | cham diem / verify chinh ban nay | **`harness-audit`** (nac 3) | tao khong tu-cham |
| N5 | moi CON SO: cap 20480 · target 210.000 · thuoc 17,1K · nhip | **OWNER** | `reinject-ledger.md:5` + `token_governor.role_boundary_note` |

## 6. Tu-khai (bat buoc)

1. **read-only = thieu-tool, KHONG phai sandbox.** Lượt nay tao **CO Write va DA GHI dung 1 file** = chinh file nay (`harness-refine-return.md`, trong run-folder — hop le voi **Mirror C1** vi C1 dong bang `agent-memory/`, khong dong bang run-folder). **0 file agent-memory bi cham.** Lead soat `git status` sau lượt: ngoai file nay, tao khong tao/sua gi.
2. **De-xuat ≠ da-lam.** A1/A2 la propose-only, cho lead thi-hanh. A1 con **phu-thuoc dieu-kien**: neu lead khong chap de-xuat PARK/APPEND cua H2 thi A1 tu dong vo nghia (khong co lượt ghi nao de tran byte).
3. **0 do lai.** So nen tu eval-return. So tao **tu cong**, dan ra day de audit tru: 25600−23464=**2136** · 3x1536=**4608** · 4608−2136=**2472** · 2136/3=**712** · 25600−23285=**2315** · 23285−20646=**2639** · 25600−19456=**6144** · 20480−19484=**996** · 996/161≈**6,2 record**.
4. **Cham dia moi neo** (luat vai tu promote @S153: *proxy mtime/ngay ⇒ CAM neo action*). Lượt nay chinh viec cham dia **lat nguoc 2 ung-vien cua tao**: (i) tao dinh de "nen header `_INDEX`" thi phat hien A1@S153 **chua tung chay** ⇒ chuyen sang cam attempt-3; (ii) tao dinh de "archive harvest-curator theo 17,1K" thi phat hien thuoc do **dang treo owner** ⇒ BAC (X2).
5. **Diem yeu cua chinh ban nay:** `~161 B/record` la **1 mau don le** (dung 1 dong record trong 1 diff), tao goi la *dan-xuat*, **khong** goi la rate — dung dung no de doi so cua owner. Va **6/6 de-xuat truoc chua land** ⇒ neu co-che dat-cho khong duoc chot (Q2/Q6), A1+A2 lượt nay nhieu kha nang cung nam yen nhu vay; do la ly do tao gop escalate thay vi de them action.
6. **Tu-do bat-loi:** diary cua chinh tao nam trong **11 vai dong-bang** ma tao dang de-xuat cho vai khac — tao la mot phan cua benh, khong dung ngoai.

## 7. INFORM (khong phai action — nhuong lane, ghi de khong roi)

- **`.claude` LONG trong run-folder S159:** luc tao vao (dau lượt, ~09:07) `ls -la` con thay thu-muc `.claude/` **ben trong** `runs/2026-07-29-S159-bookend-open/` (mtime 08:43); kiem lai cuoi lượt = **KHONG con ton tai**, git khong track. Day dung **class stray da bat @S152** (ring1-close TRUOT-3: *"stray `.claude` LONG run-folder, 4 sub @close tu de, lead da rm"*) — thuoc **truc PLACEMENT ⇒ nhuong `ring1-audit`**. Tao ghi lai vi no **tu sinh tu bien trong 1 lượt**, thuoc do `-not -path "./.claude/*"` van mu voi no.
- **Anti-#53 co bang chung lượt nay:** skeleton 929 B tao ghi luc bat dau **da bi WAL hook commit vao git** (`92ed688 wal: flush 20260729T0914`) TRUOC khi tao viet xong ban day. Tuc ghi-dia-trong-luc-lam o repo nay **ben toi muc vao duoc git** — neu tao chet giua chung, lead van co artifact + biet tao dang o buoc nao (checklist muc 0 cua ban skeleton).

<!-- END OF harness-refine RETURN — S159 @open · TOTAL: 2 action · 1 escalate-block (6 dong) · 10 bac · 5 nhuong · 2 inform -->
