Files
solution-erp/docs/governance/adap-reports/2026-07-15-Governance-do-token-that-khong-can-api-key.md

33 lines
4.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# adap-report — do-token-that-khong-can-api-key (SE, S124)
- **broadcast:** `2026-07-15-Governance-do-token-that-khong-can-api-key` (type:new, draft, NOT-adopt — METHOD)
- **nấc (G-011):** **executed (method applied + measured)** · ĐỔI budget-số = **owner-gated (defer)**
- **reviewer_gate:** `wf_184f32e2-9da` PASS_WITH_FIXES (F2 fix: STATUS 26075→70892 corrected).
## Method applied
Read TRỌN mega-file (no offset/limit) → harness truncation in **real-token-N của TOÀN tệp** (N>cap ⇒ toàn-tệp; free, no-API). Highly-relevant SE: `token_governor` TOÀN char/4 + byte/3.0-3.5.
## Measurement (real-token, verified S124)
| file | byte | byte/4 ước cũ | **real-token (harness)** | lệch | % 380K lead | paginate? |
|---|---|---|---|---|---|---|
| STATUS.md | 124,503 | ~31,126 | **70,892** | **2.29× dưới** | 18.7% | ❌ 1 mega-line 69,870 char |
| HANDOFF.md | 60,628 | ~15,157 | **32,254** | 2.13× dưới | 8.5% | ❌ |
| **total** | | ~46K | **103,146** | | **27.1%** | — |
## 🔴 Honest — do-token failure-mode NGAY khi adopt (reviewer F2)
- Bản plan lead lượt đầu ghi STATUS = **26075** (folded-CHUNK count, vi-phạm §5 "Read TRỌN") — SAI **2.72×** so real 70892. = đúng bẫy "nhãn 'đã đo' thay việc-đo" (§4) committed IN THE ACT of adopting do-token. **Reviewer L3 tự đo bắt được → em re-verify (70892 confirmed).** Bài-học meta: lesson-trong-context KHÔNG tự chặn; reviewer/đo-lại mới chặn.
- Audit SE "measured" constant: `harness_floor.measured_token_estimate=55K` **tự-khai "honest mid estimate (~19K byte-measured + ~36K harness-injected-EST)"** = ~65% est — self-labeled ESTIMATE (KHÔNG như hằng-số hub tự-dán "empirical"). NOT as bad, nhưng vẫn = candidate re-measure.
## Owner-decision surface (KHÔNG apply)
- 2 mega-file = **27% budget lead always-on + KHÔNG paginate được**`[carry:retier-megaline]` **materially urgent hơn** byte/4 tưởng. Re-tier mega-line / ĐỔI budget-số (`tier1_hotfeed` 380K · `harness_floor` 55K · `crystallized_backfill.target` 210K) = **owner-authority** (`role_boundary_note` + mark `…01-58-01`) → **chờ anh**. Em CHỈ đo + báo.
- ĐỀ-XUẤT (nếu owner muốn): net "assert measured-constant BAO real-measure" chạy lúc load (hub §4 lưới rẻ nhất) — owner-gated.
- 0 prod-code, 0 mig, 0 auto-tune số.
## ⚠️ S129 ADDENDUM — candidate re-measure RESOLVED bằng RETIRE (2026-07-16 tối)
`harness_floor.measured_token_estimate=55K` (dòng "candidate re-measure" §Honest trên + mục owner-authority §Owner-decision) **không còn tồn-tại**: anh chốt S129 *"bỏ luôn các trần, chỉ giữ trần cao nhất"* → field XOÁ, giữ duy-nhất `rounded_up_tokens: 100000` owner-reserve (mirror hub-shape `_floor_reserve_tok` 1-số + lineage-in-note). Hết candidate: thay vì re-measure một số lưu-sẵn, luật mới = **đo-tươi bằng notice-N khi cần** — chính method thư này (draft hub 07-15 đang chờ gate; ask do-token SE giữ MỞ). Verbatim + disposition: `runs/2026-07-16-S127-adap-dot-16-07/owner-gated-proposals-dot-16-07.md`.
## ⚠️ S125 ADDENDUM — RELABEL (supersede nhãn "real-token", 2026-07-16)
Broadcast kế tiếp của hub (`2026-07-15-Governance-phuong-phap-dem-token-tien-de-vong4`) + **negative-control SE tự chạy** (S125, 3 probe scratchpad: `'a'×150K` → notice "150,006 tokens" ~**1,0/char**; `'x'×150K`**150,006 Y HỆT** = content-independent; mixed-random 150K → 143,251 ~0,955/char — tokenizer thật nén chuỗi lặp ≪0,1/char) ⇒ **notice-T = heuristic họ-đếm-ký-tự, CẬN-TRÊN bảo-toàn — KHÔNG phải "real-token"**. Mọi nhãn "real-token (harness)" trong report này đọc là **"notice-T cận-trên"**; số đúng = **DẢI [byte/4 — notice-T]**: STATUS [31.12670.892] (lead-share [8,218,7]%), HANDOFF [15.15732.254], tổng [46K103K] = [1227]% cận-trên. Quy tắc dùng: **dừng-rót khi CẬN-TRÊN chạm 100% trần** (KHÔNG đảo thành "còn dư ×2"). Chi tiết + evidence: adap-report `2026-07-15-Governance-phuong-phap-dem-token-tien-de-vong4.md`.