Skip to content

Match Windows card attention and context-safe actions - #958

Merged
coneilen merged 10 commits into
mainfrom
coneilen-match-windows-card-attention
Nov 5, 2026
Merged

coneilen merged 10 commits into
mainfrom
coneilen-match-windows-card-attention

Conversation

@coneilen

@coneilen coneilen commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Align Windows graph-card attention styling and leading recovery actions with the macOS reference, while keeping card context-menu retype and ZIP transfer operations bound to their original graph, card and native ownership context. This is a bounded implementation and validation change, not a declaration of complete card parity.

Changes

  • Match card attention and action presentation; preserve separate actionable Inspect controls and non-invokable cycle-reason metadata.
  • Route card context menus through context-checked retype/promotion and Windows CLI transfer support, including held archive/directory commit authority and explicit refusal of stale context.
  • Add targeted transfer, native ownership, input-safety, accessibility and compiled-registry contracts; preserve historical failures and scope limits in the Windows validation documentation.
  • Apply the repository formatter only to the three implicated Windows Swift product files. Rename the Swift status to outcomeUnknown while explicitly preserving wire value "outcome_unknown" and exit code 75, with a raw-value/JSON regression.

Test plan

These are historical original implementation TDD results at af7e998, not fresh merged-source closure. The command spelling below replaces the retained absolute pinned executable/provider paths with their bootstrap environment variables to avoid exposing private paths; it is an explicitly path-normalized transcription, not a claim that the variable-spelled command was executed verbatim. Commands ran from graphcode-windows with GRAPHCODE_NATIVE_PAINT_TESTS=1. The private evidence map retains the exact original spelling and raw RED/GREEN log bindings.

RED: & $env:GRAPHCODE_ZIG0152 test src\GraphCanvas.zig -target x86_64-windows-msvc -lc -luser32 -lgdi32 -lgdiplus "-I$env:GRAPHCODE_WINGHOSTTY_ROOT\include" --test-filter "cards paired review" -> 0 passed, 0 skipped, 4 behavioral failures: needsAttention TestUnexpectedResult, expected leading x46 found x135, bold/padded pixel mismatch and production face mismatch; additional Wire-padding case separately failed before its fix
GREEN: & $env:GRAPHCODE_ZIG0152 test src\GraphCanvas.zig -target x86_64-windows-msvc -lc -luser32 -lgdi32 -lgdiplus "-I$env:GRAPHCODE_WINGHOSTTY_ROOT\include" --test-filter "cards paired review" -> 5 passed, zero skipped after implementation and the separately RED Wire-padding case
REGRESSION: & $env:GRAPHCODE_ZIG0152 test src\GraphCanvas.zig -target x86_64-windows-msvc -lc -luser32 -lgdi32 -lgdiplus "-I$env:GRAPHCODE_WINGHOSTTY_ROOT\include" --test-filter "chrome 764" --test-filter "cards paired review" -> 11 passed, zero skipped at the original implementation checkpoint; not final merged-source proof

Current-source local qualification is complete. The candidate is c101541, tree f4e7409bac5e2a75ec78305334f71ae14177ab93. Historical TDD above remains tied to its original implementation checkpoint. Current local results do not waive the actual PR-head required hosted checks or establish whole-card parity.

Current compiledc101 closure: the exact SDK 10.0.403 Release build passed on its first attempt with zero warnings/errors. The first default unfiltered compiled invocation in a clean validation checkout at the current candidate passed 684/684 unique positive units: 683 direct units executed 2,188 checks, with one separately host-derived proof that is not additional execution. Complete/full coverage, exact PASS/execution markers, sealed 1,255-source/11-output/355-input-reference closure and held-root/reader/job cleanup were verified. Execution ran 16:10:28.044 to 16:27:41.543 UTC-08:00, exit 0. Earlier compiled366 and compiled86 successes remain historical rather than being relabeled as this result.

Public-safe path-normalized spelling, not a claim of verbatim execution: & .\Tools\windows\ValidationRunner\bin\Release\net10.0-windows\ValidationRunner.exe --repository-root $repositoryRoot --artifact-root $artifactRoot -> exit 0, 684/684 positive unique units, 2,188 direct checks plus one separately derived proof; no selectors or physical opt-ins. The private evidence map retains the actual executable, checkout and artifact-root arguments.

