[CLAUDE] Docs: S101 check-email AI_INFRA + H19 fable-clone formal adopt + model-tier 12/12

- check-email batch13 ack (SE caught-up H-17, Fable-restore H-8 recognized) + re-stamp H10 body-hash 5f511fe5->5f8b8504 (no-strip->canonical) + frontier flag#2 RESOLVED (AI_INFRA re-stamped 8b6a8354=SE-computed)
- model-tier bundle 07-03: 12/12 (all-inherit form-valid; v2-pin-simple not-adopted) + Q1/Q2 documented + selftest-stamp -> send-email 6c
- H19 fable-clone FORMAL ADOPT + RC-stamp RC-pqhuy1987-03-07-2026-17-46-35: 2 command fable-real/fable-clone (that/ao toggle, semantic-inverse) + marker gitignored + engine SS-K (K.A-K.D + 3 floor-fidelity gap) + session-start BUOC 0.5b reader (WF2-Lane-A fix marker-write-only) + 4 adap-report
- 2-workflow Harness-9: WF1 wf_5f308fd8-744 SOUND_WITH_CONCERNS (lost-to-interruption->resume-cached) + WF2 wf_ed5b972f-a4d PASS_WITH_CONCERNS 0-BLOCKING
- mapping reviewer + investigator-codebase; VACUOUSLY-MET-honest (all-inherit->0 runtime-delta; value=future-proof-floor + anti-consensus-catch NOT cost; nac designed+will-dogfood)
- GAP-3 AS-10 fired LIVE (WF1+WF2 lanes auto-harvested agent-memory -> dogfood-validate convention-not-mechanism; harness-sanctioned, verified, KEPT)
- email AI_INFRA harness-19-adopt-plus-model-tier (selftest-stamp 6c PASS)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
pqhuy1987
2026-07-03 18:22:28 +07:00
parent f229b07f39
commit e35066016f
20 changed files with 274 additions and 4 deletions

View File

@ -0,0 +1,15 @@
---
description: Về Fable-clone mode (H19, MẶC-ĐỊNH) — 2 vị-trí phán-quyết (reviewer + investigator-codebase) chạy ensemble tier-2-mạnh-nhất (N lane đa-lăng-kính CÙNG vai + em-main refute+synthesize) thay top-model thật. Xóa marker fable-real-mode.on. Cặp /fable-real.
---
# /fable-clone — Về Fable-clone (ảo / ensemble, MẶC-ĐỊNH) cho 2 vị-trí phán-quyết (H19)
> Cặp **`/fable-real`**. 🔴 restart Claude Code sau khi tạo/sửa (no hot-reload).
> Xóa marker `.claude/fable-real-mode.on` (Remove-Item; không có → "đã ở ảo-mode sẵn"). Về **MẶC-ĐỊNH**: 2 vị-trí phán-quyết chạy **ensemble tier-2** = "bản sao Fable" — để dành quota top-model cho lead.
> **Ảo-ensemble = reuse HMW** (hmw.js `parallel` multi-lane + em-main P3/P4 refute+synthesize) — pattern đã dogfood **S101 WF2** (3-lane reviewer bắt README:51 stale-label mà token-exact sweep sót, commit `f229b07`). KHÔNG cần build engine mới.
## 🔴 Guard (§K engine — bất-biến cả 2 mode)
- **N lane CÙNG 1 vai phán-quyết** (reviewer HOẶC investigator-codebase, multi-lens), KHÔNG mixed-roster fan-out.
- **N lane RETURN-only** → em-main single-writer ghi 1 MEMORY entry + nhãn engine (H19 §5).
- Phạm-vi CHỈ 2 vị-trí; lead + mọi vai khác KHÔNG đụng (H19 §3).
- Bật/tắt mode = quyền anh (gõ lệnh), KHÔNG auto.

View File

