From 74227be2e8d217db2231e9c1ea9cf0725275593d Mon Sep 17 00:00:00 2001 From: Colin Neilens Date: Wed, 11 Nov 2026 10:38:39 -0700 Subject: [PATCH 1/3] Audit Windows parity backlog metadata Signed-off-by: Colin Neilens Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- Tools/windows/Test-UiParityBacklog.ps1 | 167 +++++++++++++++++++++++++ investigation/ui-parity-matrix.md | 52 ++++++++ 2 files changed, 219 insertions(+) create mode 100644 Tools/windows/Test-UiParityBacklog.ps1 diff --git a/Tools/windows/Test-UiParityBacklog.ps1 b/Tools/windows/Test-UiParityBacklog.ps1 new file mode 100644 index 00000000..6ba23e4b --- /dev/null +++ b/Tools/windows/Test-UiParityBacklog.ps1 @@ -0,0 +1,167 @@ +<# +.SYNOPSIS +Checks that the Windows parity ledger and open parity backlog stay synchronized. + +.DESCRIPTION +The ledger's canonical rows end with `| Partial |`. Each Partial row must link +an open `parity` issue either in the row itself or in the marked mapping table. +Every open parity issue must have one P1/P2/P3 priority, at least one assignee, +and evidence metadata in its body. + +Use IssuesPath with a JSON array containing number, title, labels, assignees, +and body fields to audit a captured snapshot. Without it, the script reads the +current issue state through the GitHub CLI. +#> +[CmdletBinding()] +param( + [string] $Repository = "scgopi/GraphCode", + [string] $LedgerPath = "investigation\ui-parity-matrix.md", + [string] $IssuesPath +) + +$ErrorActionPreference = "Stop" + +if (-not (Test-Path -LiteralPath $LedgerPath -PathType Leaf)) { + throw "Parity ledger does not exist: $LedgerPath" +} + +if ($IssuesPath) { + if (-not (Test-Path -LiteralPath $IssuesPath -PathType Leaf)) { + throw "Issue snapshot does not exist: $IssuesPath" + } + $rawIssues = Get-Content -LiteralPath $IssuesPath -Raw +} else { + $rawIssues = & gh issue list ` + --repo $Repository ` + --state open ` + --label parity ` + --limit 200 ` + --json number,title,labels,assignees,body + if ($LASTEXITCODE -ne 0) { + throw "GitHub CLI could not read open parity issues for $Repository." + } + $rawIssues = $rawIssues -join "`n" +} + +$issues = @($rawIssues | ConvertFrom-Json) +$openParity = @{} +$errors = [System.Collections.Generic.List[string]]::new() +$priorityNames = @("P1 layout", "P2 feature", "P3 polish") +$evidencePattern = "Current Windows evidence/status|Still open / Partial|Windows today:|Evidence:|Evidence limits:" + +foreach ($issue in $issues) { + $number = [int] $issue.number + $labelNames = @($issue.labels | ForEach-Object { [string] $_.name }) + if ("parity" -notin $labelNames) { + continue + } + + $openParity[$number] = $issue + $priorities = @($labelNames | Where-Object { $_ -in $priorityNames }) + if ($priorities.Count -ne 1) { + $errors.Add("#$number has $($priorities.Count) parity priority labels; expected exactly one.") + } + + if (@($issue.assignees).Count -eq 0) { + $errors.Add("#$number has no owner.") + } + + $body = [string] $issue.body + if ($body -notmatch $evidencePattern) { + $errors.Add("#$number has no structured evidence metadata.") + } +} + +$ledgerLines = Get-Content -LiteralPath $LedgerPath +$mappedByRow = @{} +$insideMappingTable = $false +foreach ($line in $ledgerLines) { + if ($line -eq "") { + $insideMappingTable = $true + continue + } + if ($line -eq "") { + $insideMappingTable = $false + continue + } + if (-not $insideMappingTable) { + continue + } + + $mapping = [regex]::Match( + $line, + '^\|\s*(?.+?)\s*\|\s*\[#(?\d+)\]\([^)]+\)\s*\|\s*$' + ) + if ($mapping.Success) { + $row = $mapping.Groups["row"].Value.Trim() + $number = [int] $mapping.Groups["number"].Value + if (-not $mappedByRow.ContainsKey($row)) { + $mappedByRow[$row] = [System.Collections.Generic.List[int]]::new() + } + $mappedByRow[$row].Add($number) + } +} + +$partialRows = 0 +$partialRowNames = @{} +foreach ($line in $ledgerLines) { + $rowMatch = [regex]::Match( + $line, + '^\|\s*(?.+?)\s*\|.*\|\s*Partial\s*\|\s*$' + ) + if (-not $rowMatch.Success) { + continue + } + + $partialRows++ + $row = $rowMatch.Groups["row"].Value.Trim() + $partialRowNames[$row] = $true + $linked = [System.Collections.Generic.List[int]]::new() + foreach ($match in [regex]::Matches($line, '#(?\d+)')) { + $linked.Add([int] $match.Groups["number"].Value) + } + if ($mappedByRow.ContainsKey($row)) { + foreach ($number in $mappedByRow[$row]) { + $linked.Add($number) + } + } + + $hasOpenMapping = $false + foreach ($number in $linked) { + if ($openParity.ContainsKey($number)) { + $hasOpenMapping = $true + break + } + } + if (-not $hasOpenMapping) { + $errors.Add("Partial row '$row' has no open parity issue mapping.") + } +} + +if ($partialRows -eq 0) { + $errors.Add("The ledger contains no canonical Partial rows.") +} + +foreach ($row in $mappedByRow.Keys) { + if (-not $partialRowNames.ContainsKey($row)) { + $errors.Add("Mapping table row '$row' is not a canonical Partial row.") + } + if ($mappedByRow[$row].Count -ne 1) { + $errors.Add("Mapping table row '$row' has $($mappedByRow[$row].Count) issues; expected exactly one.") + } + foreach ($number in $mappedByRow[$row]) { + if (-not $openParity.ContainsKey($number)) { + $errors.Add("Mapping table row '$row' references #$number, which is not an open parity issue.") + } + } +} + +if ($errors.Count -gt 0) { + foreach ($failure in $errors) { + [Console]::Error.WriteLine($failure) + } + exit 1 +} + +Write-Host "Parity backlog audit: PASS ($partialRows Partial rows, $($openParity.Count) open parity issues)" +exit 0 diff --git a/investigation/ui-parity-matrix.md b/investigation/ui-parity-matrix.md index 09a82613..b417a009 100644 --- a/investigation/ui-parity-matrix.md +++ b/investigation/ui-parity-matrix.md @@ -39,6 +39,58 @@ Statuses: approved. Optional additions use enhancement tracking; an unwanted extra's removal is not a request to add an enhancement. +## Partial-row issue map + +The canonical row may link its issue inline, or use this compact mapping table. +Run `pwsh -NoProfile -File Tools\windows\Test-UiParityBacklog.ps1` after editing +the ledger or issue metadata. The audit reads the open `parity` snapshot and +requires each `Partial` row to map to an open issue, each issue to have exactly +one `P1 layout`/`P2 feature`/`P3 polish` label, an owner, and structured +evidence metadata. + + +| Partial row | Open parity issue | +| --- | --- | +| Jump palette | [#998](https://github.com/scgopi/GraphCode/issues/998) | +| Update command | [#969](https://github.com/scgopi/GraphCode/issues/969) | +| Tray lifecycle | [#970](https://github.com/scgopi/GraphCode/issues/970) | +| Connection failure presentation | [#971](https://github.com/scgopi/GraphCode/issues/971) | +| No-project Welcome detail | [#972](https://github.com/scgopi/GraphCode/issues/972) | +| Empty global graph | [#973](https://github.com/scgopi/GraphCode/issues/973) | +| Empty project canvas | [#974](https://github.com/scgopi/GraphCode/issues/974) | +| Project context menu | [#975](https://github.com/scgopi/GraphCode/issues/975) | +| Recent projects | [#976](https://github.com/scgopi/GraphCode/issues/976) | +| Add Folder menu | [#977](https://github.com/scgopi/GraphCode/issues/977) | +| Sidebar update banner | [#978](https://github.com/scgopi/GraphCode/issues/978) | +| Sidebar error footer | [#979](https://github.com/scgopi/GraphCode/issues/979) | +| Activity strip | [#980](https://github.com/scgopi/GraphCode/issues/980) | +| Composite breadcrumb | [#981](https://github.com/scgopi/GraphCode/issues/981) | +| Canvas attention rail | [#999](https://github.com/scgopi/GraphCode/issues/999) | +| Node positioning | [#982](https://github.com/scgopi/GraphCode/issues/982) | +| Connector handles | [#983](https://github.com/scgopi/GraphCode/issues/983) | +| Worktree reclaim offer | [#985](https://github.com/scgopi/GraphCode/issues/985) | +| Composite card actions | [#986](https://github.com/scgopi/GraphCode/issues/986) | +| Loop card live detail | [#984](https://github.com/scgopi/GraphCode/issues/984) | +| Quick Chats canvas | [#774](https://github.com/scgopi/GraphCode/issues/774) | +| Quick Chat cards | [#987](https://github.com/scgopi/GraphCode/issues/987) | +| Rename chat | [#988](https://github.com/scgopi/GraphCode/issues/988) | +| Delete chat | [#989](https://github.com/scgopi/GraphCode/issues/989) | +| Folder toolbar identity | [#1000](https://github.com/scgopi/GraphCode/issues/1000) | +| Open Folder | [#990](https://github.com/scgopi/GraphCode/issues/990) | +| Clone Repository sheet | [#991](https://github.com/scgopi/GraphCode/issues/991) | +| Add Remote Repository sheet | [#992](https://github.com/scgopi/GraphCode/issues/992) | +| Remote Connection info | [#993](https://github.com/scgopi/GraphCode/issues/993) | +| Project Settings sheet | [#994](https://github.com/scgopi/GraphCode/issues/994) | +| Available update alert | [#1001](https://github.com/scgopi/GraphCode/issues/1001) | +| Chat rename/delete | [#995](https://github.com/scgopi/GraphCode/issues/995) | +| Project delete loops | [#996](https://github.com/scgopi/GraphCode/issues/996) | +| Project remove/trash | [#997](https://github.com/scgopi/GraphCode/issues/997) | + + +[#801](https://github.com/scgopi/GraphCode/issues/801) is closed and linked to +merged [#968](https://github.com/scgopi/GraphCode/pull/968); row coverage must +use the still-open parity issue for the remaining whole-row criteria. + ## 2026-11-09 Jump acceptance preparation The Jump palette row remains **Partial** for [#799](https://github.com/scgopi/GraphCode/issues/799). From ebf79c7ac93120deaa469914022ca41dc5d2a155 Mon Sep 17 00:00:00 2001 From: Colin Neilens Date: Wed, 11 Nov 2026 12:04:26 -0700 Subject: [PATCH 2/3] Harden parity backlog audit coverage Signed-off-by: Colin Neilens Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- Tools/windows/Test-UiParityBacklog.ps1 | 188 ++++++++++++++++-- Tools/windows/Tests/UiParityBacklog.Tests.ps1 | 102 ++++++++++ investigation/ui-parity-matrix.md | 15 +- 3 files changed, 288 insertions(+), 17 deletions(-) create mode 100644 Tools/windows/Tests/UiParityBacklog.Tests.ps1 diff --git a/Tools/windows/Test-UiParityBacklog.ps1 b/Tools/windows/Test-UiParityBacklog.ps1 index 6ba23e4b..1bfa463a 100644 --- a/Tools/windows/Test-UiParityBacklog.ps1 +++ b/Tools/windows/Test-UiParityBacklog.ps1 @@ -3,14 +3,16 @@ Checks that the Windows parity ledger and open parity backlog stay synchronized. .DESCRIPTION -The ledger's canonical rows end with `| Partial |`. Each Partial row must link -an open `parity` issue either in the row itself or in the marked mapping table. -Every open parity issue must have one P1/P2/P3 priority, at least one assignee, -and evidence metadata in its body. - -Use IssuesPath with a JSON array containing number, title, labels, assignees, -and body fields to audit a captured snapshot. Without it, the script reads the -current issue state through the GitHub CLI. +The ledger has exactly 89 named canonical rows ending with `| Partial |`. Each +Partial row must link an open `parity` issue either in the row itself or in the +marked mapping table. Every open parity issue must map back to a row unless it +has an explicit metadata/infrastructure exemption, and must have one P1/P2/P3 +priority, at least one assignee, and evidence metadata in its body. + +Use IssuesPath with a JSON array containing number, state, title, labels, +assignees, and body fields to audit a captured snapshot. Snapshot entries must +be OPEN; missing or closed states fail closed. Without IssuesPath, the script +reads the current open issue state through the GitHub CLI. #> [CmdletBinding()] param( @@ -36,7 +38,7 @@ if ($IssuesPath) { --state open ` --label parity ` --limit 200 ` - --json number,title,labels,assignees,body + --json number,state,title,labels,assignees,body if ($LASTEXITCODE -ne 0) { throw "GitHub CLI could not read open parity issues for $Repository." } @@ -48,9 +50,111 @@ $openParity = @{} $errors = [System.Collections.Generic.List[string]]::new() $priorityNames = @("P1 layout", "P2 feature", "P3 polish") $evidencePattern = "Current Windows evidence/status|Still open / Partial|Windows today:|Evidence:|Evidence limits:" +$expectedPartialRows = @( + "Main split view", + "Window toolbar", + "Jump palette", + "File/Loop/Terminal menus", + "Workspace lifecycle", + "Update command", + "Tray lifecycle", + "Connection failure presentation", + "Five-page onboarding", + "No-project Welcome detail", + "Empty global graph", + "Empty project canvas", + "Empty Quick Chats canvas", + "Graph row", + "Quick Chats group", + "Local/remote sections", + "Project rows", + "Nested loop tree", + "Loop row presentation", + "Project context menu", + "Loop context menu", + "Recent projects", + "Add Folder menu", + "Sidebar update banner", + "Sidebar error footer", + "Activity strip", + "Cross-project global graph", + "Folder lanes/bands", + "Notebook grid", + "Pan and anchored zoom", + "Zoom controls", + "New Loop canvas button", + "Composite breadcrumb", + "Canvas attention rail", + "Node positioning", + "Connector handles", + "Loop card identity", + "Loop card live detail", + "Loop card attention", + "Unwired card recovery", + "Worktree reclaim offer", + "Composite card actions", + "Edge presentation", + "Edge creation sheet", + "Custody child creation", + "Node creation sheet", + "Node update/rename", + "Delete confirmations", + "Canvas context menu", + "Sketch promotion", + "Quick Chats canvas", + "Quick Chat cards", + "Create chat", + "Rename chat", + "Delete chat", + "Chat workspace", + "Terminal VT state and rendering", + "Folder toolbar identity", + "Loop bar", + "Tab pills", + "Split controls", + "Pane headers", + "Right loop panel", + "Open Folder", + "Clone Repository sheet", + "Add Remote Repository sheet", + "Remote Connection info", + "Add Codespace sheet", + "Product Settings window", + "Project Settings sheet", + "Worktree sweep sheet", + "Worktree notice chip", + "Available update alert", + "Install progress", + "Relaunch prompt", + "Install failure", + "Loop rename", + "Loop delete", + "Chat rename/delete", + "Project delete loops", + "Project remove/trash", + "UI Automation tree", + "Keyboard discovery", + "Clipboard/selection", + "Per-monitor DPI", + "Dark visual language", + "Font rendering quality", + "Line/shape anti-aliasing", + "Color palette fidelity" +) foreach ($issue in $issues) { $number = [int] $issue.number + $stateProperty = $issue.PSObject.Properties["state"] + if ($null -eq $stateProperty) { + $errors.Add("#$number snapshot entry has no state; expected OPEN.") + continue + } + $state = [string] $stateProperty.Value + if ($state -cne "OPEN") { + $errors.Add("#$number snapshot entry has state '$state'; expected OPEN.") + continue + } + $labelNames = @($issue.labels | ForEach-Object { [string] $_.name }) if ("parity" -notin $labelNames) { continue @@ -74,7 +178,10 @@ foreach ($issue in $issues) { $ledgerLines = Get-Content -LiteralPath $LedgerPath $mappedByRow = @{} +$exemptIssues = @{} +$mappedIssues = @{} $insideMappingTable = $false +$insideExemptionTable = $false foreach ($line in $ledgerLines) { if ($line -eq "") { $insideMappingTable = $true @@ -84,7 +191,30 @@ foreach ($line in $ledgerLines) { $insideMappingTable = $false continue } - if (-not $insideMappingTable) { + if ($line -eq "") { + $insideExemptionTable = $true + continue + } + if ($line -eq "") { + $insideExemptionTable = $false + continue + } + if (-not $insideMappingTable -and -not $insideExemptionTable) { + continue + } + + if ($insideExemptionTable) { + $exemption = [regex]::Match( + $line, + '^\|\s*\[#(?\d+)\]\([^)]+\)\s*\|\s*(?.+?)\s*\|\s*$' + ) + if ($exemption.Success) { + $number = [int] $exemption.Groups["number"].Value + if ($exemptIssues.ContainsKey($number)) { + $errors.Add("Open parity issue #$number has duplicate exemptions.") + } + $exemptIssues[$number] = $exemption.Groups["reason"].Value.Trim() + } continue } @@ -115,6 +245,9 @@ foreach ($line in $ledgerLines) { $partialRows++ $row = $rowMatch.Groups["row"].Value.Trim() + if ($partialRowNames.ContainsKey($row)) { + $errors.Add("Canonical Partial row '$row' appears more than once.") + } $partialRowNames[$row] = $true $linked = [System.Collections.Generic.List[int]]::new() foreach ($match in [regex]::Matches($line, '#(?\d+)')) { @@ -130,7 +263,7 @@ foreach ($line in $ledgerLines) { foreach ($number in $linked) { if ($openParity.ContainsKey($number)) { $hasOpenMapping = $true - break + $mappedIssues[$number] = $true } } if (-not $hasOpenMapping) { @@ -138,24 +271,47 @@ foreach ($line in $ledgerLines) { } } -if ($partialRows -eq 0) { - $errors.Add("The ledger contains no canonical Partial rows.") +if ($partialRows -ne 89) { + $errors.Add("The ledger has $partialRows canonical Partial rows; expected 89.") +} +if ($partialRowNames.Count -ne 89) { + $errors.Add("The ledger has $($partialRowNames.Count) unique canonical Partial row identities; expected 89.") +} +foreach ($expectedRow in $expectedPartialRows) { + if (-not $partialRowNames.ContainsKey($expectedRow)) { + $errors.Add("Canonical Partial row '$expectedRow' is missing.") + } +} +foreach ($actualRow in $partialRowNames.Keys) { + if ($actualRow -notin $expectedPartialRows) { + $errors.Add("Canonical Partial row '$actualRow' is not in the expected identity set.") + } } foreach ($row in $mappedByRow.Keys) { if (-not $partialRowNames.ContainsKey($row)) { $errors.Add("Mapping table row '$row' is not a canonical Partial row.") } - if ($mappedByRow[$row].Count -ne 1) { - $errors.Add("Mapping table row '$row' has $($mappedByRow[$row].Count) issues; expected exactly one.") - } foreach ($number in $mappedByRow[$row]) { if (-not $openParity.ContainsKey($number)) { $errors.Add("Mapping table row '$row' references #$number, which is not an open parity issue.") + } else { + $mappedIssues[$number] = $true } } } +foreach ($number in $exemptIssues.Keys) { + if (-not $openParity.ContainsKey($number)) { + $errors.Add("Exemption #$number is not an open parity issue.") + } +} +foreach ($number in $openParity.Keys) { + if (-not $mappedIssues.ContainsKey($number) -and -not $exemptIssues.ContainsKey($number)) { + $errors.Add("Open parity issue #$number is neither mapped to a Partial row nor explicitly exempt.") + } +} + if ($errors.Count -gt 0) { foreach ($failure in $errors) { [Console]::Error.WriteLine($failure) diff --git a/Tools/windows/Tests/UiParityBacklog.Tests.ps1 b/Tools/windows/Tests/UiParityBacklog.Tests.ps1 new file mode 100644 index 00000000..1e03176f --- /dev/null +++ b/Tools/windows/Tests/UiParityBacklog.Tests.ps1 @@ -0,0 +1,102 @@ +$ErrorActionPreference = "Stop" + +$repositoryRoot = (Resolve-Path (Join-Path $PSScriptRoot "..\..\..")).Path +$auditor = Join-Path $repositoryRoot "Tools\windows\Test-UiParityBacklog.ps1" +$ledgerPath = Join-Path $repositoryRoot "investigation\ui-parity-matrix.md" +$fixtureRoot = Join-Path ([IO.Path]::GetTempPath()) ("graphcode-parity-audit-" + [Guid]::NewGuid().ToString("N")) +New-Item -ItemType Directory -Path $fixtureRoot | Out-Null + +function Invoke-AuditFailure { + param( + [string] $Path, + [string] $Expected + ) + + $output = & pwsh -NoProfile -File $auditor -LedgerPath $Path -IssuesPath $script:snapshotPath 2>&1 + $code = $LASTEXITCODE + if ($code -eq 0) { + throw "Negative fixture unexpectedly passed: $Path" + } + $text = $output -join "`n" + if ($text -notmatch [regex]::Escape($Expected)) { + throw "Negative fixture '$Path' omitted expected error '$Expected'. Output: $text" + } +} + +try { + Push-Location $repositoryRoot + $script:snapshotPath = Join-Path $fixtureRoot "open-issues.json" + $snapshot = & gh issue list ` + --repo scgopi/GraphCode ` + --state open ` + --label parity ` + --limit 200 ` + --json number,state,title,labels,assignees,body + if ($LASTEXITCODE -ne 0) { + throw "Could not capture open parity issues." + } + $snapshot -join "`n" | Set-Content -LiteralPath $script:snapshotPath -Encoding utf8NoBOM + + $ledger = Get-Content -LiteralPath $ledgerPath + $partialIndexes = @( + 0..($ledger.Count - 1) | + Where-Object { $ledger[$_] -match '^\|\s*.+?\s*\|.*\|\s*Partial\s*\|\s*$' } + ) + $duplicateLedgerPath = Join-Path $fixtureRoot "duplicate-row-identity.md" + $firstRow = $ledger[$partialIndexes[0]] + $lastIndex = $partialIndexes[-1] + $duplicateLedger = @($ledger) + $duplicateLedger[$lastIndex] = $firstRow + $duplicateLedger | Set-Content -LiteralPath $duplicateLedgerPath -Encoding utf8NoBOM + Invoke-AuditFailure $duplicateLedgerPath "has 88 unique canonical Partial row identities; expected 89" + + $removedLedgerPath = Join-Path $fixtureRoot "removed-row-identity.md" + $removedLedger = @( + 0..($ledger.Count - 1) | + Where-Object { $_ -ne $lastIndex } | + ForEach-Object { $ledger[$_] } + ) + $removedLedger | Set-Content -LiteralPath $removedLedgerPath -Encoding utf8NoBOM + $removedRowName = [regex]::Match( + $ledger[$lastIndex], + '^\|\s*(?.+?)\s*\|' + ).Groups["row"].Value.Trim() + Invoke-AuditFailure $removedLedgerPath "Canonical Partial row '$removedRowName' is missing" + + $missingStatePath = Join-Path $fixtureRoot "missing-state.json" + $missingState = @($snapshot | ConvertFrom-Json) + $missingState[0].PSObject.Properties.Remove("state") + $missingState | ConvertTo-Json -Depth 8 | Set-Content -LiteralPath $missingStatePath -Encoding utf8NoBOM + $script:previousSnapshotPath = $script:snapshotPath + $script:snapshotPath = $missingStatePath + Invoke-AuditFailure $ledgerPath "snapshot entry has no state; expected OPEN" + + $closedStatePath = Join-Path $fixtureRoot "closed-state.json" + $closedState = @(Get-Content -LiteralPath $script:previousSnapshotPath -Raw | ConvertFrom-Json) + $closedState[0].state = "CLOSED" + $closedState | ConvertTo-Json -Depth 8 | Set-Content -LiteralPath $closedStatePath -Encoding utf8NoBOM + $script:snapshotPath = $closedStatePath + Invoke-AuditFailure $ledgerPath "snapshot entry has state 'CLOSED'; expected OPEN" + + $unmappedPath = Join-Path $fixtureRoot "unmapped-open-issue.json" + $unmapped = @(Get-Content -LiteralPath $script:previousSnapshotPath -Raw | ConvertFrom-Json) + $unmapped += [pscustomobject]@{ + number = 999999 + state = "OPEN" + title = "Negative reverse-coverage fixture" + labels = @( + [pscustomobject]@{ name = "parity" }, + [pscustomobject]@{ name = "P2 feature" } + ) + assignees = @([pscustomobject]@{ login = "coneilen" }) + body = "Evidence: intentional negative fixture" + } + $unmapped | ConvertTo-Json -Depth 8 | Set-Content -LiteralPath $unmappedPath -Encoding utf8NoBOM + $script:snapshotPath = $unmappedPath + Invoke-AuditFailure $ledgerPath "Open parity issue #999999 is neither mapped to a Partial row nor explicitly exempt" + + Write-Host "UiParityBacklog.Tests.ps1: PASS" +} finally { + Pop-Location + Remove-Item -LiteralPath $fixtureRoot -Recurse -Force +} diff --git a/investigation/ui-parity-matrix.md b/investigation/ui-parity-matrix.md index b417a009..cc903a69 100644 --- a/investigation/ui-parity-matrix.md +++ b/investigation/ui-parity-matrix.md @@ -46,7 +46,9 @@ Run `pwsh -NoProfile -File Tools\windows\Test-UiParityBacklog.ps1` after editing the ledger or issue metadata. The audit reads the open `parity` snapshot and requires each `Partial` row to map to an open issue, each issue to have exactly one `P1 layout`/`P2 feature`/`P3 polish` label, an owner, and structured -evidence metadata. +evidence metadata. It also requires exactly 89 unique canonical `Partial` +identities and reverse-maps every open parity issue to a row or the explicit +metadata/infrastructure exemption below. | Partial row | Open parity issue | @@ -71,10 +73,14 @@ evidence metadata. | Worktree reclaim offer | [#985](https://github.com/scgopi/GraphCode/issues/985) | | Composite card actions | [#986](https://github.com/scgopi/GraphCode/issues/986) | | Loop card live detail | [#984](https://github.com/scgopi/GraphCode/issues/984) | +| Edge presentation | [#765](https://github.com/scgopi/GraphCode/issues/765) | +| Edge creation sheet | [#770](https://github.com/scgopi/GraphCode/issues/770) | +| Node creation sheet | [#769](https://github.com/scgopi/GraphCode/issues/769) | | Quick Chats canvas | [#774](https://github.com/scgopi/GraphCode/issues/774) | | Quick Chat cards | [#987](https://github.com/scgopi/GraphCode/issues/987) | | Rename chat | [#988](https://github.com/scgopi/GraphCode/issues/988) | | Delete chat | [#989](https://github.com/scgopi/GraphCode/issues/989) | +| Terminal VT state and rendering | [#775](https://github.com/scgopi/GraphCode/issues/775) | | Folder toolbar identity | [#1000](https://github.com/scgopi/GraphCode/issues/1000) | | Open Folder | [#990](https://github.com/scgopi/GraphCode/issues/990) | | Clone Repository sheet | [#991](https://github.com/scgopi/GraphCode/issues/991) | @@ -82,11 +88,18 @@ evidence metadata. | Remote Connection info | [#993](https://github.com/scgopi/GraphCode/issues/993) | | Project Settings sheet | [#994](https://github.com/scgopi/GraphCode/issues/994) | | Available update alert | [#1001](https://github.com/scgopi/GraphCode/issues/1001) | +| Available update alert | [#780](https://github.com/scgopi/GraphCode/issues/780) | | Chat rename/delete | [#995](https://github.com/scgopi/GraphCode/issues/995) | | Project delete loops | [#996](https://github.com/scgopi/GraphCode/issues/996) | | Project remove/trash | [#997](https://github.com/scgopi/GraphCode/issues/997) | + +| Open parity issue | Explicit exemption | +| --- | --- | +| [#822](https://github.com/scgopi/GraphCode/issues/822) | Metadata/infrastructure: shared verifier and capture driver, not a user-visible ledger surface. | + + [#801](https://github.com/scgopi/GraphCode/issues/801) is closed and linked to merged [#968](https://github.com/scgopi/GraphCode/pull/968); row coverage must use the still-open parity issue for the remaining whole-row criteria. From 2de91947ced33c159a2b770b201350fceef9be25 Mon Sep 17 00:00:00 2001 From: Colin Neilens Date: Wed, 11 Nov 2026 12:30:09 -0700 Subject: [PATCH 3/3] Run parity backlog audit in CI Signed-off-by: Colin Neilens Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- Tools/windows/Test-UiParityBacklog.ps1 | 8 +- Tools/windows/Tests/UiParityBacklog.Tests.ps1 | 33 +++++--- .../UiParityBacklog/open-parity-issues.json | 81 +++++++++++++++++++ Tools/windows/validate.ps1 | 16 ++++ investigation/ui-parity-matrix.md | 7 +- 5 files changed, 126 insertions(+), 19 deletions(-) create mode 100644 Tools/windows/Tests/fixtures/UiParityBacklog/open-parity-issues.json diff --git a/Tools/windows/Test-UiParityBacklog.ps1 b/Tools/windows/Test-UiParityBacklog.ps1 index 1bfa463a..83ac0023 100644 --- a/Tools/windows/Test-UiParityBacklog.ps1 +++ b/Tools/windows/Test-UiParityBacklog.ps1 @@ -9,10 +9,10 @@ marked mapping table. Every open parity issue must map back to a row unless it has an explicit metadata/infrastructure exemption, and must have one P1/P2/P3 priority, at least one assignee, and evidence metadata in its body. -Use IssuesPath with a JSON array containing number, state, title, labels, -assignees, and body fields to audit a captured snapshot. Snapshot entries must -be OPEN; missing or closed states fail closed. Without IssuesPath, the script -reads the current open issue state through the GitHub CLI. +Use IssuesPath with a JSON array containing number, state, labels, assignees, +and body fields to audit a captured snapshot. Snapshot entries must be OPEN; +missing or closed states fail closed. Without IssuesPath, the script reads the +current open issue state through the GitHub CLI. #> [CmdletBinding()] param( diff --git a/Tools/windows/Tests/UiParityBacklog.Tests.ps1 b/Tools/windows/Tests/UiParityBacklog.Tests.ps1 index 1e03176f..ce6a8e48 100644 --- a/Tools/windows/Tests/UiParityBacklog.Tests.ps1 +++ b/Tools/windows/Tests/UiParityBacklog.Tests.ps1 @@ -3,6 +3,8 @@ $ErrorActionPreference = "Stop" $repositoryRoot = (Resolve-Path (Join-Path $PSScriptRoot "..\..\..")).Path $auditor = Join-Path $repositoryRoot "Tools\windows\Test-UiParityBacklog.ps1" $ledgerPath = Join-Path $repositoryRoot "investigation\ui-parity-matrix.md" +$fixtureSnapshotPath = Join-Path $repositoryRoot "Tools\windows\Tests\fixtures\UiParityBacklog\open-parity-issues.json" +$validatePath = Join-Path $repositoryRoot "Tools\windows\validate.ps1" $fixtureRoot = Join-Path ([IO.Path]::GetTempPath()) ("graphcode-parity-audit-" + [Guid]::NewGuid().ToString("N")) New-Item -ItemType Directory -Path $fixtureRoot | Out-Null @@ -25,17 +27,23 @@ function Invoke-AuditFailure { try { Push-Location $repositoryRoot - $script:snapshotPath = Join-Path $fixtureRoot "open-issues.json" - $snapshot = & gh issue list ` - --repo scgopi/GraphCode ` - --state open ` - --label parity ` - --limit 200 ` - --json number,state,title,labels,assignees,body + & pwsh -NoProfile -File $auditor -LedgerPath $ledgerPath -IssuesPath $fixtureSnapshotPath if ($LASTEXITCODE -ne 0) { - throw "Could not capture open parity issues." + throw "Checked-in parity backlog fixture did not pass." + } + $script:snapshotPath = $fixtureSnapshotPath + + $validateSource = Get-Content -LiteralPath $validatePath -Raw + $privacyClause = [regex]::Match( + $validateSource, + '(?s)\n "privacy" \{(.*?)\n \}' + ) + if (-not $privacyClause.Success -or + $privacyClause.Groups[1].Value -notmatch 'Test-UiParityBacklog\.ps1' -or + $privacyClause.Groups[1].Value -notmatch 'open-parity-issues\.json' -or + $privacyClause.Groups[1].Value -notmatch 'UiParityBacklog\.Tests\.ps1') { + throw "RED: privacy validation does not run the fixture-backed parity audit and negative tests." } - $snapshot -join "`n" | Set-Content -LiteralPath $script:snapshotPath -Encoding utf8NoBOM $ledger = Get-Content -LiteralPath $ledgerPath $partialIndexes = @( @@ -64,22 +72,21 @@ try { Invoke-AuditFailure $removedLedgerPath "Canonical Partial row '$removedRowName' is missing" $missingStatePath = Join-Path $fixtureRoot "missing-state.json" - $missingState = @($snapshot | ConvertFrom-Json) + $missingState = @(Get-Content -LiteralPath $fixtureSnapshotPath -Raw | ConvertFrom-Json) $missingState[0].PSObject.Properties.Remove("state") $missingState | ConvertTo-Json -Depth 8 | Set-Content -LiteralPath $missingStatePath -Encoding utf8NoBOM - $script:previousSnapshotPath = $script:snapshotPath $script:snapshotPath = $missingStatePath Invoke-AuditFailure $ledgerPath "snapshot entry has no state; expected OPEN" $closedStatePath = Join-Path $fixtureRoot "closed-state.json" - $closedState = @(Get-Content -LiteralPath $script:previousSnapshotPath -Raw | ConvertFrom-Json) + $closedState = @(Get-Content -LiteralPath $fixtureSnapshotPath -Raw | ConvertFrom-Json) $closedState[0].state = "CLOSED" $closedState | ConvertTo-Json -Depth 8 | Set-Content -LiteralPath $closedStatePath -Encoding utf8NoBOM $script:snapshotPath = $closedStatePath Invoke-AuditFailure $ledgerPath "snapshot entry has state 'CLOSED'; expected OPEN" $unmappedPath = Join-Path $fixtureRoot "unmapped-open-issue.json" - $unmapped = @(Get-Content -LiteralPath $script:previousSnapshotPath -Raw | ConvertFrom-Json) + $unmapped = @(Get-Content -LiteralPath $fixtureSnapshotPath -Raw | ConvertFrom-Json) $unmapped += [pscustomobject]@{ number = 999999 state = "OPEN" diff --git a/Tools/windows/Tests/fixtures/UiParityBacklog/open-parity-issues.json b/Tools/windows/Tests/fixtures/UiParityBacklog/open-parity-issues.json new file mode 100644 index 00000000..4169ef8e --- /dev/null +++ b/Tools/windows/Tests/fixtures/UiParityBacklog/open-parity-issues.json @@ -0,0 +1,81 @@ +[ + {"number":556,"state":"OPEN","labels":[{"name":"parity"},{"name":"P2 feature"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":720,"state":"OPEN","labels":[{"name":"parity"},{"name":"P1 layout"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":721,"state":"OPEN","labels":[{"name":"parity"},{"name":"P1 layout"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":722,"state":"OPEN","labels":[{"name":"parity"},{"name":"P2 feature"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":723,"state":"OPEN","labels":[{"name":"parity"},{"name":"P2 feature"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":724,"state":"OPEN","labels":[{"name":"parity"},{"name":"P2 feature"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":726,"state":"OPEN","labels":[{"name":"parity"},{"name":"P2 feature"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":727,"state":"OPEN","labels":[{"name":"parity"},{"name":"P1 layout"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":728,"state":"OPEN","labels":[{"name":"parity"},{"name":"P1 layout"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":729,"state":"OPEN","labels":[{"name":"parity"},{"name":"P2 feature"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":730,"state":"OPEN","labels":[{"name":"parity"},{"name":"P2 feature"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":732,"state":"OPEN","labels":[{"name":"parity"},{"name":"P2 feature"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":733,"state":"OPEN","labels":[{"name":"parity"},{"name":"P2 feature"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":734,"state":"OPEN","labels":[{"name":"parity"},{"name":"P2 feature"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":735,"state":"OPEN","labels":[{"name":"parity"},{"name":"P2 feature"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":736,"state":"OPEN","labels":[{"name":"parity"},{"name":"P2 feature"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":739,"state":"OPEN","labels":[{"name":"parity"},{"name":"P2 feature"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":740,"state":"OPEN","labels":[{"name":"parity"},{"name":"P1 layout"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":742,"state":"OPEN","labels":[{"name":"parity"},{"name":"P2 feature"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":743,"state":"OPEN","labels":[{"name":"parity"},{"name":"P2 feature"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":744,"state":"OPEN","labels":[{"name":"parity"},{"name":"P2 feature"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":745,"state":"OPEN","labels":[{"name":"parity"},{"name":"P2 feature"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":746,"state":"OPEN","labels":[{"name":"parity"},{"name":"P2 feature"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":748,"state":"OPEN","labels":[{"name":"parity"},{"name":"P2 feature"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":749,"state":"OPEN","labels":[{"name":"parity"},{"name":"P2 feature"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":750,"state":"OPEN","labels":[{"name":"parity"},{"name":"P3 polish"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":751,"state":"OPEN","labels":[{"name":"parity"},{"name":"P3 polish"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":752,"state":"OPEN","labels":[{"name":"parity"},{"name":"P3 polish"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":753,"state":"OPEN","labels":[{"name":"parity"},{"name":"P3 polish"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":764,"state":"OPEN","labels":[{"name":"parity"},{"name":"P1 layout"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":765,"state":"OPEN","labels":[{"name":"parity"},{"name":"P1 layout"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":767,"state":"OPEN","labels":[{"name":"parity"},{"name":"P1 layout"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":768,"state":"OPEN","labels":[{"name":"parity"},{"name":"P1 layout"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":769,"state":"OPEN","labels":[{"name":"parity"},{"name":"P2 feature"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":770,"state":"OPEN","labels":[{"name":"parity"},{"name":"P2 feature"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":771,"state":"OPEN","labels":[{"name":"parity"},{"name":"P2 feature"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":772,"state":"OPEN","labels":[{"name":"parity"},{"name":"P2 feature"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":773,"state":"OPEN","labels":[{"name":"parity"},{"name":"P1 layout"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":774,"state":"OPEN","labels":[{"name":"parity"},{"name":"P1 layout"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":775,"state":"OPEN","labels":[{"name":"parity"},{"name":"P3 polish"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":777,"state":"OPEN","labels":[{"name":"parity"},{"name":"P1 layout"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":778,"state":"OPEN","labels":[{"name":"parity"},{"name":"P2 feature"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":779,"state":"OPEN","labels":[{"name":"parity"},{"name":"P2 feature"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":780,"state":"OPEN","labels":[{"name":"parity"},{"name":"P2 feature"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":781,"state":"OPEN","labels":[{"name":"parity"},{"name":"P3 polish"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":822,"state":"OPEN","labels":[{"name":"parity"},{"name":"P2 feature"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":969,"state":"OPEN","labels":[{"name":"parity"},{"name":"P2 feature"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":970,"state":"OPEN","labels":[{"name":"parity"},{"name":"P2 feature"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":971,"state":"OPEN","labels":[{"name":"parity"},{"name":"P1 layout"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":972,"state":"OPEN","labels":[{"name":"parity"},{"name":"P1 layout"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":973,"state":"OPEN","labels":[{"name":"parity"},{"name":"P1 layout"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":974,"state":"OPEN","labels":[{"name":"parity"},{"name":"P1 layout"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":975,"state":"OPEN","labels":[{"name":"parity"},{"name":"P2 feature"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":976,"state":"OPEN","labels":[{"name":"parity"},{"name":"P2 feature"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":977,"state":"OPEN","labels":[{"name":"parity"},{"name":"P2 feature"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":978,"state":"OPEN","labels":[{"name":"parity"},{"name":"P2 feature"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":979,"state":"OPEN","labels":[{"name":"parity"},{"name":"P1 layout"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":980,"state":"OPEN","labels":[{"name":"parity"},{"name":"P1 layout"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":981,"state":"OPEN","labels":[{"name":"parity"},{"name":"P1 layout"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":982,"state":"OPEN","labels":[{"name":"parity"},{"name":"P2 feature"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":983,"state":"OPEN","labels":[{"name":"parity"},{"name":"P2 feature"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":984,"state":"OPEN","labels":[{"name":"parity"},{"name":"P1 layout"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":985,"state":"OPEN","labels":[{"name":"parity"},{"name":"P2 feature"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":986,"state":"OPEN","labels":[{"name":"parity"},{"name":"P2 feature"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":987,"state":"OPEN","labels":[{"name":"parity"},{"name":"P1 layout"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":988,"state":"OPEN","labels":[{"name":"parity"},{"name":"P2 feature"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":989,"state":"OPEN","labels":[{"name":"parity"},{"name":"P2 feature"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":990,"state":"OPEN","labels":[{"name":"parity"},{"name":"P2 feature"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":991,"state":"OPEN","labels":[{"name":"parity"},{"name":"P2 feature"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":992,"state":"OPEN","labels":[{"name":"parity"},{"name":"P2 feature"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":993,"state":"OPEN","labels":[{"name":"parity"},{"name":"P2 feature"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":994,"state":"OPEN","labels":[{"name":"parity"},{"name":"P2 feature"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":995,"state":"OPEN","labels":[{"name":"parity"},{"name":"P2 feature"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":996,"state":"OPEN","labels":[{"name":"parity"},{"name":"P2 feature"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":997,"state":"OPEN","labels":[{"name":"parity"},{"name":"P2 feature"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":998,"state":"OPEN","labels":[{"name":"parity"},{"name":"P2 feature"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":999,"state":"OPEN","labels":[{"name":"parity"},{"name":"P1 layout"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":1000,"state":"OPEN","labels":[{"name":"parity"},{"name":"P1 layout"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"}, + {"number":1001,"state":"OPEN","labels":[{"name":"parity"},{"name":"P2 feature"}],"assignees":[{"login":"coneilen"}],"body":"Evidence: checked-in fixture for CI"} +] diff --git a/Tools/windows/validate.ps1 b/Tools/windows/validate.ps1 index 228fb010..f917eeb9 100644 --- a/Tools/windows/validate.ps1 +++ b/Tools/windows/validate.ps1 @@ -1142,6 +1142,22 @@ function Invoke-Task([string] $name) { } } "privacy" { + $pwsh = (Get-Process -Id $PID).Path + $parityFixture = Join-Path $repoRoot ` + "Tools\windows\Tests\fixtures\UiParityBacklog\open-parity-issues.json" + & $pwsh -NoProfile -File ` + (Join-Path $repoRoot "Tools\windows\Test-UiParityBacklog.ps1") ` + -LedgerPath (Join-Path $repoRoot "investigation\ui-parity-matrix.md") ` + -IssuesPath $parityFixture + if ($LASTEXITCODE -ne 0) { + throw "Fixture-backed parity backlog audit failed with exit code $LASTEXITCODE" + } + & $pwsh -NoProfile -File ` + (Join-Path $repoRoot "Tools\windows\Tests\UiParityBacklog.Tests.ps1") + if ($LASTEXITCODE -ne 0) { + throw "Parity backlog audit tests failed with exit code $LASTEXITCODE" + } + $files = Get-ChildItem (Join-Path $repoRoot "investigation") -Recurse -File | Where-Object { $_.FullName -notmatch "[\\/]\.build[\\/]" -and diff --git a/investigation/ui-parity-matrix.md b/investigation/ui-parity-matrix.md index cc903a69..c2486101 100644 --- a/investigation/ui-parity-matrix.md +++ b/investigation/ui-parity-matrix.md @@ -42,8 +42,11 @@ Statuses: ## Partial-row issue map The canonical row may link its issue inline, or use this compact mapping table. -Run `pwsh -NoProfile -File Tools\windows\Test-UiParityBacklog.ps1` after editing -the ledger or issue metadata. The audit reads the open `parity` snapshot and +CI runs the `privacy` validation task against the checked-in +`Tools\windows\Tests\fixtures\UiParityBacklog\open-parity-issues.json` snapshot. +Maintainers can run +`pwsh -NoProfile -File Tools\windows\Test-UiParityBacklog.ps1` without an +`-IssuesPath` to verify the current live GitHub state instead. The audit requires each `Partial` row to map to an open issue, each issue to have exactly one `P1 layout`/`P2 feature`/`P3 polish` label, an owner, and structured evidence metadata. It also requires exactly 89 unique canonical `Partial`