[CLAUDE] Scripts: S129 adap 2 errata EOL 16-07 — pre-satisfy fix①②③ + vá point-of-generation mfe-eval 2-phía (BOM/LF) + AXIS-limit header + compendium 4-gated/3-discipline + 2 adap-report + email hub 10ca96c9 (H9 2-workflow wf_3fccd7d1 + wf_8a0249f6)
All checks were successful
Deploy SOLUTION_ERP / build-deploy (push) Successful in 5m30s
All checks were successful
Deploy SOLUTION_ERP / build-deploy (push) Successful in 5m30s
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@ -190,7 +190,7 @@ function Measure-Lead {
|
||||
|
||||
# --- Goodhart anchor : print recurring-error reality next to coverage ---
|
||||
$lastStrikes = -1
|
||||
if (Test-Path $statePath) { try { $lastStrikes = [int]((Get-Content $statePath -Raw | ConvertFrom-Json).strikes_total) } catch { } }
|
||||
if (Test-Path $statePath) { try { $lastStrikes = [int]((Get-Content $statePath -Raw -Encoding UTF8 | ConvertFrom-Json).strikes_total) } catch { } }
|
||||
Write-Host "[LEAD] Goodhart anchor (NO self-grading - real recurring-error signal):"
|
||||
Write-Host " error-ledger: strikes_total=$strikesTotal RCA_entries=$rcaCount AS-classes=$($asIds.Count)"
|
||||
if ($lastStrikes -ge 0 -and $strikesTotal -gt $lastStrikes -and $fits) {
|
||||
@ -199,9 +199,13 @@ function Measure-Lead {
|
||||
Write-Host " (rule: if strikes rise across runs while coverage stays high -> the score lies. last_run_strikes=$lastStrikes)"
|
||||
}
|
||||
# persist strikes for cross-run compare (MFE state only; does NOT touch token_governor)
|
||||
# Write LF + UTF8-no-BOM explicitly (erratum EOL 2026-07-16 lo #6 point-of-generation floor, S129):
|
||||
# PS5.1 Set-Content -Encoding UTF8 wrote BOM+CRLF -> worktree CRLF churn AND a 3-byte BOM in the
|
||||
# committed blob. Reader at line 193 pins -Encoding UTF8 in the SAME commit (no BOM-sniff dependency).
|
||||
try {
|
||||
$st = @{ strikes_total = $strikesTotal; rca_entries = $rcaCount; at = $Today.ToString('yyyy-MM-dd') }
|
||||
($st | ConvertTo-Json) | Set-Content -Path $statePath -Encoding UTF8
|
||||
$json = (($st | ConvertTo-Json) -replace "`r`n", "`n") + "`n"
|
||||
[System.IO.File]::WriteAllText($statePath, $json, (New-Object System.Text.UTF8Encoding($false)))
|
||||
} catch { }
|
||||
Write-Host ""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user