[CLAUDE] Docs: dong W5 + W4b — het wave chay duoc ma khong can chu du an phan
Tiep chuoi adap 7-GD. Sau luot nay: 7/10 wave DONG.
W5 (GD-5):
- Va spawn-model-audit.ps1 4 ve. Bug that nang hon spec ta: 5 phien gan
nhat deu wf=0 => may thay 0 lane ma van in "TOTAL FLAGS: 0". Sau va:
phien S180 = 24/24 lane, co mau so, co dong KHAI khi phien do != moi nhat.
Fault-inject 2 chieu tren cay tam (workflow-only + flat-only).
- D-3: hmw.js sentinel MODEL_INHERIT, het nhanh undefined-im-lang.
- D-10 + D-12: harness-11-engine PHAN O. D-11 nay 4/5 (manh 5 = P7 ve ii).
- §6 tracking: khai lam-KHAC/manh-hon 5 dong, khong tu phong "da kiem chung".
W4b (GD-4, P8 + P4):
- Luat cham diem = harness-11-engine PHAN P, 5 khoan BAT BIEN.
- Khoi cham wire 2 cua phien + rao KHONG DO DUOC + INFORM-only >=3 phien
+ tach do-day-du-khi-chay (cong may) voi tan-suat (quyen chu du an,
CAM tich no) theo thu hub 2026-08-07.
- P4: cap 20->30 du 2 mirror => slot (75) DONG (28 vai <= 30, het LOUD-skip).
- 2 vai moi score-counter (tang-2) + score-count-auditor (tang-3), ranh cung
viet thang vao persona. Seed measured{} VA thu muc nhat ky - may soi ten
bat lead seed nua voi (thieu nhat ky => mfe-eval loai vai khoi phep do).
Khai thang: acceptance W4 o-1 grep '^ST-' = 0 vi so dang BANG (dem dung dang
= 2, dat ve chat); khong be bang de chieu regex. 2 vai moi + khoi cham chi an
tu RESTART ke.
Con lai: W3b (cho soak >=1 phien), W5b (cho P7 ve ii), W6 (moc ky cua anh).
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@ -227,6 +227,26 @@ Write-Section 'B - resolved model (PA-2b, spawn transcripts)'
|
||||
$slug = $RepoRoot -replace '[:\\/_]', '-'
|
||||
$projDir = Join-Path $TranscriptRoot $slug
|
||||
|
||||
# (b) W5/S181 - GOM LANE TU CA HAI DUONG. Mot lane = mot tep .jsonl.
|
||||
# duong 1 PHANG : <session>/subagents/*.jsonl <- spawn bang Agent-tool (Task)
|
||||
# duong 2 WORKFLOW: <session>/subagents/workflows/**/agent-*.jsonl
|
||||
# Ban cu CHI quet duong 2 => mu hoan toan duong 1. Chieu mu dung la
|
||||
# 'THAY Workflow, MU Task/phang' (errata E-5: co luc bi viet NGUOC chieu).
|
||||
# Tra ve mang rong khi khong co gi - de goi ben ngoai tu quyet, khong tu in.
|
||||
function Get-LaneFiles {
|
||||
param([string]$SessionPath)
|
||||
$out = @()
|
||||
$flatRoot = Join-Path $SessionPath 'subagents'
|
||||
if (Test-Path -LiteralPath $flatRoot) {
|
||||
$out += @(Get-ChildItem -Path $flatRoot -Filter '*.jsonl' -File -ErrorAction SilentlyContinue)
|
||||
$wfRoot = Join-Path $flatRoot 'workflows'
|
||||
if (Test-Path -LiteralPath $wfRoot) {
|
||||
$out += @(Get-ChildItem -Path $wfRoot -Recurse -Filter 'agent-*.jsonl' -File -ErrorAction SilentlyContinue)
|
||||
}
|
||||
}
|
||||
return @($out)
|
||||
}
|
||||
|
||||
$dispatch = 0 # spawn lanes found (one agent-*.jsonl = one lane)
|
||||
$explicit = 0 # lanes where a resolved model is actually recorded
|
||||
$mismatch = 0 # lanes resolved to the tier-2 FAMILY but NOT the expected version = alias drift
|
||||
@ -249,17 +269,41 @@ else {
|
||||
else { Write-Flag 'MED' (Rel $cand) 'requested -SessionId not found' 'pass an existing session id, or omit to use the most recent' }
|
||||
}
|
||||
else {
|
||||
# (a) W5/S181 - CHON PHIEN KHONG LOC THEO HINH DANG THU MUC.
|
||||
# Ban cu loc 'Test-Path subagents\workflows' => phien chi co lane PHANG (Task)
|
||||
# la VO HINH. Do that @S181: 5 phien gan nhat deu wf=0, flat=2/24/5/1/1
|
||||
# => may bo qua ca 5, roi ve mot phien cu, ma van in 'TOTAL FLAGS: 0'.
|
||||
# Do la den-xanh-gia tren pham vi 0 - dung lop loi TC-09.
|
||||
# Tieu chi dung = 'co BAT KY vet spawn nao', khong phai 'co thu muc workflows'.
|
||||
$sessionDir = Get-ChildItem -Path $projDir -Directory -ErrorAction SilentlyContinue |
|
||||
Where-Object { Test-Path (Join-Path $_.FullName 'subagents\workflows') } |
|
||||
Where-Object { (Get-LaneFiles $_.FullName).Count -gt 0 } |
|
||||
Sort-Object LastWriteTime -Descending | Select-Object -First 1
|
||||
}
|
||||
|
||||
# (c) phien duoc chon co phai phien MOI NHAT khong? Neu khong, PHAI khai chenh lech.
|
||||
$newestAny = Get-ChildItem -Path $projDir -Directory -ErrorAction SilentlyContinue |
|
||||
Sort-Object LastWriteTime -Descending | Select-Object -First 1
|
||||
|
||||
if ($null -eq $sessionDir) {
|
||||
Write-Host ' [NO-SCOPE] no session with spawn transcripts under this project - nothing measured.' -ForegroundColor DarkGray
|
||||
}
|
||||
else {
|
||||
Write-Host (" session scope : {0} (last write {1:yyyy-MM-dd HH:mm})" -f $sessionDir.Name, $sessionDir.LastWriteTime)
|
||||
Write-Host ' scope = CURRENT session only, by design (old runs predate the convention; owner-decisions:64)' -ForegroundColor DarkGray
|
||||
# (c) W5/S181 - nhan ':262' cu duoc in VO DIEU KIEN, ke ca khi phien duoc chon
|
||||
# KHONG phai phien moi nhat => cau 'CURRENT session' co the SAI ma van in ra.
|
||||
# Nay: dung thi in nhu cu; khac thi KHAI CHENH LECH, khong doi ten cho de nghe.
|
||||
if ($null -ne $newestAny -and $newestAny.Name -ne $sessionDir.Name) {
|
||||
# DO, dung khang dinh. Ban dau tien cua dong nay viet cung 'nhung KHONG co vet
|
||||
# spawn nao' - mot cau CHUA DO, va no SAI ngay lan chay dau (phien moi nhat co 2 lane).
|
||||
# In con so that; ly do vi sao khong chon thi de nguoi doc tu ket luan.
|
||||
$newestLanes = (Get-LaneFiles $newestAny.FullName).Count
|
||||
Write-Host (" [KHAI] phien do KHONG phai phien moi nhat. Moi nhat = {0} (last write {1:yyyy-MM-dd HH:mm}, {2} lane)." -f `
|
||||
$newestAny.Name, $newestAny.LastWriteTime, $newestLanes) -ForegroundColor Yellow
|
||||
Write-Host ' => con so duoi day KHONG mo ta phien moi nhat. Doc kem cau nay.' -ForegroundColor Yellow
|
||||
}
|
||||
else {
|
||||
Write-Host ' scope = CURRENT session only, by design (old runs predate the convention; owner-decisions:64)' -ForegroundColor DarkGray
|
||||
}
|
||||
|
||||
# STRUCTURAL anchor: the model key of an assistant record sits immediately inside
|
||||
# "message":{ ... . Anchoring on the record shape (not a bare "model": grep) keeps quoted
|
||||
@ -267,8 +311,17 @@ else {
|
||||
# counted as if it were a real dispatch.
|
||||
$RX_MODEL = '"message"\s*:\s*\{\s*"model"\s*:\s*"([^"]+)"'
|
||||
|
||||
$wfRoot = Join-Path $sessionDir.FullName 'subagents\workflows'
|
||||
$laneFiles = @(Get-ChildItem -Path $wfRoot -Recurse -Filter 'agent-*.jsonl' -File -ErrorAction SilentlyContinue)
|
||||
$laneFiles = @(Get-LaneFiles $sessionDir.FullName)
|
||||
|
||||
# (d) W5/S181 - IN MAU SO. Khong co mau so thi 'do duoc 0 lech' va 'khong do lane nao'
|
||||
# nhin y het nhau tren man hinh - dung bay ma hop dong may soi ten goi ten o muc (3).
|
||||
$flatN = @(Get-ChildItem -Path (Join-Path $sessionDir.FullName 'subagents') -Filter '*.jsonl' -File -ErrorAction SilentlyContinue).Count
|
||||
$wfN = $laneFiles.Count - $flatN
|
||||
Write-Host (" mau so lane : {0} lane do / {1} lane ton tai (phang/Task {2} + workflow {3})" -f `
|
||||
$laneFiles.Count, $laneFiles.Count, $flatN, $wfN)
|
||||
if ($laneFiles.Count -eq 0) {
|
||||
Write-Host ' [KHAI] 0 lane - moi con so duoi day la tren pham vi RONG, KHONG phai bang chung sach.' -ForegroundColor Yellow
|
||||
}
|
||||
|
||||
foreach ($lane in $laneFiles) {
|
||||
$dispatch++
|
||||
@ -279,7 +332,10 @@ else {
|
||||
}
|
||||
$distinct = @($models | Sort-Object -Unique)
|
||||
|
||||
$wfName = Split-Path (Split-Path $lane.FullName -Parent) -Leaf
|
||||
# Lane PHANG nam thang trong 'subagents' => parent-leaf ra dung chu 'subagents',
|
||||
# doc len khong biet la gi. Dat nhan ro rang de phan biet 2 duong.
|
||||
$parentLeaf = Split-Path (Split-Path $lane.FullName -Parent) -Leaf
|
||||
$wfName = if ($parentLeaf -eq 'subagents') { 'flat/Task' } else { $parentLeaf }
|
||||
$agentType = '?'
|
||||
$metaPath = ($lane.FullName -replace '\.jsonl$', '.meta.json')
|
||||
if (Test-Path $metaPath) {
|
||||
|
||||
Reference in New Issue
Block a user