Skip to content

Stabilize accessibility navigation readiness - #1228

Merged
shanselman merged 1 commit into
mainfrom
shanselman-accessibility-readiness
Aug 26, 2026
Merged

shanselman merged 1 commit into
mainfrom
shanselman-accessibility-readiness

Conversation

@shanselman

Copy link
Copy Markdown
Collaborator

Fixes #1137

Summary

  • add an app-owned accessibility navigation readiness acknowledgement carrying the resolved page type
  • require the readiness acknowledgement before the existing UIA marker check
  • baseline acknowledgement counts so stale signals cannot satisfy a later navigation
  • preserve agent-normalized navigation tags through HubPageRegistry

This is the exact six-file snapshot from afa4ed08b8555b0fc230df990d33f132a914f2b2 on origin/recover-maintainer-patches. HubPageRegistry remains the authoritative owner of tag-to-page resolution. HubWindow only publishes readiness after applying the resolved navigation.

Validation

  • ./build.ps1: passed, all 5 build targets succeeded
  • dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restore: passed, 3,813 passed, 32 skipped, 0 failed
  • dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore: passed, 2,712 passed, 0 skipped, 0 failed
  • dotnet build tests\OpenClaw.Tray.UITests -c Debug -r win-x64: passed, 0 warnings, 0 errors
  • dotnet test tests\OpenClaw.Tray.UITests -c Debug -r win-x64 --no-build --filter Category=Accessibility: passed, 21 passed, 0 skipped, 0 failed
  • blocker-only rubber-duck review: no blockers

Real behavior proof

Current-head x64 accessibility lane output:

Test run for tests\OpenClaw.Tray.UITests\bin\Debug\net10.0-windows10.0.22621.0\win-x64\OpenClaw.Tray.UITests.dll (.NETCoreApp,Version=v10.0)
A total of 1 test files matched the specified pattern.

Passed!  - Failed:     0, Passed:    21, Skipped:     0, Total:    21, Duration: 2 m 33 s - OpenClaw.Tray.UITests.dll (net10.0)

The lane exercised the real WinUI process. Each navigation now waits for a newly appended app-owned acknowledgement matching the resolved page type, then independently requires the expected UIA marker before scanning or collecting proof.

@clawsweeper

clawsweeper Bot commented Aug 25, 2026

Copy link
Copy Markdown

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@clawsweeper clawsweeper Bot added P2 Normal priority bug or improvement with limited blast radius. proof: sufficient Contributor real behavior proof is sufficient. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 26, 2026
@clawsweeper

clawsweeper Bot commented Aug 26, 2026

Copy link
Copy Markdown

Codex review: needs maintainer review before merge. Reviewed August 25, 2026, 7:18 PM ET / 23:18 UTC.

ClawSweeper review

What this changes

The PR adds an app-owned navigation-ready signal so WinUI accessibility tests wait for a newly completed navigation before checking the existing UI Automation marker.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

Keep open. This collaborator-authored PR is a coherent, focused fix for the intermittent accessibility navigation race, and current main does not contain its readiness acknowledgement.

Priority: P2
Reviewed head: 72094f7a5b598c7c736dee15317d5c5f798d46ea

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused implementation and real-process accessibility-lane result provide normal merge-ready evidence, with no blocking defect found.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (terminal): The PR body supplies current-head terminal output for 21 passing accessibility tests in a real x64 WinUI process, and the reviewed test path now requires the new acknowledgement before its UIA assertion.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The PR body supplies current-head terminal output for 21 passing accessibility tests in a real x64 WinUI process, and the reviewed test path now requires the new acknowledgement before its UIA assertion.
Evidence reviewed 6 items Fresh navigation acknowledgement: The fixture snapshots the acknowledgement count before sending a deep link, then requires a later acknowledgement for the expected resolved page type before checking the existing UIA marker.
Acknowledgement is emitted after page readiness: HubWindow writes the signal only after the loaded-content readiness task wins for the current navigation, while same-page navigation acknowledges the already displayed resolved type.
Existing registry authority is preserved: The patch continues to resolve page types through HubPageRegistry, matching the architecture ledger's authoritative ownership boundary for navigation tags and page mapping.
Findings None None.
Security None None.

Live Verification

