docs: archive A01 static size evidence

This commit is contained in:
rain
2026-07-13 13:56:03 +08:00
parent 86a41bcebc
commit c41d155ffe
9 changed files with 32 additions and 13 deletions
+19
View File
@@ -45,4 +45,23 @@ if (-not (Test-Path -LiteralPath $effect)) {
throw "Missing archived A01 effect: $effect"
}
$screenDirectory = Split-Path -Parent $effect
$staticEffects = @(
(ConvertFrom-Utf8Base64 'QTAxLeWQr+WKqOeZu+W9leW8leWvvC3moIXmoLzpqozmlLYtMzIweDU2OC5wbmc='),
(ConvertFrom-Utf8Base64 'QTAxLeWQr+WKqOeZu+W9leW8leWvvC3moIXmoLzpqozmlLYtMzYweDY0MC5wbmc='),
(ConvertFrom-Utf8Base64 'QTAxLeWQr+WKqOeZu+W9leW8leWvvC3moIXmoLzpqozmlLYtMzYweDgwMC5wbmc='),
(ConvertFrom-Utf8Base64 'QTAxLeWQr+WKqOeZu+W9leW8leWvvC3moIXmoLzpqozmlLYtNDEyeDkxNS5wbmc=')
)
foreach ($staticEffect in $staticEffects) {
if (-not (Test-Path -LiteralPath (Join-Path $screenDirectory $staticEffect))) {
throw "Missing static A01 evidence: $staticEffect"
}
}
$staticEvidenceRule = ConvertFrom-Utf8Base64 '6Z2Z5oCB6K6+6K6h6aqM5pS25bey6KaG55uW'
if ($record -notmatch [regex]::Escape($staticEvidenceRule)) {
throw "Missing static A01 evidence rule: $staticEvidenceRule"
}
Write-Output 'A01-DESIGN-RECORD-AUDIT PASS'