Formatting follow-up and toolchain distinction: old86 hosted Linux Swift 6.2 and macOS formatting failed on the three implicated Windows Swift product files; the observed macOS SwiftLint output was warnings only. Pinned LOCAL Windows Swift 6.3.3 reproduced 83 strict-format diagnostics, matching the hosted Linux file/line/column/rule set exactly (83/83, zero differences). The full strict command & $formatter lint --recursive --strict --configuration .swift-format GraphcodeKit graphcode graphcode-cli graphcoded returned exit 1 with those 83 diagnostics before the correction, then exit 0 afterward. Here $formatter is the pinned 6.3.3 toolchain-shipped formatter, and the spelling is path-normalized rather than verbatim. No Linux 6.2 formatter ran locally, no formatter configuration was weakened, and new-head hosted requirements remain mandatory.

Current affected Windows Swift composition (73+74): run73 passed all 205 XCTest cases plus 6 Swift Testing cases, including 42 card-transfer cases and the explicit raw-value/JSON/exit75 regression, and built the CLI Release product. Its frozen 1,255 source files match committed c101 byte-for-byte. Run74 reused those tests and that CLI output without rerunning either, then executed only the missing canonical production pieces: daemon Release, release-bin lookup, atomic layout with 32 runtime DLLs plus both executables, the unchanged full redirected-profile regression, owned daemon/singleton and the newly built CLI's projects smoke. The installed CLI matched the run73-produced binary. The daemon build command actually ran with unchanged-input cache reuse; this is not a clean-rebuild claim. Run74 executed 16:05:54.937 to 16:06:12.274 UTC-08:00 with six held launches, all reader/job/profile/source/runtime closures positive. Singleton exit 1 with daemon is already running was expected; CLI exit 0 printed no projects yet. First-daemon exit 124 was an intentional held-owner stop after successful smokes, not spontaneous failure. This additive composition is CI-equivalent, not a literal stock swift-production task invocation.

Public-safe path-normalized supplied commands, not claims of verbatim execution or independent native argv observation:

  • Run73 & "$swiftBin\swift-test.exe" --package-path $repositoryRoot --disable-automatic-resolution --cache-path "$artifactRoot\cache" --config-path "$artifactRoot\config" --security-path "$artifactRoot\security" -> exit 0, 205 XCTest plus 6 Swift Testing passed.
  • Run73 & "$swiftBin\swift-build.exe" --package-path $repositoryRoot --disable-automatic-resolution --cache-path "$artifactRoot\cache" --config-path "$artifactRoot\config" --security-path "$artifactRoot\security" --configuration release --product graphcode -> exit 0, CLI Release built.
  • Run74 & "$swiftBin\swift-build.exe" --package-path $repositoryRoot --disable-automatic-resolution --cache-path "$artifactRoot\cache" --config-path "$artifactRoot\config" --security-path "$artifactRoot\security" --configuration release --product graphcoded -> exit 0, daemon Release command passed.
  • Run74 & "$swiftBin\swift-build.exe" --package-path $repositoryRoot --disable-automatic-resolution --cache-path "$artifactRoot\cache" --config-path "$artifactRoot\config" --security-path "$artifactRoot\security" --configuration release --show-bin-path -> exit 0, owned Release path returned.
  • Run74 pwsh -NoProfile -File Tools\windows\Tests\RedirectedUserProfileDaemon.Tests.ps1 -DaemonExecutable "$smokeRoot\bin\graphcoded.exe" -ScratchRoot "$artifactRoot\redirected" -> exit 0, full redirected-profile regression PASS and nested daemon exit 0.
  • Run74 & "$smokeRoot\bin\graphcoded.exe" -> first daemon remained available; second instance exited 1 with expected singleton rejection. Run74 & "$smokeRoot\bin\graphcode.exe" projects -> exit 0, actual no projects yet response, followed by intentional owned first-daemon stop.

