docs: finish Phase 2 improvement report and deployment acceptance record

This commit is contained in:
Nick Beckley 2026-11-04 14:08:44 +00:00
parent ace414a9b4
commit d0ed7d7c3b
2 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,34 @@
# Phase 2 Improvement Report — 4 November 2026
Verified changes are deployed to Development as `0928c20-20261104115934`. Production was untouched. The final handover documentation is a subsequent commit; all runtime changes are in the deployed release. The implementation, tests and running log contain 37 commits since baseline before this final report commit.
## Writer and visual repairs
Writer failures reproduced with actual Razor views, production JavaScript and a real SignalR Hub: failed initial negotiation/terminal disconnect cached unusable connections; popup windows cloned launcher identities. Repairs permit reconnection, keep distinct window identities, report blocked popups and maintain correct loading states. Chapter-goal editing now protects unsaved changes with save/discard/cancel, acknowledged save success, failure/retry and concurrent-edit handling. Browser/PWA fixtures passed repeated entry, navigation, return, role-window and goal-save cases. The reported whole-PWA freeze was not independently reproduced in a live authenticated session.
Writer/shared panels have consistent insets and spacing. Maps and Floor Plans have distinct icons. Locations uses conventional ribbon commands, mutually exclusive persistent hierarchy modes, visible drag grips and an accessible parent-edit alternative. Mobile Chapters table overflow was repaired. Rendered verification covered 18 pages × two widths × browser/PWA modes × four themes (288 cases), 48 maximised cases and final supplemental captures; fixture screenshots/contact sheets were inspected. Physical touch/installed-PWA acceptance is not claimed.
## Backup, restore, import and export
The audit classified all 167 schema tables, checked 108 entities / 1,388 columns and exercised 103 populated persistent collections plus four diagnostic/shared categories. Stored values, relationships, parent links, remapped IDs and exact uploaded/map image bytes were compared through copy and in-place restore; an independent SQL ownership census checked 183 owned rows across 106 scoped entities. Safety backups, malformed inputs, cross-author boundaries, transaction failure/rollback and account-reference preservation were verified in an isolated synthetic database.
Repairs include missing book/source/Word/Core provenance, map metadata/routes, review and intelligence history, narrative/enrichment evidence and project illustration history. Shared administrator catalogue state is explicitly excluded. Actual restore-service tests caught destructive inference from absent collections and row fields; 103 collection omission cases and 1,353 stored-field omission cases now refuse without destructive defaults. Explicit null/empty values remain supported. SQL graph reads are consistent during concurrent edits. Image uploads no longer silently substitute new bytes into old snapshots; versioned files, bounded export retry and transactional reference/ledger cleanup protect failures. Real WebP decoding failures were repaired.
The 28-workflow transfer inventory distinguishes supported JSON backup/legacy formats, Core Import, Word structure/transfer APIs, image uploads and HTML/Markdown/text reference exports. All eight reference packets × five formats/aliases passed real HTTP/SQL checks for content, order, Unicode, metadata, empty/long content, encoding and access boundaries. Full-backup/restore-point downloads were also checked. Image coverage includes 28 format/crop cases, 40 HTTP cases, eight actual SQL write refusals and outer rollback. Manuscript/reference formats are not represented as full-project archives.
## Verification and deployment
Fresh `dotnet build PlotLine.slnx`: zero warnings/errors. Fresh executable regression harness: 405 passes, zero failures. Specialist SQL/service, HTTP, browser and screenshot evidence is distinguished in the [running report](2026-11-03-phase2.md) and its CSV inventories.
Development backup `PlotDirector_Development_phase2_20261104115744.bak` was verified with checksums for both backup sets. Migrations 213–229 applied in order; all seven final procedure definitions and required ANSI settings were read back and verified. The user explicitly accepted restarting despite two illustration records marked Generating; all other active-work gates passed. Configuration, uploads, keys and logs were preserved, with the previous application directory retained.
Service active; local/public root and public login GETs returned 200. Published/deployed DLL SHA-256 match: `8470fedb12b7b4dff49407021d6f88315a6f4528ac54182854e79d9dd548fba0`. Eight protected routes redirected anonymous requests to login; six key deployed CSS/JavaScript files returned 200 with exact published bytes. No startup error headers/unhandled exceptions; one local HTTPS-port redirect warning, while public TLS succeeded. Evidence: `/srv/repos/plotdirector-phase2-artifacts/verification/`, including `deployment/public-routes-assets.json`.
## Handover
- **Completed and deployed:** verified runtime repairs, migrations, regression protection and Development release above.
- **Completed but not deployed:** final documentation only; no runtime changes await deployment.
- **Unverified:** real authenticated Writer/PWA navigation and native desktop Word acceptance; no signed-in session/native client was available. Fixture/API results do not establish those outcomes.
- **Compatibility limits:** no actual historical backup files were available; synthetic older-shaped cases are labelled accordingly. Shared administrator illustration catalogue/files require separate recovery. Non-null story-memory parent-location references lack a defined portable target and are explicitly refused on copy; same-project restore retains them. No silent recovery or broad historical compatibility claim.
No further independently confirmed repair remains pending from this programme. These acceptance/recovery limits are recorded deferrals under the prompt's explicit unavailable-testing and blocked-item rules, not claims of verified behavior.

View File

@ -423,3 +423,8 @@ Migrations 213–229 applied in order to verified `PlotDirector_Development`. Th
Fresh committed release `0928c20-20261104115934` installed using the documented physical-directory procedure, preserving configuration, uploads, data-protection keys and logs. Release archive `/srv/apps/plotdirector-dev/releases/0928c20-20261104115934`; prior application directory retained at `/srv/apps/plotdirector-dev/current-before-0928c20-20261104115934`. Published and deployed PlotLine.dll SHA-256 both `8470fedb12b7b4dff49407021d6f88315a6f4528ac54182854e79d9dd548fba0`; informational version `1.0.0+0928c2033adebddb7c8563a4358a3d1c875ec8a4`. Service active/running, new process started 12:01:41 UTC. Local root GET, strict-TLS public root GET and public login GET all returned 200.
Startup journal showed no error headers or unhandled exceptions. One warning: HTTPS redirection middleware could not determine a local HTTPS port; public TLS GET succeeded. Authenticated changed-route/Writer/PWA acceptance remains unavailable without a real signed-in session and is not claimed. No Production operation. Deployment evidence retained in `/srv/repos/plotdirector-phase2-artifacts/verification/deployment/`; machine-readable manifest updated to deployed state.
## Final completion audit — 4 November
Re-read original requirements B4, E1–E5, F1–F5, G, H, I and J against the committed inventories, specialist output and current deployment. The prompt explicitly permits deferred blocked items, distinguishes unavailable authenticated live acceptance and prohibits fabricated historical fixtures. Those limitations remain declared. Post-deployment read-only smoke verified eight actual protected routes redirect to login and six CSS/JavaScript assets match published bytes. An initial `/Exports` probe returned 404 because that controller has no Index action; corrected to its actual StoryBible/ProjectBackup actions. This was a probe-route error, not a product defect. Full concise handover: `2026-11-03-phase2-improvement-report.md`. All verified runtime changes are deployed; only final documentation commits follow release 0928c20.