修改完成55%
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
$ErrorActionPreference = 'Stop'
|
||||
|
||||
$decode = {
|
||||
param([string]$value)
|
||||
[Text.Encoding]::UTF8.GetString([Convert]::FromBase64String($value))
|
||||
}
|
||||
|
||||
$handoff = Get-Content -Raw -Encoding UTF8 (& $decode 'ZG9jcy/kuqTmjqXorrDlvZUubWQ=')
|
||||
$manual = Get-Content -Raw -Encoding UTF8 (& $decode 'ZG9jcy9kZXNpZ24v6KeG6KeJ6K6+6K6h5Lqk5o6l5omL5YaMLm1k')
|
||||
$planning = Get-Content -Raw -Encoding UTF8 (& $decode 'ZG9jcy/op4TliJIubWQ=')
|
||||
|
||||
foreach ($required in @(
|
||||
(& $decode 'NTQg5p2h5pyA57uI6Lev55Sx'),
|
||||
(& $decode 'NyDkuKrlt7LpqozmlLY='),
|
||||
(& $decode 'NDcg5Liq5b6F5a6h5qC45YCZ6YCJ'),
|
||||
'product-design:index',
|
||||
'product-design:audit',
|
||||
'imagegen',
|
||||
'superpowers:test-driven-development',
|
||||
'superpowers:systematic-debugging',
|
||||
'superpowers:verification-before-completion',
|
||||
(& $decode 'ZG9jcy9kZXNpZ24v6KeG6KeJ6K+B5o2u57Si5byVLm1k')
|
||||
)) {
|
||||
if ($handoff -notmatch [regex]::Escape($required)) {
|
||||
throw "handoff missing: $required"
|
||||
}
|
||||
}
|
||||
|
||||
foreach ($stale in @(
|
||||
(& $decode '5YWt5Liq5bey6aqM5pS2'),
|
||||
(& $decode '57uT5p6c5oCB5ZKM5peg57uT5p6c5oCB55qE5ZCM54mI6YeN5paw5oiq5Zu+5bCa5pyq5a6M5oiQ'),
|
||||
(& $decode '57uT5p6c5oCBL+aXoOe7k+aenOaAgeeahOWQjOeJiOaIquWbvuWSjOeUqOaIt+Wuoee+juehruiupOWwmuacquWujOaIkA=='),
|
||||
(& $decode '5LiL5LiA6aG55oyJIEbjgIFS44CBTuOAgU0g5o6o6L+b')
|
||||
)) {
|
||||
if (($handoff + $manual) -match [regex]::Escape($stale)) {
|
||||
throw "stale handoff text remains: $stale"
|
||||
}
|
||||
}
|
||||
|
||||
$approved = ([regex]::Matches($planning, '- \[x\]')).Count
|
||||
$candidate = ([regex]::Matches($planning, '- \[~\]')).Count
|
||||
if ($approved -ne 7 -or $candidate -ne 47) {
|
||||
throw "planning counts changed: approved=$approved candidate=$candidate"
|
||||
}
|
||||
|
||||
Write-Output 'HANDOFF-DOCUMENTATION-CONTRACT PASS'
|
||||
Reference in New Issue
Block a user