The supplied command mapping comes from the sealed executed production70 scaffold adapted for owned bindings and 73 reuse, retaining explicit child Environment.Remove after overlays and existing budgets. Its original Record-Launch returned null image/argv fields for all six run74 processes, so those fields are not independent argv attestation. Held process identity and job/reader cleanup remain authoritative. Offline-cache clone refusals under protocol.allow=never, Git alternate-object normalization diagnostics and unhandled-file warnings are retained; no warning-free production claim is made.

Preserved follow-up failures: run71 failed before any process launch when an overbroad file census attempted to hash a gitlink directory. Run72 executed 205 XCTest cases with 193 passed and 12 invalidPipeName failures; all 42 transfer cases and 6 Swift Testing cases passed, and CLI Release was correctly not launched afterward. A process-level null environment assignment left an actual empty GRAPHCODE_SOCKET key. Run73 used production70's existing explicit child-environment removal mechanism, with unchanged product source and budgets, then passed the full suite. These failures remain separately retained, not overwritten or claimed as behavioral RED for the wire-value preservation regression.

Other earned, source-bound evidence: unit58's full unsharded run at 147dcca passed all 65 sections with 64 Zig invocations, 68 positive summaries, the native group once with 280 checks and zero failures, and a passing stock count-1 partition. Its unchanged native/Zig inputs retain scoped evidence, not a fresh c101 unit execution. Historical production70 at 70fa5be passed 204 XCTest plus 6 Swift Testing tests, both release products, 32 runtime DLLs, redirected-home regression, singleton rejection and CLI smoke; all nine held launches closed. That result remains historical and is superseded for affected Swift inputs by 73+74 above, not relabeled current.

Bounded native observations: the coordinator verified Main Inspect/workspace-return, Goal Reply, Composite Reply/nested-return and exact ordered 12-child restoration from the targeted action run; these establish bounded in-memory semantics, not whole-role persistence or parity. Targeted a53 and the source ledger also retain bounded native-primary export/import, daemon readback, connected-edge Cancel, Recovery and stale-mode observations, with their original failure limits and unchanged native-input reuse, not a fresh c101 action campaign. Both corrected read-only endpoint routes passed actual native checks during the later failed normal run; that does not make the whole run green. Endpoint and Settings oracle contracts executed 47 cases with one intended RED failure before correction, not 47 failures; selected GREEN results are not full canonical evidence.

Retained ordinary failures/nonexecution: normal55 failed when an oracle read Current.Name instead of the endpoint value; the screenshot's correct read-only fields do not support a product-value failure inference. Normal60 then failed on a lower off-viewport Settings assertion. At the historical normal61/63 checkpoints the test-only scroll/reacquire correction had no actual Settings runtime proof because foreground admission failed first; the distinct current86 normal69 proof below supersedes that limitation, not those retained failures. Normal59 and whole62 were prepared but never launched; nonexecution is not a test result.

Distinct assisted failures: assisted64 timed out despite one Maximize, with no native foreground admission. Assisted65 timed out without the planned TitleBar action ever being attempted because cue delivery failed; it is not an activation-failure observation. Assisted66 ran 11:47:04.757 to 11:48:14.010 PST and exited 1 at the unchanged 60-second admission timeout: a fresh observation showed the healthy visible root was not foreground, one indexed TitleBar click was actually attempted, and the native waiter still emitted no admitted marker. The final foreground observation remained the desktop host. No transient or continuous foreground behavior is inferred between those observations. No whole-body or Settings proof, assisted green, normal green or waiver follows. Reported source/runtime/profile fingerprints, held-root/job/reader-EOF and DPI cleanup remained positive.

Viewport correction and retained ordinary integration: the earlier two-file test-only change at86 targets the already-owned Settings viewport for wheel delivery rather than the sheet root; product code was unchanged by that correction. The owner recorded 47 executed contract cases with one intended RED failure, then 47/47 GREEN, 40/40 UI PowerShell cases, one affected GraphCanvas consumer pass and a Release build with zero warnings/errors. A zero shell exit on the RED wrapper did not make its structured failing case pass.

