Files
solution-erp/.claude/workflows/runs/2026-07-26-S153-bookend-open/instrument-backfill.txt
pqhuy1987 11db5efdf8
All checks were successful
Deploy SOLUTION_ERP / build-deploy (push) Successful in 5m39s
[CLAUDE] Docs: S153 closeout — adopt TRỌN Ctx soft-memory + OWNER-VETO 3-vai + RENAME hub-form (squash 22 wal:)
Pipeline anh lệnh: /check-email + /adap-apply -> /fable-real invest (spec 9-task/24-checklist)
-> hmw Opus-5-MAX 2 đợt + lead-solo T6-T8 -> checklist verify.

Thư ① 9c909007 (model-default Opus 5 MAX): TRỌN — filing 2-tuyến + probe-sau-restart
2-nguồn claude-opus-5[1m] + thư hub d432f5eab5cd + caveat (e) đóng.

Thư ② 0df10df4 (pause-tiep Ctx soft-memory, sàn 7-khoản): EXECUTED
- máy mind-check: scripts/session_ctx.py +542 dòng (7 phép + 2 phụ, 4 mức, draft/closed/--root/--session PIN, exit 0/1/3)
- template .claude/templates/session-mind-template.md + wire 4 lệnh (pause C-bis+2bis+§1-carve-out, tiep §2.6+§3-ter, session-start Phase 3.5, session-end §L.b(l)+6.3-bis)
- memory-budget: mind_ctx_kb=32 + tiep_reload + ĐÓNG ghost-wire session_ctx_kb (H18 class-2 sống S146->S153)
- fault-inject 18/18 + 2 fix hậu-T4 (FI 6/6): GAP-#9 closed-mode E-0-con-trỏ CỜ->TRƯỢT (chặn gradient
  thưởng xoá-con-trỏ-trung-thực, họ bẫy F-1 của chính thư hub) · secrets-sweep +--root parity
- số ĐO THẬT pause +117ms thay ước lệch 2.2-5.4x

OWNER 2 quyết trong-phiên:
- (38) VETO: 1-vai -> hub-form 3-vai (ctx-curator @pause + carve-out pause §1 · ctx-verifier @tiep · ctx-audit @2-bookend)
- RENAME theo chuẩn hub/sisters để audit chéo: ctx-pause-check->ctx-curator, ctx-reload->ctx-verifier
  (đo đĩa 3 nhà; hub≠sister => SE theo HUB-form, tiền lệ S149). Roster 20->23, VALID_ROLES 23.
  Gap còn lại: ring5-audit (V5 truth-floor) hub CÓ, SE+VIPIX chưa -> slot (41).

Bookend 2 đầu (12 spawn) + trio auto 1 vòng:
- @open: H1 7f · H2 4f · H24 5+3 FLAG · ring1 28Đ/4T · ring2 8/8Đ + M-1 MISS thật · trio eval-MIXED-14/refine-3A-7B-4N/audit-25Đ-3T (re-chạy 7 instrument, 24 số byte-exact)
- @close: H1 6f · H2 8f (baseline S154 = 16/10, tự sửa bản ~23/11) · H24 4+2 FLAG · ring1 47Đ/5T/1KC/53 · ring2 6/6Đ + 21 phép phụ
- lead xử 11 mục: 9 FLAG H24 + 3 RESIDUAL ring2 + F-r2 (plugin 3 hard-site) + M-1 cả 2 persona + M9 14 sổ diary + F-3/F-5/F-6 + nit Sàn-5 + BÁC F-4 (fan-out không vào _index)

#53 x14-cận-dưới, 0 mất dữ liệu (WRITE-lane derive-from-body · Agent-resume · SendMessage-resume x6).
Datum: trio return-only hết miễn nhiễm (3/3 CLEAN -> 1/3). 4-A suýt xảy ra thật (bản committed của 2 file H24 là bản cắt 24%/48%).
completeness-gate: 5 vòng đủ · phép ĐẠT 4 / TRƯỢT 0 / vacuous 0.
State: Mig 67 · 89 bảng · 532 test · gotcha 83 · Sub-agents 23 · counter 27 · bundle FROZEN · governance-only 0 prod-code.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-26 16:10:54 +07:00

46 lines
2.5 KiB
Plaintext

============================================================
crystallized-backfill.ps1 - measure-then-fill (DRY planner)
tier : lead
budget.json : D:\Dropbox\CONG_VIEC\SOLUTION\SOLUTION_ERP\.claude\agent-memory\memory-budget.json
cb config : present (target + hotload_sources read LIVE)
============================================================
### hot-load sources (LIVE byte-measure, UTF8)
source bytes state
-------------------------------------------- ---------- --------
docs/STATUS.md 188597 ok
docs/HANDOFF.md 129399 ok
.claude/governance/ACTIVE-MARKS.md 31197 ok
docs/changelog/migration-todos.md 84679 ok
docs/gotchas.md 111616 ok
.claude/agents/README.md 50828 ok
TOTAL 596316
### budget numbers (Upgrade-1) - ALL live-read, 0 hardcoded
Tran tong (live cap) : 380000 tok
hotload measured : 596316 bytes
tok RANGE [low..high] : [149079 .. 198772] tok (bytes/4 .. bytes/3.0)
measured_headroom : 181228 tok (cap - tok_high, worst-case)
target (owner) : 210000 tok
expected_backfill : 181228 tok (min(target,headroom)=headroom => headroom binds (target exceeds room))
### value-gated backfill source-order (planner / DRY - no pour)
precondition MET (target>0 AND headroom>0): would pull up to 181228 tok in order:
1. gist → archive/*.gist.md (4-field distilled)
2. value-marked → archive lines carrying gotcha# / anti-pattern / root-cause
3. curated RAG → search_memory high-value hits
(each stage DEDUP vs the hot-load sources above; stop at expected_backfill)
------------------------------------------------------------
HONEST CAVEAT
char/4 is NOT a real token count; VN-diacritic hot-memory ~3.0-3.5 byte/tok.
Headroom is a RANGE [bytes/4 .. bytes/3.0]; this planner uses bytes/3.0 (worst).
backfill defaults to 0 = TAT until the OWNER sets target>0 AND measured headroom>0.
Every budget number is the OWNER's authority; this script is READ-ONLY (never tunes/writes).
HEADROOM is measured over a STABLE FILE-FLOOR (the configured hotload_sources) = an UPPER BOUND.
The PEAK hot-feed also loads session-variable task-context NOT in this list; real headroom is SMALLER.
------------------------------------------------------------