23 KiB
Overnight improvement sprint — 3 November 2026
Executive summary
Delivered and deployed all explicitly requested B/C improvements plus additional responsive-layout, Floor Plans save-reliability and sitemap repairs. Counts below group related defects rather than counting each affected page separately.
- Confirmed defect groups: 10; fixed and verified: 9; deferred: 1 infrastructure issue.
- Completed improvement groups: 10, including additional export/restore permission regression coverage.
- Commits: 15 including the final report checkpoint; history transparently includes the unsuccessful application-only proxy attempt and its revert.
- Final solution build: passed, 0 warnings/errors. Final executable harness: 405 PASS, exit 0.
- 17 focused browser suites passed across the sprint, including real Razor controls/editors, drag/drop, keyboard interaction, state preservation, four workspace themes, browser/PWA/maximised modes and responsive layouts.
- Read-only public audit: 52/52 solution pages passed metadata/canonical/structured-data checks; 56 public pages passed the 390px browser overflow and anchor-name checks.
- Development: deployed and smoke-verified, code commit
1930007. Production was not modified. No database migrations or direct data mutations.
Completed improvements
| Area | Problem | Fix implemented | Verification | Commit |
|---|---|---|---|---|
| Story ribbon | Calendar interrupted the requested structure sequence | Timeline → Plot Lines → Threads → Calendar → At This Point in the shared catalog | Build, harness order assertion, toolbar/navigation browser checks | 7f19319 |
| Locations | Oversized drag panel, dropdown and PWA width cap | Connected two-choice ribbon segments under Location hierarchy; compact browser toolbar; persisted mode, help and PWA-only width correction | Real Razor controls in four themes/browser/PWA, keyboard/persistence and full drag/confirmation/AJAX regression | d6be496, 1930007 |
| Project/book listings | Covers and placeholders did not open their records | Accessible cover links share the existing Open/title routes; independent Edit/Archive/More actions | Rendered Razor browser/PWA keyboard, focus and route tests | 77332a2 |
| Legacy checklist | Obsolete report and unsafe null-project aggregate fallback | Removed exclusive page/service/repository/model/DI path; authenticated bookmarks redirect through standard project routes; retained SQL and data | Build/harness and legacy redirect/authentication regression | a348777 |
| Workspace panels | Fixed left/right widths | Shared independent pointer/keyboard resizing, bounds, reset and per-workspace persistence | All three full editors, four themes, browser/PWA/maximised modes, reload restoration and narrow layouts | 79c4fd2 |
| Workspace maximise | Maps/Floor Plans hid contextual commands; restore could overflow | Shared shell handling retains contextual ribbon and directly visible restore commands | All-editor maximise/state tests, existing Maps/Relationships author-workflow suites and visual review | d7ae6e2, 86509cb |
| Responsive image controls | Character image uploader overflowed narrow browser forms | Wrapping image-editor layout with shrinkable controls | Reproduced 369px content in 360px form; fixed to 360px; nine-form responsive/theme suite | ab5325d |
| Floor Plans saving | Redirected/invalid responses falsely acknowledged saves; older requests acknowledged newer edits | Explicit save acknowledgement, revision tracking and unsaved-navigation protection | Reproduced both failures; browser/PWA redirect/null/error/concurrent-edit/save/state tests | 2f99a3c |
| Export/restore access | Permission gates lacked direct behavioural regression coverage | Real filter/access-service tests for foreign entities, owner-only backup export and anonymous/invalid identities | Full harness with current-author propagation and fail-closed checks | ba33b69 |
| Sitemap | Disabled solver indexing still required an available solver graph | Skip graph loading when solver indexing is disabled | Unavailable-repository regression, publication/indexing tests and live public audit | b7d87c7 |
Ribbon navigation changes
Story → Story structure:
- Before: Timeline → Calendar → Plot Lines → Threads → At This Point.
- After: Timeline → Plot Lines → Threads → Calendar → At This Point.
Reviewed Project, Book, Characters, World, Tools and Help navigation groups. Their existing workflow ordering/group boundaries were retained because no additional unambiguous correction was identified. Routes, icons, permissions and active-state metadata remain in the shared catalog.
Final Development deployment
- Code commit:
1930007; final documentation commit follows it without application-code changes. - Release:
/srv/apps/plotdirector-dev/releases/1930007-20261103210304. - Prior application backup:
/srv/apps/plotdirector-dev/current-before-1930007-20261103210304. - Deployed/published
PlotLine.dllSHA-256:5a86109eb96338fc3ec77f416410e1efe33600d4a22cf761a10b30dd513f8689. - Service: active/running, exit status 0. Local GET and public HTTPS GET: 200. Live segmented-ribbon JavaScript verified. Recent warning/error log lines: 0.
- Verified
PlotDirector_Developmentidentity and idle import/intelligence/job/synthesis/enrichment/candidate-generation/pipeline state immediately before each restart. Active SQL import/synthesis request count was also zero. - Configuration, uploads, App_Data/data-protection keys and logs preserved. Development still sends
X-Robots-Tag: noindex, follow. - A temporary-storage quota interrupted one publish. Removed only sprint-owned incomplete/superseded artifacts, then published successfully on
/srv; the failed publish was not deployed.
Outstanding issue and morning handover
Deferred infrastructure issue: HTTPS protected requests currently redirect through an HTTP login URL. Development nginx is an HTTP origin behind a separate TLS proxy and replaces the original forwarded scheme. Application-only handling did not resolve the live route and was reverted. Correcting this needs the upstream forwarded scheme and trusted source addresses verified, followed by a narrowly trusted Development proxy configuration. No upstream/Production configuration was changed; authentication cookies remain Secure.
Verification limit: no reusable authenticated Development browser session was available. Live checks verified service/HTTP health, assets, indexing protection and login gates. Editing interactions were verified in isolated fixtures rendering the real Razor views and production scripts, including the full Floor Plans editor. A short authenticated acceptance pass on Development remains appropriate.
Completed and deployed: all rows in the completed-improvements table. Completed but not deployed: none. Deferred for review: the proxy scheme configuration. Live authenticated editing: unverified as described above.
Verification inventory
dotnet build PlotLine.slnx— final pass, 0 warnings/errors.dotnet run --no-build --project PlotLine.Tests/PlotLine.Tests.csproj— final pass, 405 checks.- Browser suites:
location-controls,location-reparent,cover-navigation,workspace-panels,workspace-maximise,floor-plan-save,relationship-workspace,relationships-ribbon,maps-workspace,record-workspaces,responsive-content,application-toolbar,application-pwa,plot-line-map,calendar-ribbon,plot-health,associate-scenes. - Public read-only checks: production robots/sitemap, all 52 solution metadata/structured-data/canonical/unique-description checks, and 56 mobile public-page checks. These do not certify a complete accessibility or penetration audit.
Implementation log and recovery detail
Baseline and recovery
- Repository: /srv/repos/PlotDirector
- Original branch: architecture/story-context-consolidation
- Original commit:
2696d56f59 - Starting worktree: clean; no existing changes to preserve.
- Isolated branch: codex/overnight-improvements-20261103
- Production is excluded. No database changes planned.
- Gates: serial solution build and executable regression harness; focused browser fixtures for interactions.
- Deployment requires verified changes and evidence that background processing is idle.
Durable queue — final state
- Baseline and isolated branch — complete.
- B1 ribbon ordering — complete.
- B2 Locations controls and PWA width — complete, including connected ribbon segments.
- B3 project/book covers and titles — complete.
- B4 obsolete checklist retirement — complete.
- C1–C4 resizing, maximisation and editor verification — complete.
- D targeted UX audit and responsive repair — complete.
- E functional audit and Floor Plans save repairs — complete.
- F targeted access/security review — complete; upstream redirect configuration deferred below.
- G regression expansion and final gates — complete.
- H public-site/52-solution SEO and mobile audit — complete.
- Development deployment, recovery checkpoint and handover — complete.
No further confirmed, independently safe repairs remain in the queue from these audits. Continue future work from the deferred infrastructure finding or a newly reproduced defect; avoid repeating completed changes.
Improvements and evidence
B1 — Story navigation (verified)
Before: Timeline → Calendar → Plot Lines → Threads → At This Point. After: Timeline → Plot Lines → Threads → Calendar → At This Point. Changed the shared declarative ribbon catalog; preserved commands and metadata. Other categories reviewed: no unambiguous workflow corrections identified, so existing group boundaries and ordering retained. Added regression assertion in the existing ribbon metadata suite.
Verification: dotnet build PlotLine.slnx passed (0 warnings/errors); full executable regression harness passed (exit 0).
B2 — Locations hierarchy controls
Replaced the standalone dropdown panel with compact Change parent / Create relationship buttons, published through the existing contextual command bindings under Location hierarchy. Browser toolbar remains immediately above the list. Preserved parent confirmations and relationship editing; persisted mode in local storage with graceful storage failure handling. Removed only the Locations PWA shell width cap. Ribbon proxies now preserve source button help tooltips.
Verification: solution build passed (0 warnings/errors); location browser regression passed, including keyboard activation, persistence, both drag modes, confirmation/cancellation, invalid targets, concurrent server rejection and scroll preservation. Repaired a stale fixture to read the shared confirmation partial, and explicitly scrolled the dragged source into view after toolbar keyboard use. Final full harness subsequently passed (405 checks).
B1 commit: 7f19319.
B3 — Project and book cover navigation
Linked active project cover stacks and missing-cover initials to the same Projects/Details route as Open. Linked Project Overview book covers (including the default placeholder) to the existing Books/Details route. Existing titles already use those routes. Edit, Archive and More remain independent siblings. Added pointer, hover and visible keyboard focus treatment.
Verification: solution build passed; rendered Razor browser regression passed for real covers, missing covers, title/Open route equality, keyboard activation and focus in browser/PWA modes. Added isolated Projects listing data to the existing browser host. B2 full harness rerun passed (exit 0). B2 commit: d6be496.
B4 — Retired Phase 1 Checklist
Confirmed the only application caller of the legacy aggregate report was Acceptance/Phase1. Removed its overview command, view, exclusive service, repository, model/view model and DI registrations. Kept the authenticated legacy action as a redirect to Projects/Details (or Projects/Index without a positive ID), so standard project authorisation handles bookmarks. Historical SQL migration and database objects remain unchanged; no tables or data removed.
Security finding clarified during the later filter audit: the global ProjectAccessFilter already rejected supplied foreign project IDs. The old service's remaining unsafe path was an authenticated account with no projects and no projectId: it forwarded null to the procedure, which aggregates across all projects when the ID is null. Retirement removes that fallback. No live cross-user query was performed.
Verification: build passed (0 warnings/errors), full harness passed including bookmark routing/authentication regression. B3 commit: 77332a2. Initial new-test build failed because a top-level harness helper shadows Attribute; corrected to System.Attribute and reran successfully.
C1 — Shared independent panel resizing
Added one lifecycle-managed resizing mechanism to the existing workspace surface, used automatically by Relationships, Maps and Floor Plans. Dividers support pointer capture, keyboard arrows (Shift for larger steps), Home and double-click reset. Widths persist independently per workspace; min/max limits protect the central canvas. Narrow layouts retain existing responsive handling. Dragging suppresses selection and does not begin canvas pointer interaction.
Verification: solution build passed (0 warnings/errors); new browser suite passed across all three workspace grids, four theme settings, keyboard/pointer resizing, independent widths, persisted reload restoration in Maps/Relationships, reset, smaller viewports, no text selection/canvas pointer events, unchanged map document. Floor Plans initially used an isolated grid fixture; C2 subsequently added and verified the full production Razor editor. Existing comprehensive Relationships browser suite passed (75 characters, 300 scenes, search, drag/drop, editing, timeline, persistence, responsive layout, PWA menu). Fixed an initial viewport overflow caught by that suite using CSS-relative divider placement. B4 commit: a348777.
C2 and the broader audits were subsequently completed below.
C2/C4 — Consistent PWA maximisation and full-editor verification
All three editors now share PWA shell handling: hide the titlebar/quick access and section-tab heading, retain the contextual ribbon, place the maximised surface below its measured bounds, and keep the Restore workspace command available. Browser maximisation and Maps separate-window handling retain their existing behaviour. Header resize observation is disposed with the workspace lifecycle.
Added a real Floor Plans editor fixture with its production Razor script section, floor and block; expanded panel tests from the isolated Floor Plans grid to the full editor. Verification: build passed (0 warnings/errors); full-editor panel tests passed across Maps, Relationships and Floor Plans in browser, normal PWA and maximised PWA, four theme settings, narrow viewports, saved-width restoration, keyboard/pointer resize and reset. Maximise/restore regression passed for all three editors in browser/PWA and four themes, including shell visibility, ribbon Restore command, canvas bounds and preserved map document/relationship pan and zoom/floor block state. Existing Maps browser/PWA author workflow regression passed. Final full harness subsequently passed (405 checks). C1 commit: 79c4fd2.
Explicit B/C improvements are implemented and committed. Next: targeted broader UX/functional/security/public-site audits and repairs; Development deployment after final checks and background-work safety verification.
D1 — Responsive character image controls
Reproduced browser overflow at 390px: a 360px form had 369px scroll width because the image uploader required 220px beside a fixed portrait. Allowed the shared image editor to wrap, with a shrinkable controls column. Fixed form measures 360px/360px; restoring the old CSS reproduces 360px/369px. Replaced the browser test's accepted-overflow diagnostic with a no-overflow assertion.
Verification: existing record-workspaces browser suite passed for nine real Razor forms, browser/PWA actions, responsive widths (1920/1440/800/390), validation, original POST handling, six themes and stable first paint. Full harness after C2 passed (exit 0). C2 commit: d7ae6e2.
F/G — Export and restore permission regression coverage
Traced global ProjectAccessFilter and current-user access service before evaluating repository calls. Existing export and restore controllers are guarded by the global filter; Maps also checks access explicitly. Added behavioural tests that run the real filter and access service against an isolated repository boundary: reject foreign projects and scene exports, reject collaborator owner-only backup export, reject foreign restore-point download/restore/delete, preserve valid collaborator reads, propagate current author, and reject anonymous/invalid identities without querying data. No permission rules changed.
Verification: solution build and full executable harness passed. Corrected B4 security analysis above after tracing the global filter; the retired null-project aggregate fallback was the remaining issue. D1 commit: ab5325d.
H — Sitemap resilience and live public SEO verification
When WritingSolver:EnableIndexing is false, sitemap generation now skips loading the solver graph entirely. Previously a graph-loading failure could fail a sitemap that does not include solver pages. Expanded the existing publication regression to make the solver repository unavailable while indexing is disabled. Indexing flags and Development noindex policy are unchanged.
Verification: solution build and full harness passed, including eligible solution URLs, inactive/unindexed exclusions and Development/Production indexing boundaries. Read-only live public audit found 505 sitemap URLs and exactly 52 solution pages, all successful with matching clean canonical URLs, unique descriptions, one H1 and parseable structured data; none had noindex metadata. Development GET verified X-Robots-Tag: noindex, follow. Public robots points at the canonical production sitemap. No Production changes performed. Audit details in /tmp/plotdirector-public-seo-audit.json (temporary evidence).
Deployment preflight: verified effective database name PlotDirector_Development. Read-only status counts show no queued/running intelligence jobs, runs, synthesis, enrichment or import commits; pipeline is NeedsReview and candidate generations Ready. Recheck immediately before any restart.
C2 follow-up — Directly visible Restore control
Visual review found Maps could compact Restore workspace into an overflow menu. Marked Maps and Floor Plans Workspace contributions essential, matching Relationships. Strengthened maximise coverage to require a directly visible restore button, rather than merely an existing ribbon command. Initial investigation incorrectly suspected the shared essential-group reader; the existing Relationships test demonstrated that logic was already correct, so it was retained.
Verification: build passed; all-editor/four-theme browser/PWA maximise suite and Relationships ribbon suite passed. General toolbar, PWA cache/privacy, responsive-content and Plot Lines narrative-map regressions also passed during the broader audit. Release publish succeeded, but is superseded by this follow-up and the next Floor Plans reliability repair; nothing deployed yet.
E — Floor Plans reliable save acknowledgement and unsaved changes
Reproduced two data-loss risks in the real editor fixture: (1) a save redirected to a login HTML page was labelled Saved; (2) an older successful request marked edits made during that request Saved before their own autosave. Require a non-redirected explicit ok:true response, reject malformed/null JSON safely, retain block state on failure, and track layout revisions so older acknowledgements cannot clear newer edits. Protect browser navigation while layout changes are dirty, saving or failed; remove that listener on workspace disposal.
Verification: both failures were reproduced by the new browser test before repair. Build passed (0 warnings/errors). Browser/PWA save tests passed for redirects, malformed/null payloads, server rejection, valid acknowledgement, preserved blocks, navigation protection and concurrent edits followed by their own autosave. All-editor resizing regression passed again. Final full harness subsequently passed (405 checks). Restore-visibility follow-up commit: 86509cb.
Deferred infrastructure finding — Development login redirect scheme
Live protected HTTPS requests redirect through an HTTP login URL. Development nginx listens on HTTP behind a separate TLS proxy and overwrites X-Forwarded-Proto with its local http scheme. The application-only loopback forwarded-header attempt passed middleware tests and direct loopback checks, but did not fix the public route because the original scheme has already been discarded upstream. Reverted that attempt after live verification failed; no widened proxy trust or upstream-host changes performed.
Next action for infrastructure review: verify the TLS proxy's forwarded scheme and trusted source addresses, then preserve that scheme at the Development origin with a narrowly trusted configuration. Existing cookies remain Secure, and the edge upgrades HTTP. This is the only deferred confirmed defect. No Production configuration was accessed or modified.
The ee9bbec deployment briefly contained the application-only attempt; it was reverted and the final 1930007 deployment retains all verified sprint improvements, including the subsequent Locations presentation refinement. No user data or schema changed.
B2 follow-up — Literal segmented presentation in the PWA ribbon
Final visual review showed the two mutually exclusive hierarchy choices were using standard ribbon tiles. Added a declarative segmented contribution style so the existing bound buttons render as compact connected label-only segments. Marked the group essential to retain immediate access; source controls, handlers, persisted mode and help remain canonical.
Verification: build passed (0 warnings/errors). New real-Razor browser/PWA regression passed across all four themes, checking connected edges, compact height, keyboard activation, pressed state, source-state synchronisation and restored preference. Existing drag/reparent/relationship browser regression passed. Final full harness (405 checks) and toolbar rerun passed.
Commit history
7f19319Order Story ribbon navigation around author workflowd6be496Compact location hierarchy controls and preserve drag workflows77332a2Make project and book covers accessible navigation linksa348777Retire obsolete acceptance report and redirect legacy bookmarks79c4fd2Share persistent accessible side panel resizing across workspacesd7ae6e2Retain contextual ribbon when maximising PWA workspacesab5325dKeep character image controls inside narrow browser formsba33b69Exercise project export and restore authorisation boundariesb7d87c7Avoid solver graph dependency when sitemap indexing is disabled86509cbKeep workspace restore controls visible in PWA ribbons2f99a3cPreserve unsaved floor plan edits until their save is acknowledgedee9bbecPreserve HTTPS login redirects behind the trusted local proxy5a969ebDefer upstream scheme repair after live proxy verification1930007Render location hierarchy choices as compact ribbon segments
The final report/recovery checkpoint is the fifteenth sprint commit.