Stock normal69 passed the full ordinary integration route at86, exit 0, from 14:59:56.352 to 15:05:43.420 UTC-08:00. It used the existing validate.ps1 -Task windows-shell -SkipTrayLive -ShellPart integration route with pinned Swift and an owned validation root; both optional modes were absent, ordinary five-second guards and all phases remained in force, and no Computer Use action assisted the run. Evidence included 45 isolation cases, six separate positive one-test summaries, full Settings with 21 labels, 10 toggles and five panes, saved/return-saved checks, and node creation, sketch and multi-project coverage. Four native jobs, root/reader EOF, DPI, profile/isolation and source/runtime preservation checks closed. Fifty of its 51 input bindings remain unchanged; the one CLI Release binary binding is intentionally renewed by73+74. The unchanged native GUI/Zig inputs retain scoped normal69 evidence; no fresh c101 whole-GUI run is claimed. Nonfatal PTY-resize/CSI warnings remain retained; no empty-stderr claim is made.

Public-safe path-normalized spelling, not a claim of verbatim execution: pwsh -NoProfile -File Tools\windows\validate.ps1 -Task windows-shell -SkipTrayLive -ShellPart integration -ShellValidationRoot $env:CARDS_VALIDATION_ROOT -SwiftExecutable $env:GRAPHCODE_SWIFT633 -> exit 0, full stock normal69 integration passed. The private evidence map retains the actual owned-root and pinned executable spelling; the process UTF-8 setting was an invocation-boundary measure, not a source or guard change.

The distinct assisted68 native body also completed, but its original controller failed an additional JSON-decoding step. The owner attributes that boundary to CP437 console best-fit conversion versus valid JSON retained inside the child; the failure remains preserved rather than repaired into a passing controller result. Normal69 is the subsequent separate ordinary gate, not a relabeling of assisted68.

Remaining limits: current paired Windows card rasters are absent; high-DPI capture is explicitly deferred, not parity-green. Removed-node and whole-action-matrix gaps remain. macOS make test and make check were not run in this Windows validation session; the local Windows evidence above does not check those macOS checklist entries. Historical failures, final-source bindings and actual PR-head hosted required checks remain separate. Do not broaden the now-positive ordinary gate to whole-card parity. Source-owner runtime baseline is 140 paths: 126 unchanged plus 14 newly cataloged; these are evidence, not PR staging candidates. The original implementation chronology is documented above without making a blanket chronology attestation for every later contract.

Checklist

  • I have read the Contributing Guidelines
  • I have signed off my commits (git commit -s) per the DCO
  • Tests pass locally (make test)
  • Code follows the existing style (make check)
  • I added the test/contract before the implementation and observed the intended RED failure

coneilen and others added 10 commits October 29, 2026 18:41
Use display-state attention for the warm face and halo, align Inspect to the leading body row, and restore source-derived action weight and padding without changing recovery identities.

Co-authored-by: Copilot App <[email protected]>
Signed-off-by: Colin Neilens <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Signed-off-by: Colin Neilens <[email protected]>
Preserve the existing card styling while integrating merged main and PR #956. Uncommitted feature changes remain preserved in the retained continuation stash and sealed snapshot for three-way restoration.

Co-authored-by: Copilot App <[email protected]>
Signed-off-by: Colin Neilens <[email protected]>
Align attention, leading card actions and recovery precedence with the Mac reference. Keep retype and ZIP actions context-bound and retain exact native ownership, input and persistence checks.

Current unfiltered canonical: 684 required units passed, 2188 actual executions. Native/raster parity limits and prior failures remain documented.

Co-authored-by: Copilot App <[email protected]>
Signed-off-by: Colin Neilens <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Signed-off-by: Colin Neilens <[email protected]>
Signed-off-by: Colin Neilens <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Signed-off-by: Colin Neilens <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Signed-off-by: Colin Neilens <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Signed-off-by: Colin Neilens <[email protected]>
Use lowerCamelCase for the Swift status while preserving the explicit wire value and exit75. Apply the repository formatter only to the three implicated product files and protect wire encoding with a regression test.

Signed-off-by: Colin Neilens <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Signed-off-by: Colin Neilens <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant