完成50%

This commit is contained in:
2026-07-23 08:23:59 +08:00
parent 9b0ad62df4
commit f1edc6b533
218 changed files with 24318 additions and 5514 deletions
+5 -4
View File
@@ -2,10 +2,11 @@ $ErrorActionPreference = 'Stop'
$root = Split-Path -Parent $PSScriptRoot
$search = Get-Content -LiteralPath (Join-Path $root 'pages/genealogy/g06-search-genealogies.vue') -Raw -Encoding UTF8
$join = Get-Content -LiteralPath (Join-Path $root 'pages/genealogy/g08-join-application.vue') -Raw -Encoding UTF8
foreach ($token in @('genealogyName=${encodeURIComponent(item.name)}', 'previous=${item.relation}')) {
if (-not $search.Contains($token)) { throw "G06 context propagation missing: $token" }
foreach ($token in @('genealogyName:', 'previous:', 'encodeURIComponent(item.name)')) {
if ($search.Contains($token)) { throw "G06 must not propagate retired context: $token" }
}
foreach ($token in @('previousRelation', 'query.genealogyName', 'previousNotice', 'decodeURIComponent')) {
if (-not $join.Contains($token)) { throw "G08 context consumption missing: $token" }
foreach ($token in @('previousRelation', 'query.genealogyName', 'query.previous', 'decodeURIComponent', 'genealogyPreview')) {
if ($join.Contains($token)) { throw "G08 must not consume retired context: $token" }
}
if (-not $join.Contains('findGenealogyFixture')) { throw 'G08 must read display identity from the shared genealogy fixture owner' }
Write-Output 'G06-G08-CONTEXT-CONTRACT PASS'