@ -0,0 +1,26 @@
---
description: BẬT Fable-real mode (H19) — 2 vị-trí phán-quyết (reviewer=cổng-cuối + investigator-codebase=ground-truth) chạy SINGLE top-model THẬT (deep pass) thay ensemble ảo. /fable-clone về mặc-định. Gõ = anh CONSENT nâng 2 vị-trí lên top-model chế-độ thật (H19 §4, không tự-động).
argument-hint: (trống = bật thật-mode · hoặc kèm task phán-quyết đầu tiên)
---
# /fable-real — BẬT Fable-real (thật / single top-model) cho 2 vị-trí phán-quyết (H19)
> Cặp **`/fable-clone`**. 🔴 restart Claude Code sau khi tạo/sửa (command `.md` no hot-reload).
> **Adopt H19 (S101, 2026-07-03)** — floor-change model-tier, RC-stamp `RC-pqhuy1987-03-07-2026-17-46-35` (`ACTIVE-MARKS.md`). Gõ lệnh = **anh CONSENT** cho 2 vị-trí phán-quyết chạm **top-model chế-độ THẬT** (single deep run) — KHÔNG tự-động, CHỈ khi anh gõ (H19 §4/§9 point-2).
> **Mode persist qua marker:** `/fable-real` → em main tạo `.claude/fable-real-mode.on` (Write) → SỐNG qua session/compact. `/fable-clone` xóa (về ảo mặc-định). marker = source-of-truth · **gitignored** (KHÔNG commit — tránh thật-mode kẹt-ON khi clone = burn quota top-model).
**Task phán-quyết đầu (nếu có):** $ARGUMENTS
## 🔴 Phạm-vi SÀN (H19 §3 — bất-biến, KHÔNG lan sang vai khác)
- CHỈ **2 vị-trí phán-quyết**: `reviewer` (cổng rà-soát cuối — adversarial + thử-phá + phân-xử) + `investigator-codebase` (ground-truth/xác-minh sự-thật — truy bằng-chứng gốc chống bịa + RCA). KHÔNG vai khác.
- **Lead** luôn top-model (tuyệt-đối KHÔNG đụng). **Mọi vai khác** (implementer/test/cicd/frontend-designer/…) giữ model mặc-định như cũ.
- Đổi mode CHỈ khi anh gõ lệnh — KHÔNG auto theo số-dư/cảm-tính (giữ quyết-định-khách-quan, mark `RC-…10-29-09`).
## Cơ-chế 2 mode (H19 §4)
- **Fable-real (thật, marker CÓ):** 2 vị-trí chạy **1 lần top-model trực-tiếp** (sâu nhất, đắt nhất). Fable up = single-Fable; Fable down (H5) = single-Opus-1M fallback **theo từng lần chạy** (KHÔNG đổi mode toàn-cục).
- **Fable-clone (ảo, marker VẮNG = mặc-định):** 2 vị-trí chạy **ensemble tier-2-mạnh-nhất** — N lane đa-lăng-kính **CÙNG 1 vai** (qua HMW `parallel`) + em-main **refute + synthesize** (P3/P4) → "bản sao Fable". Rẻ quota top-model, giữ tầng phản-biện chống-đồng-thuận-sai.
## 🔴 Guard ensemble (§K engine — 3 floor-fidelity, WF1 `wf_5f308fd8-744` bắt)
- **ảo-ensemble = N lane CÙNG 1 vai phán-quyết** (multi-lens trên 1 vai), **KHÔNG** mixed-roster fan-out (hmw.js VALID_ROLES nhận cả 9 vai, KHÔNG gate — all-inherit che leak tới khi Fable về).
- **N lane RETURN-only**; em-main single-writer (B3) ghi **1 MEMORY entry** đúng vai đó + **gắn nhãn engine đã dùng** (H19 §5 — hmw SCHEMA `memoryDelta` KHÔNG có field engine → em-main stamp @P3 harvest).
- Một vai = một trí-nhớ dù chạy thật/ảo/engine nào (chống AS-10 fragment N-lane).

View File

