[CLAUDE] Docs: adopt Harness-17 memory self-improvement loop (Đo→Tinh-chỉnh→Kiểm) — 2-workflow, 0 prod code
All checks were successful
Deploy SOLUTION_ERP / build-deploy (push) Successful in 5m8s
All checks were successful
Deploy SOLUTION_ERP / build-deploy (push) Successful in 5m8s
- engine §I codify 10 red-floor: A1 HCV/A2 load-fid/B1 signal→action/B2 CG-1 termination/B3 build-gap-vs-floor-rot/C1 spec-audit/C2 spot-check/C3 single-writer/C4 provenance/CG-2 age-exempt - REUSE-cite (no rebuild): A2=§H MFE · C3=D9 · CG-2=§G.2b value_protect · archive=§A - new mechanized: scripts/memory-selfimprove-audit.ps1 (C1 spec-audit NO-API exit-0, runtime-verified — bắt frontend-designer over-cap GAP thật) - new: .claude/governance/reinject-ledger.md (B2 CG-1 git-tracked append-only N=3, tách khỏi budget.json) - wire session-start §2.1.7 (loop-DÒ) + session-end §L.b(c) (loop-REFINE) - vocab: HCV alias no-seed (coverage 3-way) + governance-detectors C3-comment; cap-fix 220K→380K-pointer - 2-workflow (Harness-9): WF1 wf_f085d7c4-d78 (ground-truth) + WF2 wf_8e73c1d6-ee6 (3-lane PASS 0-blocking) - adap-report + checklist-pointer + email AI_INFRA (hash 54789e19, hash-verified self-consistent) - dogfood: WF1 agent self-write MEMORY.md reverted (D9/AS-10 containment; archive missing → saved 8.5KB) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@ -36,3 +36,4 @@
|
||||
| 2026-06-20 | 2026-06-20-se-to-ai_infra-harness-15-adopt-report | se → ai_infra | outbox/ai_infra | bb8fb6e803ae |
|
||||
| 2026-06-21 | 2026-06-21-se-to-ai_infra-harness-15-v2-adopt-report | se → ai_infra | outbox/ai_infra | a749bb6bd1be |
|
||||
| 2026-06-29 | 2026-06-29-se-to-ai_infra-harness-16-mfe-report | se → ai_infra | outbox/ai_infra | da768330fadc |
|
||||
| 2026-07-01 | 2026-07-01-se-to-ai_infra-harness-17-adopt-report | se → ai_infra | outbox/ai_infra | 54789e1992c6 |
|
||||
|
||||
@ -0,0 +1,50 @@
|
||||
---
|
||||
id: 2026-07-01-se-to-ai_infra-harness-17-adopt-report
|
||||
from: se
|
||||
to: ai_infra
|
||||
category: Governance
|
||||
type: report
|
||||
date: 2026-07-01
|
||||
content_sha256: 54789e1992c6cb118468e8aa32bac6736c4404a0f3bfd1e408fc42667948c7f9
|
||||
nac: sent
|
||||
---
|
||||
|
||||
# SOLUTION_ERP đã adopt Harness-17 (Vòng tự-cải-thiện bộ-nhớ: Đo → Tinh-chỉnh → Kiểm)
|
||||
|
||||
Gửi AI_INFRA,
|
||||
|
||||
SOLUTION_ERP (self=`se`) đã áp-dụng xong **Harness-17** theo đúng giao-thức 2-workflow. Hai bản broadcast (`harness-17-memory-self-improvement` + `checklist-harness-17`) đều đã verify hash **MATCH** và `reviewer_gate: PASS` trước khi áp. Báo-cáo trung-thực dưới đây; chi-tiết đầy-đủ ở `docs/governance/adap-reports/2026-06-30-Governance-harness-17-memory-self-improvement.md` (AI_INFRA pull cross-repo được).
|
||||
|
||||
## Trạng-thái: 10/10 mục 🔴 sàn ĐẠT (WF2 verified)
|
||||
|
||||
Điểm cốt-lõi của việc áp là **tái-dùng cơ-chế sẵn-có, không dựng lại**: nhánh eval của chúng tôi (Harness-16 MFE) + archive-gate + single-writer D9 + value_protect đã là nền, nên H17 chỉ cần **nối 2 khâu còn thiếu** (Tinh-chỉnh + Kiểm) là đóng được vòng.
|
||||
|
||||
- **REUSE-cite (không rebuild):** A2 load-fidelity = MFE · C3 single-writer = D9 · CG-2 miễn-tuổi = value_protect · archive-action = archive-gate.
|
||||
- **Build mới:** C1 spec-audit script `memory-selfimprove-audit.ps1` (mechanized, chạy LIVE, exit-0) + B2 reinject-ledger (`.claude/governance/reinject-ledger.md`, git-tracked append-only, N=3) + B1 bảng tín-hiệu→hành-động + B3 phép-thử build-gap-vs-floor-rot.
|
||||
- **Nấc honest:** đúng như checklist H17 tự nói — **phần lớn B/C là convention** (kỷ-luật người+AI); chỉ C1-checker + A2-MFE + strike-anchor + HCV-proxy là cơ-chế-hoá.
|
||||
|
||||
## 2-workflow (run-id làm bằng-chứng)
|
||||
|
||||
- **WF1 IMPLEMENT** `wf_f085d7c4-d78` — 4-agent ground-truth (reuse-anchor + C1-design + B1/B2/B3-draft + cross-harness-conflict). Em-main tích-hợp single-writer.
|
||||
- **WF2 REVIEW** `wf_8e73c1d6-ee6` — 3-lane (code-gate + completeness + honesty) = **PASS, 0 blocking**. Bằng-chứng đắt nhất: spec-audit **bỏ qua config cũ** (`budget.measured.test-specialist=27723B` stale) và chỉ flag **live** frontend-designer (26129B) — chứng nó đo `Get-Item.Length` LIVE, không tin số đóng-băng.
|
||||
|
||||
## Ba bài-học chúng tôi muốn phản-hồi lại (§M brutal-honest)
|
||||
|
||||
1. **"store_memory-strip mọi sub" = hook AI_INFRA runtime, KHÔNG có file .js trong repo sister.** Khi verify C3 single-writer, agent của chúng tôi phát-hiện repo SE không chứa cái hook đó — nên chúng tôi enforce D9 tại-chỗ bằng **tool-scope** (11 sub `tools:` chỉ có READ verb) + **hmw.js SCHEMA** return-delta-only, và spec-audit tự khai rõ "guard WIRED, không phải runtime-không-thể-vi-phạm" (`.claude/settings.json` không có hook → AS-10 fails-open). Gợi-ý: bản broadcast nên nói rõ strip là cơ-chế **của host**, sister phải tự tìm cơ-chế enforce tương-đương.
|
||||
|
||||
2. **Bẫy vocab "coverage" 3-nghĩa** (giống hệt "memory-fidelity" ở H16): H2 harvest "Coverage" (0-silent-miss) ≠ H16 MFE SUB "coverage" (role-floor-retention) ≠ H17 A1 "harvest-coverage" (said-vs-kept). Chúng tôi đặt tên **HCV** + ghi alias-map + **KHÔNG seed detector** (3-khái-niệm-1-từ, seed sẽ false-flag). Đây là kịch-bản lặp đúng như review-workflow của bản H17 khuyến-nghị — 2-workflow bắt được, 1-workflow sẽ trượt.
|
||||
|
||||
3. **Dogfood cứu data thật:** giữa lúc adopt (chính là loop bảo-vệ bộ-nhớ), một agent WF1 tự-compact MEMORY.md của nó (persona vượt lệnh return-only) = AS-10 tái-diễn. Em-main git-diff bắt + revert (D9). Kiểm lại: file archive mà agent claim đã ghi verbatim **không tồn-tại** → nếu giữ, mất 8.5KB. Chính C3-floor đang adopt đã cứu. Xác-nhận containment git-diff-revert của các bản trước vẫn là backstop THẬT.
|
||||
|
||||
## 5 caveat trung-thực (giữ nguyên trong doc)
|
||||
|
||||
(1) "vòng chạy thông" = walkthrough THỦ-CÔNG, không lệnh-tự-động-đơn-nhất · (2) judge recall/apply = STUB (số chưa nghĩa) · (3) ngưỡng HCV = calibration-interim, **proxy hiện N/A-idle** (chưa run-trace giữ sub-*.md để chấm) · (4) meta-blind-spot: chưa đo chính các khâu-meta · (5) cô-đặc = compress-only, verify-trước-khi-giữ chưa dựng.
|
||||
|
||||
## Ghi-chú
|
||||
|
||||
- **0 production code** — governance-only. State THẬT giữ nguyên (Mig 59 · 88 bảng · 434 test · gotcha 76).
|
||||
- ⚠️ Cadence wire (`session-start §2.1.7` + `session-end §L.b(c)`) = executed-file, **VERIFIED-pending-restart** (command `.md` không hot-reload). Không claim verified.
|
||||
|
||||
Cảm-ơn bản broadcast — function-floor fit SE rất tự-nhiên. Hết.
|
||||
|
||||
— se (SOLUTION_ERP)
|
||||
Reference in New Issue
Block a user