Commit Graph

341 Commits

Author SHA1 Message Date
2216cf986b wal: flush 20260715T1306 2026-07-15 13:06:31 +07:00
38bbcad416 wal: flush 20260715T1245 2026-07-15 12:45:00 +07:00
826510ba28 wal: flush 20260715T1215 2026-07-15 12:15:56 +07:00
c5c68de3bb [CLAUDE] Docs: W0.6 setup - them probe LF lam NHOM CHUNG (lech spec co chu-dich) + WAL cho restart
W0.6 = bao-dam falsifiable DUY NHAT cua ca wave (broadcast 4(d): "moi kiem static-text deu
KHONG falsifiable; chi spawn-probe / assert-registry moi that-su chung-minh").

LECH SPEC CO CHU-DICH - spec v2 W0.6 chi dung 1 probe (CRLF) -> RESTART -> spawn. LO: neu spawn
FAIL, quan-sat do KHONG phan-biet duoc 2 gia-thuyet: "reader LF-only nen chet" vs "registry chua
nap file moi". Mot quan-sat, hai gia-thuyet => vo-nghia.
VA: dung them _lf-probe.md GIONG HET, khac DUNG 1 BIEN = line-ending.
  CRLF ok + LF ok  -> CRLF-tolerant (khoi restart)
  CRLF x  + LF ok  -> CRLF-fatal CHAC-CHAN (LF chung-minh hot-reload CO chay)
  CRLF x  + LF x   -> hot-reload KHONG chay -> chi nhanh nay moi can RESTART

Kiem bien don (soi byte, khong tin sed): _crlf-probe CR=276 LF=276 ; _lf-probe CR=0 LF=276 ;
od -c xac nhan "-  -  -  \r  \n  n  a  m  e  :  _  c  r  l  f  -  p  r  o  b  e  \r  \n" ;
diff <(bo CR, bo dong name:) 2 file -> GIONG HET => bien duy-nhat = line-ending.

LUOT-1 (TRUOC restart) = nhanh 3: CA 2 probe not-found. Available list = 19 sub + plugin co
tu dau phien, khong co probe nao.
>>> NHOM CHUNG CUU 1 KET-LUAN SAI: _lf-probe THUAN LF (0 byte CR) cung chet y het => nguyen-nhan
KHONG PHAI CRLF. Neu lam dung spec (1 probe), lead se thay _crlf-probe chet va rat de ket-luan
"CRLF-fatal" - SAI, va sai THEO HUONG CO LOI cho cau chuyen (xac nhan L3 + giu R4 nac manh).

DO DUOC (moi, S120): registry agent = ANH-CHUP luc khoi phien; KHONG hot-reload agent file MOI.
Doi-chieu memory project_harness4_two_tier_model: ghi "agent file MOI = hot-reload OK" (verified
S107) KEM canh-bao ENV-DEPENDENT (hub ra ket-qua NGUOC S110). S120 do KHONG hot-reload => canh-bao
ENV-DEP xac-nhan lan nua, lan nay ngay trong repo SE. Cau "nghi ngo -> restart" cua memory = DUNG.
=> de-nghi thu hep memory o session-end: "hot-reload agent-file-moi = ENV-DEP, SE do KHONG an @S120".

2 probe = UNTRACKED CO Y. CAM `git add` - `.gitattributes` `* text=auto eol=lf` se NORMALIZE
mat CR = giet thi-nghiem. Hook khong phu .claude/agents/ nen khong tu commit.

WAL: ghim 3 buoc sau restart (LF TRUOC -> CRLF sau -> xoa 2 probe), + verify lenh kiem 276 CR
con nguyen. Day range hien = commit thuong 92de58f => moi wal: sinh sau roi ca(3) an-toan @W6.

0 prod-code, 0 migration, 0 FE, 0 test-change.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-15 11:52:01 +07:00
92de58f329 [CLAUDE] Infra: W0 pre-flight - gitattributes EOL san-chung + hook rebase-interlock + FIX #3-bis 4-ca
W0.1 .gitattributes theo CLASS (khong va theo duoi-file-vua-can):
- `* text=auto eol=lf` = san chung. core.autocrlf=true @system lat LF->CRLF luc checkout;
  attr nay ep blob LF + worktree LF, DOC-LAP autocrlf.
- Khai binary TUONG-MINH 13 duoi (zip/exe/dll/docx/xlsx/pptx/pdf/png/jpg/jpeg/ico/woff/woff2)
  thay vi pho-thac heuristic NUL-byte-8000-dau: .docx "gay" co the lot thanh text -> mangle
  OOXML -> hong file KHONG cuu duoc. Do that: repo co 19 binary (12 docx + 6 png + 1 xlsx).
- .svg = XML -> CO Y giu text. Giu 2 rule cu (broadcasts/** + *.sh) tuong-minh.
- Fault-inject chung rule CO RANG: go `*.docx binary` -> git coi .docx la `text: auto` (nguy
  hiem that); khoi phuc -> `text: unset`. 19/19 binary co attr/-text.
- Acceptance PASS: agents/reviewer.md unspecified -> text:auto eol:lf.

W0.2 scoped-only (vacuous, KHAI THAT):
- scope-gate (agents+commands+skills) = 0 DA XANH SAN truoc khi lam gi -> KHONG tinh la thanh-tuu.
- repo-wide 188 (131 Migrations + 57 con lai) = INFORM-only. CAM mass rm+checkout phien nay.
- `git add --renormalize --dry-run .` = 0 file dirty; `git diff --cached --stat` = rong.

W0.3 hook rebase-interlock (anh ky S119 fix#8b = TRONG KHUNG, khong can adap-request):
- wal-flush.ps1: `if (Test-Path .git/rebase-merge -or .git/rebase-apply) { exit 0 }`.
- Dat SAU Set-Location $root, KHONG phai dau file: dat truoc thi Test-Path soi nham CWD.
- Chung RANG 2 CHIEU tren cay tam: (a) khong rebase-state -> hook VAN commit (guard khong
  over-fire, WAL persist con song); (b) co rebase-state -> 0 commit, exit 0, worktree GIU dirty.
- Pure-ASCII giu nguyen (gotcha #30). Do lai bang tr sau khi phat hien `grep -P` false-pass
  (loi locale -> output rong -> wc -l dem 0 = grep CHET, khong phai sach).

FIX #3-bis (MOI, ghi vao v3-PATCH) - dieu-kien re nhanh W0.3 test SAI THU:
- v2:92 re nhanh bang `NONWAL==0`; luat fix#3(c) noi phai test "wal: o DAY range". Hai thu khac nhau.
- Fault-inject 4 cay tam chung diem re o ca2 (shape base|wal:|[CLAUDE], NONWAL=1, day=wal:):
  v2 -> nhanh-B REBASE; v3bis -> reset--soft. Chay that nhanh-B tren ca2: REBASE-EXIT=0 KHONG
  crash, nhung commit gop THUA KE message "wal: flush 1" -> push-guard n=1 -> chan push ->
  re-squash cung logic -> van "wal:" -> STOP VINH VIEN. Deadlock XAC NHAN bang thuc nghiem.
- +ca(0) MOI v2/v3 khong liet: K=0 range RONG (S119 da push 4727d16) -> NO-OP commit thang.
- 4 ca: (0) K=0 NO-OP · (1) day=wal: NONWAL=0 · (2) day=wal: NONWAL>0 -> (1)+(2) CUNG xu-ly
  reset--soft origin/main CAM rebase · (3) day=commit-thuong -> rebase+fixup OK.
- Ca fire hom nay = ca(0). Commit-chot nay dat day range = commit thuong -> moi wal: sinh sau
  deu roi vao ca(3) an-toan. Dung y do fix#3(a).

WAL reconcile (/tiep S120): ground-truth thang WAL 3 cho - (1) 7 broadcast "UNTRACKED co y"
da tracked+pushed trong 4727d16, W0.3 khong con viec gop; (2) "K troi 10->11" -> thuc te K=0
range RONG; (3) fix#8 tick mau-thuan -> owner-decisions xac nhan DA KY, gate-blocker=0.

0 prod-code, 0 migration, 0 FE, 0 test-change.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-15 11:41:33 +07:00
4727d16178 [CLAUDE] Docs: S119 adap 6 broadcast AI_INFRA - dieu tra chieu rong + spec v3 (dung truoc wave)
check-email 6 broadcast moi (H23 model-at-spawn / H24 lead-self-audit / H22 wal-defect-fix
5-san / H22 push-guard / EOL-CRLF agent-registry / owner-sign) - hash 7/7 + tamper 4/4 MATCH.

Pipeline H21: fable-clone invest 5-lane (wf_1f6bd5e2-478, 5/5 clean) -> spec v1 ->
fable-clone reviewer 4-lane (wf_78a84f9b-03e: R2 FAIL 4C+8M, R3 FAIL 5C+6M, R1/R4 chet #53)
-> v2 -> fable-real reviewer cong-cuoi (wf_cb964f83-331: GO-WITH-FIXES + 8 fix + 2 honesty-C)
-> v3 (STILL-BROKEN = 0). Anh chot B: dung tai spec, wave chay phien sau qua /tiep.

Do that: 57 wal: da lot origin/main (hub do duoc 1 -> SE = 57x); nguyen nhan KHONG phai
turn-seam ma la session-end.md:113 SE tu viet "kep sau -> GIU NGUYEN". K troi 3->10/buoi.
v1 SE GAY MAT VIEC (R3 fault-inject: NONWAL=0 -> 0 commit de fixup -> detached HEAD ->
hook fail-open -> abort -> mat worktree = E-029 bang cua sau).

Owner 6 chot: nguyen-tac moi (vuot-khung = request anh + AI_INFRA) / PA-2 = PA-2a hang-so +
PA-2b audit / 6-15-3 / [carry:slug] / KHONG don 57 / fix#8 (a)(b).

0 prod-code, 0 migration, 0 FE. Test 509 giu nguyen (45D + 464I).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-15 11:20:29 +07:00
5c7569ed7f wal: flush 20260714T1156 2026-07-14 11:56:15 +07:00
5f046eafb3 wal: flush 20260713T1741 2026-07-13 17:41:28 +07:00
88bd8e666d [CLAUDE] Docs: S115 presence-not-age adopt closeout (STATUS/HANDOFF/session-log/synthesis/WAL)
Session-end closeout for S115 (AI_INFRA presence-not-age selector guardrail +
rec-3 hmw.js STOP-HARD, shipped 81b59f0, CI #385 PASS). STATUS + HANDOFF
mega-line blurb, session-log, ensemble-synthesis (closes H10/HCV gate), WAL
reset to clean template. No canonical-count change (Mig 65 / 89 tables / 486
tests / gotcha 81). Owner backfill target 210K + reviewer/cicd harvest already
in 81b59f0. §5.0 squashed the trailing wal: flush.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-13 13:01:14 +07:00
66bd127cd3 wal: flush 20260712T2347 2026-07-12 23:47:05 +07:00
16a199f031 [CLAUDE] Docs: S114 PE multi-NCC per hạng mục closeout (STATUS/HANDOFF/gotcha #81/Mig 65/session-log)
Closeout feature multi-NCC per hạng mục (ship d436af2):
- STATUS/HANDOFF: S114 blurb + CURRENT STATE canonical Mig 64→65 · test 477→486 · gotcha 80→81 · bundle D51OYyGV/BVdssm5S.
- gotcha #81: derived-invariant re-derive sót DELETE writer (DeleteQuote/DeleteDetail) → IsWinner kẹt stale → HĐ giaTri=0 phantom (Bước 4 fable-clone verify bắt; fix helper PeWinnerInvariant test-before).
- ef-core skill: +Mig 65 BackfillPeQuoteIsSelectedAndWinnerInvariant row.
- session log 2026-07-12-S114 + 2 reviewer diary harvest (verify run) + run-trace fold.
- cicd on-behalf record (garble #53 ×5 → em-main-solo deploy verify).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-12 23:45:08 +07:00
8a1b0d4901 wal: flush 20260712T2156 2026-07-12 21:56:29 +07:00
44ba05e5cf wal: flush 20260712T2132 2026-07-12 21:32:24 +07:00
53e8d1689d wal: flush 20260712T2114 2026-07-12 21:14:52 +07:00
e05763f46c wal: flush 20260712T2045 2026-07-12 20:45:57 +07:00
c20fa5f3a0 wal: flush 20260712T2026 2026-07-12 20:26:38 +07:00
8304d081f3 wal: flush 20260712T1926 2026-07-12 19:26:19 +07:00
0efc22364b wal: flush 20260712T1905 2026-07-12 19:05:05 +07:00
41f29acf68 wal: flush 20260712T1900 2026-07-12 19:00:31 +07:00
d53145cb27 wal: flush 20260712T1845 2026-07-12 18:45:36 +07:00
58f1c5fdbc wal: flush 20260712T1824 2026-07-12 18:24:13 +07:00
461be04bc4 wal: flush 20260712T1812 2026-07-12 18:12:03 +07:00
b5bc030e6b wal: flush 20260712T1757 2026-07-12 17:57:45 +07:00
b942e52226 wal: flush 20260712T1732 2026-07-12 17:32:50 +07:00
58b20ea441 wal: flush 20260712T1634 2026-07-12 16:34:04 +07:00
be9476da6d wal: flush 20260712T1615 2026-07-12 16:15:44 +07:00
0352b44811 wal: flush 20260712T1557 2026-07-12 15:57:58 +07:00
4c05431ceb wal: flush 20260712T1528 2026-07-12 15:28:41 +07:00
e766c88bd7 wal: flush 20260712T1507 2026-07-12 15:07:51 +07:00
2121a69fe1 wal: flush 20260712T1504 2026-07-12 15:04:01 +07:00
d19ea13ae1 wal: flush 20260712T1454 2026-07-12 14:54:18 +07:00
264ca2e8fe wal: flush 20260712T1435 2026-07-12 14:35:10 +07:00
06e846ad73 wal: flush 20260712T1423 2026-07-12 14:23:36 +07:00
d1709040f8 wal: flush 20260712T1419 2026-07-12 14:19:19 +07:00
a57cb1dec4 wal: flush 20260712T1357 2026-07-12 13:57:40 +07:00
adc1ba660e wal: flush 20260712T1350 2026-07-12 13:50:19 +07:00
cf11faf1ec wal: flush 20260712T1338 2026-07-12 13:38:40 +07:00
460a440326 wal: flush 20260712T1315 2026-07-12 13:15:28 +07:00
ec81c5cf18 wal: flush 20260712T1201 2026-07-12 12:01:47 +07:00
e9afe77fd6 [CLAUDE] Docs: S111 closeout — mega-line STATUS/HANDOFF (H22 WAL adopted: hook VERIFIED-RUNTIME ×2 hot-reload ENV-DEP, mark AH-6 RC-…11-43-45, D10 AS-6-taxonomy-đổi #495, squash §5.0 dogfood K=2) + session log + architecture B1-pointer paths-ignore (H1 FLAG-A) + monitor diary @end ×3 (H1 CHỐT-1-LOW-fixed · H2 GATE-PASS-5/5-0/16-orphan · cicd #495-PASS-FROZEN×6 tự-curate) + WAL flush
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-12 12:00:13 +07:00
8aa3869637 [CLAUDE] Docs: S111 adopt H22 WAL session-continuity — sổ WAL ≤40 + Stop-hook wal-flush.ps1 persist-only VERIFIED-RUNTIME ×2 (12071c5/67be443 hot-reload ENV-DEPENDENT) + /pause·/tiep 1-đường + BƯỚC 0.7/§5.0/§6.4 + FLIP run-trace ≥3-task + engine PHẦN N + detector C5 + mark RC-…12-07-2026-11-43-45 + D10 paths-ignore anh-directed + email 9cdcda2f3c83 (invest/reviewer Fable per-invocation 0-garble · WF wf_5ba3daf6-fe0 3-Opus RUN-TRACE · reviewer PASS_WITH_FIXES 8/8-fix · squash §5.0 dogfood-THẬT K=2)
All checks were successful
Deploy SOLUTION_ERP / build-deploy (push) Successful in 5m11s
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-12 11:45:14 +07:00