wal: pause

This commit is contained in:
pqhuy1987
2026-08-07 17:37:03 +07:00
parent 40914682b1
commit b8d22741c7
25 changed files with 1733 additions and 99 deletions

View File

@ -295,10 +295,19 @@ else {
}
else {
$latest = $runDirs[0]
$subMd = @(Get-ChildItem -Path $latest.FullName -Filter 'sub-*.md' -File -ErrorAction SilentlyContinue)
# @S180 W1 FIX (naming-standard.md section 4): the filter used to be the literal glob
# 'sub-*.md', so every '<role>-return.md' was INVISIBLE here - including the three trio
# returns (harness-eval / harness-refine / harness-audit), i.e. the most expensive lanes.
# governance-detectors.ps1:1101-1102 already fixed exactly this at S159 and measured it on
# the S159 bookend: 9 spawns ran, the glob saw 6. That fix was never mirrored into THIS
# file even though both scan the same directory - a diagnosed, named, patched bug still
# alive one file over. Regex below is a byte-for-byte mirror of the detectors one; if you
# change one, change both (naming-standard.md section 12 lists all 3 sites).
$subMd = @(Get-ChildItem -Path $latest.FullName -File -ErrorAction SilentlyContinue |
Where-Object { $_.Name -match '^(sub-.+|.+-return)\.md$' })
$synth = @(Get-ChildItem -Path $latest.FullName -Filter '*-synthesis.md' -File -ErrorAction SilentlyContinue)
if ($subMd.Count -eq 0) {
Write-Na 'eval:hcv' 'HCV' ("latest run {0} has no sub-*.md (return-delta-only mode) - proxy N/A" -f $latest.Name)
Write-Na 'eval:hcv' 'HCV' ("latest run {0} has no sub-*.md / *-return.md (return-delta-only mode) - proxy N/A" -f $latest.Name)
}
elseif ($synth.Count -gt 0) {
Write-Pass 'eval:hcv' 'HCV' ("latest run {0}: {1} sub-md + {2} synthesis present (harvest-complete proxy; ratio = calibration-interim)" -f $latest.Name, $subMd.Count, $synth.Count)