Command: dotnet test tests\OpenClaw.Tray.UITests\OpenClaw.Tray.UITests.csproj -c Debug -r win-x64 --filter Category=Accessibility

Result: FAIL (failed) — execution before step 1 run: sh -lc pnpm install --ignore-scripts --frozen-lockfile failed: ! Corepack is about to download https://registry.npmjs.org/pnpm/-/pnpm-11.24.0.tgz

sh -lc pnpm install --ignore-scripts --frozen-lockfile failed: ! Corepack is about to download https://registry.npmjs.org/pnpm/-/pnpm-11.24.0.tgz

Assertions:

  • FAIL expect_output: Passed!

How this fits together

The tray app accepts hub deep links, resolves each page through the hub page registry, and loads it in the WinUI content frame. Accessibility tests wait for the resolved page before scanning its controls through UI Automation.

flowchart LR
  A[Hub deep link] --> B[Page registry]
  B --> C[WinUI content frame]
  C --> D[Page loaded]
  D --> E[Readiness acknowledgement]
  E --> F[UI Automation marker]
  F --> G[Accessibility scan]
Loading

Before merge

  • Complete next step (P2) - No repair job is indicated because this is a coherent collaborator-authored PR with no actionable defect found.
Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Production and test delta production +55 net (63 added, 8 removed); tests +101 net (108 added, 7 removed) The modest production hook is paired with focused real-process accessibility-harness coverage across all affected call sites.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #1137
Summary: This PR directly implements the deterministic readiness signal requested by the canonical intermittent Sessions navigation report.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best possible solution:

Merge this narrow harness reliability fix after ordinary maintainer review, retaining HubPageRegistry as the sole tag-to-page authority and the UIA marker as the independent visible-state check.

Do we have a high-confidence way to reproduce the issue?

Yes, source-reproducible with high confidence: current main waits only for an existing UIA marker, while this patch adds a fresh app-owned post-navigation acknowledgement before that marker check.

Is this the best way to solve the issue?

Yes. Requiring a newly appended resolved-page acknowledgement and then retaining the independent UIA marker is a narrow, maintainable way to remove the stale-marker race.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 8ff0353919cf.

Labels

Label changes:

  • add P2: This addresses an intermittent accessibility-lane navigation failure with limited blast radius outside the test harness.
  • add proof: sufficient: Contributor real behavior proof is sufficient. The PR body supplies current-head terminal output for 21 passing accessibility tests in a real x64 WinUI process, and the reviewed test path now requires the new acknowledgement before its UIA assertion.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The PR body supplies current-head terminal output for 21 passing accessibility tests in a real x64 WinUI process, and the reviewed test path now requires the new acknowledgement before its UIA assertion.

Label justifications:

  • P2: This addresses an intermittent accessibility-lane navigation failure with limited blast radius outside the test harness.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The PR body supplies current-head terminal output for 21 passing accessibility tests in a real x64 WinUI process, and the reviewed test path now requires the new acknowledgement before its UIA assertion.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body supplies current-head terminal output for 21 passing accessibility tests in a real x64 WinUI process, and the reviewed test path now requires the new acknowledgement before its UIA assertion.

Evidence

What I checked:

Likely related people:

  • shanselman: Authored this focused PR and appears in current-main history for the accessibility fixture. (role: recent accessibility-harness contributor; confidence: high; commits: 4206611f2b2e, 72094f7a5b59; files: tests/OpenClaw.Tray.UITests/AccessibilityAppFixture.cs, tests/OpenClaw.Tray.UITests/AccessibilityScanTests.cs)
  • karkarl: Current-main history associates Barbara Kudiess with the Hub and tray presentation refactor that owns this navigation path. (role: recent HubWindow navigation contributor; confidence: medium; commits: bc518f7bd158; files: src/OpenClaw.Tray.WinUI/Windows/HubWindow.xaml.cs, src/OpenClaw.Tray.WinUI/Presentation/HubPageRegistry.cs)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@shanselman
shanselman merged commit 588df90 into main Aug 26, 2026
31 of 32 checks passed
@shanselman
shanselman deleted the shanselman-accessibility-readiness branch August 26, 2026 00:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal priority bug or improvement with limited blast radius. proof: sufficient Contributor real behavior proof is sufficient. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stabilize Sessions page navigation in UI accessibility lane

1 participant