[CLAUDE] Scripts: S167 governance — split _INDEX auto-rotate + 3 script _INDEX*-glob + tran _mind 48KB + ratified-stamps
All checks were successful
Deploy SOLUTION_ERP / build-deploy (push) Successful in 6m24s
All checks were successful
Deploy SOLUTION_ERP / build-deploy (push) Successful in 6m24s
Slot(57) anh "auto": cicd-monitor _INDEX 21.468->8.756B (42,7% cap) + _INDEX-2026-H1.md tang-lanh; 3 script cung-class nhan _INDEX*.md (gate chong-haystack-duong-gia + doc MOI index-file; measure truc l2_index; shard-probe loai-tru); fault-inject 2-chieu PASS + A7 427/427 lan dau sach (va needle-quote test-specialist + mega-line + 29-entry lac-section). Slot(58) anh "nang tran": mind_ctx_kb 32->48 (live-verified 62,2%). G-1 RATIFIED stamps KhkkWorkflowPanel x2 app (SHA-pair giu) + STATUS 622/counter-41. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@ -248,8 +248,10 @@ foreach ($d in $subDirs) {
|
||||
if (-not (Test-Path $indexPath)) { continue } # only subs with a built index
|
||||
$anyArchive = $true
|
||||
|
||||
# all archive content files (exclude the index itself)
|
||||
$contentFiles = Get-ChildItem -Path $archDir -Filter *.md | Where-Object { $_.Name -ne '_INDEX.md' }
|
||||
# all archive content files (exclude EVERY index file: _INDEX.md + rotated _INDEX-<period>.md.
|
||||
# S167 split: a rotated index must NOT become a haystack - its own "substring:" lines would
|
||||
# self-resolve any needle and turn a lost archive record into a silent PASS)
|
||||
$contentFiles = Get-ChildItem -Path $archDir -Filter *.md | Where-Object { $_.Name -notlike '_INDEX*.md' }
|
||||
|
||||
Write-Output " [$sub] _INDEX.md + $($contentFiles.Count) archive file(s)"
|
||||
|
||||
@ -272,7 +274,10 @@ foreach ($d in $subDirs) {
|
||||
|
||||
# (i) pointer-resolve: extract every substring token (substring:QUOTE...QUOTE) and
|
||||
# locate it literally (String.Contains = SimpleMatch) in ANY archive file.
|
||||
$indexText = [System.IO.File]::ReadAllText($indexPath, $utf8)
|
||||
# S167 split: read EVERY _INDEX*.md (main + rotated) so pointers that moved to a
|
||||
# rotated index file KEEP being verified - rotation must not silently shrink the net.
|
||||
$indexFiles = Get-ChildItem -Path $archDir -Filter '_INDEX*.md'
|
||||
$indexText = ($indexFiles | ForEach-Object { [System.IO.File]::ReadAllText($_.FullName, $utf8) }) -join "`n"
|
||||
$indexLines = $indexText -split "`r?`n"
|
||||
$subPtrCount = 0; $subOk = 0; $subFail = 0
|
||||
foreach ($line in $indexLines) {
|
||||
|
||||
Reference in New Issue
Block a user