7.0 KiB
Context external workspace navigation
Root cause and correction
Characters already used context-main-window.js, the workspace.open interaction,
the existing Context registry and the main page's shared presence connection.
Spatial anchors and several Overview/expanded-detail links were ordinary links and
bypassed that handler. Some links opened independent tabs; others replaced Context.
The shared handler now delegates same-origin main-page anchors throughout the Context document, including both panes, dynamically refreshed partials, expanded details and dialogs. Existing Characters/Names/Relationships entity commands retain their resolver. Other links carry their exact local URL through an optional workspace URL contract, preserving project/book/scene parameters, map IDs, feature IDs and selected floor blocks. The server admits only a central allowlist of read-only main-page routes; existing destination authorisation remains in force.
Main discovery, activation, fallback and dirty-work protection are reused. Rapid requests coalesce to the latest queued link, and another Context waits for an opening main's registration. Main registration clears its launch reservation, allowing an immediately closed replacement to reopen. Blocked popups stay intercepted instead of falling through to Context navigation. There is no new registry or connection.
Audit
| Context feature | Main application actions covered |
|---|---|
| Overview | Calendar, Story Maps, linked floor plan, Plot Lines, thread editing, Relationships and source scenes |
| Characters in Scene | Full Characters directory, character details and source scenes |
| Names / expanded identity | Character details and previously unmarked Edit Character |
| Relationships | Editor links, selected relationship context, character details and source scenes |
| Locations | Location Details and Edit Location |
| Maps | Open in Maps, including exact feature reveal and unassociated-feature links |
| Floor Plans | Open in Floor Plans, including selected block |
| Context shell, connection dialog / legacy map partial | Scene editor, main Writer link, book workspace, manuscript structure/evidence and full Maps link |
Fragment links and Context routes are excluded. Buttons for tabs, scene movement, Hold/Follow, related-location inspection, Show on map/floor plan, dialogs, inline editing, zoom/pan, placement, association and cross-pane drops are unchanged. Main application Back buttons are unchanged.
Verification and delivery
The clean committed candidate built with 0 warnings and 0 errors (40.85 s), passed 892 executable-harness checks (102.79 s), and published successfully (30.39 s). No SQL, schema, Back-button, layout or spatial-resolution changes were introduced.
| Check | Result |
|---|---|
| Central read-only destination validation and registry lifecycle | Passed |
| Existing Characters navigation, main dirty-work refusal and named fallback | Passed — rendered shared Context regression |
| Header, dynamic links, exact feature/block URLs, keyboard, Ctrl-click and middle-click | Passed — compiled browser/real registry fixtures |
| Closed main, rapid requests, multiple Context windows and blocked-popup preservation | Passed — compiled browser/real registry fixtures |
| Location Details / Edit, Maps / Floor Plans, Character Details / Edit and Overview links | Passed — authenticated Development browser and installed Chromium PWA |
| Normal main-window Back history | Passed — authenticated browser and PWA |
| Held and following windows, split layout, selected location and map/floor viewports | Passed — authenticated browser and PWA state assertions |
| Unrelated inline description draft survives external navigation | Passed — authenticated browser and PWA |
| Manuscript-focus navigation writes / Context SignalR connections | 0 / 1 in both authenticated runs |
| Spatial selection, local editing/placement/association interactions | Passed — rendered spatial regression, including seven themes |
| Persisted spatial mutations, Undo and live updates | Passed — final authenticated Development spatial suite, including geometry preservation and main consumers |
| Physical Windows / Word Companion | Not verified — Linux host |
The authenticated Edit Character check inserts the same unmarked dynamic href used by the shared Name Details partial; it does not claim a separate end-to-end Names search/association workflow. Main-page activation was requested through the existing mechanism; OS foreground focus is not guaranteed by the browser.
Screenshots after external navigation:
- Browser: Locations + Maps.
- Browser: Locations + Floor Plans.
- Installed PWA: Locations + Maps.
- Installed PWA: Locations + Floor Plans.
Browser assertions, PWA assertions, and sanitised release/gate evidence.
Development activation
Activated 27 November 2026, 20:12 UTC, through the guarded Atlas Development
worker, with a verified COPY_ONLY/CHECKSUM backup and no activation failures.
Health confirmed Development, PlotDirector_Development and the exact source
commit. This release executed zero migrations; the unchanged immutable SQL plan
and its prior schema qualification were reused.
- Application source:
9dcd29d423b20e373e49fb28180d993c40aa165d. - Implementation commits:
121a49b0,16eeed01,9dcd29d4. - Release:
development-context-navigation-9dcd29d423b2-20261127T201127Z. - Deployment receipt:
20261127T201227Z-0cb5cdeff9f9. - Production: untouched.
Documentation establishes this standard in the unified Context foundation and shared spatial architecture. Subsequent report/test-only commits do not change the deployed application. The dedicated disposable account and owned project were removed through the normal account-deletion workflow. Its private credential file was deleted, and a read-only Development check confirmed zero remaining fixture scenes. No author records were used or modified for testing.
Browser/OS window activation is discretionary. PlotDirector requests focus; some browsers require the author to switch windows manually. Popup creation may require site permission. A blocked attempt retains Context and gives shared-toast feedback. Physical Windows/Word testing is not available on this Linux host.
Automated protection includes route acceptance/rejection (external URLs, traversal, mutation routes and Context redirects are refused), delegated-link coverage and a launch-register-close-relaunch registry contract. The isolated compiled browser host's spatial route is now constrained to its three names so it no longer shadows the real OpenWorkspace endpoint during navigation tests.