[CLAUDE] Docs: S125-S126 closeout GOP — H23-precedence DO (spawn-param THANG hard-pin, /fable-real SONG) + sweep all-inherit va 15+3+5 + gotcha #83 + hub-mail h23-result
All checks were successful
Deploy SOLUTION_ERP / build-deploy (push) Successful in 5m30s
All checks were successful
Deploy SOLUTION_ERP / build-deploy (push) Successful in 5m30s
- NHOM A restart-verify: A1 tier:'fable' tren reviewer pin-opus -> resolved claude-fable-5 (spawn-param THANG); A2 no-tier -> claude-opus-4-8 DU lead=Fable (pin an runtime); A3 autoMemory WRITE-path OK (project_h23_spawn_precedence.md moi). - B1 sweep all-inherit floor-song: 15 dong/5 file + 3 cung-lop lot-pattern + 5 dong H23-stale o 3 command-file (H1 bat) -> VA HET; spawn-model-audit Section-D flush H8->S124 + effort-check (fault-inject 2-chieu PASS, 14 duong-gia -> 0); governance-detectors C3 seed +worker-tier-pin; re-grep 0 floor-song; suite 45 = baseline 0-new. - vocab-alias-map §3 canonical flip -> worker-tier-pin (all-inherit/two-tier = 2 alias cu); STATUS:6 FROZEN-diary label (het H24-3 lag); STATUS:25 + agents/README:5 sync. - Email hub h23-precedence-test-result stamp 945cf3ad (reviewer-gate FAIL bat 3 loi truoc stamp -> gotcha #83 aggregate-cumulative) + _index cung luot. - B3/B4 owner-gated: soan b3-b4-owner-gated-proposals.md CHO ANH (mega-line retier + budget:74 wording) — 0 apply. - Closeout: harvest 4 lane + 2 monitor (H2 GATE PASS 5/5, 0/29 orphan; H1 3/4 clean + 5-spot fix) + curate moved-not-cut reviewer/inv-cb + carry disposition (DONG 2: restart-s124, h23-fable-test-postrestart; MO re-stamp 9) + H24 counter=5 + pilot H22 D5 (pause-roundtrip + hook-fire re-verified; cross-model PENDING). - Governance/tooling-only: 0 prod-code, 0 mig, test 509 GIU, bundle FROZEN. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
|
||||
export const meta = {
|
||||
name: 'hmw',
|
||||
description: 'HMW P2 execute (SOLUTION_ERP) — fan-out roster ĐẦY-ĐỦ (số vai canonical → docs/STATUS.md §Sub-agents; KHÔNG hardcode số ở đây — lesson S108 comment stale làm worker đọc sai runtime) có MEMORY-PACK slice (qua args vì script không đọc file) + return findings + checklistEvidence + memoryDelta (spawn-record 4-field). 2 MODE (Harness 2, 06-07): (A) DEFAULT return-delta-only — fan-out NHỎ (<3 task VÀ ≤5 phút), sub KHÔNG ghi file, git-diff verify. (B) RUN-TRACE mode (args.run, Harness-10) — 🔴 BẮT BUỘC khi run ≥3 task HOẶC ước >5 phút (sàn H22 S111; script no-fs KHÔNG tự ép — enforcement = em-main scaffold @P1 + set args.run) — workflow DÀI, em main scaffold .claude/workflows/runs/<run-id>/ TRACKED FLAT (run.md + sub-<role>-<i>.md + <stage>-synthesis.md phẳng cùng cấp) @P1, sub ghi full-detail vào CHỈ sub-<role>-<i>.md mình (B4/B6), harvest per-turn primary (C4) + H2 gom @session-end = backstop verify-idempotent. taskList thoải mái (queue theo slot, không cap cứng). memoryDelta KHÔNG tự ghi — em main VERIFY + APPEND-only @P3 (no-overwrite-unverified, B3). Model worker-tier-pin (owner-decision S124): role-có-frontmatter = opus+effort:max (worker-tier, KHÔNG inherit) · role-less inherit lead · per-task tier:\'fable\'|\'opus\' escape-hatch (fable qua /fable-real; H23-precedence CHƯA test — restart-để-ăn). Scope = repo SOLUTION_ERP ONLY (S1 — KHÔNG fan-out repo/corpus khác).',
|
||||
description: 'HMW P2 execute (SOLUTION_ERP) — fan-out roster ĐẦY-ĐỦ (số vai canonical → docs/STATUS.md §Sub-agents; KHÔNG hardcode số ở đây — lesson S108 comment stale làm worker đọc sai runtime) có MEMORY-PACK slice (qua args vì script không đọc file) + return findings + checklistEvidence + memoryDelta (spawn-record 4-field). 2 MODE (Harness 2, 06-07): (A) DEFAULT return-delta-only — fan-out NHỎ (<3 task VÀ ≤5 phút), sub KHÔNG ghi file, git-diff verify. (B) RUN-TRACE mode (args.run, Harness-10) — 🔴 BẮT BUỘC khi run ≥3 task HOẶC ước >5 phút (sàn H22 S111; script no-fs KHÔNG tự ép — enforcement = em-main scaffold @P1 + set args.run) — workflow DÀI, em main scaffold .claude/workflows/runs/<run-id>/ TRACKED FLAT (run.md + sub-<role>-<i>.md + <stage>-synthesis.md phẳng cùng cấp) @P1, sub ghi full-detail vào CHỈ sub-<role>-<i>.md mình (B4/B6), harvest per-turn primary (C4) + H2 gom @session-end = backstop verify-idempotent. taskList thoải mái (queue theo slot, không cap cứng). memoryDelta KHÔNG tự ghi — em main VERIFY + APPEND-only @P3 (no-overwrite-unverified, B3). Model worker-tier-pin (owner-decision S124): role-có-frontmatter = opus+effort:max (worker-tier, KHÔNG inherit) · role-less inherit lead · per-task tier:\'fable\'|\'opus\' escape-hatch (fable qua /fable-real; H23-precedence ĐO S126 2026-07-16: spawn-param THẮNG frontmatter hard-pin ⇒ /fable-real SỐNG). Scope = repo SOLUTION_ERP ONLY (S1 — KHÔNG fan-out repo/corpus khác).',
|
||||
phases: [{ title: 'Execute', detail: 'fan-out memory-pack-injected agents, structured return' }],
|
||||
}
|
||||
|
||||
@ -41,14 +41,13 @@ const VALID_ROLES = [
|
||||
// ('opus'/'fable'/...), không nhận full-id; SE nay pin ALIAS `opus` (KHÔNG full-id) ở 14/14 frontmatter.
|
||||
// ⇒ owner chốt PA-2 = PA-2a (hằng-số này, để audit có thứ ĐỐI-CHIẾU) + PA-2b (scripts/spawn-model-audit.ps1
|
||||
// so resolved-vs-expected). Đọc bởi: scripts/spawn-model-audit.ps1 (thiếu hằng-số ⇒ script FAIL-LOUD).
|
||||
// 🔸 H23 precedence — NAY TESTABLE (đổi từ DEFER, owner-decision S124): thứ-tự ưu-tiên giữa "tham-số tại spawn"
|
||||
// và "pin ở tệp định-nghĩa" khi CẢ HAI cùng hiện-diện. Ở SE cả hai đều hiện-diện (resolveModel() trả alias
|
||||
// vào agent(...,{model:...}) TRONG KHI frontmatter 14/14 = opus, KHÔNG còn inherit).
|
||||
// 🔴 Vì frontmatter nay = `opus` (KHÁC `fable`): spawn tier:'fable' → nếu spawn THẮNG=fable, nếu frontmatter
|
||||
// THẮNG=opus ⇒ PHÂN-BIỆT ĐƯỢC KỂ CẢ lead=Opus (khác thời all-inherit — inherit→lead làm 2 nhánh trùng).
|
||||
// 🔴 Nếu frontmatter THẮNG ⇒ tier:'fable' của /fable-real = NO-OP ⇒ KHÔNG escalate Fable được (owner dùng
|
||||
// /model chọn lead=Fable tay). PHẢI test phiên kế (sau RESTART kích-hoạt frontmatter mới): spawn 1 lane
|
||||
// tier:'fable' → đọc resolved qua spawn-model-audit.ps1. CHƯA test lượt này (frontmatter mới cần restart).
|
||||
// 🔸 H23 precedence — ĐÃ ĐO S126 (2026-07-16, phiên đầu sau restart; run wf_f960dae2-fa0, đọc bằng
|
||||
// spawn-model-audit.ps1, KHÔNG tin lane tự khai): khi CẢ HAI cùng hiện-diện ⇒ SPAWN-PARAM THẮNG hard-pin.
|
||||
// Lane reviewer (frontmatter `opus`) + tier:'fable' → resolved `claude-fable-5` ⇒ /fable-real·/fable-clone
|
||||
// SỐNG, KHÔNG NO-OP, không cần owner re-pin. Control: lane investigator-codebase KHÔNG tier → resolved
|
||||
// `claude-opus-4-8` DÙ lead=Fable ⇒ pin frontmatter ăn runtime (loại giả-thuyết inherit-lead).
|
||||
// Caveat: retrospective (không hứa spawn TƯƠNG-LAI — đúng PA-2b) · đo trên ALIAS-pin, KHÔNG generalize
|
||||
// sang full-id-pin (hub form). Evidence: runs/2026-07-16-S126-adap-spec-execute/runtime-verify-synthesis.md.
|
||||
// 🔸 CHƯA THỬ (fix#8a): param `model:` có TỪ-CHỐI full-id không — doc nói enum-alias; chưa ai thử thật.
|
||||
const TIER2_EXPECTED_FULL_ID = 'claude-opus-4-8'
|
||||
|
||||
|
||||
@ -0,0 +1,18 @@
|
||||
# spec-execution synthesis — spec S125 ĐÃ THỰC-THI TRỌN @S126 (2026-07-16)
|
||||
|
||||
> Bản-ghi-kết-quả (dạng-1) đóng run `/fable-real` S125: deliverable của run này là `spec-adap-review-s125-16-07-2026.md` (3-mục + checklist A–D) — phiên S126 resume qua `/tiep` đã THỰC-THI TRỌN. Chi-tiết từng phép đo → `../2026-07-16-S126-adap-spec-execute/` (runtime-verify-synthesis.md + sweep-synthesis.md).
|
||||
|
||||
| Mục spec | Kết-quả @S126 |
|
||||
|---|---|
|
||||
| A1 H23-precedence | **`fable`** — spawn-param THẮNG frontmatter hard-pin ⇒ `/fable-real` SỐNG; báo hub `2026-07-16-se-to-ai_infra-h23-precedence-test-result` (stamp `945cf3ad` exit-0) |
|
||||
| A2 worker-pin runtime | **`opus`** — lane no-tier resolve `claude-opus-4-8` DÙ lead=Fable ⇒ pin ăn thật (không inherit-lead) |
|
||||
| A3 autoMemory WRITE-path | file MỚI `project_h23_spawn_precedence.md` byte>0 + index |
|
||||
| B1 sweep all-inherit | 15 floor-sống/5 file + 3 cùng-lớp → VÁ HẾT; fault-inject 2-chiều PASS; re-grep 0 floor-sống; detector-suite 45 = baseline 0-new |
|
||||
| B2 memory harness4 | body khớp S124 + update kết-quả H23 |
|
||||
| B3 retier-megaline · B4 budget:74 | 🔒 soạn surface `b3-b4-owner-gated-proposals.md` — CHỜ ANH, không apply |
|
||||
| B5 closeout GỘP S125+S126 | session-end phiên S126 (STATUS/HANDOFF/session-log/harvest/commit/push) |
|
||||
| B6 hub follow-up | 0 mail mới; hub CHƯA reply/re-stamp/vá-snippet — ghi-nhận chờ, KHÔNG stamp trước |
|
||||
| C 6 product carries | 6/6 còn — re-stamp @HANDOFF S126 |
|
||||
| D notes | D5 pilot ghi memory h22 (same-model leg; cross-model PENDING) · D1 chưa tới hạn · D2 không nợ · D3/D4 deferred · D6 surface HANDOFF |
|
||||
|
||||
Honest-note: lệch plan-vs-runtime duy-nhất = lead phiên thực-thi là **Fable 5** (spec §② dự-kiến Opus 4.8 MAX, owner-choice) — không đổi kết-quả phép đo nào; ngược lại làm control A2 mạnh hơn (chi-tiết runtime-verify-synthesis.md §Pilot).
|
||||
@ -0,0 +1,45 @@
|
||||
# B3 + B4 — đề-xuất 🔒 OWNER-GATED (chờ anh quyết, em KHÔNG tự apply)
|
||||
|
||||
> Soạn @S126 2026-07-16 theo spec `../2026-07-16-S125-fable-real-adap-review/spec-adap-review-s125-16-07-2026.md` mục B3/B4. Mọi con số token dưới đây là **CẬN-TRÊN heuristic notice** (dải, không phải "đo được" — nhãn S125).
|
||||
|
||||
---
|
||||
|
||||
## B3 · Retier mega-line STATUS/HANDOFF `[carry:retier-megaline]` — anh chọn 1 trong 3
|
||||
|
||||
**Hiện-trạng đo từ đĩa (2026-07-16):**
|
||||
|
||||
| File | Tổng | Số dòng | Mega-line | Cận-trên notice |
|
||||
|---|---|---|---|---|
|
||||
| `docs/STATUS.md` | 137.775 B | 249 dòng | **dòng 6 = 64.681 chars** | 70.892 (whole-file) |
|
||||
| `docs/HANDOFF.md` | 63.379 B | 12 dòng | **dòng 5 = 57.147 chars** | 33.684 (Read-notice hôm nay) |
|
||||
|
||||
Hai file cộng lại chiếm **[12–27]% cận-trên** trần 380K luôn-tải (dải byte/4 → notice; KHÔNG phải "27% đã-đo"). Chi phí THẬT đã thấy trong vận hành: (i) Read bị cap 25K token → phiên này phải grep thay vì đọc HANDOFF; (ii) bẫy `grep -c` đếm-dòng vs occurrence trên mega-line (bài S121, đã có memory); (iii) diff git mỗi lần sửa = rewrite cả dòng khổng-lồ, khó review.
|
||||
|
||||
**3 phương án:**
|
||||
|
||||
| # | Phương án | Được gì | Mất gì / rủi ro |
|
||||
|---|---|---|---|
|
||||
| 1 | **GIỮ nguyên** | 0 công; format hiện tại máy vẫn xử được | 3 chi phí trên tiếp diễn; mega-line tiếp tục phình theo session |
|
||||
| 2 | **TÁCH dòng** — bung mega-line thành section nhiều dòng, nội dung GIỮ nguyên | Read/grep/diff sạch; công nhỏ 1 lần; không mất chữ nào | KHÔNG giảm token luôn-tải (vẫn [12–27]% cận-trên); vẫn vi phạm tiering S40 về tinh thần |
|
||||
| 3 | **RE-TIER** — áp đúng luật tiering S40 sẵn có: giữ current + 2-3 session gần nhất, phần cũ archive verbatim → `docs/changelog/sessions/` + `docs/_archive/` với pointer | Giảm THẬT luôn-tải (ước còn dưới ~1/3 dải hiện tại — số chính xác đo sau khi cắt); đúng luật đã ký; hết cả 3 chi phí | Công lớn nhất; rủi ro cắt-quá-tay → mitigate BẮT BUỘC: archive VERBATIM trước rewrite (bài `feedback_status_handoff_tiering`) + re-ground count từ code |
|
||||
|
||||
**Khuyến-nghị của em: #3 (re-tier)** — vì tiering S40 là luật ĐÃ có mà 2 file này đang vi phạm (12 dòng nhưng 57K chars/dòng = dồn nhiều session vào 1 dòng thay vì archive); #2 chỉ đổi hình-dạng, không trả nợ gốc. Nhưng đây là quyết-định anh (carry anh đặt): **giữ / tách / re-tier?**
|
||||
|
||||
---
|
||||
|
||||
## B4 · `memory-budget.json:74` wording — diff 1-dòng chờ anh gật
|
||||
|
||||
Config này anh ký mark `RC-…01-58-01` ⇒ em không tự đổi. Literal xác nhận còn trên đĩa (chạm 2026-07-16): dòng 74 `_target_note` chứa cụm `"...judging a POSITIVE real-token headroom exists on the stable hot-load floor"`.
|
||||
|
||||
Vấn-đề: sau relabel S125 (notice-N = heuristic CẬN-TRÊN, không phải token thật), cụm **"real-token headroom"** trong điều-kiện owner-raise là nhãn cũ — chính class mislabel vừa đính-chính với hub.
|
||||
|
||||
**Diff đề xuất (đúng spec):**
|
||||
|
||||
```diff
|
||||
- ... ONLY after judging a POSITIVE real-token headroom exists on the stable hot-load floor.
|
||||
+ ... ONLY after judging a POSITIVE cận-trên (heuristic notice) headroom exists on the stable hot-load floor.
|
||||
```
|
||||
|
||||
Biến-thể B (nếu anh muốn giữ file toàn English cho đồng giọng): `"a POSITIVE upper-bound (heuristic-notice) headroom"`. Nội dung tương-đương, anh chọn 1 hoặc bảo giữ nguyên.
|
||||
|
||||
Phần caveat S115 phía sau dòng 74 đã có sẵn chữ "UPPER BOUND" — diff này chỉ làm vế điều-kiện đầu câu khớp nhãn với phần còn lại.
|
||||
@ -0,0 +1,13 @@
|
||||
# run — 2026-07-16-S126-adap-spec-execute
|
||||
|
||||
> Thực-thi spec `../2026-07-16-S125-fable-real-adap-review/spec-adap-review-s125-16-07-2026.md` (H21: /fable-real S125 propose → phiên này execute). Vào mạch qua `/tiep` — ground-truth khớp WAL 4/4.
|
||||
> 🔸 **Honest-note pilot H22 (D5):** WAL `next:` dự-kiến lead = Opus 4.8 MAX; THỰC-TẾ lead phiên này = **Fable 5** (owner-choice lúc mở phiên). ⇒ leg "resume ĐỔI-model" KHÔNG xảy ra (Fable→Fable); datapoint thu được = **cross-session same-model resume** OK. Side-benefit: lead=Fable làm A2 control MẠNH hơn (worker resolve `opus` ⇒ pin ăn THẬT, loại được giả-thuyết inherit-lead — điều không phân-biệt được nếu lead=Opus).
|
||||
|
||||
## taskList snapshot
|
||||
- **Đợt A** (Mode A return-delta-only — 2 task <3, args.run không bắt buộc): A1 `reviewer` + `tier:'fable'` probe (H23-precedence: spawn-param vs frontmatter HARD-PIN `model: opus` — case UNTESTED per spawn-model-audit.ps1:33) · A2 `investigator-codebase` no-tier (worker-pin runtime; kèm tally frontmatter 14 agent từ đĩa).
|
||||
- **Đợt B** (sau A, theo spec order): B1 sweep `all-inherit` floor-sống (investigator-codebase, no-tier — bổ sung datapoint A2). B2 verify memory body · B3/B4 🔒 OWNER soạn+surface KHÔNG execute · B6 /check-email — em-main. B5 closeout GỘP S125+S126 → /pause.
|
||||
|
||||
## Stages
|
||||
- [x] runtime-verify (A1+A2 spawn `wf_f960dae2-fa0` → spawn-model-audit → A3 memory-write) → `runtime-verify-synthesis.md` — **A1=fable (spawn thắng, /fable-real SỐNG) · A2=opus (pin ăn, lead=Fable control) · A3 file mới OK**
|
||||
- [x] sweep B1 (+ B2/B6 em-main) → `sweep-synthesis.md` — **15 floor-sống/5 file VÁ HẾT + 3 cùng-lớp lọt-pattern + Section-D flush (fault-inject 2-chiều PASS) + C3 seed +worker-tier-pin · B6: 0 mail mới, hub chưa xử 2 đề-nghị, email H23-result gated(FAIL→fix)+stamped+logged · B3/B4 soạn surface chờ anh**
|
||||
- [ ] closeout B5 — surface B3/B4 owner-gated + C carries re-stamp + D notes
|
||||
@ -0,0 +1,28 @@
|
||||
# runtime-verify synthesis — NHÓM A (A1·A2·A3) @S126 2026-07-16
|
||||
|
||||
> Stage 1 của run `2026-07-16-S126-adap-spec-execute` (thực-thi spec S125 §NHÓM A). Fan-out `wf_f960dae2-fa0`: 2 lane, Mode A return-delta-only, 43s, 0 error. Phép đo: `scripts/spawn-model-audit.ps1 -SessionId c0fa4300-e317-4d1c-ad41-e819e6eb0a42` (PA-2b — đọc resolved model từ transcript, KHÔNG tin lane tự khai).
|
||||
|
||||
## A1 · H23-precedence — KẾT QUẢ: **`fable`** (spawn-param THẮNG frontmatter hard-pin) ⇒ /fable-real SỐNG
|
||||
- Lane `wf_f960dae2-fa0/agent-a6e8ca7bdaf910195.jsonl` · agentType=`reviewer` · spawn `tier:'fable'` (hmw.js resolveModel → `model:'fable'` vào agent()).
|
||||
- Đối-kháng: frontmatter `reviewer.md:5 model: opus` + `:6 effort: max` (hard-pin S124; frontmatter đã ăn runtime — chứng bằng A2, không giả-định).
|
||||
- Resolved ĐO ĐƯỢC: **`claude-fable-5`** (3 assistant records).
|
||||
- ⇒ Acceptance "1 trong 2 chữ" = **`fable`**: spawn-param takes precedence over hard-pin ⇒ `/fable-real`·`/fable-clone` KHÔNG NO-OP, KHÔNG cần owner re-pin. Case này trước 2026-07-16 chưa có evidence — khác case frontmatter-`inherit` (wf_cb964f83-331, 07-15): ở đó `inherit` có thể chỉ là "defer to caller", không có contest; ở đây contest THẬT và param thắng.
|
||||
- Carry `[carry:h23-fable-test-postrestart]`: vế đo → ĐÓNG; vế "báo hub" (hứa s124-report §3) → B6.
|
||||
|
||||
## A2 · worker-tier-pin runtime — KẾT QUẢ: **`opus`** (pin ăn THẬT)
|
||||
- Lane `agent-a97d1fb7c0b985d21.jsonl` · agentType=`investigator-codebase` · KHÔNG tier (resolveModel → undefined → frontmatter tự lo).
|
||||
- Resolved ĐO ĐƯỢC: **`claude-opus-4-8`** (9 records) = `TIER2_EXPECTED_FULL_ID` — audit lúc đo: 2 dispatch / 2 explicit / 0 mismatch ⚠️ *(COUNTS của script = cumulative CẢ PHIÊN, tăng theo spawn sau — reviewer-gate đo lại 14:27 đã 4/4/0 vì chính 2 lane review; evidence bền = per-lane theo run-id `wf_f960dae2-fa0`, KHÔNG phải số tổng)*.
|
||||
- 🔴 Control MẠNH nhờ lệch-model ngoài kế-hoạch: **lead phiên = Fable 5** — nếu cơ-chế thật là inherit-lead thì lane này phải ra `claude-fable-5`. Nó ra `opus` ⇒ frontmatter pin LÀM VIỆC runtime. (Ở lead=Opus như WAL dự-kiến, "pin ăn" và "inherit-lead" cho CÙNG đáp-số — không phân-biệt được.)
|
||||
- Tally đĩa (lane A2 đếm): **14/14 `model: opus` + 14/14 `effort: max`** (line 5/6 frontmatter từng file), README.md loại đúng, 0 file lệch.
|
||||
|
||||
## A3 · autoMemoryDirectory WRITE-path — file MỚI ghi được
|
||||
- File mới: `.claude/auto-memory/project_h23_spawn_precedence.md` (mang fact THẬT từ A1/A2, không phải probe rỗng) + 1 dòng index `MEMORY.md`. Verify byte>0 chạy sau khi ghi (bài #53 0-byte-write).
|
||||
|
||||
## Finding phụ — stale-tooling cùng lớp "all-inherit" (chuyển đợt vá B1)
|
||||
1. `scripts/spawn-model-audit.ps1` **Section D** còn enforce H8 all-inherit (script viết @S119, trước S124) → chạy hôm nay ra **14 MED FLAG dương-giả** "frontmatter pins 'model: opus' — H8 says every agent inherits". Vá = flush kỳ-vọng theo canonical S124 (opus+max); giữ răng detector bằng fault-inject `-RepoRoot` cây tạm.
|
||||
2. Cùng file **Section E note 5**: "SE has 0 hard-pinned agents (12/12 inherit)" — stale (nay 14/14 hard-pin) + case hard-pin ĐÃ có evidence (chính phép đo A1 hôm nay). Header `:33-35`/`:41-54` đính-chính cùng đợt.
|
||||
3. `hmw.js:9` (meta) + `:44-51` comment "H23-precedence CHƯA test — restart-để-ăn" → stale sau hôm nay (lesson S108: comment stale làm worker đọc sai runtime). Vá cùng đợt B1.
|
||||
|
||||
## Pilot H22 — datapoint D5
|
||||
- `/pause` (S125, lead=Fable) → restart → `/tiep` (S126): sàn-3 §0 chạy đủ (3 tín-hiệu MẠNH đều CÓ và đều KHỚP chain — orphan folder = spec-holder đúng trạng-thái `[!]`), ground-truth verify 4/4 khớp, mạch nối 0 hỏi lại.
|
||||
- **Leg "đổi-model" KHÔNG xảy ra:** WAL `next:` dự-kiến lead Opus 4.8 MAX, thực-tế owner mở phiên Fable 5 (owner-choice) ⇒ datapoint thu được = **cross-SESSION same-model resume OK**; pilot cross-MODEL resume vẫn PENDING. Ghi memory `h22` @closeout — KHÔNG claim quá phép đo.
|
||||
@ -0,0 +1,39 @@
|
||||
# sweep-synthesis — B1 all-inherit floor-sống + đợt vá + B6/B2/B3/B4 @S126 2026-07-16
|
||||
|
||||
> Stage 2 của run `2026-07-16-S126-adap-spec-execute`. Sub: 1 lane `investigator-codebase` (`wf_973163d9-440`, no-tier — resolve `opus` = thêm 1 datapoint A2, 852s, return sạch). Em-main vá + fault-inject + verify.
|
||||
|
||||
## B1 · Sweep (sub đo, em-main VERIFY)
|
||||
- **Con số (grep-instance, 2 pattern `all-inherit` + `12/12…inherit|model: inherit`):** N_tổng=284 / floor-sống=17 instance (15 unique line / **5 file**) / lineage=32 (26 line) / frozen=235 (count-only). 17+32+235=284 ✓.
|
||||
- **Root-cause đúng class đã có memory:** S125 vá 2 command-file (`fable-real.md:37` · `fable-clone.md:43`) mà KHÔNG grep sibling ⇒ 5 file governance giữ `all-inherit` làm live-regime. Nặng nhất: `vocab-alias-map.md` §3 — doc canonical CHỐNG vocab-fork tự khai `all-inherit` = "Canonical (hiện hành)".
|
||||
- **+3 chỗ cùng-lớp LỌT pattern grep** (em-main tự thấy khi đọc để vá — không match literal): runbook `:119` "model = lead-runtime (inherit)" · `:227` template `model: inherit` (match nhưng đọc context mới thấy là spawn-arg sống) · `:110` collateral "inherit top-tier (mặc-định)".
|
||||
|
||||
## Đợt vá (em-main, 1 lượt grep-cùng-lớp trọn)
|
||||
| File | Chỗ vá | Hình-thức |
|
||||
|---|---|---|
|
||||
| `docs/governance/vocab-alias-map.md` §3 | restructure: canonical=`worker-tier-pin`, alias 2 đời (`all-inherit` · `two-tier`) + evidence đo S126 | 1 khối |
|
||||
| `docs/STATUS.md:25` | 3 cụm (nhãn mở-đầu · TOÀN-roster · monitor-frontmatter dated) + `:42` over-claim "ĐÃ vá" → khai SÓT-5-file | 4 edit |
|
||||
| `.claude/agents/README.md:5` | Architecture + Tier line → worker-tier-pin + lineage 3-đời | 2 edit |
|
||||
| `docs/governance/harness-11-engine.md` | `:298` J.C mechanism-ref · `:332` GAP-1 "CHE qua opus" · `:336` VACUOUSLY-MET dated-mark | 3 edit |
|
||||
| `docs/governance/fable-real-runbook.md` | `:108/:110/:119/:147/:221/:227/:367/:444/:520/:563/:642` — 4 hard cite-frontmatter-inherit (mechanism-claim VỠ → "PHẢI set `model:'fable'` param, param THẮNG pin đo S126") + 4 mild "CHE" re-attribute + 3 cùng-lớp | 11 chỗ |
|
||||
| `.claude/workflows/hmw.js` | `:9` meta + `:44-51` comment "CHƯA test" → ĐÃ ĐO S126 (kết-quả + caveat) | 2 edit |
|
||||
| `scripts/spawn-model-audit.ps1` | header (ii) UNTESTED→MEASURED · PRECEDENCE block +UPDATE · Section E.5 · **Section D flush H8→S124 (expect `opus`+`max`, +effort check mới)** | 5 khối |
|
||||
| `scripts/governance-detectors.ps1` | C3 seed `@('two-tier','all-inherit')` → +`'worker-tier-pin'` (fork all-inherit-vs-worker-tier-pin từng LIVE 5-file mà seed cũ MÙ) | 1 dòng+note |
|
||||
|
||||
## Chứng răng + verify (KHÔNG chỉ happy-path)
|
||||
1. **spawn-model-audit Section D fault-inject (cây tạm `-RepoRoot`):** inject `model: sonnet` (cicd-monitor) + xóa `effort: max` (database-agent) → **ĐÚNG 2 FLAG** đúng file:line, 12 file sạch IM, Section B NO-SCOPE (không bịa số). Happy-path repo thật: **TOTAL FLAGS 0** (từ 14 dương-giả) + `[OK] worker-tier-pin holds (14/14 model + 14/14 effort)`. Flag-count giảm = flush-theo-canonical, KHÔNG phải rời-tập-đo (anti-Goodhart: inject→FLAG).
|
||||
2. **Re-grep 5 file sau vá:** 20 hit còn lại (18 `all-inherit` + 2 `model: inherit`) — đối-chiếu TỪNG dòng = 100% lineage/alias-role (bảng alias vocab-map · "như thời all-inherit" · dated S66/S98/S101/S103 · mega-diary STATUS:6). **⇒ B1 acceptance ĐẠT: 0 floor-sống.**
|
||||
3. **governance-detectors full-suite sau vá:** TOTAL 45 = baseline S119-era (41 LOW known-noise ratio-band + 3 C3 standing-có-alias-map + 1 H24-3 `STATUS.md:6` label-lag S119-vs-S124 **pre-existing** → xử @B5 closeout). **0 flag MỚI từ đợt sửa.**
|
||||
|
||||
## B6 · check-email + báo hub (XONG)
|
||||
- STAGE 1: outbox/se 14/14 đã processed, **0 mail mới** ⇒ hub CHƯA reply đính-chính; 2 broadcast `do-token`/`h17-cadence-bookend` VẪN `NO-DECLARED-SHA`; snippet decode-hở `check-email.md` hub chưa vá. **KHÔNG stamp gì trước khi hub làm** — chỉ ghi-nhận chờ.
|
||||
- Backlog `outbox/all`: 2 file sau 07-15 18:00 đều ĐÃ có adap-report (erratum-h8-forward-pointer + phuong-phap-dem-token) ⇒ 0 tồn.
|
||||
- **Báo hub kết-quả A1** (hứa s124-report §3): email `2026-07-16-se-to-ai_infra-h23-precedence-test-result` — **reviewer-gate G-015 chạy TRƯỚC stamp, verdict FAIL bắt 3 lỗi thật** (① "Audit 2/2/0" non-reproducible — COUNTS cumulative cả-phiên, chính 2 lane review đẩy 2→4; ② "ba việc" thực chỉ 2 ask; ③ hedge hub-17/17 SE-self-obs) → sửa cả email + 2 chỗ internal đông-cứng cùng số → stamp `945cf3ad…` selftest MATCH + `stamp_verify.py` exit-0 + `_index` logged CÙNG lượt (bài reconcile S123).
|
||||
|
||||
## B2/B3/B4 · trạng-thái
|
||||
- **B2:** body `project_harness4` ĐÃ khớp S124 + update thêm kết-quả H23 (✅ carry (c) vế-memory đóng; vế STATUS:6 frozen-narrative → B5).
|
||||
- **B3+B4:** 🔒 OWNER — soạn xong `b3-b4-owner-gated-proposals.md` (B3: 3 phương-án giữ/tách/re-tier mega-line, em khuyến-nghị re-tier; B4: diff 1-dòng `memory-budget.json:74` + biến-thể English). **CHỜ ANH, chưa apply gì.**
|
||||
|
||||
## memoryDelta harvest (P3 — 3 lane phiên này, em-main VERIFY trước khi ghi)
|
||||
- `investigator-codebase` (B1-sweep): verdict 15-floor/5-file + learned "patch không grep sibling → runbook/engine/STATUS/README/vocab giữ all-inherit live" + surprise "vocab-alias-map tự khai canonical-stale" — VERIFIED khớp đĩa (em-main re-grep từng file) ✓.
|
||||
- `reviewer` (email-gate): learned "số AGGREGATE session-cumulative KHÔNG đưa vào outward artifact mời-reproduce; verify 'N việc nêu ở thư X' = MỞ thư đếm ASK thật" + surprise "chính hành-vi REVIEW làm inflate count 2→4" — VERIFIED (em-main đối-chiếu output script 2 mốc) ✓.
|
||||
- `reviewer` (A1-probe): trivial lane, learned "measurement lane giữ trivial để transcript sạch" ✓.
|
||||
Reference in New Issue
Block a user