@ -29,6 +29,7 @@ argument-hint: <to_project> [category] [intent...]
5. **Frontmatter:** `id · from: se · to: <to> · category · type: broadcast|update|fix|report|request|coord · date · content_sha256 · nac: sent`.
6. **Ghi** `broadcasts/outbox/<to>/<id>.md` (**Write tool**, KHÔNG shell-write — chống mojibake). [chỉ repo MÌNH §J2]
6b. **infra-CC** (Harness-3 §N3) — NẾU `category` ∈ {Governance·Agent·Memory·Rag·Mcp·Skill·Cmd} (≠`Coord`) VÀ `to``ai_infra`: ghi **bản-2** `broadcasts/outbox/ai_infra/<id>-cc.md` (Write tool — repo MÌNH = §J2-safe, KHÔNG ghi inbox ai_infra) — **body + `content_sha256` Y HỆT** primary; frontmatter `id: <id>-cc · from: se · to: ai_infra · cc-of: <to> · category · type · date · content_sha256 · nac: sent`. (Đã có `outbox/ai_infra/.gitkeep`.) → AI_INFRA pull qua `/check-email se`.
6c. **🔴 Selftest-stamp (H19-ack 2026-07-03 — chống sai-phương-pháp + sửa-sau-stamp):** NGAY sau Write, recompute `SHA256(body-canonical)` file vừa ghi (Y HỆT bước 4: split-frontmatter + strip-1-leading-newline + UTF8) → so `content_sha256` frontmatter. **Lệch → ABORT gửi + báo anh** (KHÔNG log `_index`, KHÔNG relay). Khớp → tiếp. *(Bài học: file `2026-06-18-...harness-10...` stamp bằng body KHÔNG-strip-newline → lệch canonical, AI_INFRA bắt; 12/13 file khác đúng. Bước này chẩn cả 2 lớp lỗi.)*
7. **Log** append `broadcasts/_index.md` §OUTBOUND (+ 1 row tag `cc` nếu có bản-2).
8. **Báo.** KHÔNG tự relay — bên nhận tự `/check-email se`.

View File

@ -24,6 +24,14 @@ Em main đọc `.claude/hmw-mode.on` → **BÁO ngay đầu response** (anh kh
> 🚦 **T4 + H6.1 (governed-ultracode, adopt S63):** keyword "workflow"/"ultracode" = **QUYỀN hỏi** khi **mode-OFF** (+ "chạy workflow" → em **TỪ CHỐI + nhắc gõ `/ultra-on`**). 🟢 **Mode-ON (H6.1): task SUBSTANTIVE (≥2 bước độc-lập · multi-file · sweep/audit/review/migration/research/verify-heavy) → em TỰ author+chạy Workflow HMW (KHÔNG cần gõ "workflow"; marker-ON = consent); TRIVIAL (<2-3' · 1-file · hỏi-đáp · governance-authoring single-writer) → solo.** CẤM native `/effort ultracode` (mất guard).
## 📋 BƯỚC 0.5b — Fable-real/clone mode marker check (H19 — adopt S101)
Em main đọc `.claude/fable-real-mode.on`**BÁO ngay** (mode phán-quyết 2 vị-trí `reviewer` + `investigator-codebase`):
- **Marker TỒN TẠI** → **🔴 Fable-real mode = ON** — 2 vị-trí phán-quyết chạy SINGLE top-model THẬT (deep pass). `/fable-clone` về ảo-ensemble.
- **Marker KHÔNG có** → **🟢 Fable-clone mode (MẶC-ĐỊNH, ảo)** — 2 vị-trí chạy ensemble tier-2 (N lane CÙNG vai + em-main synthesize) khi heavy-judgment. `/fable-real` bật thật.
> 🚦 **H19 §3 scope:** mode CHỈ đổi model 2 vị-trí phán-quyết (reviewer=cổng-cuối · investigator-codebase=ground-truth) — **lead + mọi vai khác KHÔNG đụng**. Đổi mode = quyền anh gõ lệnh (KHÔNG auto/số-dư). ⚠️ **Vacuously-inert dưới all-inherit + Fable-outage** (2 vị-trí đã top-model) → báo-mode để future-proof + nhắc anh khi Fable về + phân-tầng. (Reader này đóng gap WF2-Lane-A "marker write-only": marker giờ có consumer.)
## 📋 BƯỚC 0.6 — Model-availability check (H5 — adopt S63)
Em main xác nhận **lead model resolve được** đầu session. Lead SE = **Fable 5 (1M) Max** (per H4). **DOWN** = lỗi `"Model isn't available — claude-fable-5[1m]"` → fallback **`/model claude-opus-4-8[1m]`** (Opus 4.8 · 1M · Max — top-tier, KHÔNG hạ §A1; **KHÔNG sửa frontmatter agent** — promote `inherit` tự theo lead → two-tier tạm collapse single-tier Opus, **revert-FREE** khi Fable về). Phản xạ THỦ-CÔNG (không hook tự-switch). ✅ **Fable RESTORED 2026-07-02 (S98)** — lead chạy `claude-fable-5[1m]` (settings.json:11) + spawn-test inherit ×2 monitor self-report `claude-fable-5` → H5.6 hoàn tất, caveat suspended-2026-06-12 (fallback Opus S62→S97) đã gỡ. Nếu DOWN lại → fallback theo quy trình trên.