[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
All checks were successful
Deploy SOLUTION_ERP / build-deploy (push) Successful in 5m11s
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
19
.claude/hooks/wal-flush.ps1
Normal file
19
.claude/hooks/wal-flush.ps1
Normal file
@ -0,0 +1,19 @@
|
||||
# wal-flush.ps1 - WAL persist-only Stop hook (H22 S111). KHONG sinh noi dung, KHONG push, KHONG block.
|
||||
# Fail-open MOI nhanh: exit 0 ke ca loi (Stop-hook exit!=0 co hanh vi rieng - CAM).
|
||||
# Per-path add + CAND commit (X3: add/commit da-pathspec = all-or-nothing khi 1 path vang).
|
||||
try {
|
||||
$root = if ($env:CLAUDE_PROJECT_DIR) { $env:CLAUDE_PROJECT_DIR } else { "." }
|
||||
Set-Location $root
|
||||
$paths = @(".claude/WAL.md", ".claude/agent-memory/", ".claude/workflows/runs/")
|
||||
$cand = @()
|
||||
foreach ($p in $paths) {
|
||||
git add -- $p 2>$null
|
||||
git diff --cached --quiet -- $p 2>$null
|
||||
if ($LASTEXITCODE -ne 0) { $cand += $p }
|
||||
}
|
||||
if ($cand.Count -gt 0) {
|
||||
$ts = Get-Date -Format "yyyyMMddTHHmm"
|
||||
git commit -q -m "wal: flush $ts" -- $cand 2>$null | Out-Null
|
||||
}
|
||||
} catch { }
|
||||
exit 0
|
||||
Reference in New Issue
Block a user