[CLAUDE] Docs: adap 08-08 executed (3 phep thu + f-bis re-measure) + orphan S182 closed + 3 self-ref sites patched (S185)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@ -891,6 +891,13 @@ else {
|
||||
# and survives a future marker-emoji change; \xNN is interpreted by .NET at match time.
|
||||
$marks = [regex]::Matches($raw, '(?m)^\*\*(?:[^\x00-\x7F]+\s*)?NEXT\s+(?:anh|em)\b')
|
||||
$segs = @()
|
||||
# S185 fix (WAL "vung-cam :892" / HANDOFF:58): everything BEFORE marks[0] was never
|
||||
# scanned - yet the top-of-file blocks (RE-STAMP carry list, top Carry blocks) hold
|
||||
# most LIVE [carry:] slugs, so the carry-age net was silent exactly where the debt
|
||||
# lives (12+ slugs swallowed) while printing [ok]. Prepend the pre-marker region as
|
||||
# segment 0; with 0 markers the whole file becomes the single segment (was: empty).
|
||||
if ($marks.Count -eq 0) { if ($raw.Length -gt 0) { $segs += $raw } }
|
||||
elseif ($marks[0].Index -gt 0) { $segs += $raw.Substring(0, $marks[0].Index) }
|
||||
for ($i = 0; $i -lt $marks.Count; $i++) {
|
||||
$start = $marks[$i].Index
|
||||
$end = if ($i + 1 -lt $marks.Count) { $marks[$i + 1].Index } else { $raw.Length }
|
||||
@ -906,7 +913,7 @@ else {
|
||||
foreach ($cm in [regex]::Matches($s, $carryRx)) { $ks += $cm.Groups[1].Value }
|
||||
if ($ks.Count -gt 0) { $carryLines += , (@($ks | Select-Object -Unique)) }
|
||||
}
|
||||
Write-Host (" HANDOFF logic-segments (NEXT anh/em) = {0} ; of those, carry-lines = {1}" -f `
|
||||
Write-Host (" HANDOFF logic-segments (pre-marker + NEXT anh/em) = {0} ; of those, carry-lines = {1}" -f `
|
||||
$segs.Count, $carryLines.Count)
|
||||
|
||||
if ($carryLines.Count -eq 0) {
|
||||
|
||||
Reference in New Issue
Block a user