[CLAUDE] Skill: adopt Harness 5 (model-fallback) + Harness 6 (governed-ultracode) via adap-apply + email ai_infra
All checks were successful
Deploy SOLUTION_ERP / build-deploy (push) Successful in 4m43s
All checks were successful
Deploy SOLUTION_ERP / build-deploy (push) Successful in 4m43s
- H5 model-availability-fallback: SE da de-facto fallback Fable->Opus 4.8 1M (Fable down 06-12); book caveat agents/README + H5.1 check session-start BUOC 0.6; KHONG RCA/memory-permanent (external outage). adap-report 2026-06-13. - H6 governed-ultracode: H6.1 auto-HMW mode-ON (ultra-on + session-start T4) + H6.2 hmw.js role-less default 'opus'->inherit lead; H6.7 role/memory-fidelity da san tu S49 (document). adap-report 2026-06-15. - /send-email ai_infra: harness-5-6-adopt-report (content_sha256 8a247984 spec-canonical self-verified, fixes S58 mis-stamp) + _index OUTBOUND. - Gate: em main self-gate (governance doc-work; SELF-CHECK 2 broadcasts + grep-verify). CI runs (hmw.js not paths-ignore) - passes, no app-code change. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@ -35,7 +35,7 @@
|
||||
|
||||
| Task | Owner | Status |
|
||||
|---|---|---|
|
||||
| _(**S63 docs-closeout S60-62 ✅** — reconcile stray reviewer cwd-misland (2 file → canonical + xóa stray) + commit harvest (cicd MEMORY Run #286 + gotcha #63/#64) + count-flush 4 file (ef-core/README/dep-audit/CLAUDE root) + session-log bù `2026-06-12-S60-S62-*`. **S60-62 product ĐÓNG TRỌN prod-verified:** Mig 50 ngân sách per-gói-thầu (Excel anh Kiệt) + XÓA module Budget cũ + gỡ "Từ chối" + vượt-NS cảnh-báo-mềm. **🔴 Ops còn — của anh (giữ từ S58/S59):** (1) `tzutil /g` VPS · (2) anh Chương email → dọn typo · (3) báo 5 real staff password `User@1234567` · (4) gán người thật CNTT → lock nv.cao/nv.truong. **NEXT (anh pick):** test-after guard suppliers authz + LockDemoSampleUsers · F4 approver-edit-budget UI (BE sẵn scope, chờ anh Kiệt) · PE panels polish · monthly audit 2026-07-01 (STATUS/HANDOFF re-tier trim S53-S56 → logs · curate L1 cicd-monitor **63.6KB** over-cap lần 5 + investigator-codebase 32.7KB · schema-diagram §16+ Mig 32-50 ERD). · Prev S59 ĐÓNG TRỌN 10 đợt Run #273→#282 (8 PASS + 2 cancelled-benign): wipe testing data (phiếu thật đầu = PE/2026/A/001 ✓) · tree 4 tầng Năm>Dự án>Hạng mục · 71 mã PMH chuẩn (wipe 15 demo + rename format anh Kiệt) · UAT 6 vòng 11 điểm (SearchableSelect gõ-lọc bỏ dấu + auto địa điểm + ẩn nút self-approve + quick-add NCC + multi-file + bảng NCC table-fixed + bỏ ô Tên ngân sách + GỠ field Điều khoản TT mọi form + bỏ nút Thêm hạng mục). Bundle FINAL `B1DtNT9C`/`D6uF3Mln`. **🔴 Ops còn — của anh (giữ từ S58):** (1) `tzutil /g` VPS → confirm `SE Asia Standard Time` · (2) xác nhận anh Chương email nào → dọn `chuong.phan@solution.com.vn` typo · (3) báo 5 real staff password mặc định `User@1234567` + yêu cầu đổi · (4) khi gán người thật vào CNTT → thêm nv.cao/nv.truong vào lock list. **NEXT (anh pick):** test-after guard (🟪 test-specialist: `LockDemoSampleUsersAsync` S58 + suppliers asymmetric authz POST-open/PUT-DELETE-locked S59) · PE panels polish sâu (PeDetailTabs 111KB session riêng) · FE PermissionGuard per-route khi golive HRM/Office (flip revoke) · Phase 9 Ops (SMTP/backup/creds/UAT) · monthly audit 2026-07-01 (**STATUS/HANDOFF re-tier — defer ×2, ƯU TIÊN** · curate L1 cicd-monitor **~56KB** (S59 +9 cicd-spawn, H2-đo 54KB + 2 entry cuối) + investigator-codebase 32.9KB · schema-diagram §16+ Mig 32-49 ERD debt). → session log `2026-06-11-S59-wipe-tree-pmh-uat-batch.md`)_ | 👤 | ✅ |
|
||||
| _(**S63 docs-closeout S60-62 + adopt Harness 5/6 ✅** — [adap-apply H5 model-fallback (SE đã de-facto Opus 4.8 1M do Fable down 06-12, book caveat + session-start BƯỚC 0.6) + H6 governed-ultracode (auto-HMW mode-ON + hmw.js role-less→inherit; H6.7 đã sẵn) → 2 adap-report + email ai_infra] · reconcile stray reviewer cwd-misland (2 file → canonical + xóa stray) + commit harvest (cicd MEMORY Run #286 + gotcha #63/#64) + count-flush 4 file (ef-core/README/dep-audit/CLAUDE root) + session-log bù `2026-06-12-S60-S62-*`. **S60-62 product ĐÓNG TRỌN prod-verified:** Mig 50 ngân sách per-gói-thầu (Excel anh Kiệt) + XÓA module Budget cũ + gỡ "Từ chối" + vượt-NS cảnh-báo-mềm. **🔴 Ops còn — của anh (giữ từ S58/S59):** (1) `tzutil /g` VPS · (2) anh Chương email → dọn typo · (3) báo 5 real staff password `User@1234567` · (4) gán người thật CNTT → lock nv.cao/nv.truong. **NEXT (anh pick):** test-after guard suppliers authz + LockDemoSampleUsers · F4 approver-edit-budget UI (BE sẵn scope, chờ anh Kiệt) · PE panels polish · monthly audit 2026-07-01 (STATUS/HANDOFF re-tier trim S53-S56 → logs · curate L1 cicd-monitor **63.6KB** over-cap lần 5 + investigator-codebase 32.7KB · schema-diagram §16+ Mig 32-50 ERD). · Prev S59 ĐÓNG TRỌN 10 đợt Run #273→#282 (8 PASS + 2 cancelled-benign): wipe testing data (phiếu thật đầu = PE/2026/A/001 ✓) · tree 4 tầng Năm>Dự án>Hạng mục · 71 mã PMH chuẩn (wipe 15 demo + rename format anh Kiệt) · UAT 6 vòng 11 điểm (SearchableSelect gõ-lọc bỏ dấu + auto địa điểm + ẩn nút self-approve + quick-add NCC + multi-file + bảng NCC table-fixed + bỏ ô Tên ngân sách + GỠ field Điều khoản TT mọi form + bỏ nút Thêm hạng mục). Bundle FINAL `B1DtNT9C`/`D6uF3Mln`. **🔴 Ops còn — của anh (giữ từ S58):** (1) `tzutil /g` VPS → confirm `SE Asia Standard Time` · (2) xác nhận anh Chương email nào → dọn `chuong.phan@solution.com.vn` typo · (3) báo 5 real staff password mặc định `User@1234567` + yêu cầu đổi · (4) khi gán người thật vào CNTT → thêm nv.cao/nv.truong vào lock list. **NEXT (anh pick):** test-after guard (🟪 test-specialist: `LockDemoSampleUsersAsync` S58 + suppliers asymmetric authz POST-open/PUT-DELETE-locked S59) · PE panels polish sâu (PeDetailTabs 111KB session riêng) · FE PermissionGuard per-route khi golive HRM/Office (flip revoke) · Phase 9 Ops (SMTP/backup/creds/UAT) · monthly audit 2026-07-01 (**STATUS/HANDOFF re-tier — defer ×2, ƯU TIÊN** · curate L1 cicd-monitor **~56KB** (S59 +9 cicd-spawn, H2-đo 54KB + 2 entry cuối) + investigator-codebase 32.9KB · schema-diagram §16+ Mig 32-49 ERD debt). → session log `2026-06-11-S59-wipe-tree-pmh-uat-batch.md`)_ | 👤 | ✅ |
|
||||
|
||||
**S40 done:** ✅ Consolidation (`d2f52ba`) · ✅ Curate 4 agent MEMORY >25KB→<8.4KB (`78c9de3`) · ✅ RAG catch-up chunk S37-S40 (rerank 0.867) · ✅ **AI_INFRA bulletin 2026-05-29 adopt 4/4** (MỤC2 Tiered Memory Policy v1 `6f08d1f` + MỤC3 /session-start+/session-end slash commands `c8ff5e1`). ⏳ Full RAG re-index = AI_INFRA op (cần VOYAGE_API_KEY).
|
||||
|
||||
|
||||
@ -0,0 +1,29 @@
|
||||
# adap-report — 2026-06-13-Governance-harness-5-model-availability-fallback
|
||||
|
||||
> SISTER = SOLUTION_ERP. Report-format LOCK (5 trường). Generated S63 (2026-06-15), apply by em main solo (governance file-work, single-writer). Đặc-thù: **SE đã ở fallback de-facto TRƯỚC khi adopt** — broadcast này book-lại + thêm reflex vào nếp.
|
||||
|
||||
## 1. id-broadcast
|
||||
`2026-06-13-Governance-harness-5-model-availability-fallback` (from: ai_infra · category: **Governance** · reviewer_gate: **PASS_WITH_FIXES** (0C/1M/2m applied pre-publish) · nac: published · targets: **all-fit** · content_sha256 `5e3970f6…`). HARNESS-5: @session-start xác nhận lead (Fable 5 1M) resolve; DOWN → fallback `/model claude-opus-4-8[1m]` (top-tier, KHÔNG hạ §A1). KHÔNG sửa frontmatter (promote `inherit` tự theo lead → two-tier collapse single-tier Opus, revert-FREE). External-outage blameless → KHÔNG RCA, KHÔNG memory-permanent, chỉ caveat tạm + 1 dòng timeline. Phản xạ THỦ-CÔNG (không hook tự-switch).
|
||||
|
||||
## 2. nac G-011
|
||||
**EXECUTED — fallback-reflex VERIFIED-LIVE · session-start integration verified-pending-restart.**
|
||||
- **Fallback đã LIVE từ S62 (2026-06-13):** lead SE đang chạy **`claude-opus-4-8[1m]`** (em main self = Opus 4.8 1M, system-prompt). Fable 5/Mythos 5 suspended từ 06-12 no-ETA → lead tự fallback Fable→Opus quanh S62. **H5.2/H5.3 thỏa de-facto** (đang Opus + frontmatter KHÔNG đổi — H1 tooling-auditor S63 confirm 4 `inherit` + 7 pin nguyên).
|
||||
- **H5.1 (session-start check)** = **EXECUTED-FILE** (`.claude/commands/session-start.md` BƯỚC 0.6 mới) → **verified-pending-restart** (command `.md` no hot-reload — SE-fact S47/S52).
|
||||
- **H5.5 bookkeeping** = DONE (caveat tạm `agents/README.md` + adap-report này + STATUS timeline; KHÔNG RCA, KHÔNG memory-permanent). **H5.6 restore** = documented (pending Fable return).
|
||||
|
||||
## 3. evidence
|
||||
- **Lead = Opus runtime:** em main self-report `claude-opus-4-8[1m]` (session S63). Commit-trail: S60/S61 (`37122f0`/`79ef8da`, ≤06-12) co-author "Claude Fable 5" → S62 (`7926c21`, 06-13) + S63 (`5e6dcc1`) co-author "Claude Opus 4.8 (1M context)" = **điểm fallback quan-sát-được ~06-13** đúng lúc outage 06-12.
|
||||
- **H5.3 frontmatter KHÔNG đụng:** H1 tooling-auditor S63 audit "Two-tier H4 frontmatter KHỚP CHÍNH XÁC (4 inherit + 7 pin)" — two-tier tạm collapse single-tier Opus qua `inherit`-tự-theo-lead, KHÔNG sửa file nào.
|
||||
- **Files edited (2 + 1 report):** `.claude/commands/session-start.md` (BƯỚC 0.6 model-check H5.1 + restore H5.6) · `.claude/agents/README.md` (caveat tạm "Fable/Mythos suspended 2026-06-12 no-ETA → lead tạm Opus 4.8 1M Max; inherit tự theo; revert khi về") · adap-report này. STATUS timeline 1-dòng.
|
||||
- **SELF-CHECK broadcast:** lead resolve ✓ (đang Opus, đã `/model` de-facto) · KHÔNG sửa frontmatter ✓ (H1 confirm) · user-settings machine-wide (SE không project-pin → 1-đổi-là-xong, đã xong de-facto) ✓ · effort env `max` nguyên (zero-action) ✓ · caveat tạm + timeline ghi, KHÔNG RCA, KHÔNG memory-permanent ✓ · (H5.6) restore documented ✓.
|
||||
|
||||
## 4. tailored-gì + skip-gì-vì-sao
|
||||
- **FUNCTION-floor adopt FULLY:** H5.1→H5.6 đủ. SE đặc-thù = phần FALLBACK (H5.2/3/5) đã xảy ra TRƯỚC adopt (outage thật hit SE) → adap-apply = **book-lại + thêm H5.1 reflex vào session-start** cho session sau khỏi kẹt.
|
||||
- **FORM tailored SE:** H5.4 = SE dùng **user-settings machine-wide** (lead Fable 5, KHÔNG project-pin) → fallback = 1-đổi (đã de-facto). Caveat đặt ở `agents/README.md` (= "rule model" của SE) + session-start BƯỚC 0.6 (reflex).
|
||||
- **SKIP:** không project-pin model phải gỡ (n-a — khác VIPIX). Helper Sonnet rẻ n-a (SE không có).
|
||||
|
||||
## 5. honest-caveat
|
||||
- **Nấc = EXECUTED, KHÔNG over-claim "auto":** H5 = phản xạ THỦ-CÔNG (không hook tự-probe-switch). Fallback de-facto đã xảy ra (lead Opus) nhưng H5.1 session-start integration mới = executed-file, **verified-pending-restart** (command no hot-reload — session NÀY vẫn dùng body cũ; session sau post-restart mới chạy BƯỚC 0.6 tự động).
|
||||
- **KHÔNG RCA / KHÔNG memory-permanent** (đúng H5.5 — external outage blameless, sự kiện tạm sẽ stale khi Fable về). Caveat + report này = bản ghi tạm, **GỠ khi H5.6 restore**.
|
||||
- **Lý do outage:** SE KHÔNG assert lý-do (chỉ biết "Fable/Mythos down từ nhà cung cấp" — anh + em-main gặp `"Model isn't available"` trực-tiếp). Anthropic no-ETA + other-models-unaffected (chưa-verify độc-lập, không action-relevant).
|
||||
- **Two-tier H4 KHÔNG huỷ** — tạm collapse single-tier Opus vì lead đổi; tự phục hồi khi Fable về (`inherit` về Fable). `[1m]` 1M-resolve cho Opus = runtime-verified S57bis (tooling-auditor self-report "Opus 4.8 (1M context)").
|
||||
@ -0,0 +1,34 @@
|
||||
# adap-report — 2026-06-15-Agent-harness-6-governed-ultracode
|
||||
|
||||
> SISTER = SOLUTION_ERP. Report-format LOCK (5 trường). Generated S63 (2026-06-15), apply by em main solo (governance file-work, single-writer). Đặc-thù: **~80% ĐÃ có sẵn** từ HMW-engine (broadcast ultracode-hmw S49 + Harness-4) — adopt = thêm H6.1 auto-default + flip H6.2, H6.7 chỉ document.
|
||||
|
||||
## 1. id-broadcast
|
||||
`2026-06-15-Agent-harness-6-governed-ultracode` (from: ai_infra · category: **Agent** · reviewer_gate: **PASS** (0C/0M/2-MINOR) · nac: published · targets: **all-fit** · content_sha256 `53fff1c7…`). HARNESS-6: nâng `/ultra-on` thành "ultracode CÓ-GUARD" — mode-ON: task SUBSTANTIVE TỰ chạy workflow (KHÔNG cần gõ "workflow") · workflow-agent inherit lead-model · **H6.7a role-fidelity** (agentType = vai roster THẬT) · **H6.7b memory-fidelity** (memoryDelta → đúng agent-memory single-writer) · guard giữ (KHÔNG native ultracode · checkpoint INFORM · no-cross-project).
|
||||
|
||||
## 2. nac G-011
|
||||
**EXECUTED-FILE — H6.7 pre-satisfied (VERIFIED prior) · H6.1 verified-pending-restart · H6.2 live-next-workflow-run.**
|
||||
- **H6.7a/b = ĐÃ LÀ FLOOR TRƯỚC H6** (verified S49 ultracode-hmw + runtime S57bis): SE `hmw.js` đã có `VALID_ROLES` whitelist 9 vai THẬT + fail-soft default-subagent cho role lạ (H6.7a); R1 return-contract `memoryDelta{task,verdict,learned,surprise}` + B3 em-main single-writer VERIFY→APPEND (H6.7b). → adopt = **document + confirm**, KHÔNG build mới.
|
||||
- **H6.1 (auto-HMW default)** = **EXECUTED-FILE** (`ultra-on.md` bullet H6.1 + `session-start.md` T4) → **verified-pending-restart** (command no hot-reload).
|
||||
- **H6.2 (workflow-agent inherit default)** = **EXECUTED-FILE LIVE-next-run** (`hmw.js` role-less `'opus'`→`undefined`/inherit; hmw.js đọc lúc workflow-run → KHÔNG cần restart, hiệu lực workflow kế).
|
||||
|
||||
## 3. evidence
|
||||
- **H6.1 files:** `.claude/commands/ultra-on.md` (+bullet 🟢 H6.1 mode-ON auto-HMW substantive/trivial-solo + line-9 model fix) · `.claude/commands/session-start.md` (T4 + H6.1 mode-ON auto-HMW).
|
||||
- **H6.2 file:** `.claude/workflows/hmw.js` `resolveModel()` — role-less `return 'opus'` → `return undefined` (inherit lead-model top-tier); comment + log cập nhật "per-task tier:'opus' = escape-hatch sweep/cost". **Live next workflow-run** (no restart).
|
||||
- **H6.7a pre-existing:** `hmw.js:22-24` `VALID_ROLES` = 9 vai roster THẬT (investigator-codebase·investigator-api·implementer-backend·implementer-frontend·test-specialist·reviewer·cicd-monitor·frontend-designer·database-agent) + `hmw.js:98-99` whitelist check → role lạ = default subagent + WARN. **2 monitor (tooling-auditor/harvest-curator) CỐ Ý ngoài VALID_ROLES** (spawn ở session-boundary, KHÔNG fan-out workflow) — khớp H6.7a "loại vai ngoài-ranh-giới-workflow".
|
||||
- **H6.7b pre-existing:** `ultra-on.md` §KỶ LUẬT KÝ ỨC R1 (return-only) + B2 harvest-liền + B3 single-writer APPEND-only. memoryDelta round-trip runtime-verified S49/S57bis.
|
||||
- **SELF-CHECK broadcast:** mode-ON auto-author substantive ✓ (T4+bullet) · agentType = vai THẬT ✓ (VALID_ROLES sẵn) · workflow-agent inherit lead ✓ (H6.2 flip + promote-inherit) · memoryDelta→đúng agent-memory single-writer ✓ (B3 sẵn) · vai cross-project loại ✓ (SE không có cross-project role; monitor ngoài workflow) · guard giữ ✓ (KHÔNG native ultracode line 17 · checkpoint INFORM P-table · no-cross-project S1).
|
||||
|
||||
## 4. tailored-gì + skip-gì-vì-sao
|
||||
- **FUNCTION-floor adopt FULLY:** H6.1→H6.7 đủ.
|
||||
- **FORM tailored SE:**
|
||||
- **H6.2 = thay đổi THẬT:** SE H4 từng đặt role-less default = `'opus'` (justify "sweep-class taskList lead-author" — adap-report H4 §4). H6.2 supersede: default → **inherit lead** (top-tier), `tier:'opus'` thành **escape-hatch tường-minh** cho sweep/cost. (Fable down hiện tại: inherit = Opus = bằng cũ; khi Fable về: role-less → Fable lead thay vì pin Opus — đúng intent H6.2.)
|
||||
- **H6.1 coexist T4:** T4 keyword=quyền vẫn áp cho **mode-OFF** (chống 515K-token false-trigger); H6.1 auto-HMW chỉ khi **mode-ON** (marker = standing consent). KHÔNG mâu thuẫn.
|
||||
- **Trivial-solo mở rộng:** SE thêm "governance-authoring single-writer → solo" (vd adap-apply NÀY — sub không viết governance thay lead được).
|
||||
- **SKIP/n-a:** H6.7a cross-project-exclusion = SE **không có** vai cross-project (monitor audit SE-only, đã ngoài workflow) → exclusion = n-a-vì-không-có, KHÔNG behind.
|
||||
|
||||
## 5. honest-caveat
|
||||
- **H6.1 = floor HÀNH-VI của lead, KHÔNG automation cứng** (đừng claim "100% tự-động") — lead theo nếp tự-nhận-diện substantive. **Verified-pending-restart** (command no hot-reload → session NÀY vẫn body cũ; nhưng em-main đã theo tinh-thần H6.1 trong session này: adap-apply = governance-authoring → SOLO đúng, KHÔNG fan-out).
|
||||
- **"Auto-HMW" ≠ "workflow mọi task"** — trivial + governance-single-writer vẫn solo (giữ chống token-nổ). KHÔNG slide sang native-ultracode.
|
||||
- **H6.2 inherit = theo lead hiện-tại:** lead đang fallback Opus (H5) → inherit = Opus (top-tier khả-dụng), KHÔNG phải "hạ model". Khi Fable về → inherit tự lên Fable.
|
||||
- **H6.7 KHÔNG mới-build** — đã là floor SE từ S49; adopt = re-confirm + document (honest: không over-claim "vừa thêm").
|
||||
- **Native `/effort ultracode` vẫn CẤM** (line 17 ultra-on) — H6 = HMW governed thay thế, đủ guard.
|
||||
Reference in New Issue
Block a user