9.9 KiB
Application / public website separation audit
Baseline established 27 November 2026, before changing running application code.
Production is the accepted release 9dcd29d423b20e373e49fb28180d993c40aa165d,
plotdirector-production-spatial-9dcd29d423b2-20261127T203415Z, activated at
20:36 UTC. The root receipt was retrieved read-only through the restricted deployment
account: 20261127T203623Z-d82f2be53cfe. All 18 measured public CSS/JS assets still
match that qualified release. See Evidence/production-baseline-receipt.json and
Evidence/live-baseline-assets.json. No live service/configuration/SQL was changed.
Source starting HEAD was 3b391ca8 (deployment documentation following that code
release), branch codex/word-companion-native-phase1-20261104. Two unrelated untracked
investigations were present and remain untouched:
Docs/Investigations/CanonicalManuscriptArchitectureAssessment.md and
Docs/Writer/Unified-Context-Workspace-Audit-20261121.md.
Recovery baseline
Retain /home/nick/.local/share/plotdirector-production/releases/spatial-context-navigation-20261127/,
including signed compressed bundle-qualified, qualified source, plan, checksums,
backup/evidence and Production receipt. The receipt pins DLL SHA-256
7fc84cb642bba8ddd9726acdcc5fed9566544b4adcff3a4ec09f37d47df3aa29 and
original tar SHA-256 dd8615e6b94e6ca49eddadd60d622309980d9d82f88e74f804fb2b99145d55e6.
The retained baseline package is the intended application fallback after a code-only
cutover, reissued under the existing rollback contract against the current schema.
Do not assume older dc65c9b2 binaries are qualified against migrations 335–339.
Production schema is 96de8e6cdd4001f4e2cf3ceff28ee0238e0c0c8fc79d662928a76a45e05f4e35,
337 ledger entries. This separation changes no SQL. Backups are not restored as
part of an ordinary application/domain rollback.
Definitive public route inventory
Evidence/public-urls.json is the machine-readable compatibility contract:
449 URLs from the live sitemap, plus 78 active public solver/browse/feature URLs
outside that sitemap. Of the 449, 442 are Help Centre index/category/article URLs:
409 articles, 32 categories and the index. Route templates additionally record search,
protected solver history/answers and legacy redirects. Static/crawler URLs and all
extracted assets retain their paths. Case-insensitive MVC matching and the existing
canonical help redirects remain. Infinite search/history query permutations are
route patterns, not invented separate permanent pages.
Production currently disables solver indexing. This state is preserved; those 78
routes remain usable but noindex and excluded from sitemap until separately approved.
No blanket redirect of missing pages is introduced. Unknown website routes and help
articles return 404. /writing-problems/{**path} retains its 308 method/query-preserving
redirect; /Help/Article/{contextKey} and /Help/Category/{category} remain compatible.
| Surface | Existing implementation | Separation decision |
|---|---|---|
/ |
HomeController.Index, Views/Home/Index | Same public Razor/content in website; app root redirects Projects |
/features, /about, /contact, /privacy, /terms |
PublicController, Views/Public | Extract unchanged views, models and PublicSeo |
/pricing |
PricingController, database subscription levels/current entitlement | Public approved plan JSON; billing/account decisions remain application |
/problem-solver, /problem-solver/answer, solution/feature/browse URLs |
WritingProblemsController, SQL-backed graph, deterministic engine and editorial/result/payoff JSON | Full validated graph JSON; same engine/journey, anonymous website-only protector/result cookie and memory cache |
/help, search, categories/articles and legacy help URLs |
HelpService, HelpMarkdownRenderer, HelpController, file Markdown | Explicitly approved versioned publication, same parsed identifiers/renderer, generated search/navigation/sitemap |
/sitemap.xml |
SitemapController reads help and solver | Same dynamic generator, published artifact dates and existing solver-indexing policy |
/robots.txt, llms guides |
Static public files and environment noindex middleware | Public crawl policy; Development disallow/noindex; separate app disallow/noindex |
| Contact/support | Public Contact view, hello@plotdirector.com, mailto links |
Preserve; no database-backed contact form was found |
| Account entry | Account Login/Register, Pricing StartTrial/Checkout | Website links explicitly to application origin, no authentication lookup on website |
Public layout is Views/Shared/_PublicLayout, with _PublicScene and
_MarketingScreenshot; Bootstrap/jQuery, site/public CSS and solver JavaScript are
retained where public functionality uses them. Public/solver images include AVIF/WebP
variants and responsive source sets. The application-wide site.js is not needed by
public pages and is omitted. Public brand assets have a versioned provenance manifest.
Read-only public HTML/browser checks found no analytics/tracking script, advertising cookie or search-engine verification meta tag in the public layout. Source contains no Google/Bing verification file. Public privacy copy says no analytics/tracking cookies. Preserve any independent live Nginx verification location discovered during administrator cutover preflight; restricted receipt access cannot inspect arbitrary root-owned Nginx files, so do not silently replace the live vhost with a template. Canonical URLs remain https://plotdirector.com. Existing page/SoftwareApplication, WebSite, breadcrumbs, TechArticle and pricing FAQ JSON-LD plus Open Graph/Twitter metadata are retained. The optional llms guide links actual released public content.
Existing live screenshot links to five writing-solver/*-1280.webp files return 404
(the underlying full-size images omit the suffix). Website supplies compatible AVIF/
WebP copies of those same images, retaining URLs and avoiding broken image links.
No copy or design expansion is included.
Application origin dependencies
| Dependency | Audit and preparation |
|---|---|
| Root/login/deep links | Root -> Projects -> authentication challenge. Login and 2FA already preserve safe local returnUrl; authenticated Login now returns requested local page/Projects. Logout returns Login. Open redirects rejected. |
| Registration/verification/reset | Account controller and AuthServices. Email URLs derive from HTTPS request host, so new app vhost produces app.plotdirector.com links; legacy token URLs on public host receive path/query-preserving redirects. No token/database migration. |
| Authentication cookies | PlotLine.Auth, HttpOnly/Secure/SameSite=Lax, no explicit Domain. Keep host-only cookies; users sign in again at new origin. Never broaden to .plotdirector.com. Preserve Data Protection keys/discriminator. |
| Two-factor | Existing pending session/return URL/token validation retained. New app origin starts a new session; finish existing challenges before cutover. No MFA secret/user changes. |
| Themes | Auth shell always public brand, including installed windows; no referral-dependent theme. Authenticated shell retains all seven existing themes and saved database preferences. |
| Stripe | /api/stripe/webhook, provider signature checks and checkout/portal URLs. Checkout success/cancel URLs derive from current request. Prepare new provider endpoint; retain legacy webhook reverse proxy, never rely on redirects for POST/signature clients. External dashboard changes need owner action/approval. |
| Word web add-in | Source manifest hard-coded old origin; Development/Production config now separate. Same add-in ID with prepared Production manifest. Taskpane/API URLs derive from loaded app origin; reinstall/update manifest required. |
| Native Companion | CloudGateway saved origin and origin-scoped protected installation credentials. Supported Change account/server workflow revokes old approval and pairs new app origin. Existing signed MSI is origin-configurable; no binary change is required solely for domain. Physical Windows/Word acceptance remains manual. |
| SignalR | Existing relative /hubs/native-companion, native-companion-agent, word-companion-follow, story-intelligence endpoints. New app vhost supports Upgrade. Legacy vhost reverse proxies protocol endpoints/body/bearer credentials, with client reauthorization caveats. |
| PWA | Existing start_url/id /Projects, scope /, relative icons/worker; new origin owns installation. Worker has no fetch/offline cache/background sync. Website publishes no worker/manifest/installer. Owner must synchronize pending editor/Companion work before uninstall/reinstall. |
| Browser storage | localStorage/application theme/window/editor state and any browser installation data are origin-scoped. No parent-domain cookie or client-storage migration. Verify server saves before cutover; retain old browser profile until owner confirms. |
| CORS | No broad CORS middleware/allow-all policy added. Same-origin taskpane/API/hub usage follows app origin. Old saved origins/Office trusted AppDomain require explicit client updates. |
| Deep links | Concrete legacy controller paths receive 308 redirects preserving path/query; API/hub/native routes use proxy compatibility. Missing editorial URLs still 404. |
| Infrastructure | Existing app retains service/port/releases/config/uploads/SQL/keys and signed compressed deploy process. Website gets independent identities, keys, port 5004 in Production, port 5051 in Development, release root and receipts. |
| Email/AI/background integrations | Support mailboxes/sender domain remain plotdirector.com. Do not change SMTP keys, held email/background workers, external-processing flags, acceptance fence or egress restrictions. Review pending old-host links before owner approval. |
Evidence/domain-references.json records concrete hard-coded origin locations.
Dynamic URLs also depend on request/proxy host; a string search alone is insufficient.
No application projects, assemblies, namespaces, users, subscriptions or data are renamed.