Repository navigation
docs: re-verify the WinUI 3 gap analysis (all four P0 gaps have shipped) - #960
Conversation
…llow-ups The gap analysis had gone badly stale. All four of its original P0 gaps have since shipped, so the document was actively misleading about the framework's coverage. Re-verified every section against skills/reactor.api.txt and src/Reactor, and corrected the rows that were wrong. Biggest corrections: - 3 Navigation: "generally broken / Frame+Page Blocked / back stack Missing" -> Replaced. NavigationHandle<TRoute>, NavigationHost, UseNavigation, Back/ForwardStack, NavigationTransition, DeepLinkMap all ship. The one real caveat (code-only Page via WinUI Frame) is called out and pinned to #945. - 9 Theming: the P0 "no way to set a theme-reactive color" verdict is gone. Documents the three tiers as implemented, plus what genuinely remains: Tier 1 still silently wins, and UseColorScheme() reads the app-level theme rather than the element-effective one. - 15 Commands: "no command abstraction" -> Command/Command<T> with CanExecute auto-disable, async and debounce state. CommandInterop is one-way (ICommand -> Command); noted, since the reverse is still unsupported. - 16 Accessibility: "only AutomationName" -> 11 modifiers plus the REACTOR_A11Y_001-004 analyzers. Custom AutomationPeer stays Blocked. - 14 Input: pointer, gesture, keyboard, focus, access-key and drag-drop are first-class now. Manipulation is the one remaining hole. - 18/19: multi-window and activation kinds ship. Single-instancing does NOT -- WindowKey is process-scoped and AppInstance redirection is deferred per spec 036, so that row stays Missing. - 1.4/1.7/2.2/2.3/6/7/8/11/13/20/22: ItemsRepeater, AppBarToggleButton, AppBarSeparator, ControlRegistry, .Resources(), lightweight styling, connected animations, backdrops, UseFilePickerAsync, IncrementalLoadingTrigger. Also fixes counting bugs the old revision carried: the Controls Summary totals row contradicted its own prose (4 vs 5 missing). Every scorecard row is now derived from a mechanical recount of the section it summarizes. Adds a Status/last-verified header and a new 24 that maps open PRs to the rows they flip on merge (#946 ToolTip, #945 Frame/Page, #947 and #936 analyzers, plus related work), with a re-verification checklist. 1.6's ToolTip row is deliberately left at Missing: #946 already edits it on its own branch, and pre-applying it here would only create a conflict. Co-authored-by: Copilot App <[email protected]> Copilot-Session: b84f6d87-ff81-4b5f-923c-16bee876bc4e
Fixes from the multi-dimension PR review (8 dimensions + a GPT-5.6 cross-check on the Claude-authored diff). Wrong API names and signatures in 002: - StandardCommand DOES exist (src/Reactor/Core/StandardCommand.cs) with 16 pre-labelled commands. 15 Commands said "StandardUICommand | Missing". Corrected to Replaced, and the row is honest about the gaps the cross-check found: SelectAll and Close carry no Icon, and the media commands carry no Accelerator. Dropped the now-obsolete P3 gap row. - TextField(...) / TextFieldElement do not exist anywhere in the framework -- the factory is TextBox(value, onChanged, placeholderText, header). Fixed 3 sites in 002 and all 10 in 006, including the REACTOR_A11Y_003 row that described the analyzer as matching a factory that has never existed. - ItemsView<T> requires a keySelector; it has no keyless overload, unlike ListView/GridView/ItemsRepeater. Called that asymmetry out explicitly. - CheckBox is CheckBox(isChecked, onChanged, label), not the reverse, and tri-state is ThreeStateCheckBox(...), not .Set(). - IsRequiredForForm is surfaced by the .Required() modifier. Bad example in 002 10: the VSM snippet did Rectangle().Background(...) -- the exact silent no-op 1.9 warns about two hundred lines earlier. Now uses .Fill(BrushHelper.Parse(...)) and first-class .OnPointerEntered/.OnPointerExited instead of a .Set() escape hatch. Missing row: 4 had no entry for DataContext, so the doc never said what replaces WinUI's most-used ambient-data mechanism. Added Context<T> / .Provide() / UseContext(). Sibling-spec contradictions -- the same failure mode this branch exists to fix. 006 and 011 both quoted 002's old verdicts as present fact, so correcting 002 alone would have left the mirror image behind: - 006 was still marked "Proposal" and listed nine accessibility features as Missing that have all since shipped. Added a dated superseded-in-part note. - 011 is marked Implemented but its Problem Statement was written in present tense. Reframed as historical and pointed at 002 3 for current status. Both keep their original prose as design rationale rather than being rewritten. 24 now carries explicit self-expiry instructions, since the review rightly flagged that a hand-maintained PR queue inside a committed spec can go stale exactly the way this document already did once. Every count table re-derived by script: 1 totals sum to 86 and agree with the prose, and all 22 23 scorecard rows match a mechanical recount of the section they summarise. Note: TextField is still referenced by ~15 other specs (004, 005, 008, 017, 018, 019, 027, 033, 039, 040, 041, 043). Pre-existing and out of scope here. Co-authored-by: Copilot App <[email protected]> Copilot-Session: b84f6d87-ff81-4b5f-923c-16bee876bc4e
There was a problem hiding this comment.
Pull request overview
Updates the WinUI 3 vs Reactor gap-analysis/spec documentation to reflect the current shipped framework surface (navigation, theming, commands, accessibility, input, windowing), and adds historical-context notes so older design specs remain useful without reading as current-state truth.
Changes:
- Re-verified and corrected
002-winui3-gap-analysis.mdstatus tables/verdicts; added an “in-flight work” section with a re-verification checklist. - Added dated historical-context notes to
006-accessibility-design.mdand011-navigation-design.mdso their original problem statements are clearly time-scoped rather than present-tense claims. - Corrected several API references/examples (e.g.,
TextBox(...)vs non-existentTextField(...), shapes use.Fill()rather than.Background()).
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| docs/specs/002-winui3-gap-analysis.md | Major factual refresh of coverage tables/verdicts; adds §24 for in-flight PR mapping and a re-verification checklist. |
| docs/specs/006-accessibility-design.md | Adds superseded/historical-context framing; fixes example factory names to match current API. |
| docs/specs/011-navigation-design.md | Adds historical-context note tying the spec to current navigation coverage and the remaining WinUI Frame caveat. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Addresses the Copilot review comment on PR #960. The row was self-contradictory: Status said Exposed while its own Notes cell said "Not yet" and the caveat directly below documented that navigating a Frame to a code-only Page kills the process with an access violation. A reader skimming the status column would have concluded it was safe to use. Blocked is also the status the legend actually calls for -- "cannot be used at all due to Reactor's architecture (no XAML...)" is precisely the failure: a Reactor app ships no XAML, so no IXamlMetadataProvider is emitted, GetXamlTypeNoRef() returns null, and the navigation AVs. And since a no-XAML app has no other kind of Page, the code-only case is the whole scenario, not an edge case. - 3 row -> Blocked, with the reason inline rather than only in the caveat below. - Verdict retitled: the navigation *scenario* is solved by replacement, the WinUI Frame *element* is still blocked. Added an explicit "use NavigationHost, not Frame" steer. - 23 scorecard row 3: 6/1/3 -> 5 exposed / 1 augmented / 3 replaced / 1 blocked. - 24's #945 entry now spells out the full set of flips that PR should apply, including restoring this row to Exposed and updating the scorecard. Scorecard re-verified by script: all 22 rows still match a mechanical recount. Co-authored-by: Copilot App <[email protected]> Copilot-Session: b84f6d87-ff81-4b5f-923c-16bee876bc4e
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.
Comments suppressed due to low confidence (3)
docs/specs/002-winui3-gap-analysis.md:1065
- In §24’s “Rows to flip on merge” for PR #945, it instructs deleting the “Use
NavigationHost, notFrame” clause. However, PR #945 itself explicitly says developer-owned navigation (UseNavigation/NavigationHost) remains the recommended model even after the crash fix. The flip guidance should preserve that recommendation and only remove the “blocked / kills the process” caveat.
| **#945** | Synthesizes the XAML metadata a code-only `Page` needs, chains a `ReactorPageXamlMetadataProvider` into `ReactorApplication.GetXamlType`, and makes `FrameNavigation.TryNavigate` refuse to navigate to an unresolvable type instead of faulting. Adds `ReactorApp.RegisterPageType(...)` | §3 `Frame.Navigate(typeof(Page))` → **Exposed**; delete the "Caveat" paragraph and the "Use `NavigationHost`, not `Frame`" clause in the verdict; §23 scorecard row 3 → 6 exposed / 0 blocked. §19's UnhandledException note about uncatchable AVs can be softened |
docs/specs/011-navigation-design.md:21
- The note says the WinUI
Framecaveat is “fixed by PR #945”, but PR #945 is currently still open (not merged). Inmain, this reads like the issue is already resolved. Consider rephrasing to explicitly indicate it’s in-flight/unmerged so the doc stays factually accurate.
> **Note (2026-07-29).** The Problem Statement below describes the state *before* this spec was
> implemented, and is kept for design rationale. Because this spec shipped,
> [`002-winui3-gap-analysis.md`](002-winui3-gap-analysis.md) §3 no longer rates navigation as a
> gap — it records navigation as **Replaced** by `NavigationHandle<TRoute>` /
> `NavigationHost<TRoute>` / `UseNavigation<TRoute>`. The one live caveat is the WinUI `Frame`
> element with code-only `Page` types, covered by the §"Why WinUI Frame is not the answer"
> section here and fixed by PR #945.
docs/specs/002-winui3-gap-analysis.md:1064
- In §24’s table, the #946 row ends with “This PR already contains the §1.6 edit”. Inside this PR’s docs, that pronoun is ambiguous (it can be read as referring to the current docs PR rather than PR #946). Rewording to name #946 explicitly will avoid confusion for readers.
This issue also appears on line 1065 of the same file.
| **#946** | `.ToolTipPlacement(PlacementMode)`, `.ToolTipPlacementTarget(ElementRef)`, plus placement overloads of `.ToolTip()` / `.WithToolTip()` | §1.6 ToolTip → **Exposed** (verdict 7/7); Controls Summary row 1.6 → 7 exposed / 0 missing and Totals → **76 exposed / 4 missing**; §1 headline → "4 missing"; §23 scorecard row 1 → 76 exposed / 4 missing; §23 P1 ToolTip row → Shipped. **This PR already contains the §1.6 edit** |
… merged 24 said "delete each row as its PR merges, after applying the flips it names; when the table is empty, delete the section." Every PR it tracked has now merged, so this does exactly that. Flips applied: - #946 ToolTip: 1.6 came in with the merge (that row was deliberately left to #946 to avoid a conflict, and it merged clean). Applied the knock-ons it named -- Controls Summary 1.6 -> 7/0, Totals -> 76 exposed / 4 missing, 1 headline -> 82/86 (95%), 23 scorecard row 1, and the P1 ToolTip row -> Shipped. All six original P1s are now shipped. - #936: 1.4 ItemsView now notes the ItemContainer-root rule is enforced at build time by REACTOR_ITEMS_002, not only at mount. - #947: 5 and 9 note REACTOR_MOD_003 now flags the silently-dropped-modifier class. The 23 P1 gap row narrows to the theming half. - #935: no doc change needed, but it removes a caveat -- the API index now includes static classes, so Theme, StandardCommand and ControlRegistry are verifiable from the index rather than only from source. #945 landed differently from what 24 predicted, and the row is better for it. The merged version was cut back to a guard: FrameNavigation.TryNavigate confirms the target is resolvable and refuses when it is not, rather than publishing app-defined Page types into the metadata chain. So Frame.Navigate(typeof(Page)) stays Blocked -- which is what the Copilot reviewer argued for on this PR and what the legend calls for -- and the caveat now explains it is blocked *by design*: spec 011 goal 3 is "zero XAML dependency, no IXamlMetadataProvider", and satisfying one of four hard constraints would have made a discouraged path partially work. Added a 23 P2 row so that decision stays visible rather than looking like an oversight. 24 retired. Its tracking tables are gone; only the re-verification checklist was ever meant to be permanent, so the section is now "Keeping This Document Honest". The checklist gained the three failure modes this PR actually hit: an API name that no longer exists (TextField, renamed in #387 and deleted in #390, still cited in three places), a Status word contradicting its own Notes (3's Frame row), and sibling specs quoting a verdict that has since reversed. Counts re-derived by script: totals sum to 86, all 22 scorecard rows match a mechanical recount, all 24 TOC anchors resolve. Co-authored-by: Copilot App <[email protected]> Copilot-Session: b84f6d87-ff81-4b5f-923c-16bee876bc4e
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.
Suppressed comments (3)
docs/specs/002-winui3-gap-analysis.md:1062
- Same date inconsistency as above: “pre-2026-07-29 version” doesn’t match the stated re-verification date (2026-07-30).
3. Recompute the §1 Controls Summary totals and the §23 scorecard. The pre-2026-07-29 version of
docs/specs/002-winui3-gap-analysis.md:1060
- The doc’s Status line and intro call this the “2026-07-30 pass”, but §24 step 2 references “the 2026-07-29 pass”. Consider aligning the date to avoid confusion about which verification run is being referenced.
This issue also appears on line 1062 of the same file.
failure — the 2026-07-29 pass found `TextField(...)`, which was renamed to `TextBox` in #387
docs/specs/002-winui3-gap-analysis.md:328
- Grammar: use “an” before
ItemsViewLayoutKind(starts with a vowel sound).
`.Set()` cast. `ItemsView` additionally exposes a `ItemsViewLayoutKind` enum for the common
Why
docs/specs/002-winui3-gap-analysis.mdinventories every WinUI 3 feature and rates how Reactor exposes it. It had gone badly stale — all four of its original P0 gaps had shipped without the doc being updated, so a spec whose entire value is factual accuracy was actively misleading. It's also read as ground truth by AI agents.Re-verified every section against
skills/reactor.api.txtandsrc/Reactor, then corrected what was wrong.Biggest corrections
NavigationHandle<TRoute>,NavigationHost,UseNavigation, Back/ForwardStack,NavigationTransition,DeepLinkMapCommand/Command<T>with CanExecute auto-disable, async, debounceAutomationNameREACTOR_A11Y_001–004.Set()passthroughAlso: ItemsRepeater, AppBarToggleButton, AppBarSeparator,
ControlRegistry,.Resources()lightweight styling, connected animations, backdrops,UseFilePickerAsync,IncrementalLoadingTrigger.What I was careful about
Not every "Missing" became "Exposed". Several rows were verified as genuinely still missing and left alone: Manipulation events,
IsAccessKeyScope, customAutomationPeer, ControlTemplate authoring, TwoPaneView, InkCanvas/InkToolbar/CaptureElement, clipboard and printing wrappers.One claim I got wrong and the review caught: I had written single-instancing as Exposed. It isn't —
WindowKeyis process-scoped andAppInstanceredirection is explicitly deferred per spec 036. Corrected to Missing. A false "shipped" is worse than a false "missing", so this one mattered.§1.6 ToolTip is deliberately left stale. #946 already edits those exact lines on its own branch; changing them here would only create a conflict. It's tracked in §24 instead.
New §24 — in-flight work
Maps currently-open PRs to the rows they flip on merge (#946 ToolTip, #945 Frame/code-only Page, #947/#936 analyzers, plus related work), so the next person can apply them in one pass. It carries explicit self-expiry instructions — delete each row as its PR merges, then delete the section — because the review rightly pointed out that a hand-maintained PR queue can go stale exactly the way this document already did once.
Sibling specs — the same failure mode
Correcting 002 alone would have left the mirror image behind.
006and011both quoted 002's old verdicts as present fact:Proposaland listed nine accessibility features as Missing that have all since shipped.Implementedbut its Problem Statement was written in present tense.Both now carry dated historical-context notes and keep their original prose as design rationale rather than being rewritten.
Review
Ran the repo's
pr-reviewskill — 8 dimensions plus a GPT-5.6 cross-check on this Claude-authored diff. It found 12 real errors, all fixed here:StandardCommandexists (16 commands) — I'd written "no pre-built Cut/Copy/Paste/Undo". The cross-check went further and caught thatSelectAll/Closecarry no icon and the media commands carry no accelerator, so the row is now precise rather than just corrected.TextField(...)has never existed — the factory isTextBox(...). Fixed 3 sites in 002 and all 10 in 006, including a row describingREACTOR_A11Y_003as matching a factory that doesn't exist.ItemsView<T>requires akeySelector;CheckBoxargs were reversed;IsRequiredForFormis.Required().Rectangle().Background(...)— the exact silent no-op §1.9 warns about 200 lines earlier. Now.Fill(BrushHelper.Parse(...)).DataContextrow at all, so the doc never said what replaces WinUI's most-used ambient-data mechanism. AddedContext<T>/.Provide()/UseContext().Verification
Both count tables are re-derived by script, not by hand: §1 totals sum to 86 and agree with the prose (81/86 accessible), and all 22 §23 scorecard rows match a mechanical recount of the section they summarise. The pre-existing version had a totals row that contradicted its own prose (4 vs 5 missing) — that class of bug is now caught rather than trusted. All 24 TOC anchors resolve.
Docs-only; no code, no build or test impact.
docs/specs/is hand-authored (not generated fromdocs/_pipeline/), isn't packed into the NuGet package or agent kit, and no CI gate parses it.Known, out of scope
TextFieldis still referenced by ~15 other specs (004, 005, 008, 017, 018, 019, 027, 033, 039, 040, 041, 043). Pre-existing repo-wide drift; worth a follow-up sweep but not something to bundle here.