Compare commits
20 Commits
643f28c4f9
...
59298af9a7
| Author | SHA1 | Date | |
|---|---|---|---|
| 59298af9a7 | |||
| 0c29af87e0 | |||
| 9d6706ded6 | |||
| ff6369e976 | |||
| d6123c6b64 | |||
| c93738ab00 | |||
| 5a50b9ed21 | |||
| 0236f880cc | |||
| 9b1770d96d | |||
| e140a6c969 | |||
| 8ee28075e9 | |||
| 15a9f96f79 | |||
| ec0bdf4f39 | |||
| 7970c2b1b8 | |||
| eadda6f674 | |||
| 793de56306 | |||
| 3a6aa34ee4 | |||
| 4182dbdf5d | |||
| 190c074d52 | |||
| 05a689c202 |
57
Docs/Codex/CharacterAttributes.md
Normal file
@ -0,0 +1,57 @@
|
||||
# Main Characters attribute workspace
|
||||
|
||||
The directory retains its existing `CharacterCardLayout.ColumnSpan`, full `DefaultDescription`, portraits, names, details links, Edit links and Archive forms. There is no card-height or biography-length rule in this feature. Assignment never submits the Character Editor model.
|
||||
|
||||
## Canonical model audit
|
||||
|
||||
- Story importance: nullable integer `CharacterImportance`. The editor assigns Major 10, Supporting 6, Minor 2 and Unclassified NULL. Existing intermediate values are retained; display uses the existing workspace bands (8+, 4+, 1+, otherwise Unclassified). No import defaults change.
|
||||
- Life status: nullable `IsDeceased`: false = Living, true = Deceased, NULL = Unrecorded. Independent of `IsArchived` and without inferred death date, scene or knowledge.
|
||||
- Sex: `SexValueID` plus canonical text `Sex`, using active system values and the project owner's custom `CharacterSexValues`. Existing catalogue values are reusable. “Add new…” stays in the editor and follows its existing owner-scoped get/create workflow. Legacy text without an ID is displayed as recorded and can be restored exactly by Undo.
|
||||
- Quick Add Bar: existing boolean `ShowInQuickAddBar` (Included / Excluded).
|
||||
- Eye colour: `EyeColour` is free text; there is no reusable canonical catalogue. It remains in the editor to avoid creating a competing vocabulary. Height, birth date, age, biographies, preferred names and aliases remain editor fields.
|
||||
- Other existing lookups (scene role/presence, relationship state, knowledge state) describe other records, not global character attributes; they are not directory assignments.
|
||||
|
||||
## Shared character attribute icon standard
|
||||
|
||||
`CharacterQuickAttributes.Definitions` supplies IDs, canonical values, labels, icon keys and semantic theme tones for the sidebar, indicators and context menus. SVG paths come from `ApplicationRibbon.Icon`; attribute-specific additions use the existing ribbon SVG vocabulary. The directory fetches the catalogue once per authenticated refresh, never per card.
|
||||
|
||||
| Attribute | Icon key | Theme tone |
|
||||
| --- | --- | --- |
|
||||
| Major | attribute-star | warning (gold intention) |
|
||||
| Supporting | characters | info (blue intention) |
|
||||
| Minor | attribute-person | secondary |
|
||||
| Unclassified / unrecorded / not set | help | secondary |
|
||||
| Living | attribute-heart | success |
|
||||
| Deceased | attribute-flower | data-5 (existing purple theme palette) |
|
||||
| Recorded sex | attribute-person | secondary |
|
||||
| Quick Add included | attribute-pin | primary |
|
||||
| Quick Add excluded | attribute-unpin | secondary |
|
||||
|
||||
All indicators have the full attribute/value in their tooltip and accessible name. Shapes, labels, menu checks and selection outlines supplement colour. Unrecorded life status is visibly unknown; no Living default is inferred. Legacy sex text is never represented as “Not set”. Additional discrete fields require one definition plus explicit focused persistence and validation; this is not a generic entity framework.
|
||||
|
||||
## Persistence, concurrency and Undo
|
||||
|
||||
Migration `323_CharacterQuickAttributes.sql` adds two procedures, without new data stores or changes to historical migrations:
|
||||
|
||||
- `Character_QuickAttributes_Read` returns only active, authorised character attribute snapshots, without biographies.
|
||||
- `Character_QuickAttributes_Assign` accepts a project, acting user, attribute and a JSON selection. It locks and authorises every active character against the same active project and checks each exact `UpdatedDate`. Only Owner/Collaborator can write. A failure rolls back the complete selection. No-op rows do not change timestamps or produce invalidations. Only the selected column (and the canonical sex ID/text pair) changes; `UpdatedDate` records the update.
|
||||
|
||||
All drag, explicit Assign and menu interactions POST the same antiforgery-protected `/CharacterAttributes/Assign` endpoint. The returned snapshots update icons/counts/filter visibility without replacing cards, changing order or reloading the page. Stored snapshots are captured under the write locks and returned after commit.
|
||||
|
||||
The server returns a protected, author-bound, ten-minute Undo receipt containing each changed character's individual previous value and post-write timestamp. `/CharacterAttributes/Undo` verifies the receipt before using the same procedure. Restore also checks every current timestamp, so even an unrelated subsequent character edit conservatively prevents stale Undo. Legacy sex text and intermediate importance values can be restored exactly. A toast action captures its own receipt, rather than accidentally undoing a later operation. A persistent toolbar Undo button offers the same accessible operation.
|
||||
|
||||
## Interaction and integration
|
||||
|
||||
- The sidebar is sticky, with bounded internal scrolling and collapsible groups. Its expanded preference uses the existing user/project-scoped local UI preference convention; narrow layouts use a compact panel above the unchanged responsive grid.
|
||||
- Filters combine across attributes. Counts respect other active attribute filters. Select displayed includes only visible cards; hidden selections are removed when filtering. Checkboxes, Ctrl/Cmd-click and Shift-click ranges support bulk assignment. Dragging uses a separate handle, leaving biography selection, details links and existing form buttons intact.
|
||||
- The existing `PlotDirectorContextMenus` provider handles individual and selected scopes, nested submenus, viewport positioning, dismissal and keyboard navigation. This feature adds optional `checked` and `tone` command properties, and exposes `openAt`/`close` for component invocation. It does not add another menu framework or suppress context menus outside the existing shell policy. Ctrl-right-click and text selection retain existing shell/browser behavior. Open/Edit/Archive appear only for an individual; Archive submits its original confirmation-protected form.
|
||||
- The shared toast service accepts an optional `{action:{label,run}}`; content remains plain text, with existing roles, bounds, timing and dismissal. There is no separate notification host.
|
||||
- Successful writes emit one lightweight existing `ContextInvalidated` hint (`projectId`, `kind: characters`) through `ContextWorkspaceNotifications`. The directory reuses `PlotDirectorPresenceConnection`, with authenticated snapshot retrieval and no per-card connections. Existing Character Details and Context listeners continue their existing refresh behavior, including Held Context; no position/focus command is emitted.
|
||||
|
||||
## Verification
|
||||
|
||||
Build and executable harness must run serially. `CharacterQuickAttributesTests` checks catalogue/custom/unknown semantics, biography-free snapshots, protected Undo author/expiry/tamper rejection and endpoint boundaries. `PlotLine.Tests/Sql/CharacterQuickAttributes.sql` refuses non-qualification databases and exercises atomic persistence on disposable characters in a disposable database copy.
|
||||
|
||||
With `--toolbar-browser-host` running, `node PlotLine.Tests/Browser/character-attributes.cjs` renders the actual compiled Characters Razor view and production scripts with isolated HTTP state. It covers 10/100/500 cards and records performance/screenshot artifacts in `/tmp`. `xvfb-run -a node PlotLine.Tests/Browser/character-attributes.cjs --installed` installs and launches a real Chromium app, asserting standalone display mode; it is not a matchMedia simulation. Neither browser fixture mutates an author's manuscript.
|
||||
|
||||
Fixture HTTP responses do not substitute for authenticated Development persistence smoke checks or manifest-based schema deployment qualification. Delivery evidence must distinguish these checks explicitly.
|
||||
@ -1,5 +1,11 @@
|
||||
# PlotDirector Database Operations
|
||||
|
||||
Deployable SQL now uses the [manifest/history standard](../Deployment/Production.md)
|
||||
and `Tools/Deployment/DatabaseWorker`, shared by Development, Test and Production.
|
||||
Do not bypass successful migration history with ad-hoc sqlcmd execution. Adopt an
|
||||
existing database only through a verified current-state baseline; historical
|
||||
execution is not inferred. See the [reviewed recovered-Production plan](../Deployment/ProductionUpgrade-20261125.plan.json).
|
||||
|
||||
Read this document only when the current task requires database inspection, SQL migration, schema work or direct development-database access.
|
||||
|
||||
## Environment
|
||||
@ -11,7 +17,7 @@ Read this document only when the current task requires database inspection, SQL
|
||||
- `/sql/mssql` on the host maps to `/var/opt/mssql` in the container.
|
||||
- Host `sqlcmd` is not installed.
|
||||
- Container sqlcmd: `/opt/mssql-tools18/bin/sqlcmd`.
|
||||
- Production is separate: host `www`, `192.168.10.8`, database `PlotLine`. Development authorisation does not authorise production changes.
|
||||
- Current Production: `web1`, `85.190.124.132`, database `PlotLine` on `127.0.0.1,1433`; see [deployed state and Phase 2 handover](../Deployment/Phase2-20261125.md). Historical server `www`, `192.168.10.8`, is inactive and retained for recovery. Development authorisation does not authorise production changes.
|
||||
|
||||
Never print, copy or commit connection strings, passwords, API keys, SMTP secrets, Stripe secrets or OpenAI keys.
|
||||
|
||||
@ -56,14 +62,14 @@ Scripts should be idempotent where practical:
|
||||
- guard table, column and index creation;
|
||||
- use `CREATE OR ALTER PROCEDURE`.
|
||||
|
||||
Migrations are manual SQL. Do not blindly replay the entire SQL directory, `Admin/`, or `Stripe_Price_IDs_Prod.sql`.
|
||||
Migrations are reviewed SQL scripts executed through the manifest/history worker. Do not manually apply scripts to ledger-managed databases or blindly replay the SQL directory, `Admin/`, or `Stripe_Price_IDs_Prod.sql`.
|
||||
|
||||
Before schema or data changes:
|
||||
|
||||
1. Verify the development database.
|
||||
2. Back up development using a unique SQL Server backup filename.
|
||||
3. Verify the backup command succeeded and the backup exists.
|
||||
4. Apply only required scripts in dependency order.
|
||||
4. Execute only the approved manifest through its deployment worker, in explicit dependency order.
|
||||
|
||||
Apply scripts separately with `SET ANSI_NULLS ON` and `SET QUOTED_IDENTIFIER ON`.
|
||||
|
||||
|
||||
@ -1,93 +1,177 @@
|
||||
# PlotDirector Development Deployment
|
||||
|
||||
Read this document only when deployment or detailed development-service operation is part of the task.
|
||||
Development uses the installed Atlas-only manifest activation profile in
|
||||
`Tools/Deployment/development.py`. Production uses a separate helper on web1.
|
||||
Do not repoint either helper, copy Production credentials, or use Production access
|
||||
for a Development release.
|
||||
|
||||
## Environment
|
||||
## Targets and trust boundaries
|
||||
|
||||
- Development host: Atlas.
|
||||
- Repository: `/srv/repos/PlotDirector`.
|
||||
- Development files: `/srv/apps/plotdirector-dev/current`.
|
||||
- Release archive: `/srv/apps/plotdirector-dev/releases/`.
|
||||
- Service: `plotdirector-dev`.
|
||||
- Service user: `plotdirector:plotdirector`.
|
||||
- Environment file: `/etc/plotdirector/plotdirector.env`.
|
||||
- Persistent uploads: `/srv/apps/plotdirector-dev/uploads`.
|
||||
- Default deployed data-protection keys: `/srv/apps/plotdirector-dev/App_Data/DataProtectionKeys`.
|
||||
- Local endpoint: `http://127.0.0.1:5050`.
|
||||
- Public development endpoint: `https://dev.plotdirector.com/`.
|
||||
| Setting | Development on Atlas |
|
||||
|---|---|
|
||||
| Application root | `/opt/plotdirector-dev` |
|
||||
| Current application | `/opt/plotdirector-dev/current` (atomic symlink) |
|
||||
| Immutable releases | `/opt/plotdirector-dev/releases/<release-id>/app` |
|
||||
| Service / runtime user | `plotdirector-dev.service` / `plotdirector` |
|
||||
| Runtime environment | `/etc/plotdirector/plotdirector.env` |
|
||||
| Deployment configuration | `/etc/plotdirector-development/target.json` |
|
||||
| Database worker configuration | `/etc/plotdirector-development/database.json` |
|
||||
| Database / SQL endpoint | `PlotDirector_Development` / `192.168.10.10,1433` |
|
||||
| Installed helper | `/usr/local/sbin/deploy-plotdirector-development` |
|
||||
| Installed implementation | `/usr/local/lib/plotdirector-dev-deployment` |
|
||||
| Migration OS identity | `plotdirector-dev-migrate` |
|
||||
| Deployment group / sudo rule | `plotdirector-dev-deploy` / `/etc/sudoers.d/plotdirector-development` |
|
||||
| Submission inbox | `/var/lib/plotdirector-dev-deployment/incoming` |
|
||||
| Approved code-only baseline | `/var/lib/plotdirector-dev-deployment/baseline` |
|
||||
| Evidence / receipts | `/opt/plotdirector-dev/deployment-evidence`, `/opt/plotdirector-dev/deployment-receipts` |
|
||||
| SQL backup (host / container) | `/sql/mssql/backup` / `/var/opt/mssql/backup` |
|
||||
| Local / public URL | `http://127.0.0.1:5050` / `https://dev.plotdirector.com/` |
|
||||
|
||||
`current` is a physical directory, not a symlink.
|
||||
The fixed Development profile rejects any change to host, database, service,
|
||||
configuration paths, trust anchor or endpoints. Its signing key is independent of
|
||||
Production. The privileged command clears the environment and imports only its
|
||||
root-owned installed modules. Operators submit untrusted packages; the helper
|
||||
snapshots them and verifies signatures, manifests, file checksums, qualification,
|
||||
schema fingerprints and the complete immutable migration ledger before admission.
|
||||
|
||||
Use `sudo -n` for protected service/configuration paths where appropriate.
|
||||
`/srv/apps/plotdirector-dev/current` is the retained legacy application directory,
|
||||
not the active service target. Existing uploads, logs and data-protection storage
|
||||
remain at their original Development paths. Root-owned bindings and configuration
|
||||
links under `/opt/plotdirector-dev/shared` preserve those paths across releases.
|
||||
Runtime appsettings and the environment file are not taken from release packages.
|
||||
The Development systemd drop-in explicitly retains
|
||||
`DataProtection__KeysPath=/srv/apps/plotdirector-dev/App_Data/DataProtectionKeys`
|
||||
and `DataProtection__ApplicationName=/srv/apps/plotdirector-dev/current/`. The latter
|
||||
is the measured legacy ASP.NET application discriminator, including its trailing
|
||||
slash. Both values are enforced by admission, so release-directory changes do not
|
||||
rotate the cookie purpose or key ring.
|
||||
Do not delete the legacy directory: some persistent bindings still reference it.
|
||||
|
||||
## Before Deployment
|
||||
## Routine code-only deployment
|
||||
|
||||
Confirm the intended commit:
|
||||
Use a clean committed checkout. Preserve unrelated work by building from a separate
|
||||
clean worktree when necessary. The caller must be a member of
|
||||
`plotdirector-dev-deploy`; membership takes effect on the next login (or use
|
||||
`sg plotdirector-dev-deploy -c 'COMMAND'` for the current session).
|
||||
|
||||
git status --short --branch
|
||||
git log -1 --oneline
|
||||
Run the repository's current orchestration tool, supplying the intended clean
|
||||
application checkout and a new private output directory:
|
||||
|
||||
If the change involves database migration, apply and verify required SQL before deploying dependent code.
|
||||
```bash
|
||||
python3 Tools/Deployment/development_release.py \
|
||||
--source /absolute/clean/checkout \
|
||||
--output /home/nick/.local/share/plotdirector-development/releases/UNIQUE-ID \
|
||||
--activate
|
||||
```
|
||||
|
||||
Before stopping the service, confirm there is no active import, Story Intelligence run, synthesis or character enrichment work. Check queued and processing work as well as core imports.
|
||||
This publishes the exact commit, runs the executable regression harness serially,
|
||||
checks that SQL has not changed from the approved Development baseline, prepares
|
||||
and signs the standard manifest package, submits it, validates it, then activates
|
||||
it. The signing key is
|
||||
`~/.local/share/plotdirector-development/signing/private.pem` (mode 0600, parent
|
||||
0700). It never reads a Production signing key or invokes SSH. Without `--activate`
|
||||
it stops after preactivation validation; there is no service stop or database write.
|
||||
|
||||
Do not deploy while such work is active unless interruption has explicitly been accepted.
|
||||
Activation checks queued/running work and holds the database deployment session
|
||||
lock. It makes and verifies a COPY_ONLY/CHECKSUM backup, checks idle state again
|
||||
before and after stopping the service, verifies/skips recorded migrations, installs
|
||||
immutable files, switches `current`, starts the service, verifies application and
|
||||
database identity, and records successful release history only after health passes.
|
||||
Active import, Story Intelligence, synthesis, enrichment or other checked jobs
|
||||
block deployment. Do not interrupt them without explicit acceptance.
|
||||
|
||||
## Publish
|
||||
For a previously submitted bundle:
|
||||
|
||||
Use a fresh temporary publish directory. Set fail-fast shell behaviour and derive a release name from the short commit SHA and UTC timestamp.
|
||||
```bash
|
||||
sudo -n /usr/local/sbin/deploy-plotdirector-development --validate RELEASE-ID
|
||||
sudo -n /usr/local/sbin/deploy-plotdirector-development --activate RELEASE-ID
|
||||
sudo -n /usr/local/sbin/deploy-plotdirector-development --receipt DEPLOYMENT-ID
|
||||
```
|
||||
|
||||
Publish with:
|
||||
No administrator intervention or Production access is needed for these routine
|
||||
commands after provisioning. A failed operation retains a sanitised receipt and
|
||||
protected evidence. After a failure involving a service stop, investigate the
|
||||
receipt before taking further action; the helper does not blindly roll back SQL.
|
||||
|
||||
dotnet publish PlotLine/PlotLine.csproj -c Release -o "$publish_dir"
|
||||
## SQL changes and recovery
|
||||
|
||||
The standard paths are:
|
||||
The routine command deliberately rejects changed SQL. A schema release needs an
|
||||
explicit reviewed plan qualified against Development's schema, using the standard
|
||||
`release.py` package contract and `DatabaseWorker`. Read
|
||||
[database operations](Database.md) and the [manifest/history contract](../Deployment/Production.md).
|
||||
Never replay all SQL files, infer history from a migration number, or adopt a
|
||||
Production baseline. Update the approved Development code-only baseline only after
|
||||
successful schema qualification and activation.
|
||||
|
||||
release_dir="/srv/apps/plotdirector-dev/releases/$release"
|
||||
backup_dir="/srv/apps/plotdirector-dev/current-before-$release"
|
||||
|
||||
## Install
|
||||
|
||||
Copy the fresh publish into the release archive and ensure ownership is `plotdirector:plotdirector`.
|
||||
|
||||
Stop `plotdirector-dev` before replacing the physical live directory.
|
||||
|
||||
Back up the existing `current` directory to the timestamped `current-before` path.
|
||||
|
||||
Use `rsync -a --delete` from the release directory into `current`, preserving:
|
||||
|
||||
- `appsettings*.json`
|
||||
- `.env*`
|
||||
- `App_Data/`
|
||||
- `wwwroot/uploads/`
|
||||
- `uploads/`
|
||||
- `logs/`
|
||||
- `Logs/`
|
||||
|
||||
Restore `plotdirector:plotdirector` ownership and start `plotdirector-dev`.
|
||||
|
||||
If installation or startup fails, stop and diagnose. Do not continue blindly or claim successful deployment.
|
||||
|
||||
An application rollback does not undo SQL migrations and must remain compatible with the migrated schema.
|
||||
An application rollback needs a signed package with a new release identifier and
|
||||
compatible schema. `--rollback` requires all migration history already present;
|
||||
it never undoes database changes. The previous release remains in `releases`.
|
||||
|
||||
## Verification
|
||||
|
||||
Verify:
|
||||
Check service status, recent warning/error logs, local health identity and normal
|
||||
TLS public GETs. Compare the installed DLL checksum and changed static assets with
|
||||
the signed manifest. Confirm the running health endpoint reports the intended full
|
||||
commit, `Development` and `PlotDirector_Development`. Verify affected authenticated
|
||||
routes through normal login with an isolated Development fixture when applicable.
|
||||
Never print credentials or record login screenshots, browser storage or traces.
|
||||
|
||||
- `systemctl is-active plotdirector-dev`
|
||||
- service status and recent warning/error logs;
|
||||
- local GET to `http://127.0.0.1:5050/`;
|
||||
- public HTTPS GET to `https://dev.plotdirector.com/`;
|
||||
- deployed `PlotLine.dll` metadata;
|
||||
- SHA-256 of published and deployed `PlotLine.dll`;
|
||||
- the changed authenticated route when applicable.
|
||||
## One-time provisioning and infrastructure updates
|
||||
|
||||
Timestamps alone do not prove the intended build is running.
|
||||
`Tools/Deployment/provision/development.py` is an administrator-only provisioning
|
||||
operation. It accepts a previously signed **Development** package matching the
|
||||
running DLL and a complete verified Development ledger; it refuses an existing
|
||||
target. It installs an independent worker/profile/key/sudo rule, preserves runtime
|
||||
configuration and persistent paths, seeds the previous release and reloads the
|
||||
Development service drop-in without restarting the process. It does not contact
|
||||
Production or change database state. Its worker input is a full published directory,
|
||||
including nested `runtimes/` dependencies.
|
||||
|
||||
Use a real GET for public smoke testing. HEAD may return 405.
|
||||
The actual 2026-11-25 provisioning command was:
|
||||
|
||||
Normal verification must validate TLS. Use `-k` only for certificate diagnosis.
|
||||
```bash
|
||||
sudo -n python3 Tools/Deployment/provision/development.py \
|
||||
--deployment-user nick \
|
||||
--database-config /home/nick/plotdirector-phase1-20261125/worker-development.private.json \
|
||||
--worker /tmp/pd-dev-deploy-ops/worker \
|
||||
--previous-package /home/nick/otp-refine-20261125/signed-bundle \
|
||||
--previous-public-key /home/nick/plotdirector-phase1-20261125/release-signing/phase1-candidate.pub.pem \
|
||||
--public-key /home/nick/.local/share/plotdirector-development/signing/public.pem
|
||||
```
|
||||
|
||||
Review configuration changes separately because deployment preserves deployed appsettings files.
|
||||
Those inputs describe the historical bootstrap, not routine deployment dependencies.
|
||||
Subsequent releases use only the installed profile, approved baseline and independent
|
||||
Development signing key. Installed privileged modules do not update themselves
|
||||
from a checkout. Changes to the trusted helper require separate administrator
|
||||
review/install and the focused Python regression suite; they do not require any
|
||||
Production access.
|
||||
|
||||
Keep the release directory and `current-before` backup named with the deployed short SHA and UTC timestamp for traceability.
|
||||
## Why the 2026-11-25 blocker occurred
|
||||
|
||||
`05a689c2` changed this guide to mandate manifest/history activation, but supplied
|
||||
only a Production-specific installed target. `793de563` retained that restriction.
|
||||
The last successful Development deployment (`9b1770d9`, 19:48 UTC) used a one-off
|
||||
private Development driver, with a signed package, verified backup, 321-entry
|
||||
ledger and post-health release record. That driver was not installed or documented
|
||||
as the reusable Development entry point. The later `ff6369e9` task therefore found
|
||||
no supported configured Development target. The running application and ledger
|
||||
were healthy; the regression was the incomplete operational handover.
|
||||
|
||||
## Acceptance of the restored mechanism
|
||||
|
||||
Commit `ff6369e9766b37fba38b9c327c0c170076236870` was deployed twice through the
|
||||
routine command, with the final activation retaining the legacy data-protection
|
||||
identity. Both used signed manifests, verified backups and complete 321-entry
|
||||
history; zero migrations executed. A group-only temporary OS identity successfully
|
||||
validated a release while general sudo, migration credentials and the private
|
||||
signing key remained inaccessible. All 77 deployment tests and the complete
|
||||
application regression harness passed. Authenticated Scan Manuscript and actual
|
||||
theme-picker checks passed in light/dark modes; served stylesheet hashes match.
|
||||
|
||||
See the [activation receipt](../Deployment/Evidence/Development-20261125/activation-receipt.json),
|
||||
[verification](../Deployment/Evidence/Development-20261125/verification.json), and
|
||||
[permission checks](../Deployment/Evidence/Development-20261125/permission-check.json).
|
||||
The legacy HTTPS-port warning behind the reverse proxy remains; public TLS checks
|
||||
pass. A separate existing account-deletion foreign-key defect was observed while
|
||||
removing the browser fixture; the fixture was fully removed, and no schema change
|
||||
was made. Neither observation blocks Development deployments.
|
||||
|
||||
@ -9,6 +9,8 @@ PlotDirector.toast.warning('Word connection interrupted');
|
||||
PlotDirector.toast.error('Unable to save changes');
|
||||
```
|
||||
|
||||
An optional action uses `{ action: { label: 'Undo', run: () => undoOperation() } }` as the second argument. The button uses plain text, dismisses that toast before invoking the callback, and does not take focus when shown. The caller owns safe concurrency checks and error feedback; capture the specific operation rather than a mutable “latest action”.
|
||||
|
||||
Use success for completed user actions, info for meaningful background completion, warning for attention required, and error for unsuccessful operations. Routine successful background sync, paragraph changes and navigation should stay silent. Keep progress indicators, field validation, destructive confirmations, persistent connection state, and substantial recovery instructions in their existing workflow.
|
||||
|
||||
Success/info dismiss after six seconds. Warning/error remain until dismissed. An optional second argument `{ duration: 10000 }` overrides the duration; zero means manual dismissal. The returned function dismisses that toast. Hover/focus pauses auto dismissal; leaving restarts the duration. Close buttons work with the keyboard and Escape dismisses the focused toast. Notifications never take focus. Status/alert roles announce messages; labels convey categories without relying on colour.
|
||||
|
||||
14
Docs/Deployment/CharacterAttributes-20261126.plan.json
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
"target": "Development on Atlas only",
|
||||
"database": "PlotDirector_Development",
|
||||
"starting_schema_sha256": "432931e506b7f02570952bc098b952fcc82228c9f1dbca0fef1619ff869763c7",
|
||||
"resulting_schema_sha256": "e2c2475bd10b8139e1d91c6ea4da417acdad6f595b88cc350823ba939984f153",
|
||||
"migration": "323_CharacterQuickAttributes.sql",
|
||||
"requires": ["322_DeploymentRuntimeHealth"],
|
||||
"prerequisites": ["dbo.Characters", "dbo.CharacterSexValues", "dbo.ProjectUserAccess", "dbo.Projects"],
|
||||
"postconditions": ["dbo.Character_QuickAttributes_Assign", "dbo.Character_QuickAttributes_Read"],
|
||||
"review": "Additive stored procedures only; no tables, default changes, existing character assignments, import work, analysis, or manuscript position changes. Authorised assignment writes only its selected attribute and UpdatedDate. Restore is exposed only through protected, author-bound, expiring Undo receipts. Bulk validation is atomic under locks.",
|
||||
"qualification": "Verify a COPY_ONLY/CHECKSUM Development backup; qualify the complete immutable ledger plus migration 323 on two fresh disposable copies through DatabaseWorker. Require exact starting/resulting schema, unchanged original business-column fingerprints and integrity checks. Run isolated character fixture SQL regressions separately. Prepare and sign the exact committed application and qualification evidence using release.py, then use the fixed Development helper for validation and activation.",
|
||||
"recovery": "Retain backup, receipts and disposable qualification evidence on failure. Do not modify numbered scripts or roll back SQL. Procedures are additive; a compatible application rollback must be another signed manifest release.",
|
||||
"production_authorised": false
|
||||
}
|
||||
@ -0,0 +1,291 @@
|
||||
{
|
||||
"availability": {
|
||||
"confirmed_inactive_to_health_ready_seconds": 7.380294495989801,
|
||||
"definition": "Monotonic intervals include stop/start commands; observed public outage measured separately on Atlas.",
|
||||
"service_stop_to_start_seconds": 2.005145545990672,
|
||||
"stop_request_to_health_ready_seconds": 7.524218160993769,
|
||||
"stop_request_to_start_command_complete_seconds": 2.1490729079960147
|
||||
},
|
||||
"checks": {
|
||||
"activation": true,
|
||||
"application": {
|
||||
"database": "PlotDirector_Development",
|
||||
"environment": "Development",
|
||||
"healthy": true,
|
||||
"sourceCommit": "ff6369e9766b37fba38b9c327c0c170076236870",
|
||||
"version": "1.0.0"
|
||||
},
|
||||
"binary_identity": true,
|
||||
"database": {
|
||||
"complete_history": true,
|
||||
"healthy": true,
|
||||
"history": {
|
||||
"baselined": 317,
|
||||
"executed": 4,
|
||||
"expected": 321,
|
||||
"latest_successful_release": {
|
||||
"activated_utc": "2026-11-25T21:03:35.9983834Z",
|
||||
"activation_kind": "Deploy",
|
||||
"application_version": "1.0.0",
|
||||
"deployment_identifier": "20261125T210308Z-b72117527063",
|
||||
"manifest_sha256": "e9af01e8060a1e8fce81db625a79215e903efef4ff7db76aee9a60d972179fbb",
|
||||
"package_sha256": "ddfc29ef614ec4ff108535d21dbe40726e9097ebb1b3f1b05cad6cf06aef0142",
|
||||
"recorded": true,
|
||||
"release_identifier": "development-ff6369e9766b-20261125T210110Z",
|
||||
"source_commit": "ff6369e9766b37fba38b9c327c0c170076236870"
|
||||
},
|
||||
"recorded": 321,
|
||||
"successful_release_count": 3
|
||||
},
|
||||
"history_verification_seconds": 0.1163479
|
||||
},
|
||||
"http_login": true,
|
||||
"http_root": true
|
||||
},
|
||||
"completed_utc": "2026-11-25T21:11:09.056+00:00",
|
||||
"database_backup": {
|
||||
"options": [
|
||||
"COPY_ONLY",
|
||||
"CHECKSUM",
|
||||
"VERIFYONLY"
|
||||
],
|
||||
"path": "/sql/mssql/backup/PlotDirector_Development-predeploy-20261125T211042Z-2d66c5c3fa11.bak",
|
||||
"verified": true
|
||||
},
|
||||
"deployment_id": "20261125T211042Z-2d66c5c3fa11",
|
||||
"failures": [],
|
||||
"format": 1,
|
||||
"migration_history": {
|
||||
"complete": true,
|
||||
"database_bytes": 2097152000,
|
||||
"history": {
|
||||
"baselined": 317,
|
||||
"executed": 4,
|
||||
"expected": 321,
|
||||
"latest_successful_release": {
|
||||
"activated_utc": "2026-11-25T21:03:35.9983834Z",
|
||||
"activation_kind": "Deploy",
|
||||
"application_version": "1.0.0",
|
||||
"deployment_identifier": "20261125T210308Z-b72117527063",
|
||||
"manifest_sha256": "e9af01e8060a1e8fce81db625a79215e903efef4ff7db76aee9a60d972179fbb",
|
||||
"package_sha256": "ddfc29ef614ec4ff108535d21dbe40726e9097ebb1b3f1b05cad6cf06aef0142",
|
||||
"recorded": true,
|
||||
"release_identifier": "development-ff6369e9766b-20261125T210110Z",
|
||||
"source_commit": "ff6369e9766b37fba38b9c327c0c170076236870"
|
||||
},
|
||||
"recorded": 321,
|
||||
"successful_release_count": 3
|
||||
},
|
||||
"history_verification_seconds": 0.3024553,
|
||||
"schema": "432931e506b7f02570952bc098b952fcc82228c9f1dbca0fef1619ff869763c7"
|
||||
},
|
||||
"migrations": {
|
||||
"baselined": 0,
|
||||
"committed": [],
|
||||
"committed_list_truncated": false,
|
||||
"executed": 0,
|
||||
"schema": "432931e506b7f02570952bc098b952fcc82228c9f1dbca0fef1619ff869763c7"
|
||||
},
|
||||
"operation": "activate",
|
||||
"origin": "web1",
|
||||
"phases": [
|
||||
{
|
||||
"completed_utc": "2026-11-25T21:10:43.800+00:00",
|
||||
"exclusive_seconds": 0.737653,
|
||||
"name": "package_validation",
|
||||
"outcome": "passed",
|
||||
"parent": null,
|
||||
"seconds": 0.737653,
|
||||
"started_utc": "2026-11-25T21:10:43.062+00:00"
|
||||
},
|
||||
{
|
||||
"completed_utc": "2026-11-25T21:10:45.265+00:00",
|
||||
"exclusive_seconds": 1.46513,
|
||||
"name": "package_validation",
|
||||
"outcome": "passed",
|
||||
"parent": null,
|
||||
"seconds": 1.46513,
|
||||
"started_utc": "2026-11-25T21:10:43.800+00:00"
|
||||
},
|
||||
{
|
||||
"completed_utc": "2026-11-25T21:10:47.600+00:00",
|
||||
"exclusive_seconds": 0.696416,
|
||||
"name": "database_state_verification",
|
||||
"outcome": "passed",
|
||||
"parent": null,
|
||||
"seconds": 0.998871,
|
||||
"started_utc": "2026-11-25T21:10:46.601+00:00"
|
||||
},
|
||||
{
|
||||
"clock": "SQL worker Stopwatch; measured duration, UTC endpoints unavailable",
|
||||
"completed_utc": null,
|
||||
"exclusive_seconds": 0.302455,
|
||||
"name": "migration_history_verification",
|
||||
"outcome": "passed",
|
||||
"parent": "database_state_verification",
|
||||
"seconds": 0.302455,
|
||||
"started_utc": null
|
||||
},
|
||||
{
|
||||
"completed_utc": "2026-11-25T21:11:01.296+00:00",
|
||||
"exclusive_seconds": 13.675311,
|
||||
"name": "database_backup",
|
||||
"outcome": "passed",
|
||||
"parent": null,
|
||||
"seconds": 13.675311,
|
||||
"started_utc": "2026-11-25T21:10:47.620+00:00"
|
||||
},
|
||||
{
|
||||
"completed_utc": "2026-11-25T21:11:01.474+00:00",
|
||||
"exclusive_seconds": 0.143827,
|
||||
"name": "service_stop",
|
||||
"outcome": "passed",
|
||||
"parent": null,
|
||||
"seconds": 0.143827,
|
||||
"started_utc": "2026-11-25T21:11:01.331+00:00"
|
||||
},
|
||||
{
|
||||
"completed_utc": "2026-11-25T21:11:02.645+00:00",
|
||||
"exclusive_seconds": 1.140531,
|
||||
"name": "migration_execution",
|
||||
"outcome": "passed",
|
||||
"parent": null,
|
||||
"seconds": 1.140531,
|
||||
"started_utc": "2026-11-25T21:11:01.504+00:00"
|
||||
},
|
||||
{
|
||||
"completed_utc": "2026-11-25T21:11:03.209+00:00",
|
||||
"exclusive_seconds": 0.55612,
|
||||
"name": "release_installation",
|
||||
"outcome": "passed",
|
||||
"parent": null,
|
||||
"seconds": 0.55612,
|
||||
"started_utc": "2026-11-25T21:11:02.653+00:00"
|
||||
},
|
||||
{
|
||||
"completed_utc": "2026-11-25T21:11:03.460+00:00",
|
||||
"exclusive_seconds": 0.091703,
|
||||
"name": "release_activation",
|
||||
"outcome": "passed",
|
||||
"parent": null,
|
||||
"seconds": 0.091703,
|
||||
"started_utc": "2026-11-25T21:11:03.368+00:00"
|
||||
},
|
||||
{
|
||||
"completed_utc": "2026-11-25T21:11:03.480+00:00",
|
||||
"exclusive_seconds": 0.019743,
|
||||
"name": "service_start",
|
||||
"outcome": "passed",
|
||||
"parent": null,
|
||||
"seconds": 0.019743,
|
||||
"started_utc": "2026-11-25T21:11:03.460+00:00"
|
||||
},
|
||||
{
|
||||
"completed_utc": "2026-11-25T21:11:08.855+00:00",
|
||||
"exclusive_seconds": 0.538483,
|
||||
"name": "postactivation_verification",
|
||||
"outcome": "passed",
|
||||
"parent": "application_health_readiness",
|
||||
"seconds": 0.654831,
|
||||
"started_utc": "2026-11-25T21:11:08.200+00:00"
|
||||
},
|
||||
{
|
||||
"clock": "SQL worker Stopwatch; measured duration, UTC endpoints unavailable",
|
||||
"completed_utc": null,
|
||||
"exclusive_seconds": 0.116348,
|
||||
"name": "migration_history_verification",
|
||||
"outcome": "passed",
|
||||
"parent": "postactivation_verification",
|
||||
"seconds": 0.116348,
|
||||
"started_utc": null
|
||||
},
|
||||
{
|
||||
"completed_utc": "2026-11-25T21:11:08.855+00:00",
|
||||
"exclusive_seconds": 4.72025,
|
||||
"name": "application_health_readiness",
|
||||
"outcome": "passed",
|
||||
"parent": null,
|
||||
"seconds": 5.375081,
|
||||
"started_utc": "2026-11-25T21:11:03.480+00:00"
|
||||
},
|
||||
{
|
||||
"completed_utc": "2026-11-25T21:11:08.887+00:00",
|
||||
"exclusive_seconds": 0.024546,
|
||||
"name": "postactivation_verification",
|
||||
"outcome": "passed",
|
||||
"parent": null,
|
||||
"seconds": 0.024546,
|
||||
"started_utc": "2026-11-25T21:11:08.863+00:00"
|
||||
},
|
||||
{
|
||||
"completed_utc": "2026-11-25T21:11:09.056+00:00",
|
||||
"exclusive_seconds": 0.015857,
|
||||
"name": "receipt_generation",
|
||||
"outcome": "passed",
|
||||
"parent": null,
|
||||
"seconds": 0.015857,
|
||||
"started_utc": "2026-11-25T21:11:09.040+00:00"
|
||||
}
|
||||
],
|
||||
"previous_release": {
|
||||
"deployment": "20261125T210308Z-b72117527063",
|
||||
"package_sha256": "ddfc29ef614ec4ff108535d21dbe40726e9097ebb1b3f1b05cad6cf06aef0142",
|
||||
"release": "development-ff6369e9766b-20261125T210110Z",
|
||||
"source_commit": "ff6369e9766b37fba38b9c327c0c170076236870",
|
||||
"version": "1.0.0"
|
||||
},
|
||||
"protected_evidence_reference": "/opt/plotdirector-dev/deployment-evidence/20261125T211042Z-2d66c5c3fa11.jsonl",
|
||||
"recovery": "No automatic database restore or application rollback. Review protected attempt evidence on failure.",
|
||||
"release": {
|
||||
"application_sha256": "a6306640483b7366aa39b0ca16971fd9ef4d9732084fc69c2077b1e8b9a48147",
|
||||
"dll_sha256": "a6b0edd9494e360aebbdfc2f51053d430ba0e056122e6f9f91e1dc9bdc80a805",
|
||||
"id": "development-ff6369e9766b-20261125T210842Z",
|
||||
"manifest_sha256": "0ead2269363a3a1322674952af6c4fac4b64cb46eb9ba185d7c1ea2a2b8106aa",
|
||||
"package_sha256": "35274650d8ec098a7313483321e4949ac75489c81345e5b58bac6993ebbfe777",
|
||||
"source_commit": "ff6369e9766b37fba38b9c327c0c170076236870",
|
||||
"version": "1.0.0"
|
||||
},
|
||||
"release_history": {
|
||||
"activated_utc": "2026-11-25T21:11:08.8683394Z",
|
||||
"activation_kind": "Deploy",
|
||||
"application_version": "1.0.0",
|
||||
"deployment_identifier": "20261125T211042Z-2d66c5c3fa11",
|
||||
"manifest_sha256": "0ead2269363a3a1322674952af6c4fac4b64cb46eb9ba185d7c1ea2a2b8106aa",
|
||||
"package_sha256": "35274650d8ec098a7313483321e4949ac75489c81345e5b58bac6993ebbfe777",
|
||||
"recorded": true,
|
||||
"release_identifier": "development-ff6369e9766b-20261125T210842Z",
|
||||
"source_commit": "ff6369e9766b37fba38b9c327c0c170076236870"
|
||||
},
|
||||
"started_utc": "2026-11-25T21:10:42.984+00:00",
|
||||
"status": "activated",
|
||||
"timing": {
|
||||
"clock": "monotonic; UTC timestamps for correlation only",
|
||||
"measured_top_level_seconds": 24.244373,
|
||||
"total_seconds": 26.071247,
|
||||
"unattributed_seconds": 1.826874
|
||||
},
|
||||
"transport": {
|
||||
"compression_ratio": 1.0,
|
||||
"method": "none",
|
||||
"original_bytes": 554301440,
|
||||
"original_sha256": "35274650d8ec098a7313483321e4949ac75489c81345e5b58bac6993ebbfe777",
|
||||
"transferred_bytes": 554301440,
|
||||
"transferred_sha256": "35274650d8ec098a7313483321e4949ac75489c81345e5b58bac6993ebbfe777"
|
||||
},
|
||||
"unperformed_phases": [
|
||||
"release_preparation",
|
||||
"production_validation",
|
||||
"remote_activation",
|
||||
"receipt_retrieval",
|
||||
"scope_verification",
|
||||
"build",
|
||||
"packaging_signing",
|
||||
"compression",
|
||||
"transfer",
|
||||
"decompression",
|
||||
"public_acceptance"
|
||||
],
|
||||
"warnings": [
|
||||
"upload-metrics-unavailable; sender receipt may provide transfer measurements"
|
||||
]
|
||||
}
|
||||
@ -0,0 +1,7 @@
|
||||
{
|
||||
"group_only_validation": true,
|
||||
"general_sudo_denied": true,
|
||||
"migration_credentials_unreadable": true,
|
||||
"private_signing_key_unreadable": true,
|
||||
"production_access": false
|
||||
}
|
||||
@ -0,0 +1,41 @@
|
||||
{
|
||||
"status": "passed",
|
||||
"source_commit": "ff6369e9766b37fba38b9c327c0c170076236870",
|
||||
"environment": "Development",
|
||||
"database": "PlotDirector_Development",
|
||||
"release_id": "development-ff6369e9766b-20261125T210842Z",
|
||||
"deployment_id": "20261125T211042Z-2d66c5c3fa11",
|
||||
"installed_dll_sha256": "a6b0edd9494e360aebbdfc2f51053d430ba0e056122e6f9f91e1dc9bdc80a805",
|
||||
"public_https": {
|
||||
"https://dev.plotdirector.com/": 200,
|
||||
"https://dev.plotdirector.com/Account/Login": 200
|
||||
},
|
||||
"served_stylesheets": {
|
||||
"onboarding.css": "56044b4480832870ca92de79b894dbbe71a10a162c731258da1fdd2dba2e549b",
|
||||
"story-intelligence-global-progress.css": "a5315dadbd5374eb08af5e124f20d0c6b37f610078f18369071c903b406851f5"
|
||||
},
|
||||
"installed_modules": {
|
||||
"activate.py": "a4d9ffb3745555f08db5b3433f66c79eedbe52f94328286a7133bb594fe19271",
|
||||
"release.py": "10bff1f1c1579b5f8a3d4df8bf9c4ef8891d576f5c329fba5c169dfb77dcb8dd",
|
||||
"receipt.py": "d92324e00862f773ef663332dedc0e061bb0561b5397e83728e05ce42c142d21",
|
||||
"transport.py": "66c5adf1eeaf28fa050d188e9c7607234116fa6bb5f289301a79ca58e3a3e601",
|
||||
"development.py": "43d671ef3758da701299b08f375b5674c695d1857c4e36022dbc8e73bd993e84"
|
||||
},
|
||||
"full_regression_harness": "passed",
|
||||
"deployment_python_tests": {
|
||||
"passed": 77
|
||||
},
|
||||
"authenticated_scan_route": "passed using isolated synthetic account; actual theme picker warm-dark/warm-light",
|
||||
"continuation_banner": "verified as display-only synthetic state on authenticated running page; no import started",
|
||||
"fixture_cleanup": "completed; no fixture account remains",
|
||||
"persistence": {
|
||||
"legacyDiscriminator": "/srv/apps/plotdirector-dev/current/",
|
||||
"stableKeyDirectory": "/srv/apps/plotdirector-dev/App_Data/DataProtectionKeys",
|
||||
"legacyProtectionCompatibility": true
|
||||
},
|
||||
"production_access": false,
|
||||
"remaining_observations": [
|
||||
"Existing account deletion procedure conflicts with FK_UserOnboardingState_AppUser for an account that has entered onboarding. Only the synthetic fixture row was removed before normal account cleanup; no application/schema fix was included.",
|
||||
"The HTTPS-port redirect warning was present before and after deployment behind the reverse proxy; normal public TLS GETs pass. No postactivation failure markers were logged by the final process."
|
||||
]
|
||||
}
|
||||
10
Docs/Deployment/Evidence/Phase1-20261125/browser.json
Normal file
@ -0,0 +1,10 @@
|
||||
{
|
||||
"writer_loaded": true,
|
||||
"context_loaded": true,
|
||||
"context_tabs_loaded": true,
|
||||
"independent_window_hold": true,
|
||||
"release_restores_follow": true,
|
||||
"mobile_context_no_overflow": true,
|
||||
"page_errors": 0,
|
||||
"status": "passed"
|
||||
}
|
||||
@ -0,0 +1 @@
|
||||
{"backup_sha256":"6cf9e6d4d340a222a48c43265582e45a0150b132ae6eeb2bb6cd112f97cb743c","runs":[{"all_original_fingerprints_equal":true,"database":"PlotDirector_Qualification_Final_20261125_1","fingerprint_sha256":"66bbf6bc98d17e5cdf0d61f135d1dba16f89fb1c9fdf8449d61be7a733a97268","integrity":{"constraint_violations":0,"integrity":true},"original_rows":139554,"original_tables":163,"resulting_schema_sha256":"b17db2bbdc583cb7bd3c856fb4db5cf6fc470e87fbaee5dc1dbbe99b6878beb7","starting_schema_sha256":"1eaa17d39bfdc2542743d6e911659141466f0bdf4efbeb62fb76b958ddd03c21"},{"all_original_fingerprints_equal":true,"database":"PlotDirector_Qualification_Final_20261125_2","fingerprint_sha256":"66bbf6bc98d17e5cdf0d61f135d1dba16f89fb1c9fdf8449d61be7a733a97268","integrity":{"constraint_violations":0,"integrity":true},"original_rows":139554,"original_tables":163,"resulting_schema_sha256":"b17db2bbdc583cb7bd3c856fb4db5cf6fc470e87fbaee5dc1dbbe99b6878beb7","starting_schema_sha256":"1eaa17d39bfdc2542743d6e911659141466f0bdf4efbeb62fb76b958ddd03c21"}],"source_commit":"190c074d5202fdf8a94b3b7a70c94857f848aafd","status":"passed","worker_sha256":"176f73107e02f8dea7dc6787ad8cded72c15e7d6ecf775371c6d90dea32c8df6"}
|
||||
@ -0,0 +1,10 @@
|
||||
{
|
||||
"database": "PlotDirector_Development",
|
||||
"runtime_login": "plotdirector_dev",
|
||||
"before_db_owner": 1,
|
||||
"after_db_owner": 0,
|
||||
"runtime_role": "PlotDirectorRuntime",
|
||||
"server_sysadmin": 0,
|
||||
"application_restarted": false,
|
||||
"isolated_real_export_restore_contract": "passed"
|
||||
}
|
||||
13
Docs/Deployment/Evidence/Phase1-20261125/http.json
Normal file
@ -0,0 +1,13 @@
|
||||
{
|
||||
"passed": true,
|
||||
"read_requests": 80,
|
||||
"all_status_200": true,
|
||||
"recovered_asset_bytes_verified": 30,
|
||||
"health": {
|
||||
"healthy": true,
|
||||
"version": "1.0.0",
|
||||
"sourceCommit": "190c074d5202fdf8a94b3b7a70c94857f848aafd",
|
||||
"database": "PlotDirector_Qualification_Final_20261125_1",
|
||||
"environment": "Qualification"
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,9 @@
|
||||
{
|
||||
"status": "passed",
|
||||
"migration_server_sysadmin": false,
|
||||
"target_db_owner": true,
|
||||
"create_any_database": true,
|
||||
"copy_only_checksum_verifyonly": "passed",
|
||||
"recorded_migrations_reapplied": false,
|
||||
"runtime_policy_reconciled": true
|
||||
}
|
||||
@ -0,0 +1,10 @@
|
||||
{
|
||||
"format": 1,
|
||||
"manifest_sha256": "58bac17161e1ea280617c15fba61ef26ac976417217fbb77accbb5ab4ababe13",
|
||||
"package_sha256": "0ec47c0c0e5ba17c0df34ce27105e183820947fd91bc466d276d305bf4cd10b9",
|
||||
"release_id": "plotdirector-production-190c074d-20261125",
|
||||
"source_commit": "190c074d5202fdf8a94b3b7a70c94857f848aafd",
|
||||
"signing_public_key_der_sha256": "72e7fd8e5530201397cbf41a736a8973053d4f22726cf03cdec5338bf9773e68",
|
||||
"authority": "Local Phase1 candidate signing authority only; no Production trust installed",
|
||||
"artifact_path": "/home/nick/plotdirector-phase1-20261125/plotdirector-production-190c074d-20261125"
|
||||
}
|
||||
@ -0,0 +1,6 @@
|
||||
{
|
||||
"passed": true,
|
||||
"stage": "backup",
|
||||
"error": "SQL_262",
|
||||
"success_not_recorded": true
|
||||
}
|
||||
@ -0,0 +1,9 @@
|
||||
{
|
||||
"passed": true,
|
||||
"all_original_fingerprints_equal_after_http_browser_restore_tests": true,
|
||||
"original_tables": 163,
|
||||
"integrity": {
|
||||
"integrity": true,
|
||||
"constraint_violations": 0
|
||||
}
|
||||
}
|
||||
24
Docs/Deployment/Evidence/Phase1-20261125/qualification.json
Normal file
@ -0,0 +1,24 @@
|
||||
{
|
||||
"source_commit": "190c074d5202fdf8a94b3b7a70c94857f848aafd",
|
||||
"version": "1.0.0",
|
||||
"application_dll_sha256": "70c516e0a112c4e61813e563405c979ad35069539ddc440bddbd6dac0a4379d1",
|
||||
"status": "passed",
|
||||
"starting_schema_sha256": "1eaa17d39bfdc2542743d6e911659141466f0bdf4efbeb62fb76b958ddd03c21",
|
||||
"resulting_schema_sha256": "b17db2bbdc583cb7bd3c856fb4db5cf6fc470e87fbaee5dc1dbbe99b6878beb7",
|
||||
"checks": {
|
||||
"application": 817,
|
||||
"native_companion": 332,
|
||||
"deployment_tooling": 33,
|
||||
"fresh_database_upgrades": 2,
|
||||
"original_tables": 163,
|
||||
"original_rows": 139554,
|
||||
"http_reads": 80,
|
||||
"recovered_assets": 30
|
||||
},
|
||||
"limitations": [
|
||||
"No web1 deployment or service/TLS acceptance performed",
|
||||
"Physical Windows Word/COM and real historical cookies not qualified",
|
||||
"External integrations disabled; no live email/payment/AI acceptance"
|
||||
],
|
||||
"signing_authority": "Phase1 Atlas candidate authority; not installed or authorised on Production"
|
||||
}
|
||||
@ -0,0 +1,30 @@
|
||||
{
|
||||
"status": "passed",
|
||||
"rows": [
|
||||
{
|
||||
"DeploymentIdentifier": "qualification-190c074d-deploy",
|
||||
"ActivationKind": "Deploy",
|
||||
"SourceCommit": "190c074d5202fdf8a94b3b7a70c94857f848aafd",
|
||||
"PackageSha256": "0ec47c0c0e5ba17c0df34ce27105e183820947fd91bc466d276d305bf4cd10b9"
|
||||
},
|
||||
{
|
||||
"DeploymentIdentifier": "qualification-190c074d-code-only",
|
||||
"ActivationKind": "Deploy",
|
||||
"PreviousDeploymentIdentifier": "qualification-190c074d-deploy",
|
||||
"SourceCommit": "190c074d5202fdf8a94b3b7a70c94857f848aafd",
|
||||
"PackageSha256": "0ec47c0c0e5ba17c0df34ce27105e183820947fd91bc466d276d305bf4cd10b9"
|
||||
},
|
||||
{
|
||||
"DeploymentIdentifier": "qualification-190c074d-rollback",
|
||||
"ActivationKind": "Rollback",
|
||||
"PreviousDeploymentIdentifier": "qualification-190c074d-code-only",
|
||||
"SourceCommit": "190c074d5202fdf8a94b3b7a70c94857f848aafd",
|
||||
"PackageSha256": "0ec47c0c0e5ba17c0df34ce27105e183820947fd91bc466d276d305bf4cd10b9"
|
||||
}
|
||||
],
|
||||
"duplicate_identifier_rejected": true,
|
||||
"completed_manifest_reapplied": false,
|
||||
"history_before": 320,
|
||||
"history_after": 320,
|
||||
"scope": "Actual SQL success/rollback history under live isolated host health. Code-only repeated activation and rollback of identical qualified binaries; filesystem/service failure and switching are separately mocked. No web1 lifecycle acceptance claimed."
|
||||
}
|
||||
@ -0,0 +1,8 @@
|
||||
{
|
||||
"passed": true,
|
||||
"source_commit": "190c074d5202fdf8a94b3b7a70c94857f848aafd",
|
||||
"actual_runtime_role": true,
|
||||
"actual_export_encode_restore": true,
|
||||
"outer_transaction_rolled_back": true,
|
||||
"fixture": "Original recovered entitlement correctly rejected the operation (51046); temporary clone-only subscription override enabled the test and was removed in finally. No original subscription rows modified."
|
||||
}
|
||||
23
Docs/Deployment/Evidence/Phase1-20261125/sql-failures.json
Normal file
@ -0,0 +1,23 @@
|
||||
{
|
||||
"completed_manifest_replay": {
|
||||
"passed": true,
|
||||
"history_before": 320,
|
||||
"history_after": 320
|
||||
},
|
||||
"wrong_baseline": {
|
||||
"passed": true,
|
||||
"error": "baseline"
|
||||
},
|
||||
"changed_historical_checksum": {
|
||||
"passed": true,
|
||||
"error": "immutable-migration-checksum"
|
||||
},
|
||||
"missing_prerequisite": {
|
||||
"passed": true,
|
||||
"error": "InvalidOperationException"
|
||||
},
|
||||
"concurrent_sql_deployment": {
|
||||
"passed": true,
|
||||
"error": "concurrent-deployment"
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,5 @@
|
||||
{
|
||||
"started_utc": "2026-11-25T16:00:35.082553+00:00",
|
||||
"finished_utc": "2026-11-25T16:00:45.274006+00:00",
|
||||
"exit_code": 1
|
||||
}
|
||||
@ -0,0 +1,5 @@
|
||||
{
|
||||
"started_utc": "2026-11-25T16:01:43.536259+00:00",
|
||||
"finished_utc": "2026-11-25T16:02:06.014107+00:00",
|
||||
"exit_code": 0
|
||||
}
|
||||
@ -0,0 +1,5 @@
|
||||
{
|
||||
"started_utc": "2026-11-25T15:58:10.956009+00:00",
|
||||
"finished_utc": "2026-11-25T15:58:57.126096+00:00",
|
||||
"exit_code": 1
|
||||
}
|
||||
@ -0,0 +1,15 @@
|
||||
{
|
||||
"configured_admin_accounts": [
|
||||
{
|
||||
"EmailConfirmed": true,
|
||||
"IsLocked": false,
|
||||
"entitlement_active": true,
|
||||
"MaxBooks": 10,
|
||||
"subscription_row_active": true,
|
||||
"IsTrial": false,
|
||||
"StartDateUTC": "2026-06-08T15:42:14.3894585",
|
||||
"StripeStatus": "active",
|
||||
"CurrentPeriodEndUTC": "2026-12-08T18:18:47"
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -0,0 +1,7 @@
|
||||
{
|
||||
"status": "passed",
|
||||
"live_resulting_schema_sha256": "b17db2bbdc583cb7bd3c856fb4db5cf6fc470e87fbaee5dc1dbbe99b6878beb7",
|
||||
"original_tables": 163,
|
||||
"original_rows": 139554,
|
||||
"all_original_fingerprints_match": true
|
||||
}
|
||||
@ -0,0 +1,5 @@
|
||||
{
|
||||
"new_atlas_admin_ssh_rejected": true,
|
||||
"permanent_deployment_validation_after_admin_key_removal": "passed",
|
||||
"held_local_admin_ssh_sessions_closed": 1
|
||||
}
|
||||
12
Docs/Deployment/Evidence/Phase2-20261125/go-live.json
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
"public_enabled_utc": "2026-11-25T16:03:21.935526+00:00",
|
||||
"local_health": {
|
||||
"healthy": true,
|
||||
"version": "1.0.0",
|
||||
"sourceCommit": "190c074d5202fdf8a94b3b7a70c94857f848aafd",
|
||||
"database": "PlotLine",
|
||||
"environment": "Production"
|
||||
},
|
||||
"service_enabled": true,
|
||||
"maintenance_removed": true
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
{
|
||||
"defect": "umask 077 masked intended directory 0750 to 0700",
|
||||
"fix": "explicit chmod 0750 after release directory creation; regular files remain 0440",
|
||||
"failed_attempt": "20261125T155815Z-7427734eba47",
|
||||
"quarantine": "/srv/plotdirector/failed-attempts/20261125T155815Z-7427734eba47",
|
||||
"prior_helper_backup": "/srv/backups/configuration/plotdirector-helper-before-umask-fix-20261125T155815Z-7427734eba47.py",
|
||||
"installed_helper_sha256": "d49da1241f0350c0b5c93412740d99aadcafbead37c5fde85d0397a43977997e",
|
||||
"migration_records_retained": 320,
|
||||
"successful_activation_records_before_retry": 0,
|
||||
"qualified_application_or_sql_changed": false
|
||||
}
|
||||
@ -0,0 +1,32 @@
|
||||
{
|
||||
"email_queue": [
|
||||
{
|
||||
"Status": "Sent",
|
||||
"count": 16
|
||||
}
|
||||
],
|
||||
"account_counts": [
|
||||
{
|
||||
"total_accounts": 11,
|
||||
"email_confirmed": 10,
|
||||
"locked_accounts": 0
|
||||
}
|
||||
],
|
||||
"entitlements": [
|
||||
{
|
||||
"IsActive": false,
|
||||
"MaxBooks": 2,
|
||||
"owners": 7
|
||||
},
|
||||
{
|
||||
"IsActive": true,
|
||||
"MaxBooks": 2,
|
||||
"owners": 1
|
||||
},
|
||||
{
|
||||
"IsActive": true,
|
||||
"MaxBooks": 10,
|
||||
"owners": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -0,0 +1,7 @@
|
||||
{
|
||||
"status": "passed",
|
||||
"live_starting_schema_sha256": "1eaa17d39bfdc2542743d6e911659141466f0bdf4efbeb62fb76b958ddd03c21",
|
||||
"original_tables": 163,
|
||||
"original_rows": 139554,
|
||||
"all_original_fingerprints_match": true
|
||||
}
|
||||
@ -0,0 +1,174 @@
|
||||
{
|
||||
"completed_utc": "2026-11-25T16:04:33.356842+00:00",
|
||||
"catherine_original_configuration_and_certificate_unchanged": true,
|
||||
"catherine_pid": 13134,
|
||||
"sql_backup_timer": "active",
|
||||
"certbot_timer": "active",
|
||||
"original_data_protection_keys_verified": 2,
|
||||
"current_key_file_count": 2,
|
||||
"migration_timing": {
|
||||
"executed": 110,
|
||||
"summed_execution_milliseconds": 5909
|
||||
},
|
||||
"manifest_sha256": "58bac17161e1ea280617c15fba61ef26ac976417217fbb77accbb5ab4ababe13",
|
||||
"production_trust_key_der_sha256": "72e7fd8e5530201397cbf41a736a8973053d4f22726cf03cdec5338bf9773e68",
|
||||
"normal_worker_settings_recorded_not_enabled": {
|
||||
"StoryIntelligence__WorkersEnabled": "true",
|
||||
"Illustrations__GenerationWorkerEnabled": "true",
|
||||
"WritingSolver__EnableIndexing": "true (qualified application default)",
|
||||
"Geography__Enabled": "application default",
|
||||
"EmailQueue": "Always registered; initial acceptance denies queue claims/reset; owner must authorise removal.",
|
||||
"WritingActivityRetention": "Always registered; initial acceptance denies baseline discovery and pruning; owner must authorise removal."
|
||||
},
|
||||
"temporary_admin_key_removed": true,
|
||||
"other_admin_key_count_preserved": 2,
|
||||
"admin_authorized_keys_recovery_copy": "/srv/backups/configuration/administrator-authorized-keys-before-plotdirector-removal-20261125T160433Z",
|
||||
"sa_temporary_secret_removed": true,
|
||||
"all_attempt_events": {
|
||||
"20261125T160148Z-c2e69a3902f2.jsonl": [
|
||||
{
|
||||
"deployment": "20261125T160148Z-c2e69a3902f2",
|
||||
"package_sha256": "0ec47c0c0e5ba17c0df34ce27105e183820947fd91bc466d276d305bf4cd10b9",
|
||||
"phase": "validated",
|
||||
"release": "plotdirector-production-190c074d-20261125",
|
||||
"utc": "2026-11-25T16:01:48Z"
|
||||
},
|
||||
{
|
||||
"deployment": "20261125T160148Z-c2e69a3902f2",
|
||||
"phase": "backup-start",
|
||||
"release": "plotdirector-production-190c074d-20261125",
|
||||
"utc": "2026-11-25T16:01:50Z"
|
||||
},
|
||||
{
|
||||
"deployment": "20261125T160148Z-c2e69a3902f2",
|
||||
"path": "/srv/backups/sql/PlotLine-predeploy-20261125T160148Z-c2e69a3902f2.bak",
|
||||
"phase": "backup-verified",
|
||||
"release": "plotdirector-production-190c074d-20261125",
|
||||
"utc": "2026-11-25T16:01:53Z"
|
||||
},
|
||||
{
|
||||
"deployment": "20261125T160148Z-c2e69a3902f2",
|
||||
"phase": "migration-start",
|
||||
"release": "plotdirector-production-190c074d-20261125",
|
||||
"utc": "2026-11-25T16:01:53Z"
|
||||
},
|
||||
{
|
||||
"deployment": "20261125T160148Z-c2e69a3902f2",
|
||||
"phase": "migration-complete",
|
||||
"release": "plotdirector-production-190c074d-20261125",
|
||||
"utc": "2026-11-25T16:01:55Z"
|
||||
},
|
||||
{
|
||||
"deployment": "20261125T160148Z-c2e69a3902f2",
|
||||
"phase": "activation-start",
|
||||
"previous_deployment": null,
|
||||
"release": "plotdirector-production-190c074d-20261125",
|
||||
"utc": "2026-11-25T16:02:00Z"
|
||||
},
|
||||
{
|
||||
"deployment": "20261125T160148Z-c2e69a3902f2",
|
||||
"phase": "health-passed",
|
||||
"release": "plotdirector-production-190c074d-20261125",
|
||||
"utc": "2026-11-25T16:02:05Z"
|
||||
},
|
||||
{
|
||||
"deployment": "20261125T160148Z-c2e69a3902f2",
|
||||
"phase": "successful",
|
||||
"release": "plotdirector-production-190c074d-20261125",
|
||||
"utc": "2026-11-25T16:02:05Z"
|
||||
}
|
||||
],
|
||||
"20261125T160039Z-4fd5821c9ee2.jsonl": [
|
||||
{
|
||||
"deployment": "20261125T160039Z-4fd5821c9ee2",
|
||||
"package_sha256": "0ec47c0c0e5ba17c0df34ce27105e183820947fd91bc466d276d305bf4cd10b9",
|
||||
"phase": "validated",
|
||||
"release": "plotdirector-production-190c074d-20261125",
|
||||
"utc": "2026-11-25T16:00:39Z"
|
||||
},
|
||||
{
|
||||
"deployment": "20261125T160039Z-4fd5821c9ee2",
|
||||
"phase": "backup-start",
|
||||
"release": "plotdirector-production-190c074d-20261125",
|
||||
"utc": "2026-11-25T16:00:41Z"
|
||||
},
|
||||
{
|
||||
"deployment": "20261125T160039Z-4fd5821c9ee2",
|
||||
"path": "/srv/backups/sql/PlotLine-predeploy-20261125T160039Z-4fd5821c9ee2.bak",
|
||||
"phase": "backup-verified",
|
||||
"release": "plotdirector-production-190c074d-20261125",
|
||||
"utc": "2026-11-25T16:00:44Z"
|
||||
},
|
||||
{
|
||||
"error": "Service did not stop",
|
||||
"phase": "failed",
|
||||
"recovery": "Operator review required; no automatic database rollback.",
|
||||
"service_stop_requested": true
|
||||
}
|
||||
],
|
||||
"20261125T155815Z-7427734eba47.jsonl": [
|
||||
{
|
||||
"deployment": "20261125T155815Z-7427734eba47",
|
||||
"package_sha256": "0ec47c0c0e5ba17c0df34ce27105e183820947fd91bc466d276d305bf4cd10b9",
|
||||
"phase": "validated",
|
||||
"release": "plotdirector-production-190c074d-20261125",
|
||||
"utc": "2026-11-25T15:58:15Z"
|
||||
},
|
||||
{
|
||||
"deployment": "20261125T155815Z-7427734eba47",
|
||||
"phase": "backup-start",
|
||||
"release": "plotdirector-production-190c074d-20261125",
|
||||
"utc": "2026-11-25T15:58:16Z"
|
||||
},
|
||||
{
|
||||
"deployment": "20261125T155815Z-7427734eba47",
|
||||
"path": "/srv/backups/sql/PlotLine-predeploy-20261125T155815Z-7427734eba47.bak",
|
||||
"phase": "backup-verified",
|
||||
"release": "plotdirector-production-190c074d-20261125",
|
||||
"utc": "2026-11-25T15:58:20Z"
|
||||
},
|
||||
{
|
||||
"deployment": "20261125T155815Z-7427734eba47",
|
||||
"phase": "migration-start",
|
||||
"release": "plotdirector-production-190c074d-20261125",
|
||||
"utc": "2026-11-25T15:58:20Z"
|
||||
},
|
||||
{
|
||||
"deployment": "20261125T155815Z-7427734eba47",
|
||||
"phase": "migration-complete",
|
||||
"release": "plotdirector-production-190c074d-20261125",
|
||||
"utc": "2026-11-25T15:58:34Z"
|
||||
},
|
||||
{
|
||||
"deployment": "20261125T155815Z-7427734eba47",
|
||||
"phase": "activation-start",
|
||||
"previous_deployment": null,
|
||||
"release": "plotdirector-production-190c074d-20261125",
|
||||
"utc": "2026-11-25T15:58:35Z"
|
||||
},
|
||||
{
|
||||
"error": "Application HTTP health check failed",
|
||||
"phase": "failed",
|
||||
"recovery": "Operator review required; no automatic database rollback.",
|
||||
"service_stop_requested": true
|
||||
}
|
||||
],
|
||||
"20261125T155759Z-ee159c8453ee.jsonl": [
|
||||
{
|
||||
"deployment": "20261125T155759Z-ee159c8453ee",
|
||||
"package_sha256": "0ec47c0c0e5ba17c0df34ce27105e183820947fd91bc466d276d305bf4cd10b9",
|
||||
"phase": "validated",
|
||||
"release": "plotdirector-production-190c074d-20261125",
|
||||
"utc": "2026-11-25T15:57:59Z"
|
||||
},
|
||||
{
|
||||
"deployment": "20261125T155759Z-ee159c8453ee",
|
||||
"phase": "validation-only",
|
||||
"release": "plotdirector-production-190c074d-20261125",
|
||||
"utc": "2026-11-25T15:58:01Z"
|
||||
}
|
||||
]
|
||||
},
|
||||
"runtime_release_directories_mode": "0750",
|
||||
"runtime_release_files_owner": "root"
|
||||
}
|
||||
@ -0,0 +1,65 @@
|
||||
{
|
||||
"uploads": 30,
|
||||
"recovered_keys": 2,
|
||||
"effective_configuration_names": [
|
||||
"Admin__AllowedEmails__0",
|
||||
"AllowedHosts",
|
||||
"ConnectionStrings__DefaultConnection",
|
||||
"DataProtection__ApplicationName",
|
||||
"DataProtection__KeysPath",
|
||||
"EmailSettings__EnableSsl",
|
||||
"EmailSettings__FromAddress",
|
||||
"EmailSettings__FromName",
|
||||
"EmailSettings__Password",
|
||||
"EmailSettings__Port",
|
||||
"EmailSettings__SmtpServer",
|
||||
"EmailSettings__Username",
|
||||
"Features__ParagraphManuscripts",
|
||||
"Geography__Enabled",
|
||||
"Illustrations__GenerationWorkerEnabled",
|
||||
"Logging__LogLevel__Default",
|
||||
"Logging__LogLevel__Microsoft.AspNetCore",
|
||||
"Logging__LogLevel__PlotLine.Services.EmailQueueWorker",
|
||||
"Logging__LogLevel__PlotLine.Services.WritingActivity.WritingActivityRetention",
|
||||
"OpenAI__ApiKey",
|
||||
"OpenAI__MaxOutputTokens",
|
||||
"OpenAI__Model",
|
||||
"OpenAI__TimeoutSeconds",
|
||||
"Site__PublicBaseUrl",
|
||||
"Storage__UploadsRoot",
|
||||
"StoryIntelligence__AutomaticImageGenerationDuringImportEnabled",
|
||||
"StoryIntelligence__ChapterStructureModel",
|
||||
"StoryIntelligence__ClaimLeaseMinutes",
|
||||
"StoryIntelligence__ImageGenerationModel",
|
||||
"StoryIntelligence__ImageGenerationOutputFormat",
|
||||
"StoryIntelligence__ImageGenerationQuality",
|
||||
"StoryIntelligence__ImageGenerationSize",
|
||||
"StoryIntelligence__MaxAssetImagesPerImport",
|
||||
"StoryIntelligence__MaxCharacterImagesPerImport",
|
||||
"StoryIntelligence__MaxConcurrentAiRequestsPerBook",
|
||||
"StoryIntelligence__MaxConcurrentAiRequestsPerUser",
|
||||
"StoryIntelligence__MaxGlobalConcurrentAiRequests",
|
||||
"StoryIntelligence__MaxImagesPerImport",
|
||||
"StoryIntelligence__MaxLocationImagesPerImport",
|
||||
"StoryIntelligence__QueuePollingIntervalSeconds",
|
||||
"StoryIntelligence__RequireImageGenerationApproval",
|
||||
"StoryIntelligence__SceneIntelligenceMaxOutputTokens",
|
||||
"StoryIntelligence__SceneIntelligenceModel",
|
||||
"StoryIntelligence__WholeBookPlotSynthesisMaxOutputTokens",
|
||||
"StoryIntelligence__WholeBookPlotSynthesisModel",
|
||||
"StoryIntelligence__WorkersEnabled",
|
||||
"Stripe__PublishableKey",
|
||||
"Stripe__SecretKey",
|
||||
"Stripe__WebhookSecret",
|
||||
"WritingSolver__EnableIndexing"
|
||||
],
|
||||
"normal_worker_settings": {
|
||||
"StoryIntelligence__WorkersEnabled": "true",
|
||||
"Illustrations__GenerationWorkerEnabled": "true",
|
||||
"WritingSolver__EnableIndexing": "application default",
|
||||
"Geography__Enabled": "application default",
|
||||
"EmailQueue": "Always registered; initial acceptance denies queue claims/reset; owner must authorise removal.",
|
||||
"WritingActivityRetention": "Always registered; initial acceptance denies baseline discovery and pruning; owner must authorise removal."
|
||||
},
|
||||
"background_external_egress": "systemd deny-any allow-localhost"
|
||||
}
|
||||
61
Docs/Deployment/Evidence/Phase2-20261125/preflight.json
Normal file
@ -0,0 +1,61 @@
|
||||
{
|
||||
"status": "blocked-before-provisioning",
|
||||
"checked_utc": "2026-11-25T15:38:24Z",
|
||||
"production_changes_performed": false,
|
||||
"application_rebuilt_or_repackaged": false,
|
||||
"qualified_source_commit": "190c074d5202fdf8a94b3b7a70c94857f848aafd",
|
||||
"qualified_dll_sha256": "70c516e0a112c4e61813e563405c979ad35069539ddc440bddbd6dac0a4379d1",
|
||||
"package_sha256": "0ec47c0c0e5ba17c0df34ce27105e183820947fd91bc466d276d305bf4cd10b9",
|
||||
"signature_verified": true,
|
||||
"public_key_matches_retained_private_authority_and_phase1_fingerprint": true,
|
||||
"original_backup_sha256_verified": "6cf9e6d4d340a222a48c43265582e45a0150b132ae6eeb2bb6cd112f97cb743c",
|
||||
"dns": {
|
||||
"apex_A": [
|
||||
"85.190.124.132"
|
||||
],
|
||||
"www_CNAME": "plotdirector.com",
|
||||
"www_effective_A": [
|
||||
"85.190.124.132"
|
||||
],
|
||||
"apex_AAAA": [],
|
||||
"www_effective_AAAA": []
|
||||
},
|
||||
"catherine": {
|
||||
"service": "active",
|
||||
"pid": 13134,
|
||||
"public_https_status_after_redirect": 200,
|
||||
"tls_verification": "passed"
|
||||
},
|
||||
"web1": {
|
||||
"hostname": "web1",
|
||||
"sql_version": "17.0.5065.9",
|
||||
"sql_service": "active",
|
||||
"backup_timer": "active",
|
||||
"last_backup_service_result": "success",
|
||||
"last_backup_service_exit": 0,
|
||||
"dotnet_runtime": "10.0.15",
|
||||
"aspnet_runtime": "10.0.15",
|
||||
"root_available_gib_approx": 554,
|
||||
"available_memory_mib": 22120,
|
||||
"loopback_5001_free": true,
|
||||
"loopback_5003_free": true
|
||||
},
|
||||
"available_sql_principal": {
|
||||
"name": "SqlBackupService",
|
||||
"database": "PlotLine",
|
||||
"sysadmin": false,
|
||||
"securityadmin": false,
|
||||
"control_server": false,
|
||||
"alter_any_login": false,
|
||||
"control_database": false,
|
||||
"select_database": false,
|
||||
"view_definition": false,
|
||||
"alter_any_user": false,
|
||||
"db_backupoperator": true
|
||||
},
|
||||
"live_database_baseline_verified": false,
|
||||
"blocker": "No available documented SQL administrative authentication for security provisioning and live schema/business-data verification. Linux administrator sudo does not supply SQL authentication. No credentials reset or backup-account elevation attempted.",
|
||||
"public_plotdirector_https": "Failed normal TLS validation: certificate hostname mismatch; no valid PlotDirector certificate issued or application activated.",
|
||||
"activation_started": false,
|
||||
"provisioning_started": false
|
||||
}
|
||||
@ -0,0 +1,109 @@
|
||||
{
|
||||
"status": "passed",
|
||||
"active": {
|
||||
"deployment": "20261125T160148Z-c2e69a3902f2",
|
||||
"package_sha256": "0ec47c0c0e5ba17c0df34ce27105e183820947fd91bc466d276d305bf4cd10b9",
|
||||
"release": "plotdirector-production-190c074d-20261125"
|
||||
},
|
||||
"migration_history": [
|
||||
{
|
||||
"RecordingKind": "Baselined",
|
||||
"count": 210
|
||||
},
|
||||
{
|
||||
"RecordingKind": "Executed",
|
||||
"count": 110
|
||||
}
|
||||
],
|
||||
"release_history": [
|
||||
{
|
||||
"DeploymentIdentifier": "20261125T160148Z-c2e69a3902f2",
|
||||
"ReleaseIdentifier": "plotdirector-production-190c074d-20261125",
|
||||
"ApplicationVersion": "1.0.0",
|
||||
"SourceCommit": "190c074d5202fdf8a94b3b7a70c94857f848aafd",
|
||||
"PackageSha256": "0ec47c0c0e5ba17c0df34ce27105e183820947fd91bc466d276d305bf4cd10b9",
|
||||
"ActivatedUtc": "2026-11-25T16:02:05.3916289",
|
||||
"ActivationKind": "Deploy",
|
||||
"EvidenceReference": "/srv/plotdirector/deployment-evidence/20261125T160148Z-c2e69a3902f2.jsonl"
|
||||
}
|
||||
],
|
||||
"dbcc_integrity": "passed",
|
||||
"referential_integrity": "passed",
|
||||
"migration_permissions": {
|
||||
"sysadmin": 0,
|
||||
"dbcreator": 0,
|
||||
"target_db_owner": 1,
|
||||
"catherine_access": 0
|
||||
},
|
||||
"runtime_permissions": {
|
||||
"sysadmin": 0,
|
||||
"db_owner": 0,
|
||||
"database_alter": 0,
|
||||
"database_backup": 0,
|
||||
"migration_history_insert": 0,
|
||||
"release_history_insert": 0,
|
||||
"catherine_access": 0,
|
||||
"email_claim": 0,
|
||||
"retention_baseline": 0
|
||||
},
|
||||
"native_skia_milestone": 119,
|
||||
"native_bitmap_constructor_destructor": "passed",
|
||||
"fontconfig_init": "passed",
|
||||
"egress_bpf_programs": 1,
|
||||
"predeployment_backup": "/srv/backups/sql/PlotLine-predeploy-20261125T160148Z-c2e69a3902f2.bak",
|
||||
"backup_verified": true,
|
||||
"events": [
|
||||
{
|
||||
"deployment": "20261125T160148Z-c2e69a3902f2",
|
||||
"package_sha256": "0ec47c0c0e5ba17c0df34ce27105e183820947fd91bc466d276d305bf4cd10b9",
|
||||
"phase": "validated",
|
||||
"release": "plotdirector-production-190c074d-20261125",
|
||||
"utc": "2026-11-25T16:01:48Z"
|
||||
},
|
||||
{
|
||||
"deployment": "20261125T160148Z-c2e69a3902f2",
|
||||
"phase": "backup-start",
|
||||
"release": "plotdirector-production-190c074d-20261125",
|
||||
"utc": "2026-11-25T16:01:50Z"
|
||||
},
|
||||
{
|
||||
"deployment": "20261125T160148Z-c2e69a3902f2",
|
||||
"path": "/srv/backups/sql/PlotLine-predeploy-20261125T160148Z-c2e69a3902f2.bak",
|
||||
"phase": "backup-verified",
|
||||
"release": "plotdirector-production-190c074d-20261125",
|
||||
"utc": "2026-11-25T16:01:53Z"
|
||||
},
|
||||
{
|
||||
"deployment": "20261125T160148Z-c2e69a3902f2",
|
||||
"phase": "migration-start",
|
||||
"release": "plotdirector-production-190c074d-20261125",
|
||||
"utc": "2026-11-25T16:01:53Z"
|
||||
},
|
||||
{
|
||||
"deployment": "20261125T160148Z-c2e69a3902f2",
|
||||
"phase": "migration-complete",
|
||||
"release": "plotdirector-production-190c074d-20261125",
|
||||
"utc": "2026-11-25T16:01:55Z"
|
||||
},
|
||||
{
|
||||
"deployment": "20261125T160148Z-c2e69a3902f2",
|
||||
"phase": "activation-start",
|
||||
"previous_deployment": null,
|
||||
"release": "plotdirector-production-190c074d-20261125",
|
||||
"utc": "2026-11-25T16:02:00Z"
|
||||
},
|
||||
{
|
||||
"deployment": "20261125T160148Z-c2e69a3902f2",
|
||||
"phase": "health-passed",
|
||||
"release": "plotdirector-production-190c074d-20261125",
|
||||
"utc": "2026-11-25T16:02:05Z"
|
||||
},
|
||||
{
|
||||
"deployment": "20261125T160148Z-c2e69a3902f2",
|
||||
"phase": "successful",
|
||||
"release": "plotdirector-production-190c074d-20261125",
|
||||
"utc": "2026-11-25T16:02:05Z"
|
||||
}
|
||||
],
|
||||
"pid": 23355
|
||||
}
|
||||
@ -0,0 +1,71 @@
|
||||
{
|
||||
"status": "passed",
|
||||
"requests": {
|
||||
"/": 200,
|
||||
"/Account/Login": 200,
|
||||
"/word-companion": 200,
|
||||
"/css/word-companion.css": 200,
|
||||
"/js/word-companion-host.js": 200,
|
||||
"/Writer": {
|
||||
"status": 302,
|
||||
"unauthenticated_access_refused": true
|
||||
},
|
||||
"/Writing/Context": {
|
||||
"status": 302,
|
||||
"unauthenticated_access_refused": true
|
||||
},
|
||||
"/api/word-companion/projects": {
|
||||
"status": 401,
|
||||
"unauthenticated_access_refused": true
|
||||
},
|
||||
"/api/native-companion/connection": {
|
||||
"status": 401,
|
||||
"unauthenticated_access_refused": true
|
||||
},
|
||||
"/_deployment/health": 404,
|
||||
"/_DEPLOYMENT/health": 404,
|
||||
"/%5Fdeployment/health": 404,
|
||||
"/hubs/word-companion-follow/negotiate?negotiateVersion=1": {
|
||||
"status": 401,
|
||||
"authentication_enforced": true
|
||||
},
|
||||
"/hubs/native-companion/negotiate?negotiateVersion=1": {
|
||||
"status": 401,
|
||||
"authentication_enforced": true
|
||||
},
|
||||
"/hubs/native-companion-agent/negotiate?negotiateVersion=1": {
|
||||
"status": 401,
|
||||
"authentication_enforced": true
|
||||
},
|
||||
"websocket_unauthenticated_upgrade": {
|
||||
"status": 401,
|
||||
"authenticated_connection_not_claimed": true
|
||||
}
|
||||
},
|
||||
"recovered_upload_files_hash_verified_over_public_https": 30,
|
||||
"certificates": {
|
||||
"plotdirector.com": {
|
||||
"not_after": "Feb 23 14:51:34 2027 GMT",
|
||||
"subject_alt_names": [
|
||||
"plotdirector.com",
|
||||
"www.plotdirector.com"
|
||||
],
|
||||
"chain_and_hostname_verified": true,
|
||||
"sha256": "e310795fc451f5662c9aa0551039f5cf03b4f874172f1591f236080281c77238"
|
||||
},
|
||||
"www.plotdirector.com": {
|
||||
"not_after": "Feb 23 14:51:34 2027 GMT",
|
||||
"subject_alt_names": [
|
||||
"plotdirector.com",
|
||||
"www.plotdirector.com"
|
||||
],
|
||||
"chain_and_hostname_verified": true,
|
||||
"sha256": "e310795fc451f5662c9aa0551039f5cf03b4f874172f1591f236080281c77238"
|
||||
}
|
||||
},
|
||||
"www_redirect": "https://plotdirector.com/",
|
||||
"catherine_https_status": 200,
|
||||
"authenticated_owner_acceptance": "pending; credentials unavailable",
|
||||
"physical_word_companion_acceptance": "pending",
|
||||
"authenticated_websocket_101_acceptance": "pending"
|
||||
}
|
||||
@ -0,0 +1,21 @@
|
||||
{
|
||||
"id": "Authenticated SSH; forced dispatcher rejected operation",
|
||||
"sudo -n /usr/bin/id": "Authenticated SSH; forced dispatcher rejected operation",
|
||||
"/usr/lib/openssh/sftp-server": "Authenticated SSH; forced dispatcher rejected operation",
|
||||
"file_permissions": {
|
||||
"plotdirector-deploy:read:/etc/plotdirector-deployment/database.json": "denied",
|
||||
"plotdirector-deploy:read:/etc/catherinelynwood/catherinelynwood.env": "denied",
|
||||
"plotdirector-deploy:write:/usr/local/sbin/deploy-plotdirector": "denied",
|
||||
"plotdirector-deploy:write:/usr/local/lib/plotdirector-deployment": "denied",
|
||||
"plotdirector-deploy:write:/etc/plotdirector-deployment": "denied",
|
||||
"plotdirector-deploy:write:/srv/plotdirector/releases": "denied",
|
||||
"plotdirector-deploy:write:/srv/catherinelynwood": "denied",
|
||||
"plotdirector:read:/etc/plotdirector-deployment/database.json": "denied",
|
||||
"plotdirector:read:/etc/catherinelynwood/catherinelynwood.env": "denied",
|
||||
"plotdirector:write:/usr/local/sbin/deploy-plotdirector": "denied",
|
||||
"plotdirector:write:/usr/local/lib/plotdirector-deployment": "denied",
|
||||
"plotdirector:write:/etc/plotdirector-deployment": "denied",
|
||||
"plotdirector:write:/srv/plotdirector/releases": "denied",
|
||||
"plotdirector:write:/srv/catherinelynwood": "denied"
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,36 @@
|
||||
{
|
||||
"status": "passed",
|
||||
"runtime_roles": [
|
||||
{
|
||||
"name": "PlotLineApp",
|
||||
"role_name": "PlotDirectorRuntime"
|
||||
},
|
||||
{
|
||||
"name": "PlotDirectorMigration",
|
||||
"role_name": "db_owner"
|
||||
}
|
||||
],
|
||||
"server_permissions": [
|
||||
{
|
||||
"name": "PlotLineApp",
|
||||
"permission_name": "CONNECT SQL",
|
||||
"state_desc": "GRANT"
|
||||
},
|
||||
{
|
||||
"name": "PlotDirectorMigration",
|
||||
"permission_name": "CONNECT SQL",
|
||||
"state_desc": "GRANT"
|
||||
},
|
||||
{
|
||||
"name": "PlotDirectorMigration",
|
||||
"permission_name": "CREATE ANY DATABASE",
|
||||
"state_desc": "GRANT"
|
||||
}
|
||||
],
|
||||
"catherine_user_mappings": 0,
|
||||
"cross_database_chaining": false,
|
||||
"runtime_owns_database_or_schema": false,
|
||||
"sql_admin_temporary_secret_removed": true,
|
||||
"sa_password_changed": false,
|
||||
"sql_network_changed": false
|
||||
}
|
||||
@ -0,0 +1,30 @@
|
||||
{
|
||||
"production": {
|
||||
"status": 200,
|
||||
"tls_verified": true,
|
||||
"final_url": "https://plotdirector.com/"
|
||||
},
|
||||
"login": {
|
||||
"status": 200,
|
||||
"tls_verified": true,
|
||||
"final_url": "https://plotdirector.com/Account/Login"
|
||||
},
|
||||
"www": {
|
||||
"status": 200,
|
||||
"tls_verified": true,
|
||||
"final_url": "https://plotdirector.com/"
|
||||
},
|
||||
"catherine": {
|
||||
"status": 200,
|
||||
"tls_verified": true,
|
||||
"final_url": "https://www.catherinelynwood.com/"
|
||||
},
|
||||
"production_otp_css_sha256": "b83c4887a10d612d8cb753e11301ad4a74a301d2e33f1547923be7cb39d43a44",
|
||||
"production_otp_css_exact_9b1770d9": true,
|
||||
"internal_health_public_status": 404,
|
||||
"genuine_otp_visual_acceptance": "Owner pending; unauthenticated TwoFactor redirects to Login. No bypass introduced.",
|
||||
"background_configuration": "No configuration writes or changes requested; fixed helper writes only versioned release/current/evidence and reconciles the existing runtime policy. Existing service/worker/egress configuration reused unchanged; not independently readable by transfer account.",
|
||||
"migration_history_verification": "Postactivation restricted validation passed for the same 320-entry immutable Production manifest and unchanged b17db2bb schema; existing scripts are skipped by checksum history.",
|
||||
"release_history_verification": "Successful ACTIVATE acknowledgement is emitted only after the trusted helper inserts successful activation history following identity/HTTP/database health. Independent SQL/history reads and internal audit timings are not exposed to this account.",
|
||||
"checked_utc": "2026-11-25T20:04:58.950580+00:00"
|
||||
}
|
||||
@ -0,0 +1,12 @@
|
||||
{
|
||||
"deployment_id": "20261125T200432Z-3c965a19faba",
|
||||
"evidence_path": "/srv/plotdirector/deployment-evidence/20261125T200432Z-3c965a19faba.jsonl",
|
||||
"predeployment_backup": "/srv/backups/sql/PlotLine-predeploy-20261125T200432Z-3c965a19faba.bak",
|
||||
"source_commit": "9b1770d96d17b7b2cc4f42efb936d822d20fe31e",
|
||||
"release_id": "plotdirector-production-9b1770d9-20261125-r1",
|
||||
"application_version": "1.0.0",
|
||||
"qualified_dll_sha256": "ed76eb4cd0c7b071c9f576b7857548ebb9b6b86b0752bc950e6689f45798f156",
|
||||
"checks": "Trusted helper success verifies installed symlink, DLL, running source/version/database/environment, database postconditions and successful release-history insertion after health. Root-protected details are not independently exposed through the restricted interface.",
|
||||
"observed_public_downtime_seconds": 5.435,
|
||||
"downtime_note": "Public GET sampling every 0.5s plus request latency; exact systemd downtime is not exposed."
|
||||
}
|
||||
@ -0,0 +1,55 @@
|
||||
{
|
||||
"source": "9b1770d96d17b7b2cc4f42efb936d822d20fe31e",
|
||||
"application_changes": [
|
||||
"PlotLine/Views/Account/TwoFactor.cshtml",
|
||||
"PlotLine/wwwroot/css/public-site.css"
|
||||
],
|
||||
"sql_changes": [],
|
||||
"other_changes": "Deployment tooling corrections already installed, tests, documentation and visual evidence",
|
||||
"all_changed_paths": [
|
||||
"Docs/Deployment/Evidence/Routine-20261125-eadda6f6/acceptance.json",
|
||||
"Docs/Deployment/Evidence/Routine-20261125-eadda6f6/activation-result.json",
|
||||
"Docs/Deployment/Evidence/Routine-20261125-eadda6f6/authorization.json",
|
||||
"Docs/Deployment/Evidence/Routine-20261125-eadda6f6/public-before.json",
|
||||
"Docs/Deployment/Evidence/Routine-20261125-eadda6f6/scope.json",
|
||||
"Docs/Deployment/Evidence/Routine-20261125-eadda6f6/timing.json",
|
||||
"Docs/Deployment/Evidence/Transport-20261125/compression-benchmark.json",
|
||||
"Docs/Deployment/Evidence/Transport-20261125/package-inventory.json",
|
||||
"Docs/Deployment/Evidence/Transport-20261125/production-unchanged.json",
|
||||
"Docs/Deployment/Evidence/Transport-20261125/qualification.json",
|
||||
"Docs/Deployment/Evidence/Transport-20261125/retained-package-receipt.json",
|
||||
"Docs/Deployment/Evidence/Transport-20261125/reviewed-installation-hashes.json",
|
||||
"Docs/Deployment/Evidence/Transport-20261125/worker-qualification.json",
|
||||
"Docs/Deployment/Production.md",
|
||||
"Docs/Deployment/Routine-20261125-eadda6f6.md",
|
||||
"Docs/Deployment/Transport-20261125.md",
|
||||
"Docs/Investigations/TwoFactorOtpRefinement-20261125.md",
|
||||
"Docs/Investigations/TwoFactorOtpStyling-20261125.md",
|
||||
"Docs/Testing/TwoFactor-20261125/centred-1440.png",
|
||||
"Docs/Testing/TwoFactor-20261125/centred-320.png",
|
||||
"Docs/Testing/TwoFactor-20261125/centred-390.png",
|
||||
"Docs/Testing/TwoFactor-20261125/genuine-clipboard-results.json",
|
||||
"Docs/Testing/TwoFactorOtp-20261125/after-1440.png",
|
||||
"Docs/Testing/TwoFactorOtp-20261125/after-320.png",
|
||||
"Docs/Testing/TwoFactorOtp-20261125/after-390.png",
|
||||
"Docs/Testing/TwoFactorOtp-20261125/development-deployment.json",
|
||||
"PlotLine.Tests/Browser/two-factor-otp.cjs",
|
||||
"PlotLine/Views/Account/TwoFactor.cshtml",
|
||||
"PlotLine/wwwroot/css/public-site.css",
|
||||
"Tools/Deployment/DatabaseWorker/Program.cs",
|
||||
"Tools/Deployment/README.md",
|
||||
"Tools/Deployment/activate.py",
|
||||
"Tools/Deployment/deploy-plotdirector",
|
||||
"Tools/Deployment/deploy.py",
|
||||
"Tools/Deployment/receipt.py",
|
||||
"Tools/Deployment/release.py",
|
||||
"Tools/Deployment/ssh_dispatch.py",
|
||||
"Tools/Deployment/test_activation.py",
|
||||
"Tools/Deployment/test_pipeline.py",
|
||||
"Tools/Deployment/test_receipt.py",
|
||||
"Tools/Deployment/test_transport.py",
|
||||
"Tools/Deployment/test_upload.py",
|
||||
"Tools/Deployment/transfer.py",
|
||||
"Tools/Deployment/transport.py"
|
||||
]
|
||||
}
|
||||
@ -0,0 +1,22 @@
|
||||
{
|
||||
"started_epoch": 1795636744.6093988,
|
||||
"started_utc": "2026-11-25T19:59:04.609402+00:00",
|
||||
"stages": {
|
||||
"release_preparation_scope": 0.553,
|
||||
"application_build_required_tests": 6.331,
|
||||
"packaging_signing": 1.424,
|
||||
"transfer": 268.966,
|
||||
"production_validation": 8.699,
|
||||
"activation_helper_including_backup_history_health": 18.48,
|
||||
"database_history_verification_postactivation_including_package_validation": 8.276,
|
||||
"public_acceptance": 1.134,
|
||||
"predeployment_backup": null
|
||||
},
|
||||
"release_package_bytes": 554270720,
|
||||
"transfer_bytes": 554271085,
|
||||
"transfer_mib_per_second": 1.965,
|
||||
"internal_phase_measurement_limit": "Backup and exact service stop/start phase timestamps remain in root-protected JSONL; restricted interface exposes only aggregate activation completion, not audit retrieval. No extra privileges or tooling changes requested.",
|
||||
"reporting_started_epoch": 1795637098.95104,
|
||||
"elapsed_through_acceptance_seconds": 354.342,
|
||||
"elapsed_through_reporting_seconds": 377.519
|
||||
}
|
||||
@ -0,0 +1,30 @@
|
||||
{
|
||||
"production": {
|
||||
"status": 200,
|
||||
"tls_verified": true,
|
||||
"final_url": "https://plotdirector.com/"
|
||||
},
|
||||
"login": {
|
||||
"status": 200,
|
||||
"tls_verified": true,
|
||||
"final_url": "https://plotdirector.com/Account/Login"
|
||||
},
|
||||
"www": {
|
||||
"status": 200,
|
||||
"tls_verified": true,
|
||||
"final_url": "https://plotdirector.com/"
|
||||
},
|
||||
"catherine": {
|
||||
"status": 200,
|
||||
"tls_verified": true,
|
||||
"final_url": "https://www.catherinelynwood.com/"
|
||||
},
|
||||
"production_otp_css_sha256": "0f8ac31d0922fe2679db5c4e08a25f76bf074c30016fceed0acdf9b281914c16",
|
||||
"production_otp_css_exact_eadda6f6": true,
|
||||
"internal_health_public_status": 404,
|
||||
"genuine_otp_visual_acceptance": "Owner pending; unauthenticated TwoFactor redirects to Login. No bypass introduced.",
|
||||
"background_configuration": "No configuration writes or changes requested; fixed helper writes only versioned release/current/evidence and reconciles the existing runtime policy. Existing service/worker/egress configuration reused unchanged; not independently readable by transfer account.",
|
||||
"migration_history_verification": "Postactivation restricted validation passed for the same 320-entry immutable Production manifest and unchanged b17db2bb schema; existing scripts are skipped by checksum history.",
|
||||
"release_history_verification": "Successful ACTIVATE acknowledgement is emitted only after the trusted helper inserts successful activation history following identity/HTTP/database health. Independent SQL/history reads and internal audit timings are not exposed to this account.",
|
||||
"checked_utc": "2026-11-25T16:46:52.165253+00:00"
|
||||
}
|
||||
@ -0,0 +1,12 @@
|
||||
{
|
||||
"deployment_id": "20261125T164603Z-39e834a5c00d",
|
||||
"evidence_path": "/srv/plotdirector/deployment-evidence/20261125T164603Z-39e834a5c00d.jsonl",
|
||||
"predeployment_backup": "/srv/backups/sql/PlotLine-predeploy-20261125T164603Z-39e834a5c00d.bak",
|
||||
"source_commit": "eadda6f674ac456e8ae6014e2c5781088d408f8f",
|
||||
"release_id": "plotdirector-production-eadda6f6-20261125-r1",
|
||||
"application_version": "1.0.0",
|
||||
"qualified_dll_sha256": "780571eb8ba3583ae20d4f18df9f7a9aadaa6439f343de3480bd54d362ce7199",
|
||||
"checks": "Trusted helper success verifies installed symlink, DLL, running source/version/database/environment, database postconditions and successful release-history insertion after health. Root-protected details are not independently exposed through the restricted interface.",
|
||||
"observed_public_downtime_seconds": 6.627,
|
||||
"downtime_note": "Public GET sampling every 0.5s plus request latency; exact systemd downtime is not exposed."
|
||||
}
|
||||
@ -0,0 +1,7 @@
|
||||
{
|
||||
"format": 1,
|
||||
"manifest_sha256": "aeab7d79147518816adc541ef24af311f6564b248264c3057b95f1f3695649a2",
|
||||
"package_sha256": "e4990e90c3d32084e87af5bb149c5aff393b61e7e0c03f8e3c5120771686a4d7",
|
||||
"release_id": "plotdirector-production-eadda6f6-20261125-r1",
|
||||
"source_commit": "eadda6f674ac456e8ae6014e2c5781088d408f8f"
|
||||
}
|
||||
@ -0,0 +1,14 @@
|
||||
{
|
||||
"plotdirector": {
|
||||
"http_status": 200,
|
||||
"final_url": "https://plotdirector.com/",
|
||||
"tls_verified": true
|
||||
},
|
||||
"catherine": {
|
||||
"http_status": 200,
|
||||
"final_url": "https://www.catherinelynwood.com/",
|
||||
"tls_verified": true
|
||||
},
|
||||
"production_css_matches_190c074d": true,
|
||||
"checked_utc": "2026-11-25T16:40:34.828173+00:00"
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
{
|
||||
"source": "eadda6f674ac456e8ae6014e2c5781088d408f8f",
|
||||
"application_changes": [
|
||||
"PlotLine/wwwroot/css/public-site.css"
|
||||
],
|
||||
"sql_changes": [],
|
||||
"other_changes": "Deployment tooling corrections already installed, tests, documentation and visual evidence",
|
||||
"all_changed_paths": [
|
||||
"Docs/Codex/Database.md",
|
||||
"Docs/Codex/Deployment.md",
|
||||
"Docs/Deployment/Evidence/Phase1-20261125/browser.json",
|
||||
"Docs/Deployment/Evidence/Phase1-20261125/database-qualification.json",
|
||||
"Docs/Deployment/Evidence/Phase1-20261125/development-runtime-role-adoption.json",
|
||||
"Docs/Deployment/Evidence/Phase1-20261125/http.json",
|
||||
"Docs/Deployment/Evidence/Phase1-20261125/migration-permissions.json",
|
||||
"Docs/Deployment/Evidence/Phase1-20261125/package-identity.json",
|
||||
"Docs/Deployment/Evidence/Phase1-20261125/permission-failure.json",
|
||||
"Docs/Deployment/Evidence/Phase1-20261125/preservation.json",
|
||||
"Docs/Deployment/Evidence/Phase1-20261125/qualification.json",
|
||||
"Docs/Deployment/Evidence/Phase1-20261125/release-history.json",
|
||||
"Docs/Deployment/Evidence/Phase1-20261125/runtime-restore.json",
|
||||
"Docs/Deployment/Evidence/Phase1-20261125/sql-failures.json",
|
||||
"Docs/Deployment/Evidence/Phase2-20261125/activation-retry-timing.json",
|
||||
"Docs/Deployment/Evidence/Phase2-20261125/activation-successful-retry-timing.json",
|
||||
"Docs/Deployment/Evidence/Phase2-20261125/activation-timing.json",
|
||||
"Docs/Deployment/Evidence/Phase2-20261125/configured-owner-entitlement.json",
|
||||
"Docs/Deployment/Evidence/Phase2-20261125/final-preservation.json",
|
||||
"Docs/Deployment/Evidence/Phase2-20261125/final-ssh-verification.json",
|
||||
"Docs/Deployment/Evidence/Phase2-20261125/go-live.json",
|
||||
"Docs/Deployment/Evidence/Phase2-20261125/installer-permission-recovery.json",
|
||||
"Docs/Deployment/Evidence/Phase2-20261125/live-account-status.json",
|
||||
"Docs/Deployment/Evidence/Phase2-20261125/live-baseline.json",
|
||||
"Docs/Deployment/Evidence/Phase2-20261125/operations-handover.json",
|
||||
"Docs/Deployment/Evidence/Phase2-20261125/persistent-recovery.json",
|
||||
"Docs/Deployment/Evidence/Phase2-20261125/preflight.json",
|
||||
"Docs/Deployment/Evidence/Phase2-20261125/production-database-acceptance.json",
|
||||
"Docs/Deployment/Evidence/Phase2-20261125/public-acceptance.json",
|
||||
"Docs/Deployment/Evidence/Phase2-20261125/restricted-access.json",
|
||||
"Docs/Deployment/Evidence/Phase2-20261125/sql-security-provisioning.json",
|
||||
"Docs/Deployment/Phase1-20261125.md",
|
||||
"Docs/Deployment/Phase2-20261125.md",
|
||||
"Docs/Deployment/Production.md",
|
||||
"Docs/Investigations/TwoFactorOtpStyling-20261125.md",
|
||||
"Docs/Testing/TwoFactorOtp-20261125/after-1440.png",
|
||||
"Docs/Testing/TwoFactorOtp-20261125/after-320.png",
|
||||
"Docs/Testing/TwoFactorOtp-20261125/after-390.png",
|
||||
"Docs/Testing/TwoFactorOtp-20261125/after-geometry.json",
|
||||
"Docs/Testing/TwoFactorOtp-20261125/before-1440.png",
|
||||
"Docs/Testing/TwoFactorOtp-20261125/before-320.png",
|
||||
"Docs/Testing/TwoFactorOtp-20261125/before-390.png",
|
||||
"Docs/Testing/TwoFactorOtp-20261125/before-geometry.json",
|
||||
"PlotLine.Tests/Browser/two-factor-otp.cjs",
|
||||
"PlotLine/wwwroot/css/public-site.css",
|
||||
"Tools/Deployment/README.md",
|
||||
"Tools/Deployment/activate.py",
|
||||
"Tools/Deployment/provision/acceptance-permissions.py",
|
||||
"Tools/Deployment/provision/acceptance.conf",
|
||||
"Tools/Deployment/provision/nginx-plotdirector.conf",
|
||||
"Tools/Deployment/provision/plotdirector-maintenance.conf",
|
||||
"Tools/Deployment/test_activation.py"
|
||||
]
|
||||
}
|
||||
@ -0,0 +1,27 @@
|
||||
{
|
||||
"started_utc": "2026-11-25T16:39:16.348161+00:00",
|
||||
"started_epoch": 1795624756.3481834,
|
||||
"stages": {
|
||||
"release_preparation_scope": 65.304,
|
||||
"application_build_required_tests": 6.119,
|
||||
"packaging_signing": 1.359,
|
||||
"transfer": 279.961,
|
||||
"production_validation": 8.633,
|
||||
"activation_helper_including_backup_history_health": 20.78,
|
||||
"database_history_verification_postactivation_including_package_validation": 8.403,
|
||||
"public_acceptance": 1.142,
|
||||
"predeployment_backup": null,
|
||||
"completion_reporting": 117.27
|
||||
},
|
||||
"release_package_bytes": 554260480,
|
||||
"transfer_bytes": 554260845,
|
||||
"transfer_mib_per_second": 1.888,
|
||||
"internal_phase_measurement_limit": "Backup and exact service stop/start phase timestamps remain in root-protected JSONL; restricted interface exposes only aggregate activation completion, not audit retrieval. No extra privileges or tooling changes requested.",
|
||||
"reporting_started_epoch": 1795625212.165751,
|
||||
"completed_utc": "2026-11-25T16:48:49.435197+00:00",
|
||||
"total_end_to_end_seconds": 573.087,
|
||||
"within_10_minutes": true,
|
||||
"observed_public_downtime_seconds": 6.627,
|
||||
"exact_service_downtime_seconds": null,
|
||||
"unallocated_orchestration_wall_seconds": 64.116
|
||||
}
|
||||
@ -0,0 +1,35 @@
|
||||
{
|
||||
"status": "passed",
|
||||
"source_commit": "ff6369e9766b37fba38b9c327c0c170076236870",
|
||||
"deployment_id": "20261125T211858Z-95eab0efa335",
|
||||
"dll_sha256": "a6b0edd9494e360aebbdfc2f51053d430ba0e056122e6f9f91e1dc9bdc80a805",
|
||||
"database": "PlotLine",
|
||||
"environment": "Production",
|
||||
"stylesheet_sha256": {
|
||||
"onboarding.css": "56044b4480832870ca92de79b894dbbe71a10a162c731258da1fdd2dba2e549b",
|
||||
"story-intelligence-global-progress.css": "a5315dadbd5374eb08af5e124f20d0c6b37f610078f18369071c903b406851f5"
|
||||
},
|
||||
"public_https": {
|
||||
"https://plotdirector.com/": {
|
||||
"status": 200,
|
||||
"final_url": "https://plotdirector.com/"
|
||||
},
|
||||
"https://plotdirector.com/Account/Login": {
|
||||
"status": 200,
|
||||
"final_url": "https://plotdirector.com/Account/Login"
|
||||
},
|
||||
"https://www.plotdirector.com/": {
|
||||
"status": 200,
|
||||
"final_url": "https://plotdirector.com/"
|
||||
},
|
||||
"https://catherinelynwood.com/": {
|
||||
"status": 200,
|
||||
"final_url": "https://www.catherinelynwood.com/"
|
||||
}
|
||||
},
|
||||
"migrations_executed": 0,
|
||||
"migration_history_records": 320,
|
||||
"running_identity": "verified by restricted root helper",
|
||||
"authenticated_browser_check": "Development qualification reused for identical DLL; no Production fixture or authentication bypass",
|
||||
"production_infrastructure_changed": false
|
||||
}
|
||||
@ -0,0 +1,727 @@
|
||||
{
|
||||
"format": 1,
|
||||
"origin": "atlas-pipeline",
|
||||
"started_utc": "2026-11-25T21:17:21.524+00:00",
|
||||
"completed_utc": "2026-11-25T21:19:21.526+00:00",
|
||||
"status": "activated",
|
||||
"phases": [
|
||||
{
|
||||
"name": "package_validation",
|
||||
"started_utc": "2026-11-25T21:17:21.524+00:00",
|
||||
"parent": null,
|
||||
"outcome": "passed",
|
||||
"completed_utc": "2026-11-25T21:17:21.712+00:00",
|
||||
"seconds": 0.187318,
|
||||
"exclusive_seconds": 0.187318
|
||||
},
|
||||
{
|
||||
"name": "decompression",
|
||||
"started_utc": "2026-11-25T21:17:21.712+00:00",
|
||||
"parent": null,
|
||||
"outcome": "passed",
|
||||
"completed_utc": "2026-11-25T21:17:22.743+00:00",
|
||||
"seconds": 1.030741,
|
||||
"exclusive_seconds": 1.030741
|
||||
},
|
||||
{
|
||||
"name": "package_validation",
|
||||
"started_utc": "2026-11-25T21:17:22.743+00:00",
|
||||
"parent": null,
|
||||
"outcome": "passed",
|
||||
"completed_utc": "2026-11-25T21:17:24.192+00:00",
|
||||
"seconds": 1.449549,
|
||||
"exclusive_seconds": 1.449549
|
||||
},
|
||||
{
|
||||
"name": "transfer",
|
||||
"started_utc": "2026-11-25T21:17:24.659+00:00",
|
||||
"parent": null,
|
||||
"outcome": "passed",
|
||||
"completed_utc": "2026-11-25T21:18:46.353+00:00",
|
||||
"seconds": 81.694484,
|
||||
"exclusive_seconds": 81.694484
|
||||
},
|
||||
{
|
||||
"name": "production_validation",
|
||||
"started_utc": "2026-11-25T21:18:46.353+00:00",
|
||||
"parent": null,
|
||||
"outcome": "passed",
|
||||
"completed_utc": "2026-11-25T21:18:56.260+00:00",
|
||||
"seconds": 9.90734,
|
||||
"exclusive_seconds": 9.90734
|
||||
},
|
||||
{
|
||||
"name": "receipt_retrieval",
|
||||
"started_utc": "2026-11-25T21:18:56.261+00:00",
|
||||
"parent": null,
|
||||
"outcome": "passed",
|
||||
"completed_utc": "2026-11-25T21:18:57.119+00:00",
|
||||
"seconds": 0.858188,
|
||||
"exclusive_seconds": 0.858188
|
||||
},
|
||||
{
|
||||
"name": "remote_activation",
|
||||
"started_utc": "2026-11-25T21:18:57.121+00:00",
|
||||
"parent": null,
|
||||
"outcome": "passed",
|
||||
"completed_utc": "2026-11-25T21:19:20.100+00:00",
|
||||
"seconds": 22.979196,
|
||||
"exclusive_seconds": 22.979196
|
||||
},
|
||||
{
|
||||
"name": "receipt_retrieval",
|
||||
"started_utc": "2026-11-25T21:19:20.100+00:00",
|
||||
"parent": null,
|
||||
"outcome": "passed",
|
||||
"completed_utc": "2026-11-25T21:19:21.003+00:00",
|
||||
"seconds": 0.903633,
|
||||
"exclusive_seconds": 0.903633
|
||||
},
|
||||
{
|
||||
"name": "public_acceptance",
|
||||
"started_utc": "2026-11-25T21:19:21.108+00:00",
|
||||
"parent": null,
|
||||
"outcome": "passed",
|
||||
"completed_utc": "2026-11-25T21:19:21.502+00:00",
|
||||
"seconds": 0.394354,
|
||||
"exclusive_seconds": 0.394354
|
||||
},
|
||||
{
|
||||
"name": "receipt_generation",
|
||||
"started_utc": "2026-11-25T21:19:21.502+00:00",
|
||||
"parent": null,
|
||||
"outcome": "passed",
|
||||
"completed_utc": "2026-11-25T21:19:21.526+00:00",
|
||||
"seconds": 0.023729,
|
||||
"exclusive_seconds": 0.023729
|
||||
}
|
||||
],
|
||||
"warnings": [],
|
||||
"failures": [],
|
||||
"checks": {
|
||||
"activation": true,
|
||||
"application": {
|
||||
"database": "PlotLine",
|
||||
"environment": "Production",
|
||||
"healthy": true,
|
||||
"sourceCommit": "ff6369e9766b37fba38b9c327c0c170076236870",
|
||||
"version": "1.0.0"
|
||||
},
|
||||
"binary_identity": true,
|
||||
"database": {
|
||||
"complete_history": true,
|
||||
"healthy": true,
|
||||
"history": {
|
||||
"baselined": 210,
|
||||
"executed": 110,
|
||||
"expected": 320,
|
||||
"latest_successful_release": {
|
||||
"activated_utc": "2026-11-25T20:04:45.5542194Z",
|
||||
"activation_kind": "Deploy",
|
||||
"application_version": "1.0.0",
|
||||
"deployment_identifier": "20261125T200432Z-3c965a19faba",
|
||||
"manifest_sha256": "91feeace1299f356504ea83d33eb03c6084c9dfc20d727183ae573a405a4949f",
|
||||
"package_sha256": "6364085972d74003410fc4cc0c008364e346bb18f832fdc1b282301f1089cbd3",
|
||||
"recorded": true,
|
||||
"release_identifier": "plotdirector-production-9b1770d9-20261125-r1",
|
||||
"source_commit": "9b1770d96d17b7b2cc4f42efb936d822d20fe31e"
|
||||
},
|
||||
"recorded": 320,
|
||||
"successful_release_count": 3
|
||||
},
|
||||
"history_verification_seconds": 0.2400688
|
||||
},
|
||||
"http_login": true,
|
||||
"http_root": true
|
||||
},
|
||||
"migrations": {
|
||||
"baselined": 0,
|
||||
"committed": [],
|
||||
"committed_list_truncated": false,
|
||||
"executed": 0,
|
||||
"schema": "b17db2bbdc583cb7bd3c856fb4db5cf6fc470e87fbaee5dc1dbbe99b6878beb7"
|
||||
},
|
||||
"recovery": "No automatic database restore or application rollback. Review protected attempt evidence on failure.",
|
||||
"transport": {
|
||||
"method": "zstd",
|
||||
"original_bytes": 554280960,
|
||||
"transferred_bytes": 165578094,
|
||||
"original_sha256": "19f7a0247279e92c4f7af84d83138d68540d90c90e2ca0f5e48b9c7edbb6f395",
|
||||
"transferred_sha256": "189a99f9355e5cb1723565d31cda74a4e8558985e48c92e32e68daa65140b98b",
|
||||
"compression_ratio": 0.298726,
|
||||
"compression_seconds_atlas": 2.0181886390055297,
|
||||
"settings": {
|
||||
"level": 6,
|
||||
"threads": 4
|
||||
}
|
||||
},
|
||||
"release": {
|
||||
"id": "plotdirector-production-ff6369e9-20261125-r1",
|
||||
"source_commit": "ff6369e9766b37fba38b9c327c0c170076236870",
|
||||
"version": "1.0.0",
|
||||
"package_sha256": "19f7a0247279e92c4f7af84d83138d68540d90c90e2ca0f5e48b9c7edbb6f395",
|
||||
"application_sha256": "a6306640483b7366aa39b0ca16971fd9ef4d9732084fc69c2077b1e8b9a48147",
|
||||
"dll_sha256": "a6b0edd9494e360aebbdfc2f51053d430ba0e056122e6f9f91e1dc9bdc80a805"
|
||||
},
|
||||
"transfer": {
|
||||
"source": "atlas-sender",
|
||||
"bytes": 165579054,
|
||||
"seconds": 81.69457300601061,
|
||||
"mib_per_second": 1.9329128646406606
|
||||
},
|
||||
"server_validation": {
|
||||
"checks": {},
|
||||
"completed_utc": "2026-11-25T21:18:56.202+00:00",
|
||||
"deployment_id": "20261125T211847Z-69547d797ea1",
|
||||
"failures": [],
|
||||
"format": 1,
|
||||
"migration_history": {
|
||||
"complete": true,
|
||||
"database_bytes": 486539264,
|
||||
"history": {
|
||||
"baselined": 210,
|
||||
"executed": 110,
|
||||
"expected": 320,
|
||||
"latest_successful_release": {
|
||||
"activated_utc": "2026-11-25T20:04:45.5542194Z",
|
||||
"activation_kind": "Deploy",
|
||||
"application_version": "1.0.0",
|
||||
"deployment_identifier": "20261125T200432Z-3c965a19faba",
|
||||
"manifest_sha256": "91feeace1299f356504ea83d33eb03c6084c9dfc20d727183ae573a405a4949f",
|
||||
"package_sha256": "6364085972d74003410fc4cc0c008364e346bb18f832fdc1b282301f1089cbd3",
|
||||
"recorded": true,
|
||||
"release_identifier": "plotdirector-production-9b1770d9-20261125-r1",
|
||||
"source_commit": "9b1770d96d17b7b2cc4f42efb936d822d20fe31e"
|
||||
},
|
||||
"recorded": 320,
|
||||
"successful_release_count": 3
|
||||
},
|
||||
"history_verification_seconds": 0.3427421,
|
||||
"schema": "b17db2bbdc583cb7bd3c856fb4db5cf6fc470e87fbaee5dc1dbbe99b6878beb7"
|
||||
},
|
||||
"migrations": {
|
||||
"baselined": null,
|
||||
"executed": null
|
||||
},
|
||||
"operation": "validate",
|
||||
"origin": "web1",
|
||||
"phases": [
|
||||
{
|
||||
"completed_utc": "2026-11-25T21:18:48.163+00:00",
|
||||
"exclusive_seconds": 0.435567,
|
||||
"name": "package_validation",
|
||||
"outcome": "passed",
|
||||
"parent": null,
|
||||
"seconds": 0.435567,
|
||||
"started_utc": "2026-11-25T21:18:47.727+00:00"
|
||||
},
|
||||
{
|
||||
"completed_utc": "2026-11-25T21:18:49.853+00:00",
|
||||
"exclusive_seconds": 1.690101,
|
||||
"name": "decompression",
|
||||
"outcome": "passed",
|
||||
"parent": null,
|
||||
"seconds": 1.690101,
|
||||
"started_utc": "2026-11-25T21:18:48.163+00:00"
|
||||
},
|
||||
{
|
||||
"completed_utc": "2026-11-25T21:18:52.933+00:00",
|
||||
"exclusive_seconds": 3.079458,
|
||||
"name": "package_validation",
|
||||
"outcome": "passed",
|
||||
"parent": null,
|
||||
"seconds": 3.079458,
|
||||
"started_utc": "2026-11-25T21:18:49.853+00:00"
|
||||
},
|
||||
{
|
||||
"completed_utc": "2026-11-25T21:18:55.516+00:00",
|
||||
"exclusive_seconds": 1.021252,
|
||||
"name": "database_state_verification",
|
||||
"outcome": "passed",
|
||||
"parent": null,
|
||||
"seconds": 1.363994,
|
||||
"started_utc": "2026-11-25T21:18:54.152+00:00"
|
||||
},
|
||||
{
|
||||
"clock": "SQL worker Stopwatch; measured duration, UTC endpoints unavailable",
|
||||
"completed_utc": null,
|
||||
"exclusive_seconds": 0.342742,
|
||||
"name": "migration_history_verification",
|
||||
"outcome": "passed",
|
||||
"parent": "database_state_verification",
|
||||
"seconds": 0.342742,
|
||||
"started_utc": null
|
||||
},
|
||||
{
|
||||
"completed_utc": "2026-11-25T21:18:56.202+00:00",
|
||||
"exclusive_seconds": 0.014449,
|
||||
"name": "receipt_generation",
|
||||
"outcome": "passed",
|
||||
"parent": null,
|
||||
"seconds": 0.014449,
|
||||
"started_utc": "2026-11-25T21:18:56.188+00:00"
|
||||
}
|
||||
],
|
||||
"previous_release": {
|
||||
"deployment": "20261125T200432Z-3c965a19faba",
|
||||
"package_sha256": "6364085972d74003410fc4cc0c008364e346bb18f832fdc1b282301f1089cbd3",
|
||||
"release": "plotdirector-production-9b1770d9-20261125-r1",
|
||||
"source_commit": "9b1770d96d17b7b2cc4f42efb936d822d20fe31e",
|
||||
"version": "1.0.0"
|
||||
},
|
||||
"protected_evidence_reference": "/srv/plotdirector/deployment-evidence/20261125T211847Z-69547d797ea1.jsonl",
|
||||
"recovery": "No automatic database restore or application rollback. Review protected attempt evidence on failure.",
|
||||
"release": {
|
||||
"application_sha256": "a6306640483b7366aa39b0ca16971fd9ef4d9732084fc69c2077b1e8b9a48147",
|
||||
"dll_sha256": "a6b0edd9494e360aebbdfc2f51053d430ba0e056122e6f9f91e1dc9bdc80a805",
|
||||
"id": "plotdirector-production-ff6369e9-20261125-r1",
|
||||
"manifest_sha256": "05493eaaaff7a4ef182ec8ec26c5810cb9717ed2816ded3134687bed007150dd",
|
||||
"package_sha256": "19f7a0247279e92c4f7af84d83138d68540d90c90e2ca0f5e48b9c7edbb6f395",
|
||||
"source_commit": "ff6369e9766b37fba38b9c327c0c170076236870",
|
||||
"version": "1.0.0"
|
||||
},
|
||||
"started_utc": "2026-11-25T21:18:47.679+00:00",
|
||||
"status": "validated",
|
||||
"timing": {
|
||||
"clock": "monotonic; UTC timestamps for correlation only",
|
||||
"measured_top_level_seconds": 6.583569,
|
||||
"total_seconds": 8.523625,
|
||||
"unattributed_seconds": 1.940056
|
||||
},
|
||||
"transfer": {
|
||||
"bytes": 165579054,
|
||||
"mib_per_second": 1.971218638025396,
|
||||
"seconds": 80.10704043100122,
|
||||
"source": "ssh-receiver-unprivileged"
|
||||
},
|
||||
"transport": {
|
||||
"compression_ratio": 0.298726,
|
||||
"compression_seconds_atlas": 2.0181886390055297,
|
||||
"method": "zstd",
|
||||
"original_bytes": 554280960,
|
||||
"original_sha256": "19f7a0247279e92c4f7af84d83138d68540d90c90e2ca0f5e48b9c7edbb6f395",
|
||||
"settings": {
|
||||
"level": 6,
|
||||
"threads": 4
|
||||
},
|
||||
"transferred_bytes": 165578094,
|
||||
"transferred_sha256": "189a99f9355e5cb1723565d31cda74a4e8558985e48c92e32e68daa65140b98b"
|
||||
},
|
||||
"unperformed_phases": [
|
||||
"release_preparation",
|
||||
"production_validation",
|
||||
"remote_activation",
|
||||
"receipt_retrieval",
|
||||
"scope_verification",
|
||||
"build",
|
||||
"packaging_signing",
|
||||
"compression",
|
||||
"transfer",
|
||||
"database_backup",
|
||||
"migration_execution",
|
||||
"service_stop",
|
||||
"release_installation",
|
||||
"release_activation",
|
||||
"service_start",
|
||||
"application_health_readiness",
|
||||
"postactivation_verification",
|
||||
"public_acceptance"
|
||||
],
|
||||
"warnings": []
|
||||
},
|
||||
"previous_release": {
|
||||
"deployment": "20261125T200432Z-3c965a19faba",
|
||||
"package_sha256": "6364085972d74003410fc4cc0c008364e346bb18f832fdc1b282301f1089cbd3",
|
||||
"release": "plotdirector-production-9b1770d9-20261125-r1",
|
||||
"source_commit": "9b1770d96d17b7b2cc4f42efb936d822d20fe31e",
|
||||
"version": "1.0.0"
|
||||
},
|
||||
"migration_history": {
|
||||
"complete": true,
|
||||
"database_bytes": 486539264,
|
||||
"history": {
|
||||
"baselined": 210,
|
||||
"executed": 110,
|
||||
"expected": 320,
|
||||
"latest_successful_release": {
|
||||
"activated_utc": "2026-11-25T20:04:45.5542194Z",
|
||||
"activation_kind": "Deploy",
|
||||
"application_version": "1.0.0",
|
||||
"deployment_identifier": "20261125T200432Z-3c965a19faba",
|
||||
"manifest_sha256": "91feeace1299f356504ea83d33eb03c6084c9dfc20d727183ae573a405a4949f",
|
||||
"package_sha256": "6364085972d74003410fc4cc0c008364e346bb18f832fdc1b282301f1089cbd3",
|
||||
"recorded": true,
|
||||
"release_identifier": "plotdirector-production-9b1770d9-20261125-r1",
|
||||
"source_commit": "9b1770d96d17b7b2cc4f42efb936d822d20fe31e"
|
||||
},
|
||||
"recorded": 320,
|
||||
"successful_release_count": 3
|
||||
},
|
||||
"history_verification_seconds": 0.3427421,
|
||||
"schema": "b17db2bbdc583cb7bd3c856fb4db5cf6fc470e87fbaee5dc1dbbe99b6878beb7"
|
||||
},
|
||||
"server_activation": {
|
||||
"availability": {
|
||||
"confirmed_inactive_to_health_ready_seconds": 7.898837061991799,
|
||||
"definition": "Monotonic intervals include stop/start commands; observed public outage measured separately on Atlas.",
|
||||
"service_stop_to_start_seconds": 3.2280222039989894,
|
||||
"stop_request_to_health_ready_seconds": 8.070759613998234,
|
||||
"stop_request_to_start_command_complete_seconds": 3.3999510680005187
|
||||
},
|
||||
"checks": {
|
||||
"activation": true,
|
||||
"application": {
|
||||
"database": "PlotLine",
|
||||
"environment": "Production",
|
||||
"healthy": true,
|
||||
"sourceCommit": "ff6369e9766b37fba38b9c327c0c170076236870",
|
||||
"version": "1.0.0"
|
||||
},
|
||||
"binary_identity": true,
|
||||
"database": {
|
||||
"complete_history": true,
|
||||
"healthy": true,
|
||||
"history": {
|
||||
"baselined": 210,
|
||||
"executed": 110,
|
||||
"expected": 320,
|
||||
"latest_successful_release": {
|
||||
"activated_utc": "2026-11-25T20:04:45.5542194Z",
|
||||
"activation_kind": "Deploy",
|
||||
"application_version": "1.0.0",
|
||||
"deployment_identifier": "20261125T200432Z-3c965a19faba",
|
||||
"manifest_sha256": "91feeace1299f356504ea83d33eb03c6084c9dfc20d727183ae573a405a4949f",
|
||||
"package_sha256": "6364085972d74003410fc4cc0c008364e346bb18f832fdc1b282301f1089cbd3",
|
||||
"recorded": true,
|
||||
"release_identifier": "plotdirector-production-9b1770d9-20261125-r1",
|
||||
"source_commit": "9b1770d96d17b7b2cc4f42efb936d822d20fe31e"
|
||||
},
|
||||
"recorded": 320,
|
||||
"successful_release_count": 3
|
||||
},
|
||||
"history_verification_seconds": 0.2400688
|
||||
},
|
||||
"http_login": true,
|
||||
"http_root": true
|
||||
},
|
||||
"completed_utc": "2026-11-25T21:19:20.032+00:00",
|
||||
"database_backup": {
|
||||
"options": [
|
||||
"COPY_ONLY",
|
||||
"CHECKSUM",
|
||||
"VERIFYONLY"
|
||||
],
|
||||
"path": "/srv/backups/sql/PlotLine-predeploy-20261125T211858Z-95eab0efa335.bak",
|
||||
"verified": true
|
||||
},
|
||||
"deployment_id": "20261125T211858Z-95eab0efa335",
|
||||
"failures": [],
|
||||
"format": 1,
|
||||
"migration_history": {
|
||||
"complete": true,
|
||||
"database_bytes": 486539264,
|
||||
"history": {
|
||||
"baselined": 210,
|
||||
"executed": 110,
|
||||
"expected": 320,
|
||||
"latest_successful_release": {
|
||||
"activated_utc": "2026-11-25T20:04:45.5542194Z",
|
||||
"activation_kind": "Deploy",
|
||||
"application_version": "1.0.0",
|
||||
"deployment_identifier": "20261125T200432Z-3c965a19faba",
|
||||
"manifest_sha256": "91feeace1299f356504ea83d33eb03c6084c9dfc20d727183ae573a405a4949f",
|
||||
"package_sha256": "6364085972d74003410fc4cc0c008364e346bb18f832fdc1b282301f1089cbd3",
|
||||
"recorded": true,
|
||||
"release_identifier": "plotdirector-production-9b1770d9-20261125-r1",
|
||||
"source_commit": "9b1770d96d17b7b2cc4f42efb936d822d20fe31e"
|
||||
},
|
||||
"recorded": 320,
|
||||
"successful_release_count": 3
|
||||
},
|
||||
"history_verification_seconds": 0.292776,
|
||||
"schema": "b17db2bbdc583cb7bd3c856fb4db5cf6fc470e87fbaee5dc1dbbe99b6878beb7"
|
||||
},
|
||||
"migrations": {
|
||||
"baselined": 0,
|
||||
"committed": [],
|
||||
"committed_list_truncated": false,
|
||||
"executed": 0,
|
||||
"schema": "b17db2bbdc583cb7bd3c856fb4db5cf6fc470e87fbaee5dc1dbbe99b6878beb7"
|
||||
},
|
||||
"operation": "activate",
|
||||
"origin": "web1",
|
||||
"phases": [
|
||||
{
|
||||
"completed_utc": "2026-11-25T21:18:58.633+00:00",
|
||||
"exclusive_seconds": 0.467779,
|
||||
"name": "package_validation",
|
||||
"outcome": "passed",
|
||||
"parent": null,
|
||||
"seconds": 0.467779,
|
||||
"started_utc": "2026-11-25T21:18:58.165+00:00"
|
||||
},
|
||||
{
|
||||
"completed_utc": "2026-11-25T21:19:00.420+00:00",
|
||||
"exclusive_seconds": 1.787172,
|
||||
"name": "decompression",
|
||||
"outcome": "passed",
|
||||
"parent": null,
|
||||
"seconds": 1.787172,
|
||||
"started_utc": "2026-11-25T21:18:58.633+00:00"
|
||||
},
|
||||
{
|
||||
"completed_utc": "2026-11-25T21:19:03.702+00:00",
|
||||
"exclusive_seconds": 3.281833,
|
||||
"name": "package_validation",
|
||||
"outcome": "passed",
|
||||
"parent": null,
|
||||
"seconds": 3.281833,
|
||||
"started_utc": "2026-11-25T21:19:00.420+00:00"
|
||||
},
|
||||
{
|
||||
"completed_utc": "2026-11-25T21:19:06.342+00:00",
|
||||
"exclusive_seconds": 0.963159,
|
||||
"name": "database_state_verification",
|
||||
"outcome": "passed",
|
||||
"parent": null,
|
||||
"seconds": 1.255935,
|
||||
"started_utc": "2026-11-25T21:19:05.086+00:00"
|
||||
},
|
||||
{
|
||||
"clock": "SQL worker Stopwatch; measured duration, UTC endpoints unavailable",
|
||||
"completed_utc": null,
|
||||
"exclusive_seconds": 0.292776,
|
||||
"name": "migration_history_verification",
|
||||
"outcome": "passed",
|
||||
"parent": "database_state_verification",
|
||||
"seconds": 0.292776,
|
||||
"started_utc": null
|
||||
},
|
||||
{
|
||||
"completed_utc": "2026-11-25T21:19:10.712+00:00",
|
||||
"exclusive_seconds": 4.346441,
|
||||
"name": "database_backup",
|
||||
"outcome": "passed",
|
||||
"parent": null,
|
||||
"seconds": 4.346441,
|
||||
"started_utc": "2026-11-25T21:19:06.366+00:00"
|
||||
},
|
||||
{
|
||||
"completed_utc": "2026-11-25T21:19:11.403+00:00",
|
||||
"exclusive_seconds": 0.171711,
|
||||
"name": "service_stop",
|
||||
"outcome": "passed",
|
||||
"parent": null,
|
||||
"seconds": 0.171711,
|
||||
"started_utc": "2026-11-25T21:19:11.231+00:00"
|
||||
},
|
||||
{
|
||||
"completed_utc": "2026-11-25T21:19:13.017+00:00",
|
||||
"exclusive_seconds": 1.564302,
|
||||
"name": "migration_execution",
|
||||
"outcome": "passed",
|
||||
"parent": null,
|
||||
"seconds": 1.564302,
|
||||
"started_utc": "2026-11-25T21:19:11.453+00:00"
|
||||
},
|
||||
{
|
||||
"completed_utc": "2026-11-25T21:19:14.320+00:00",
|
||||
"exclusive_seconds": 1.298257,
|
||||
"name": "release_installation",
|
||||
"outcome": "passed",
|
||||
"parent": null,
|
||||
"seconds": 1.298257,
|
||||
"started_utc": "2026-11-25T21:19:13.022+00:00"
|
||||
},
|
||||
{
|
||||
"completed_utc": "2026-11-25T21:19:14.335+00:00",
|
||||
"exclusive_seconds": 0.003937,
|
||||
"name": "release_activation",
|
||||
"outcome": "passed",
|
||||
"parent": null,
|
||||
"seconds": 0.003937,
|
||||
"started_utc": "2026-11-25T21:19:14.331+00:00"
|
||||
},
|
||||
{
|
||||
"completed_utc": "2026-11-25T21:19:14.631+00:00",
|
||||
"exclusive_seconds": 0.296461,
|
||||
"name": "service_start",
|
||||
"outcome": "passed",
|
||||
"parent": null,
|
||||
"seconds": 0.296461,
|
||||
"started_utc": "2026-11-25T21:19:14.335+00:00"
|
||||
},
|
||||
{
|
||||
"completed_utc": "2026-11-25T21:19:19.302+00:00",
|
||||
"exclusive_seconds": 0.867589,
|
||||
"name": "postactivation_verification",
|
||||
"outcome": "passed",
|
||||
"parent": "application_health_readiness",
|
||||
"seconds": 1.107658,
|
||||
"started_utc": "2026-11-25T21:19:18.194+00:00"
|
||||
},
|
||||
{
|
||||
"clock": "SQL worker Stopwatch; measured duration, UTC endpoints unavailable",
|
||||
"completed_utc": null,
|
||||
"exclusive_seconds": 0.240069,
|
||||
"name": "migration_history_verification",
|
||||
"outcome": "passed",
|
||||
"parent": "postactivation_verification",
|
||||
"seconds": 0.240069,
|
||||
"started_utc": null
|
||||
},
|
||||
{
|
||||
"completed_utc": "2026-11-25T21:19:19.302+00:00",
|
||||
"exclusive_seconds": 3.563097,
|
||||
"name": "application_health_readiness",
|
||||
"outcome": "passed",
|
||||
"parent": null,
|
||||
"seconds": 4.670755,
|
||||
"started_utc": "2026-11-25T21:19:14.631+00:00"
|
||||
},
|
||||
{
|
||||
"completed_utc": "2026-11-25T21:19:19.346+00:00",
|
||||
"exclusive_seconds": 0.037383,
|
||||
"name": "postactivation_verification",
|
||||
"outcome": "passed",
|
||||
"parent": null,
|
||||
"seconds": 0.037383,
|
||||
"started_utc": "2026-11-25T21:19:19.309+00:00"
|
||||
},
|
||||
{
|
||||
"completed_utc": "2026-11-25T21:19:20.031+00:00",
|
||||
"exclusive_seconds": 0.021387,
|
||||
"name": "receipt_generation",
|
||||
"outcome": "passed",
|
||||
"parent": null,
|
||||
"seconds": 0.021387,
|
||||
"started_utc": "2026-11-25T21:19:20.010+00:00"
|
||||
}
|
||||
],
|
||||
"previous_release": {
|
||||
"deployment": "20261125T200432Z-3c965a19faba",
|
||||
"package_sha256": "6364085972d74003410fc4cc0c008364e346bb18f832fdc1b282301f1089cbd3",
|
||||
"release": "plotdirector-production-9b1770d9-20261125-r1",
|
||||
"source_commit": "9b1770d96d17b7b2cc4f42efb936d822d20fe31e",
|
||||
"version": "1.0.0"
|
||||
},
|
||||
"protected_evidence_reference": "/srv/plotdirector/deployment-evidence/20261125T211858Z-95eab0efa335.jsonl",
|
||||
"recovery": "No automatic database restore or application rollback. Review protected attempt evidence on failure.",
|
||||
"release": {
|
||||
"application_sha256": "a6306640483b7366aa39b0ca16971fd9ef4d9732084fc69c2077b1e8b9a48147",
|
||||
"dll_sha256": "a6b0edd9494e360aebbdfc2f51053d430ba0e056122e6f9f91e1dc9bdc80a805",
|
||||
"id": "plotdirector-production-ff6369e9-20261125-r1",
|
||||
"manifest_sha256": "05493eaaaff7a4ef182ec8ec26c5810cb9717ed2816ded3134687bed007150dd",
|
||||
"package_sha256": "19f7a0247279e92c4f7af84d83138d68540d90c90e2ca0f5e48b9c7edbb6f395",
|
||||
"source_commit": "ff6369e9766b37fba38b9c327c0c170076236870",
|
||||
"version": "1.0.0"
|
||||
},
|
||||
"release_history": {
|
||||
"activated_utc": "2026-11-25T21:19:19.3142530Z",
|
||||
"activation_kind": "Deploy",
|
||||
"application_version": "1.0.0",
|
||||
"deployment_identifier": "20261125T211858Z-95eab0efa335",
|
||||
"manifest_sha256": "05493eaaaff7a4ef182ec8ec26c5810cb9717ed2816ded3134687bed007150dd",
|
||||
"package_sha256": "19f7a0247279e92c4f7af84d83138d68540d90c90e2ca0f5e48b9c7edbb6f395",
|
||||
"recorded": true,
|
||||
"release_identifier": "plotdirector-production-ff6369e9-20261125-r1",
|
||||
"source_commit": "ff6369e9766b37fba38b9c327c0c170076236870"
|
||||
},
|
||||
"started_utc": "2026-11-25T21:18:58.108+00:00",
|
||||
"status": "activated",
|
||||
"timing": {
|
||||
"clock": "monotonic; UTC timestamps for correlation only",
|
||||
"measured_top_level_seconds": 19.203353,
|
||||
"total_seconds": 21.923197,
|
||||
"unattributed_seconds": 2.719844
|
||||
},
|
||||
"transfer": {
|
||||
"bytes": 165579054,
|
||||
"mib_per_second": 1.971218638025396,
|
||||
"seconds": 80.10704043100122,
|
||||
"source": "ssh-receiver-unprivileged"
|
||||
},
|
||||
"transport": {
|
||||
"compression_ratio": 0.298726,
|
||||
"compression_seconds_atlas": 2.0181886390055297,
|
||||
"method": "zstd",
|
||||
"original_bytes": 554280960,
|
||||
"original_sha256": "19f7a0247279e92c4f7af84d83138d68540d90c90e2ca0f5e48b9c7edbb6f395",
|
||||
"settings": {
|
||||
"level": 6,
|
||||
"threads": 4
|
||||
},
|
||||
"transferred_bytes": 165578094,
|
||||
"transferred_sha256": "189a99f9355e5cb1723565d31cda74a4e8558985e48c92e32e68daa65140b98b"
|
||||
},
|
||||
"unperformed_phases": [
|
||||
"release_preparation",
|
||||
"production_validation",
|
||||
"remote_activation",
|
||||
"receipt_retrieval",
|
||||
"scope_verification",
|
||||
"build",
|
||||
"packaging_signing",
|
||||
"compression",
|
||||
"transfer",
|
||||
"public_acceptance"
|
||||
],
|
||||
"warnings": []
|
||||
},
|
||||
"deployment_id": "20261125T211858Z-95eab0efa335",
|
||||
"release_history": {
|
||||
"activated_utc": "2026-11-25T21:19:19.3142530Z",
|
||||
"activation_kind": "Deploy",
|
||||
"application_version": "1.0.0",
|
||||
"deployment_identifier": "20261125T211858Z-95eab0efa335",
|
||||
"manifest_sha256": "05493eaaaff7a4ef182ec8ec26c5810cb9717ed2816ded3134687bed007150dd",
|
||||
"package_sha256": "19f7a0247279e92c4f7af84d83138d68540d90c90e2ca0f5e48b9c7edbb6f395",
|
||||
"recorded": true,
|
||||
"release_identifier": "plotdirector-production-ff6369e9-20261125-r1",
|
||||
"source_commit": "ff6369e9766b37fba38b9c327c0c170076236870"
|
||||
},
|
||||
"database_backup": {
|
||||
"options": [
|
||||
"COPY_ONLY",
|
||||
"CHECKSUM",
|
||||
"VERIFYONLY"
|
||||
],
|
||||
"path": "/srv/backups/sql/PlotLine-predeploy-20261125T211858Z-95eab0efa335.bak",
|
||||
"verified": true
|
||||
},
|
||||
"availability": {
|
||||
"confirmed_inactive_to_health_ready_seconds": 7.898837061991799,
|
||||
"definition": "Monotonic intervals include stop/start commands; observed public outage measured separately on Atlas.",
|
||||
"service_stop_to_start_seconds": 3.2280222039989894,
|
||||
"stop_request_to_health_ready_seconds": 8.070759613998234,
|
||||
"stop_request_to_start_command_complete_seconds": 3.3999510680005187
|
||||
},
|
||||
"observed_public_outage": {
|
||||
"seconds": 5.4316960090072826,
|
||||
"definition": "Measured failed HTTPS GET to next successful GET; 0.5s sampling plus request latency",
|
||||
"recovery_observed": true
|
||||
},
|
||||
"public_https": {
|
||||
"plotdirector": {
|
||||
"status": 200,
|
||||
"tls_verified": true
|
||||
},
|
||||
"catherine": {
|
||||
"status": 200,
|
||||
"tls_verified": true
|
||||
}
|
||||
},
|
||||
"timing": {
|
||||
"total_seconds": 120.001847,
|
||||
"measured_top_level_seconds": 119.428532,
|
||||
"unattributed_seconds": 0.573315,
|
||||
"clock": "monotonic; UTC timestamps for correlation only"
|
||||
},
|
||||
"unperformed_phases": [
|
||||
"release_preparation",
|
||||
"scope_verification",
|
||||
"build",
|
||||
"packaging_signing",
|
||||
"compression"
|
||||
]
|
||||
}
|
||||
@ -0,0 +1,137 @@
|
||||
{
|
||||
"format": 1,
|
||||
"origin": "atlas-preparation",
|
||||
"started_utc": "2026-11-25T21:17:02.022+00:00",
|
||||
"completed_utc": "2026-11-25T21:17:12.136+00:00",
|
||||
"status": "prepared",
|
||||
"phases": [
|
||||
{
|
||||
"name": "scope_verification",
|
||||
"started_utc": "2026-11-25T21:17:02.022+00:00",
|
||||
"parent": null,
|
||||
"outcome": "passed",
|
||||
"completed_utc": "2026-11-25T21:17:02.051+00:00",
|
||||
"seconds": 0.028719,
|
||||
"exclusive_seconds": 0.028719
|
||||
},
|
||||
{
|
||||
"name": "build",
|
||||
"started_utc": "2026-11-25T21:17:02.055+00:00",
|
||||
"parent": null,
|
||||
"outcome": "passed",
|
||||
"completed_utc": "2026-11-25T21:17:08.299+00:00",
|
||||
"seconds": 6.24405,
|
||||
"exclusive_seconds": 6.24405
|
||||
},
|
||||
{
|
||||
"name": "packaging_signing",
|
||||
"started_utc": "2026-11-25T21:17:08.300+00:00",
|
||||
"parent": null,
|
||||
"outcome": "passed",
|
||||
"completed_utc": "2026-11-25T21:17:09.584+00:00",
|
||||
"seconds": 1.284525,
|
||||
"exclusive_seconds": 1.284525
|
||||
},
|
||||
{
|
||||
"name": "compression",
|
||||
"started_utc": "2026-11-25T21:17:09.584+00:00",
|
||||
"parent": null,
|
||||
"outcome": "passed",
|
||||
"completed_utc": "2026-11-25T21:17:12.068+00:00",
|
||||
"seconds": 2.483408,
|
||||
"exclusive_seconds": 2.483408
|
||||
},
|
||||
{
|
||||
"name": "receipt_generation",
|
||||
"started_utc": "2026-11-25T21:17:12.121+00:00",
|
||||
"parent": null,
|
||||
"outcome": "passed",
|
||||
"completed_utc": "2026-11-25T21:17:12.136+00:00",
|
||||
"seconds": 0.014368,
|
||||
"exclusive_seconds": 0.014368
|
||||
}
|
||||
],
|
||||
"warnings": [],
|
||||
"failures": [],
|
||||
"checks": {},
|
||||
"migrations": {
|
||||
"executed": null,
|
||||
"baselined": null
|
||||
},
|
||||
"recovery": "No automatic database restore or application rollback. Review protected attempt evidence on failure.",
|
||||
"scope": {
|
||||
"base": "9b1770d96d17b7b2cc4f42efb936d822d20fe31e",
|
||||
"source": "ff6369e9766b37fba38b9c327c0c170076236870",
|
||||
"changed_paths": [
|
||||
"Docs/Deployment/Evidence/Routine-20261125-9b1770d9/acceptance.json",
|
||||
"Docs/Deployment/Evidence/Routine-20261125-9b1770d9/activation-result.json",
|
||||
"Docs/Deployment/Evidence/Routine-20261125-9b1770d9/scope.json",
|
||||
"Docs/Deployment/Evidence/Routine-20261125-9b1770d9/timing.json",
|
||||
"Docs/Deployment/Evidence/Transport-20261125/Installed/reviewed-installation-hashes.json",
|
||||
"Docs/Deployment/Evidence/Transport-20261125/Installed/web1-access-final.json",
|
||||
"Docs/Deployment/Evidence/Transport-20261125/Installed/web1-server-receipt.json",
|
||||
"Docs/Deployment/Evidence/Transport-20261125/Installed/web1-validation-receipt.json",
|
||||
"Docs/Deployment/Evidence/Transport-20261125/Installed/web1-validation-receipt.txt",
|
||||
"Docs/Deployment/Evidence/Transport-20261125/Installed/web1-verified.json",
|
||||
"Docs/Deployment/Production.md",
|
||||
"Docs/Deployment/Routine-20261125-9b1770d9.md",
|
||||
"Docs/Deployment/Transport-20261125.md",
|
||||
"Docs/Investigations/TwoFactorOtpRefinement-20261125.md",
|
||||
"Docs/Testing/TwoFactor-20261125/centred-1440.png",
|
||||
"Docs/Testing/TwoFactor-20261125/centred-320.png",
|
||||
"Docs/Testing/TwoFactor-20261125/centred-390.png",
|
||||
"Docs/Testing/TwoFactor-20261125/development-deployment.json",
|
||||
"PlotLine.Tests/Browser/manuscript-import-theme.cjs",
|
||||
"PlotLine/Views/Shared/_Layout.cshtml",
|
||||
"PlotLine/wwwroot/css/onboarding.css",
|
||||
"PlotLine/wwwroot/css/story-intelligence-global-progress.css"
|
||||
]
|
||||
},
|
||||
"release": {
|
||||
"id": "plotdirector-production-ff6369e9-20261125-r1",
|
||||
"source_commit": "ff6369e9766b37fba38b9c327c0c170076236870",
|
||||
"version": "1.0.0",
|
||||
"package_sha256": "19f7a0247279e92c4f7af84d83138d68540d90c90e2ca0f5e48b9c7edbb6f395",
|
||||
"application_sha256": "a6306640483b7366aa39b0ca16971fd9ef4d9732084fc69c2077b1e8b9a48147"
|
||||
},
|
||||
"transport": {
|
||||
"format": 1,
|
||||
"method": "zstd",
|
||||
"level": 6,
|
||||
"threads": 4,
|
||||
"release_id": "plotdirector-production-ff6369e9-20261125-r1",
|
||||
"source_commit": "ff6369e9766b37fba38b9c327c0c170076236870",
|
||||
"authorization_sha256": "b41bf8f83568a1630a2c0fde91632d465e200c4f03bd2a59b02ee5f92f254c81",
|
||||
"original_sha256": "19f7a0247279e92c4f7af84d83138d68540d90c90e2ca0f5e48b9c7edbb6f395",
|
||||
"original_bytes": 554280960,
|
||||
"transferred_sha256": "189a99f9355e5cb1723565d31cda74a4e8558985e48c92e32e68daa65140b98b",
|
||||
"transferred_bytes": 165578094,
|
||||
"compression_seconds": 2.0181886390055297
|
||||
},
|
||||
"timing": {
|
||||
"total_seconds": 10.113427,
|
||||
"measured_top_level_seconds": 10.05507,
|
||||
"unattributed_seconds": 0.058357,
|
||||
"clock": "monotonic; UTC timestamps for correlation only"
|
||||
},
|
||||
"unperformed_phases": [
|
||||
"release_preparation",
|
||||
"production_validation",
|
||||
"remote_activation",
|
||||
"receipt_retrieval",
|
||||
"transfer",
|
||||
"decompression",
|
||||
"package_validation",
|
||||
"database_state_verification",
|
||||
"migration_history_verification",
|
||||
"database_backup",
|
||||
"migration_execution",
|
||||
"service_stop",
|
||||
"release_installation",
|
||||
"release_activation",
|
||||
"service_start",
|
||||
"application_health_readiness",
|
||||
"postactivation_verification",
|
||||
"public_acceptance"
|
||||
]
|
||||
}
|
||||
@ -0,0 +1,10 @@
|
||||
{
|
||||
"source_commit": "ff6369e9766b37fba38b9c327c0c170076236870",
|
||||
"application_changes": [
|
||||
"PlotLine/Views/Shared/_Layout.cshtml",
|
||||
"PlotLine/wwwroot/css/onboarding.css",
|
||||
"PlotLine/wwwroot/css/story-intelligence-global-progress.css"
|
||||
],
|
||||
"sql_changes": [],
|
||||
"infrastructure_deployment": false
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
{
|
||||
"tooling_source_commit": "8ee28075e920d037823dae8d29c0836ab0fc03d3",
|
||||
"worker_source_commit": "15a9f96f",
|
||||
"files": {
|
||||
"tooling/activate.py": "7e494c7a861902ac77bd00a82eab1ed32ed80e593b4031ddf153d84dbb02a563",
|
||||
"tooling/release.py": "10bff1f1c1579b5f8a3d4df8bf9c4ef8891d576f5c329fba5c169dfb77dcb8dd",
|
||||
"tooling/transport.py": "66c5adf1eeaf28fa050d188e9c7607234116fa6bb5f289301a79ca58e3a3e601",
|
||||
"tooling/receipt.py": "d92324e00862f773ef663332dedc0e061bb0561b5397e83728e05ce42c142d21",
|
||||
"tooling/ssh_dispatch.py": "7d7f65306e3c72a332df318c5d8ad5690caa9e3d73a2cf907445d5dd4da406e3",
|
||||
"tooling/deploy-plotdirector": "8c585376f0726446b9ed28bea0afa69f83c8205b1abdd63bd995a87c17fd4f02",
|
||||
"worker/Microsoft.IdentityModel.Tokens.dll": "21c943ec715d8771c3a711ad78fc109adceac0e002f67a76f3bca33d195d0f5f",
|
||||
"worker/Microsoft.IdentityModel.Abstractions.dll": "613fd94ff39ce6ff90666e062e93d5d5ea7fdeae93aaab2bf2cb6f5c87cea39d",
|
||||
"worker/DatabaseWorker.dll": "98ff9b1454417a8dcd8fd101f49da970ae279d79817208ef881648420ffe4df5",
|
||||
"worker/System.Configuration.ConfigurationManager.dll": "23a07c6bae940887065fbd1043a99edf86fea415b5f5c11b3cd0a9569c65c8ec",
|
||||
"worker/System.Diagnostics.EventLog.dll": "751f99294da881633e0de535426496d8c792bc45716c3bf79d6d71c051148b57",
|
||||
"worker/System.Security.Cryptography.Pkcs.dll": "6fd9ac565a32464c11b0ee1c3c0bc3d9abffcca27c31e22deac0b6f38b97be62",
|
||||
"worker/Microsoft.Data.SqlClient.Internal.Logging.dll": "3663a9609f5bfb0048f55a65e0466ca019e6a770adc6600be3b8368620189c4b",
|
||||
"worker/DatabaseWorker": "7d821448373664de00aee0c600a0a578ab67364ef74588bcf0896197ecd669c4",
|
||||
"worker/DatabaseWorker.pdb": "9ca5a1dd98bf98f5ff81e81e487ae2205fcb0f54e2c93345b1efaf9efa4bf91c",
|
||||
"worker/Microsoft.IdentityModel.Logging.dll": "b2b89896da6f307fe4c7fba033f4f629ce43b92cc6d28c7daa024a4e5cd68dbd",
|
||||
"worker/Microsoft.IdentityModel.Protocols.OpenIdConnect.dll": "f19f659e8533ad2b0d4650779231efd0e25247df72c127b57cfdbf186be8d256",
|
||||
"worker/Microsoft.IdentityModel.JsonWebTokens.dll": "d1af130b42eaa6e8b5b45b0a48d286e7a282f2b67f5809aeb828aaa909d94891",
|
||||
"worker/Microsoft.Bcl.Cryptography.dll": "b9b076648248645d7681f1a1b541d6534ea4a332d959df0c3b0c9e6c5c3780b2",
|
||||
"worker/Microsoft.Extensions.DependencyInjection.Abstractions.dll": "7c97c4463fe0fc11d1f22f4d160b2bd2288981adf1de2717a6ff3fb993ddf294",
|
||||
"worker/Microsoft.Extensions.Primitives.dll": "7090bd5f06714eb81a23389f95fe02683e6b3ec2fccb2316ff676798035bc905",
|
||||
"worker/Microsoft.Data.SqlClient.dll": "5f8d9052d253f63cd3c667eb0f69d5a57141f3ede229870038ce1219f8667c37",
|
||||
"worker/DatabaseWorker.runtimeconfig.json": "9950d4583cfc9a106857c0d5b8a75b53e8774852b57b80bc3823a74d44a4d87f",
|
||||
"worker/DatabaseWorker.deps.json": "2d2a9f6fcf0db9061379c621c8776b728f8d6a74831938babe24b8ebd334cb6a",
|
||||
"worker/Microsoft.Extensions.Caching.Memory.dll": "20582fb34b6b5f0be4f6c3f3a3ddd23a59192915b66555a6a58e25408d5e7c15",
|
||||
"worker/Microsoft.IdentityModel.Protocols.dll": "647f131d0fd0a66802a80adc9cc38fe02aa2caf78d6f58796e758829541b16de",
|
||||
"worker/Microsoft.SqlServer.Server.dll": "a9dca1b42bc875f966b78b2c0880e62b838f0ed6567166d7f1f07ae4b76ec4bf",
|
||||
"worker/Microsoft.Extensions.Caching.Abstractions.dll": "fe351f3fa95ab8389efaf48452aed71f36484e8edbac4e9081036c9ff3b8943b",
|
||||
"worker/System.Security.Cryptography.ProtectedData.dll": "2e9dc3858bab3ada3acb5565f89a724347286c6ed0b56897794de6e8216fd6c4",
|
||||
"worker/Microsoft.Extensions.Options.dll": "07850a36bc3387a2e46375cc30dff0bd627f599dc5aa5f69c0e8195c5209eaff",
|
||||
"worker/Microsoft.Extensions.Logging.Abstractions.dll": "a76a735b63e6ef3b0bf41ff92423cbd16103b8952e8306140a9bd650346034dc",
|
||||
"worker/Microsoft.Data.SqlClient.Extensions.Abstractions.dll": "6c85afcc73a2069e8127fbe45fc2f2432c50cb9447436eba60605db0486b27d7",
|
||||
"worker/System.IdentityModel.Tokens.Jwt.dll": "d6026966eb5304c2e3bdb3bc091a94d204dcb27696a61cdc89d1abf5259e24ca",
|
||||
"worker/it/Microsoft.Data.SqlClient.resources.dll": "87c4f893135590079cc8679db8a3c310d9767ba7b1637a16c850c7a56244a90f",
|
||||
"worker/ru/Microsoft.Data.SqlClient.resources.dll": "7511ae7ed542f171718efca0b2dcd34d67135c32b26dc0040866337cf5281c07",
|
||||
"worker/ko/Microsoft.Data.SqlClient.resources.dll": "c262e5071cd59deaf344d69a4830a1e6a1e39901a513165c968433d162a43374",
|
||||
"worker/zh-Hant/Microsoft.Data.SqlClient.resources.dll": "585df84c04bf6da65b683f2bf1d0f28a14c7c0ecce2a793050bede466ebaa7bd",
|
||||
"worker/cs/Microsoft.Data.SqlClient.resources.dll": "9706747625000033052156701fb20db3d374d922283bbd1655c50967210db868",
|
||||
"worker/zh-Hans/Microsoft.Data.SqlClient.resources.dll": "2c71dff17d55046bd9e63c4a52a013e09095181246db09a90d02a3ff1c9d1f16",
|
||||
"worker/tr/Microsoft.Data.SqlClient.resources.dll": "e04031fbd3b67eb0e859f77525ffc08bd6db0753e862c25599b4bda81fdd5df4",
|
||||
"worker/pt-BR/Microsoft.Data.SqlClient.resources.dll": "01d700e457eaf5ecfd9b9912f5f4e08eb1e943321c35fa6037c835328446ba24",
|
||||
"worker/fr/Microsoft.Data.SqlClient.resources.dll": "03fc08a265275e16329477ab6f82279790bfb8bb1c1258cc12a173d9e6f1bcab",
|
||||
"worker/es/Microsoft.Data.SqlClient.resources.dll": "bdee6375be7106415031cabc8423fdc4248061dea1be23812a0b51a712b7f2da",
|
||||
"worker/ja/Microsoft.Data.SqlClient.resources.dll": "2665efc8f1975ba0b83351ced65d00d2345ed8f691279a944b6cde974aa42891",
|
||||
"worker/pl/Microsoft.Data.SqlClient.resources.dll": "19e75674541f1cd02431f55811434b9388bf05a4a01a9677d5b59b5d783ffa97",
|
||||
"worker/de/Microsoft.Data.SqlClient.resources.dll": "95de3b2f2a22bd5369852449354b31e24206348e551479b014fa55751fa8faa2",
|
||||
"worker/runtimes/win/lib/net9.0/System.Diagnostics.EventLog.dll": "718d0bca6b6914556ca9b719904036a7bf6bac635ea97e535f44b09a67ee4972",
|
||||
"worker/runtimes/win/lib/net9.0/System.Security.Cryptography.Pkcs.dll": "996b209db304f9b623a5dbae541d533401941ad6dadcd6c491e80c09aa0afe1b",
|
||||
"worker/runtimes/win/lib/net9.0/System.Diagnostics.EventLog.Messages.dll": "8994b1e8a7164c8a27d6995fb79ceffbca01f3c32261486006e21eec2322d41a",
|
||||
"worker/runtimes/win/lib/net9.0/Microsoft.Data.SqlClient.dll": "e863f6e12724f8445df1f5274e923f8ca60d76384a9e62bd07b1f6c2033a3bea",
|
||||
"worker/runtimes/win-x86/native/Microsoft.Data.SqlClient.SNI.dll": "16efa76f220e23166a95873baaed43899191470c13848c944a679ff2bf5ac941",
|
||||
"worker/runtimes/win-x64/native/Microsoft.Data.SqlClient.SNI.dll": "7e37c5bba3da06a955c122e3515b2980e2f1b8732ec0297f0a7e77e79b4de331",
|
||||
"worker/runtimes/unix/lib/net9.0/Microsoft.Data.SqlClient.dll": "bc3c5df6d545fda6491f22bb628d10959e6434d3cf46ac88b3faa4dca422000c",
|
||||
"worker/runtimes/win-arm64/native/Microsoft.Data.SqlClient.SNI.dll": "73b61c3381e32613f59bbe3af7f58871c8cd486e04a9c0e71409f6a1972d6f84"
|
||||
},
|
||||
"application_release_must_remain": "eadda6f6",
|
||||
"installation_performed": false
|
||||
}
|
||||
@ -0,0 +1,10 @@
|
||||
{
|
||||
"temporary_atlas_key_removed": true,
|
||||
"existing_administrator_keys_preserved": [
|
||||
"SHA256:M+dfv1rvqPUaT9551dV+zFPQzddCE80+8c5Q4CU0ta4",
|
||||
"SHA256:B+TZgbPAFcKcDpqT6cISYbT92VUtKD8muQmDjMJpiWQ"
|
||||
],
|
||||
"other_lines_preserved_byte_for_byte": true,
|
||||
"administrator_reconnection_rejected": true,
|
||||
"restricted_receipt_access_after_removal": "passed"
|
||||
}
|
||||
@ -0,0 +1,160 @@
|
||||
{
|
||||
"checks": {},
|
||||
"completed_utc": "2026-11-25T20:23:19.417+00:00",
|
||||
"deployment_id": "20261125T202311Z-621fb47a47f8",
|
||||
"failures": [],
|
||||
"format": 1,
|
||||
"migration_history": {
|
||||
"complete": true,
|
||||
"database_bytes": 486539264,
|
||||
"history": {
|
||||
"baselined": 210,
|
||||
"executed": 110,
|
||||
"expected": 320,
|
||||
"latest_successful_release": {
|
||||
"activated_utc": "2026-11-25T20:04:45.5542194Z",
|
||||
"activation_kind": "Deploy",
|
||||
"application_version": "1.0.0",
|
||||
"deployment_identifier": "20261125T200432Z-3c965a19faba",
|
||||
"manifest_sha256": "91feeace1299f356504ea83d33eb03c6084c9dfc20d727183ae573a405a4949f",
|
||||
"package_sha256": "6364085972d74003410fc4cc0c008364e346bb18f832fdc1b282301f1089cbd3",
|
||||
"recorded": true,
|
||||
"release_identifier": "plotdirector-production-9b1770d9-20261125-r1",
|
||||
"source_commit": "9b1770d96d17b7b2cc4f42efb936d822d20fe31e"
|
||||
},
|
||||
"recorded": 320,
|
||||
"successful_release_count": 3
|
||||
},
|
||||
"history_verification_seconds": 0.2735537,
|
||||
"schema": "b17db2bbdc583cb7bd3c856fb4db5cf6fc470e87fbaee5dc1dbbe99b6878beb7"
|
||||
},
|
||||
"migrations": {
|
||||
"baselined": null,
|
||||
"executed": null
|
||||
},
|
||||
"operation": "validate",
|
||||
"origin": "web1",
|
||||
"phases": [
|
||||
{
|
||||
"completed_utc": "2026-11-25T20:23:12.287+00:00",
|
||||
"exclusive_seconds": 0.409594,
|
||||
"name": "package_validation",
|
||||
"outcome": "passed",
|
||||
"parent": null,
|
||||
"seconds": 0.409594,
|
||||
"started_utc": "2026-11-25T20:23:11.878+00:00"
|
||||
},
|
||||
{
|
||||
"completed_utc": "2026-11-25T20:23:13.808+00:00",
|
||||
"exclusive_seconds": 1.520483,
|
||||
"name": "decompression",
|
||||
"outcome": "passed",
|
||||
"parent": null,
|
||||
"seconds": 1.520483,
|
||||
"started_utc": "2026-11-25T20:23:12.287+00:00"
|
||||
},
|
||||
{
|
||||
"completed_utc": "2026-11-25T20:23:16.497+00:00",
|
||||
"exclusive_seconds": 2.68939,
|
||||
"name": "package_validation",
|
||||
"outcome": "passed",
|
||||
"parent": null,
|
||||
"seconds": 2.68939,
|
||||
"started_utc": "2026-11-25T20:23:13.808+00:00"
|
||||
},
|
||||
{
|
||||
"completed_utc": "2026-11-25T20:23:18.723+00:00",
|
||||
"exclusive_seconds": 0.943037,
|
||||
"name": "database_state_verification",
|
||||
"outcome": "passed",
|
||||
"parent": null,
|
||||
"seconds": 1.216591,
|
||||
"started_utc": "2026-11-25T20:23:17.507+00:00"
|
||||
},
|
||||
{
|
||||
"clock": "SQL worker Stopwatch; measured duration, UTC endpoints unavailable",
|
||||
"completed_utc": null,
|
||||
"exclusive_seconds": 0.273554,
|
||||
"name": "migration_history_verification",
|
||||
"outcome": "passed",
|
||||
"parent": "database_state_verification",
|
||||
"seconds": 0.273554,
|
||||
"started_utc": null
|
||||
},
|
||||
{
|
||||
"completed_utc": "2026-11-25T20:23:19.417+00:00",
|
||||
"exclusive_seconds": 0.024109,
|
||||
"name": "receipt_generation",
|
||||
"outcome": "passed",
|
||||
"parent": null,
|
||||
"seconds": 0.024109,
|
||||
"started_utc": "2026-11-25T20:23:19.392+00:00"
|
||||
}
|
||||
],
|
||||
"previous_release": {
|
||||
"deployment": "20261125T200432Z-3c965a19faba",
|
||||
"package_sha256": "6364085972d74003410fc4cc0c008364e346bb18f832fdc1b282301f1089cbd3",
|
||||
"release": "plotdirector-production-9b1770d9-20261125-r1",
|
||||
"source_commit": "9b1770d96d17b7b2cc4f42efb936d822d20fe31e",
|
||||
"version": "1.0.0"
|
||||
},
|
||||
"protected_evidence_reference": "/srv/plotdirector/deployment-evidence/20261125T202311Z-621fb47a47f8.jsonl",
|
||||
"recovery": "No automatic database restore or application rollback. Review protected attempt evidence on failure.",
|
||||
"release": {
|
||||
"application_sha256": "238850639212d9f39bc6e208f0799dd1fb42c7f6a3d903386ccdf406baa6cb22",
|
||||
"dll_sha256": "780571eb8ba3583ae20d4f18df9f7a9aadaa6439f343de3480bd54d362ce7199",
|
||||
"id": "plotdirector-production-eadda6f6-20261125-r1",
|
||||
"manifest_sha256": "aeab7d79147518816adc541ef24af311f6564b248264c3057b95f1f3695649a2",
|
||||
"package_sha256": "e4990e90c3d32084e87af5bb149c5aff393b61e7e0c03f8e3c5120771686a4d7",
|
||||
"source_commit": "eadda6f674ac456e8ae6014e2c5781088d408f8f",
|
||||
"version": "1.0.0"
|
||||
},
|
||||
"started_utc": "2026-11-25T20:23:11.836+00:00",
|
||||
"status": "validated",
|
||||
"timing": {
|
||||
"clock": "monotonic; UTC timestamps for correlation only",
|
||||
"measured_top_level_seconds": 5.860167,
|
||||
"total_seconds": 7.580906,
|
||||
"unattributed_seconds": 1.720739
|
||||
},
|
||||
"transfer": {
|
||||
"bytes": 165586410,
|
||||
"mib_per_second": 2.0118547647106952,
|
||||
"seconds": 78.49249813299684,
|
||||
"source": "ssh-receiver-unprivileged"
|
||||
},
|
||||
"transport": {
|
||||
"compression_ratio": 0.29875,
|
||||
"compression_seconds_atlas": 2.0684954689932056,
|
||||
"method": "zstd",
|
||||
"original_bytes": 554260480,
|
||||
"original_sha256": "e4990e90c3d32084e87af5bb149c5aff393b61e7e0c03f8e3c5120771686a4d7",
|
||||
"settings": {
|
||||
"level": 6,
|
||||
"threads": 4
|
||||
},
|
||||
"transferred_bytes": 165585450,
|
||||
"transferred_sha256": "f0786b505d5f1b1a43ff28283ca730b0e045f19a395432d85013c998292d85a1"
|
||||
},
|
||||
"unperformed_phases": [
|
||||
"release_preparation",
|
||||
"production_validation",
|
||||
"remote_activation",
|
||||
"receipt_retrieval",
|
||||
"scope_verification",
|
||||
"build",
|
||||
"packaging_signing",
|
||||
"compression",
|
||||
"transfer",
|
||||
"database_backup",
|
||||
"migration_execution",
|
||||
"service_stop",
|
||||
"release_installation",
|
||||
"release_activation",
|
||||
"service_start",
|
||||
"application_health_readiness",
|
||||
"postactivation_verification",
|
||||
"public_acceptance"
|
||||
],
|
||||
"warnings": []
|
||||
}
|
||||
@ -0,0 +1,341 @@
|
||||
{
|
||||
"format": 1,
|
||||
"origin": "atlas-pipeline",
|
||||
"started_utc": "2026-11-25T20:21:48.092+00:00",
|
||||
"completed_utc": "2026-11-25T20:23:20.859+00:00",
|
||||
"status": "validated",
|
||||
"phases": [
|
||||
{
|
||||
"name": "package_validation",
|
||||
"started_utc": "2026-11-25T20:21:48.092+00:00",
|
||||
"parent": null,
|
||||
"outcome": "passed",
|
||||
"completed_utc": "2026-11-25T20:21:48.447+00:00",
|
||||
"seconds": 0.354742,
|
||||
"exclusive_seconds": 0.354742
|
||||
},
|
||||
{
|
||||
"name": "decompression",
|
||||
"started_utc": "2026-11-25T20:21:48.447+00:00",
|
||||
"parent": null,
|
||||
"outcome": "passed",
|
||||
"completed_utc": "2026-11-25T20:21:49.471+00:00",
|
||||
"seconds": 1.024225,
|
||||
"exclusive_seconds": 1.024225
|
||||
},
|
||||
{
|
||||
"name": "package_validation",
|
||||
"started_utc": "2026-11-25T20:21:49.471+00:00",
|
||||
"parent": null,
|
||||
"outcome": "passed",
|
||||
"completed_utc": "2026-11-25T20:21:50.953+00:00",
|
||||
"seconds": 1.481927,
|
||||
"exclusive_seconds": 1.481927
|
||||
},
|
||||
{
|
||||
"name": "transfer",
|
||||
"started_utc": "2026-11-25T20:21:51.081+00:00",
|
||||
"parent": null,
|
||||
"outcome": "passed",
|
||||
"completed_utc": "2026-11-25T20:23:10.527+00:00",
|
||||
"seconds": 79.445097,
|
||||
"exclusive_seconds": 79.445097
|
||||
},
|
||||
{
|
||||
"name": "production_validation",
|
||||
"started_utc": "2026-11-25T20:23:10.527+00:00",
|
||||
"parent": null,
|
||||
"outcome": "passed",
|
||||
"completed_utc": "2026-11-25T20:23:19.521+00:00",
|
||||
"seconds": 8.993925,
|
||||
"exclusive_seconds": 8.993925
|
||||
},
|
||||
{
|
||||
"name": "receipt_retrieval",
|
||||
"started_utc": "2026-11-25T20:23:19.521+00:00",
|
||||
"parent": null,
|
||||
"outcome": "passed",
|
||||
"completed_utc": "2026-11-25T20:23:20.431+00:00",
|
||||
"seconds": 0.90974,
|
||||
"exclusive_seconds": 0.90974
|
||||
},
|
||||
{
|
||||
"name": "public_acceptance",
|
||||
"started_utc": "2026-11-25T20:23:20.431+00:00",
|
||||
"parent": null,
|
||||
"outcome": "passed",
|
||||
"completed_utc": "2026-11-25T20:23:20.842+00:00",
|
||||
"seconds": 0.411101,
|
||||
"exclusive_seconds": 0.411101
|
||||
},
|
||||
{
|
||||
"name": "receipt_generation",
|
||||
"started_utc": "2026-11-25T20:23:20.842+00:00",
|
||||
"parent": null,
|
||||
"outcome": "passed",
|
||||
"completed_utc": "2026-11-25T20:23:20.859+00:00",
|
||||
"seconds": 0.016623,
|
||||
"exclusive_seconds": 0.016623
|
||||
}
|
||||
],
|
||||
"warnings": [
|
||||
"Validation only; no activation, backup or migration performed"
|
||||
],
|
||||
"failures": [],
|
||||
"checks": {},
|
||||
"migrations": {
|
||||
"executed": null,
|
||||
"baselined": null
|
||||
},
|
||||
"recovery": "No automatic database restore or application rollback. Review protected attempt evidence on failure.",
|
||||
"transport": {
|
||||
"method": "zstd",
|
||||
"original_bytes": 554260480,
|
||||
"transferred_bytes": 165585450,
|
||||
"original_sha256": "e4990e90c3d32084e87af5bb149c5aff393b61e7e0c03f8e3c5120771686a4d7",
|
||||
"transferred_sha256": "f0786b505d5f1b1a43ff28283ca730b0e045f19a395432d85013c998292d85a1",
|
||||
"compression_ratio": 0.29875,
|
||||
"compression_seconds_atlas": 2.0684954689932056,
|
||||
"settings": {
|
||||
"level": 6,
|
||||
"threads": 4
|
||||
}
|
||||
},
|
||||
"release": {
|
||||
"id": "plotdirector-production-eadda6f6-20261125-r1",
|
||||
"source_commit": "eadda6f674ac456e8ae6014e2c5781088d408f8f",
|
||||
"version": "1.0.0",
|
||||
"package_sha256": "e4990e90c3d32084e87af5bb149c5aff393b61e7e0c03f8e3c5120771686a4d7",
|
||||
"application_sha256": "238850639212d9f39bc6e208f0799dd1fb42c7f6a3d903386ccdf406baa6cb22",
|
||||
"dll_sha256": "780571eb8ba3583ae20d4f18df9f7a9aadaa6439f343de3480bd54d362ce7199"
|
||||
},
|
||||
"transfer": {
|
||||
"source": "atlas-sender",
|
||||
"bytes": 165586410,
|
||||
"seconds": 79.44518733600853,
|
||||
"mib_per_second": 1.9877290451216525
|
||||
},
|
||||
"server_validation": {
|
||||
"checks": {},
|
||||
"completed_utc": "2026-11-25T20:23:19.417+00:00",
|
||||
"deployment_id": "20261125T202311Z-621fb47a47f8",
|
||||
"failures": [],
|
||||
"format": 1,
|
||||
"migration_history": {
|
||||
"complete": true,
|
||||
"database_bytes": 486539264,
|
||||
"history": {
|
||||
"baselined": 210,
|
||||
"executed": 110,
|
||||
"expected": 320,
|
||||
"latest_successful_release": {
|
||||
"activated_utc": "2026-11-25T20:04:45.5542194Z",
|
||||
"activation_kind": "Deploy",
|
||||
"application_version": "1.0.0",
|
||||
"deployment_identifier": "20261125T200432Z-3c965a19faba",
|
||||
"manifest_sha256": "91feeace1299f356504ea83d33eb03c6084c9dfc20d727183ae573a405a4949f",
|
||||
"package_sha256": "6364085972d74003410fc4cc0c008364e346bb18f832fdc1b282301f1089cbd3",
|
||||
"recorded": true,
|
||||
"release_identifier": "plotdirector-production-9b1770d9-20261125-r1",
|
||||
"source_commit": "9b1770d96d17b7b2cc4f42efb936d822d20fe31e"
|
||||
},
|
||||
"recorded": 320,
|
||||
"successful_release_count": 3
|
||||
},
|
||||
"history_verification_seconds": 0.2735537,
|
||||
"schema": "b17db2bbdc583cb7bd3c856fb4db5cf6fc470e87fbaee5dc1dbbe99b6878beb7"
|
||||
},
|
||||
"migrations": {
|
||||
"baselined": null,
|
||||
"executed": null
|
||||
},
|
||||
"operation": "validate",
|
||||
"origin": "web1",
|
||||
"phases": [
|
||||
{
|
||||
"completed_utc": "2026-11-25T20:23:12.287+00:00",
|
||||
"exclusive_seconds": 0.409594,
|
||||
"name": "package_validation",
|
||||
"outcome": "passed",
|
||||
"parent": null,
|
||||
"seconds": 0.409594,
|
||||
"started_utc": "2026-11-25T20:23:11.878+00:00"
|
||||
},
|
||||
{
|
||||
"completed_utc": "2026-11-25T20:23:13.808+00:00",
|
||||
"exclusive_seconds": 1.520483,
|
||||
"name": "decompression",
|
||||
"outcome": "passed",
|
||||
"parent": null,
|
||||
"seconds": 1.520483,
|
||||
"started_utc": "2026-11-25T20:23:12.287+00:00"
|
||||
},
|
||||
{
|
||||
"completed_utc": "2026-11-25T20:23:16.497+00:00",
|
||||
"exclusive_seconds": 2.68939,
|
||||
"name": "package_validation",
|
||||
"outcome": "passed",
|
||||
"parent": null,
|
||||
"seconds": 2.68939,
|
||||
"started_utc": "2026-11-25T20:23:13.808+00:00"
|
||||
},
|
||||
{
|
||||
"completed_utc": "2026-11-25T20:23:18.723+00:00",
|
||||
"exclusive_seconds": 0.943037,
|
||||
"name": "database_state_verification",
|
||||
"outcome": "passed",
|
||||
"parent": null,
|
||||
"seconds": 1.216591,
|
||||
"started_utc": "2026-11-25T20:23:17.507+00:00"
|
||||
},
|
||||
{
|
||||
"clock": "SQL worker Stopwatch; measured duration, UTC endpoints unavailable",
|
||||
"completed_utc": null,
|
||||
"exclusive_seconds": 0.273554,
|
||||
"name": "migration_history_verification",
|
||||
"outcome": "passed",
|
||||
"parent": "database_state_verification",
|
||||
"seconds": 0.273554,
|
||||
"started_utc": null
|
||||
},
|
||||
{
|
||||
"completed_utc": "2026-11-25T20:23:19.417+00:00",
|
||||
"exclusive_seconds": 0.024109,
|
||||
"name": "receipt_generation",
|
||||
"outcome": "passed",
|
||||
"parent": null,
|
||||
"seconds": 0.024109,
|
||||
"started_utc": "2026-11-25T20:23:19.392+00:00"
|
||||
}
|
||||
],
|
||||
"previous_release": {
|
||||
"deployment": "20261125T200432Z-3c965a19faba",
|
||||
"package_sha256": "6364085972d74003410fc4cc0c008364e346bb18f832fdc1b282301f1089cbd3",
|
||||
"release": "plotdirector-production-9b1770d9-20261125-r1",
|
||||
"source_commit": "9b1770d96d17b7b2cc4f42efb936d822d20fe31e",
|
||||
"version": "1.0.0"
|
||||
},
|
||||
"protected_evidence_reference": "/srv/plotdirector/deployment-evidence/20261125T202311Z-621fb47a47f8.jsonl",
|
||||
"recovery": "No automatic database restore or application rollback. Review protected attempt evidence on failure.",
|
||||
"release": {
|
||||
"application_sha256": "238850639212d9f39bc6e208f0799dd1fb42c7f6a3d903386ccdf406baa6cb22",
|
||||
"dll_sha256": "780571eb8ba3583ae20d4f18df9f7a9aadaa6439f343de3480bd54d362ce7199",
|
||||
"id": "plotdirector-production-eadda6f6-20261125-r1",
|
||||
"manifest_sha256": "aeab7d79147518816adc541ef24af311f6564b248264c3057b95f1f3695649a2",
|
||||
"package_sha256": "e4990e90c3d32084e87af5bb149c5aff393b61e7e0c03f8e3c5120771686a4d7",
|
||||
"source_commit": "eadda6f674ac456e8ae6014e2c5781088d408f8f",
|
||||
"version": "1.0.0"
|
||||
},
|
||||
"started_utc": "2026-11-25T20:23:11.836+00:00",
|
||||
"status": "validated",
|
||||
"timing": {
|
||||
"clock": "monotonic; UTC timestamps for correlation only",
|
||||
"measured_top_level_seconds": 5.860167,
|
||||
"total_seconds": 7.580906,
|
||||
"unattributed_seconds": 1.720739
|
||||
},
|
||||
"transfer": {
|
||||
"bytes": 165586410,
|
||||
"mib_per_second": 2.0118547647106952,
|
||||
"seconds": 78.49249813299684,
|
||||
"source": "ssh-receiver-unprivileged"
|
||||
},
|
||||
"transport": {
|
||||
"compression_ratio": 0.29875,
|
||||
"compression_seconds_atlas": 2.0684954689932056,
|
||||
"method": "zstd",
|
||||
"original_bytes": 554260480,
|
||||
"original_sha256": "e4990e90c3d32084e87af5bb149c5aff393b61e7e0c03f8e3c5120771686a4d7",
|
||||
"settings": {
|
||||
"level": 6,
|
||||
"threads": 4
|
||||
},
|
||||
"transferred_bytes": 165585450,
|
||||
"transferred_sha256": "f0786b505d5f1b1a43ff28283ca730b0e045f19a395432d85013c998292d85a1"
|
||||
},
|
||||
"unperformed_phases": [
|
||||
"release_preparation",
|
||||
"production_validation",
|
||||
"remote_activation",
|
||||
"receipt_retrieval",
|
||||
"scope_verification",
|
||||
"build",
|
||||
"packaging_signing",
|
||||
"compression",
|
||||
"transfer",
|
||||
"database_backup",
|
||||
"migration_execution",
|
||||
"service_stop",
|
||||
"release_installation",
|
||||
"release_activation",
|
||||
"service_start",
|
||||
"application_health_readiness",
|
||||
"postactivation_verification",
|
||||
"public_acceptance"
|
||||
],
|
||||
"warnings": []
|
||||
},
|
||||
"previous_release": {
|
||||
"deployment": "20261125T200432Z-3c965a19faba",
|
||||
"package_sha256": "6364085972d74003410fc4cc0c008364e346bb18f832fdc1b282301f1089cbd3",
|
||||
"release": "plotdirector-production-9b1770d9-20261125-r1",
|
||||
"source_commit": "9b1770d96d17b7b2cc4f42efb936d822d20fe31e",
|
||||
"version": "1.0.0"
|
||||
},
|
||||
"migration_history": {
|
||||
"complete": true,
|
||||
"database_bytes": 486539264,
|
||||
"history": {
|
||||
"baselined": 210,
|
||||
"executed": 110,
|
||||
"expected": 320,
|
||||
"latest_successful_release": {
|
||||
"activated_utc": "2026-11-25T20:04:45.5542194Z",
|
||||
"activation_kind": "Deploy",
|
||||
"application_version": "1.0.0",
|
||||
"deployment_identifier": "20261125T200432Z-3c965a19faba",
|
||||
"manifest_sha256": "91feeace1299f356504ea83d33eb03c6084c9dfc20d727183ae573a405a4949f",
|
||||
"package_sha256": "6364085972d74003410fc4cc0c008364e346bb18f832fdc1b282301f1089cbd3",
|
||||
"recorded": true,
|
||||
"release_identifier": "plotdirector-production-9b1770d9-20261125-r1",
|
||||
"source_commit": "9b1770d96d17b7b2cc4f42efb936d822d20fe31e"
|
||||
},
|
||||
"recorded": 320,
|
||||
"successful_release_count": 3
|
||||
},
|
||||
"history_verification_seconds": 0.2735537,
|
||||
"schema": "b17db2bbdc583cb7bd3c856fb4db5cf6fc470e87fbaee5dc1dbbe99b6878beb7"
|
||||
},
|
||||
"public_https": {
|
||||
"plotdirector": {
|
||||
"status": 200,
|
||||
"tls_verified": true
|
||||
},
|
||||
"catherine": {
|
||||
"status": 200,
|
||||
"tls_verified": true
|
||||
}
|
||||
},
|
||||
"timing": {
|
||||
"total_seconds": 92.767124,
|
||||
"measured_top_level_seconds": 92.63738,
|
||||
"unattributed_seconds": 0.129744,
|
||||
"clock": "monotonic; UTC timestamps for correlation only"
|
||||
},
|
||||
"unperformed_phases": [
|
||||
"release_preparation",
|
||||
"remote_activation",
|
||||
"scope_verification",
|
||||
"build",
|
||||
"packaging_signing",
|
||||
"compression",
|
||||
"database_backup",
|
||||
"migration_execution",
|
||||
"service_stop",
|
||||
"release_installation",
|
||||
"release_activation",
|
||||
"service_start",
|
||||
"application_health_readiness",
|
||||
"postactivation_verification"
|
||||
]
|
||||
}
|
||||
@ -0,0 +1 @@
|
||||
validated: plotdirector-production-eadda6f6-20261125-r1 v1.0.0 source=eadda6f674ac total=92.77s; backup=not-performed; migrations-executed=None; public-https=passed; receipt=local
|
||||
@ -0,0 +1,48 @@
|
||||
{
|
||||
"status": "verified-tooling-only",
|
||||
"current": "/srv/plotdirector/releases/plotdirector-production-9b1770d9-20261125-r1/app",
|
||||
"pid_before": "26493",
|
||||
"pid_after": "26493",
|
||||
"dll_sha256": "ed76eb4cd0c7b071c9f576b7857548ebb9b6b86b0752bc950e6689f45798f156",
|
||||
"configuration_files_unchanged": 67,
|
||||
"active_marker_unchanged": true,
|
||||
"history_unchanged": true,
|
||||
"migration_history": {
|
||||
"expected": 320,
|
||||
"recorded": 320,
|
||||
"baselined": 210,
|
||||
"executed": 110,
|
||||
"successful_release_count": 3,
|
||||
"latest_successful_release": {
|
||||
"recorded": true,
|
||||
"deployment_identifier": "20261125T200432Z-3c965a19faba",
|
||||
"release_identifier": "plotdirector-production-9b1770d9-20261125-r1",
|
||||
"application_version": "1.0.0",
|
||||
"source_commit": "9b1770d96d17b7b2cc4f42efb936d822d20fe31e",
|
||||
"package_sha256": "6364085972d74003410fc4cc0c008364e346bb18f832fdc1b282301f1089cbd3",
|
||||
"manifest_sha256": "91feeace1299f356504ea83d33eb03c6084c9dfc20d727183ae573a405a4949f",
|
||||
"activated_utc": "2026-11-25T20:04:45.5542194Z",
|
||||
"activation_kind": "Deploy"
|
||||
}
|
||||
},
|
||||
"receipt_id": "20261125T202311Z-621fb47a47f8",
|
||||
"receipt_permissions": "root:plotdirector-deploy 0640; directory 0750",
|
||||
"restricted_receipt_read": "passed",
|
||||
"runtime_and_other_user_denial": "passed",
|
||||
"unrestricted_sudo_denied": true,
|
||||
"decoder_only_seconds_web1": 1.2085552829958033,
|
||||
"original_tar_checksum_verified": true,
|
||||
"https": {
|
||||
"plotdirector": {
|
||||
"status": 200,
|
||||
"tls_verified": true
|
||||
},
|
||||
"catherine": {
|
||||
"status": 200,
|
||||
"tls_verified": true
|
||||
}
|
||||
},
|
||||
"application_restart_performed": false,
|
||||
"migrations_executed": 0,
|
||||
"new_application_activation": false
|
||||
}
|
||||
@ -0,0 +1,149 @@
|
||||
{
|
||||
"fixture": "/home/nick/plotdirector-routine-20261125/bundle/package.tar",
|
||||
"original_bytes": 554260480,
|
||||
"original_sha256": "e4990e90c3d32084e87af5bb149c5aff393b61e7e0c03f8e3c5120771686a4d7",
|
||||
"baseline_mib_per_second": 1.888,
|
||||
"results": [
|
||||
{
|
||||
"method": "uncompressed",
|
||||
"bytes": 554260480,
|
||||
"compression_seconds": 0,
|
||||
"decompression_seconds": 0,
|
||||
"estimated_transfer_seconds": 279.97033070709745,
|
||||
"combined_seconds": 279.97033070709745,
|
||||
"sha256": "e4990e90c3d32084e87af5bb149c5aff393b61e7e0c03f8e3c5120771686a4d7"
|
||||
},
|
||||
{
|
||||
"method": "gzip-1",
|
||||
"bytes": 201854349,
|
||||
"compression_seconds": 5.7469,
|
||||
"decompression_seconds": 2.0668,
|
||||
"estimated_transfer_seconds": 101.9615,
|
||||
"combined_seconds": 109.7751,
|
||||
"compression_cpu_user_seconds": 5.63,
|
||||
"compression_cpu_system_seconds": 0.11,
|
||||
"compression_peak_rss_kib": 7908,
|
||||
"integrity": "original SHA256 matched"
|
||||
},
|
||||
{
|
||||
"method": "gzip-6",
|
||||
"bytes": 181826954,
|
||||
"compression_seconds": 17.9912,
|
||||
"decompression_seconds": 1.845,
|
||||
"estimated_transfer_seconds": 91.8452,
|
||||
"combined_seconds": 111.6814,
|
||||
"compression_cpu_user_seconds": 17.87,
|
||||
"compression_cpu_system_seconds": 0.11,
|
||||
"compression_peak_rss_kib": 7892,
|
||||
"integrity": "original SHA256 matched"
|
||||
},
|
||||
{
|
||||
"method": "zstd-1-T1",
|
||||
"bytes": 189037362,
|
||||
"compression_seconds": 1.6523,
|
||||
"decompression_seconds": 0.623,
|
||||
"estimated_transfer_seconds": 95.4873,
|
||||
"combined_seconds": 97.7626,
|
||||
"compression_cpu_user_seconds": 1.78,
|
||||
"compression_cpu_system_seconds": 0.31,
|
||||
"compression_peak_rss_kib": 18084,
|
||||
"integrity": "original SHA256 matched"
|
||||
},
|
||||
{
|
||||
"method": "zstd-1-T4",
|
||||
"bytes": 189037362,
|
||||
"compression_seconds": 0.4813,
|
||||
"decompression_seconds": 0.6185,
|
||||
"estimated_transfer_seconds": 95.4873,
|
||||
"combined_seconds": 96.5872,
|
||||
"compression_cpu_user_seconds": 1.85,
|
||||
"compression_cpu_system_seconds": 0.35,
|
||||
"compression_peak_rss_kib": 31492,
|
||||
"integrity": "original SHA256 matched"
|
||||
},
|
||||
{
|
||||
"method": "zstd-1-T8",
|
||||
"bytes": 189037362,
|
||||
"compression_seconds": 0.4085,
|
||||
"decompression_seconds": 0.6559,
|
||||
"estimated_transfer_seconds": 95.4873,
|
||||
"combined_seconds": 96.5517,
|
||||
"compression_cpu_user_seconds": 2.65,
|
||||
"compression_cpu_system_seconds": 0.43,
|
||||
"compression_peak_rss_kib": 47560,
|
||||
"integrity": "original SHA256 matched"
|
||||
},
|
||||
{
|
||||
"method": "zstd-3-T1",
|
||||
"bytes": 174970395,
|
||||
"compression_seconds": 2.4469,
|
||||
"decompression_seconds": 0.6677,
|
||||
"estimated_transfer_seconds": 88.3818,
|
||||
"combined_seconds": 91.4963,
|
||||
"compression_cpu_user_seconds": 2.55,
|
||||
"compression_cpu_system_seconds": 0.41,
|
||||
"compression_peak_rss_kib": 52144,
|
||||
"integrity": "original SHA256 matched"
|
||||
},
|
||||
{
|
||||
"method": "zstd-3-T4",
|
||||
"bytes": 174970395,
|
||||
"compression_seconds": 0.7884,
|
||||
"decompression_seconds": 0.6596,
|
||||
"estimated_transfer_seconds": 88.3818,
|
||||
"combined_seconds": 89.8298,
|
||||
"compression_cpu_user_seconds": 2.91,
|
||||
"compression_cpu_system_seconds": 0.38,
|
||||
"compression_peak_rss_kib": 93328,
|
||||
"integrity": "original SHA256 matched"
|
||||
},
|
||||
{
|
||||
"method": "zstd-3-T8",
|
||||
"bytes": 174970395,
|
||||
"compression_seconds": 0.7352,
|
||||
"decompression_seconds": 0.6704,
|
||||
"estimated_transfer_seconds": 88.3818,
|
||||
"combined_seconds": 89.7874,
|
||||
"compression_cpu_user_seconds": 4.68,
|
||||
"compression_cpu_system_seconds": 0.43,
|
||||
"compression_peak_rss_kib": 146288,
|
||||
"integrity": "original SHA256 matched"
|
||||
},
|
||||
{
|
||||
"method": "zstd-6-T1",
|
||||
"bytes": 165585450,
|
||||
"compression_seconds": 6.6843,
|
||||
"decompression_seconds": 0.6449,
|
||||
"estimated_transfer_seconds": 83.6412,
|
||||
"combined_seconds": 90.9705,
|
||||
"compression_cpu_user_seconds": 6.73,
|
||||
"compression_cpu_system_seconds": 0.43,
|
||||
"compression_peak_rss_kib": 53576,
|
||||
"integrity": "original SHA256 matched"
|
||||
},
|
||||
{
|
||||
"method": "zstd-6-T4",
|
||||
"bytes": 165585450,
|
||||
"compression_seconds": 2.027,
|
||||
"decompression_seconds": 0.6607,
|
||||
"estimated_transfer_seconds": 83.6412,
|
||||
"combined_seconds": 86.3288,
|
||||
"compression_cpu_user_seconds": 7.87,
|
||||
"compression_cpu_system_seconds": 0.46,
|
||||
"compression_peak_rss_kib": 97704,
|
||||
"integrity": "original SHA256 matched"
|
||||
},
|
||||
{
|
||||
"method": "zstd-6-T8",
|
||||
"bytes": 165585450,
|
||||
"compression_seconds": 1.6271,
|
||||
"decompression_seconds": 0.6714,
|
||||
"estimated_transfer_seconds": 83.6412,
|
||||
"combined_seconds": 85.9397,
|
||||
"compression_cpu_user_seconds": 11.92,
|
||||
"compression_cpu_system_seconds": 0.45,
|
||||
"compression_peak_rss_kib": 158668,
|
||||
"integrity": "original SHA256 matched"
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -0,0 +1,127 @@
|
||||
{
|
||||
"largest_areas": [
|
||||
[
|
||||
"app/runtimes/win-x86",
|
||||
97363336
|
||||
],
|
||||
[
|
||||
"app/runtimes/win-x64",
|
||||
96229264
|
||||
],
|
||||
[
|
||||
"app/runtimes/win-arm64",
|
||||
95902088
|
||||
],
|
||||
[
|
||||
"app/wwwroot",
|
||||
30717352
|
||||
],
|
||||
[
|
||||
"app/runtimes/linux-musl-arm64",
|
||||
18533064
|
||||
],
|
||||
[
|
||||
"app/runtimes/linux-musl-x64",
|
||||
18440296
|
||||
],
|
||||
[
|
||||
"app/PlotLine.dll",
|
||||
17358336
|
||||
],
|
||||
[
|
||||
"app/Data",
|
||||
16560582
|
||||
],
|
||||
[
|
||||
"app/runtimes/osx",
|
||||
15201456
|
||||
],
|
||||
[
|
||||
"app/runtimes/linux-musl-arm",
|
||||
14656372
|
||||
],
|
||||
[
|
||||
"app/runtimes/linux-musl-loongarch64",
|
||||
11896256
|
||||
],
|
||||
[
|
||||
"app/runtimes/linux-bionic-arm64",
|
||||
11319400
|
||||
],
|
||||
[
|
||||
"app/runtimes/linux-x64",
|
||||
11155176
|
||||
],
|
||||
[
|
||||
"app/runtimes/linux-bionic-x64",
|
||||
11068032
|
||||
],
|
||||
[
|
||||
"app/runtimes/linux-arm64",
|
||||
10832888
|
||||
],
|
||||
[
|
||||
"app/runtimes/linux-loongarch64",
|
||||
10480264
|
||||
],
|
||||
[
|
||||
"app/runtimes/linux-x86",
|
||||
10340080
|
||||
],
|
||||
[
|
||||
"app/runtimes/linux-musl-riscv64",
|
||||
9966152
|
||||
],
|
||||
[
|
||||
"app/runtimes/linux-riscv64",
|
||||
8612584
|
||||
],
|
||||
[
|
||||
"app/runtimes/linux-arm",
|
||||
7994064
|
||||
],
|
||||
[
|
||||
"app/Stripe.net.dll",
|
||||
4704256
|
||||
],
|
||||
[
|
||||
"app/PlotLine.pdb",
|
||||
3826916
|
||||
],
|
||||
[
|
||||
"app/Content",
|
||||
1942217
|
||||
],
|
||||
[
|
||||
"app/runtimes/win",
|
||||
1849752
|
||||
],
|
||||
[
|
||||
"app/runtimes/unix",
|
||||
1799616
|
||||
],
|
||||
[
|
||||
"app/PlotLine.staticwebassets.endpoints.json",
|
||||
1681050
|
||||
],
|
||||
[
|
||||
"app/Newtonsoft.Json.dll",
|
||||
712464
|
||||
],
|
||||
[
|
||||
"app/Microsoft.Data.SqlClient.dll",
|
||||
643512
|
||||
],
|
||||
[
|
||||
"app/Help",
|
||||
518051
|
||||
],
|
||||
[
|
||||
"app/SkiaSharp.dll",
|
||||
489824
|
||||
]
|
||||
],
|
||||
"all_categories": 387,
|
||||
"full_private_inventory_sha256": "e21efb03c44ead1b8c5fa997534da4959d0b72b82ad40c37298db5cb73051fd7",
|
||||
"note": "Full per-file/category inventory retained privately on Atlas; no package contents were removed."
|
||||
}
|
||||
@ -0,0 +1,20 @@
|
||||
{
|
||||
"status": "public-unchanged",
|
||||
"application_release": "eadda6f6",
|
||||
"application_action_taken": false,
|
||||
"tooling_installation": "pending temporary administrator authorisation",
|
||||
"sites": {
|
||||
"plotdirector": {
|
||||
"https_status": 200,
|
||||
"tls_verified": true
|
||||
},
|
||||
"catherine": {
|
||||
"https_status": 200,
|
||||
"tls_verified": true
|
||||
}
|
||||
},
|
||||
"production_css_matches_eadda6f6": true,
|
||||
"checked_utc": "2026-11-25T17:38:29.668154+00:00",
|
||||
"application_actions_performed": 0,
|
||||
"production_tooling_changes_performed": 0
|
||||
}
|
||||
@ -0,0 +1,16 @@
|
||||
{
|
||||
"status": "qualified-on-atlas-installation-pending",
|
||||
"deployment_regression_tests": 68,
|
||||
"retained_compressed_release_all_checksums_and_signatures": "passed",
|
||||
"legacy_signed_release_compatibility": "passed",
|
||||
"real_root_filesystem_receipt_boundaries": "passed",
|
||||
"isolated_sql_worker_counters_replay_and_failure_rollback": "passed",
|
||||
"application_rebuilt": false,
|
||||
"production_application_activated": false,
|
||||
"production_tooling_installed": false,
|
||||
"web1_decompression_measured": false,
|
||||
"blocker": "Existing dedicated Atlas key needs temporary administrator authorisation for reviewed root-owned tooling maintenance; no SQL admin credentials needed.",
|
||||
"implementation_commit": "15a9f96f",
|
||||
"final_client_and_documentation_commit": "8ee28075",
|
||||
"qualified_worker_built_from_clean_commit": "15a9f96f"
|
||||
}
|
||||
@ -0,0 +1,99 @@
|
||||
{
|
||||
"format": 1,
|
||||
"origin": "atlas-retained-package-qualification",
|
||||
"started_utc": "2026-11-25T17:23:21.718+00:00",
|
||||
"completed_utc": "2026-11-25T17:23:24.373+00:00",
|
||||
"status": "validated-package-only",
|
||||
"phases": [
|
||||
{
|
||||
"name": "package_validation",
|
||||
"started_utc": "2026-11-25T17:23:21.718+00:00",
|
||||
"parent": null,
|
||||
"outcome": "passed",
|
||||
"completed_utc": "2026-11-25T17:23:21.904+00:00",
|
||||
"seconds": 0.185414,
|
||||
"exclusive_seconds": 0.185414
|
||||
},
|
||||
{
|
||||
"name": "decompression",
|
||||
"started_utc": "2026-11-25T17:23:21.904+00:00",
|
||||
"parent": null,
|
||||
"outcome": "passed",
|
||||
"completed_utc": "2026-11-25T17:23:22.927+00:00",
|
||||
"seconds": 1.022908,
|
||||
"exclusive_seconds": 1.022908
|
||||
},
|
||||
{
|
||||
"name": "package_validation",
|
||||
"started_utc": "2026-11-25T17:23:22.927+00:00",
|
||||
"parent": null,
|
||||
"outcome": "passed",
|
||||
"completed_utc": "2026-11-25T17:23:24.356+00:00",
|
||||
"seconds": 1.428878,
|
||||
"exclusive_seconds": 1.428878
|
||||
}
|
||||
],
|
||||
"warnings": [],
|
||||
"failures": [],
|
||||
"checks": {
|
||||
"unchanged_original_signature": true,
|
||||
"transport_signature": true,
|
||||
"original_tar_sha256": true,
|
||||
"all_application_and_sql_checksums": true,
|
||||
"exact_qualified_dll": true
|
||||
},
|
||||
"migrations": {
|
||||
"executed": null,
|
||||
"baselined": null
|
||||
},
|
||||
"recovery": "No automatic database restore or application rollback. Review protected attempt evidence on failure.",
|
||||
"transport": {
|
||||
"method": "zstd",
|
||||
"original_bytes": 554260480,
|
||||
"transferred_bytes": 165585450,
|
||||
"original_sha256": "e4990e90c3d32084e87af5bb149c5aff393b61e7e0c03f8e3c5120771686a4d7",
|
||||
"transferred_sha256": "f0786b505d5f1b1a43ff28283ca730b0e045f19a395432d85013c998292d85a1",
|
||||
"compression_ratio": 0.29875,
|
||||
"compression_seconds_atlas": 2.0684954689932056,
|
||||
"settings": {
|
||||
"level": 6,
|
||||
"threads": 4
|
||||
}
|
||||
},
|
||||
"release": {
|
||||
"id": "plotdirector-production-eadda6f6-20261125-r1",
|
||||
"version": "1.0.0",
|
||||
"source_commit": "eadda6f674ac456e8ae6014e2c5781088d408f8f",
|
||||
"package_sha256": "e4990e90c3d32084e87af5bb149c5aff393b61e7e0c03f8e3c5120771686a4d7",
|
||||
"application_sha256": "238850639212d9f39bc6e208f0799dd1fb42c7f6a3d903386ccdf406baa6cb22"
|
||||
},
|
||||
"timing": {
|
||||
"total_seconds": 2.654963,
|
||||
"measured_top_level_seconds": 2.6372,
|
||||
"unattributed_seconds": 0.017763,
|
||||
"clock": "monotonic; UTC timestamps for correlation only"
|
||||
},
|
||||
"unperformed_phases": [
|
||||
"release_preparation",
|
||||
"production_validation",
|
||||
"remote_activation",
|
||||
"receipt_retrieval",
|
||||
"scope_verification",
|
||||
"build",
|
||||
"packaging_signing",
|
||||
"compression",
|
||||
"transfer",
|
||||
"database_state_verification",
|
||||
"migration_history_verification",
|
||||
"database_backup",
|
||||
"migration_execution",
|
||||
"service_stop",
|
||||
"release_installation",
|
||||
"release_activation",
|
||||
"service_start",
|
||||
"application_health_readiness",
|
||||
"postactivation_verification",
|
||||
"public_acceptance",
|
||||
"receipt_generation"
|
||||
]
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
{
|
||||
"tooling_source_commit": "8ee28075e920d037823dae8d29c0836ab0fc03d3",
|
||||
"worker_source_commit": "15a9f96f",
|
||||
"files": {
|
||||
"tooling/activate.py": "7e494c7a861902ac77bd00a82eab1ed32ed80e593b4031ddf153d84dbb02a563",
|
||||
"tooling/release.py": "10bff1f1c1579b5f8a3d4df8bf9c4ef8891d576f5c329fba5c169dfb77dcb8dd",
|
||||
"tooling/transport.py": "66c5adf1eeaf28fa050d188e9c7607234116fa6bb5f289301a79ca58e3a3e601",
|
||||
"tooling/receipt.py": "d92324e00862f773ef663332dedc0e061bb0561b5397e83728e05ce42c142d21",
|
||||
"tooling/ssh_dispatch.py": "7d7f65306e3c72a332df318c5d8ad5690caa9e3d73a2cf907445d5dd4da406e3",
|
||||
"tooling/deploy-plotdirector": "8c585376f0726446b9ed28bea0afa69f83c8205b1abdd63bd995a87c17fd4f02",
|
||||
"worker/Microsoft.IdentityModel.Tokens.dll": "21c943ec715d8771c3a711ad78fc109adceac0e002f67a76f3bca33d195d0f5f",
|
||||
"worker/Microsoft.IdentityModel.Abstractions.dll": "613fd94ff39ce6ff90666e062e93d5d5ea7fdeae93aaab2bf2cb6f5c87cea39d",
|
||||
"worker/DatabaseWorker.dll": "98ff9b1454417a8dcd8fd101f49da970ae279d79817208ef881648420ffe4df5",
|
||||
"worker/System.Configuration.ConfigurationManager.dll": "23a07c6bae940887065fbd1043a99edf86fea415b5f5c11b3cd0a9569c65c8ec",
|
||||
"worker/System.Diagnostics.EventLog.dll": "751f99294da881633e0de535426496d8c792bc45716c3bf79d6d71c051148b57",
|
||||
"worker/System.Security.Cryptography.Pkcs.dll": "6fd9ac565a32464c11b0ee1c3c0bc3d9abffcca27c31e22deac0b6f38b97be62",
|
||||
"worker/Microsoft.Data.SqlClient.Internal.Logging.dll": "3663a9609f5bfb0048f55a65e0466ca019e6a770adc6600be3b8368620189c4b",
|
||||
"worker/DatabaseWorker": "7d821448373664de00aee0c600a0a578ab67364ef74588bcf0896197ecd669c4",
|
||||
"worker/DatabaseWorker.pdb": "9ca5a1dd98bf98f5ff81e81e487ae2205fcb0f54e2c93345b1efaf9efa4bf91c",
|
||||
"worker/Microsoft.IdentityModel.Logging.dll": "b2b89896da6f307fe4c7fba033f4f629ce43b92cc6d28c7daa024a4e5cd68dbd",
|
||||
"worker/Microsoft.IdentityModel.Protocols.OpenIdConnect.dll": "f19f659e8533ad2b0d4650779231efd0e25247df72c127b57cfdbf186be8d256",
|
||||
"worker/Microsoft.IdentityModel.JsonWebTokens.dll": "d1af130b42eaa6e8b5b45b0a48d286e7a282f2b67f5809aeb828aaa909d94891",
|
||||
"worker/Microsoft.Bcl.Cryptography.dll": "b9b076648248645d7681f1a1b541d6534ea4a332d959df0c3b0c9e6c5c3780b2",
|
||||
"worker/Microsoft.Extensions.DependencyInjection.Abstractions.dll": "7c97c4463fe0fc11d1f22f4d160b2bd2288981adf1de2717a6ff3fb993ddf294",
|
||||
"worker/Microsoft.Extensions.Primitives.dll": "7090bd5f06714eb81a23389f95fe02683e6b3ec2fccb2316ff676798035bc905",
|
||||
"worker/Microsoft.Data.SqlClient.dll": "5f8d9052d253f63cd3c667eb0f69d5a57141f3ede229870038ce1219f8667c37",
|
||||
"worker/DatabaseWorker.runtimeconfig.json": "9950d4583cfc9a106857c0d5b8a75b53e8774852b57b80bc3823a74d44a4d87f",
|
||||
"worker/DatabaseWorker.deps.json": "2d2a9f6fcf0db9061379c621c8776b728f8d6a74831938babe24b8ebd334cb6a",
|
||||
"worker/Microsoft.Extensions.Caching.Memory.dll": "20582fb34b6b5f0be4f6c3f3a3ddd23a59192915b66555a6a58e25408d5e7c15",
|
||||
"worker/Microsoft.IdentityModel.Protocols.dll": "647f131d0fd0a66802a80adc9cc38fe02aa2caf78d6f58796e758829541b16de",
|
||||
"worker/Microsoft.SqlServer.Server.dll": "a9dca1b42bc875f966b78b2c0880e62b838f0ed6567166d7f1f07ae4b76ec4bf",
|
||||
"worker/Microsoft.Extensions.Caching.Abstractions.dll": "fe351f3fa95ab8389efaf48452aed71f36484e8edbac4e9081036c9ff3b8943b",
|
||||
"worker/System.Security.Cryptography.ProtectedData.dll": "2e9dc3858bab3ada3acb5565f89a724347286c6ed0b56897794de6e8216fd6c4",
|
||||
"worker/Microsoft.Extensions.Options.dll": "07850a36bc3387a2e46375cc30dff0bd627f599dc5aa5f69c0e8195c5209eaff",
|
||||
"worker/Microsoft.Extensions.Logging.Abstractions.dll": "a76a735b63e6ef3b0bf41ff92423cbd16103b8952e8306140a9bd650346034dc",
|
||||
"worker/Microsoft.Data.SqlClient.Extensions.Abstractions.dll": "6c85afcc73a2069e8127fbe45fc2f2432c50cb9447436eba60605db0486b27d7",
|
||||
"worker/System.IdentityModel.Tokens.Jwt.dll": "d6026966eb5304c2e3bdb3bc091a94d204dcb27696a61cdc89d1abf5259e24ca",
|
||||
"worker/it/Microsoft.Data.SqlClient.resources.dll": "87c4f893135590079cc8679db8a3c310d9767ba7b1637a16c850c7a56244a90f",
|
||||
"worker/ru/Microsoft.Data.SqlClient.resources.dll": "7511ae7ed542f171718efca0b2dcd34d67135c32b26dc0040866337cf5281c07",
|
||||
"worker/ko/Microsoft.Data.SqlClient.resources.dll": "c262e5071cd59deaf344d69a4830a1e6a1e39901a513165c968433d162a43374",
|
||||
"worker/zh-Hant/Microsoft.Data.SqlClient.resources.dll": "585df84c04bf6da65b683f2bf1d0f28a14c7c0ecce2a793050bede466ebaa7bd",
|
||||
"worker/cs/Microsoft.Data.SqlClient.resources.dll": "9706747625000033052156701fb20db3d374d922283bbd1655c50967210db868",
|
||||
"worker/zh-Hans/Microsoft.Data.SqlClient.resources.dll": "2c71dff17d55046bd9e63c4a52a013e09095181246db09a90d02a3ff1c9d1f16",
|
||||
"worker/tr/Microsoft.Data.SqlClient.resources.dll": "e04031fbd3b67eb0e859f77525ffc08bd6db0753e862c25599b4bda81fdd5df4",
|
||||
"worker/pt-BR/Microsoft.Data.SqlClient.resources.dll": "01d700e457eaf5ecfd9b9912f5f4e08eb1e943321c35fa6037c835328446ba24",
|
||||
"worker/fr/Microsoft.Data.SqlClient.resources.dll": "03fc08a265275e16329477ab6f82279790bfb8bb1c1258cc12a173d9e6f1bcab",
|
||||
"worker/es/Microsoft.Data.SqlClient.resources.dll": "bdee6375be7106415031cabc8423fdc4248061dea1be23812a0b51a712b7f2da",
|
||||
"worker/ja/Microsoft.Data.SqlClient.resources.dll": "2665efc8f1975ba0b83351ced65d00d2345ed8f691279a944b6cde974aa42891",
|
||||
"worker/pl/Microsoft.Data.SqlClient.resources.dll": "19e75674541f1cd02431f55811434b9388bf05a4a01a9677d5b59b5d783ffa97",
|
||||
"worker/de/Microsoft.Data.SqlClient.resources.dll": "95de3b2f2a22bd5369852449354b31e24206348e551479b014fa55751fa8faa2",
|
||||
"worker/runtimes/win/lib/net9.0/System.Diagnostics.EventLog.dll": "718d0bca6b6914556ca9b719904036a7bf6bac635ea97e535f44b09a67ee4972",
|
||||
"worker/runtimes/win/lib/net9.0/System.Security.Cryptography.Pkcs.dll": "996b209db304f9b623a5dbae541d533401941ad6dadcd6c491e80c09aa0afe1b",
|
||||
"worker/runtimes/win/lib/net9.0/System.Diagnostics.EventLog.Messages.dll": "8994b1e8a7164c8a27d6995fb79ceffbca01f3c32261486006e21eec2322d41a",
|
||||
"worker/runtimes/win/lib/net9.0/Microsoft.Data.SqlClient.dll": "e863f6e12724f8445df1f5274e923f8ca60d76384a9e62bd07b1f6c2033a3bea",
|
||||
"worker/runtimes/win-x86/native/Microsoft.Data.SqlClient.SNI.dll": "16efa76f220e23166a95873baaed43899191470c13848c944a679ff2bf5ac941",
|
||||
"worker/runtimes/win-x64/native/Microsoft.Data.SqlClient.SNI.dll": "7e37c5bba3da06a955c122e3515b2980e2f1b8732ec0297f0a7e77e79b4de331",
|
||||
"worker/runtimes/unix/lib/net9.0/Microsoft.Data.SqlClient.dll": "bc3c5df6d545fda6491f22bb628d10959e6434d3cf46ac88b3faa4dca422000c",
|
||||
"worker/runtimes/win-arm64/native/Microsoft.Data.SqlClient.SNI.dll": "73b61c3381e32613f59bbe3af7f58871c8cd486e04a9c0e71409f6a1972d6f84"
|
||||
},
|
||||
"application_release_must_remain": "eadda6f6",
|
||||
"installation_performed": false
|
||||
}
|
||||
@ -0,0 +1,13 @@
|
||||
{
|
||||
"status": "passed",
|
||||
"isolated_database": "PlotDirector_Qualification_Transport_20261125",
|
||||
"executed": 2,
|
||||
"baselined": 1,
|
||||
"replay_executed": 0,
|
||||
"failed_transaction_rolled_back": true,
|
||||
"failed_success_history_absent": true,
|
||||
"readback_existing_activation_record": "passed",
|
||||
"existing_retained_history_rows": 320,
|
||||
"no_production_connection": true,
|
||||
"fixture_database_removed": true
|
||||
}
|
||||
244
Docs/Deployment/Phase1-20261125.md
Normal file
@ -0,0 +1,244 @@
|
||||
# Production migration Phase 1 — 25 November 2026
|
||||
|
||||
Status: **Phase 1 qualification passed; ready for separately authorised Phase 2
|
||||
provisioning. No Production deployment authorised or performed.** See the final
|
||||
result and linked evidence below. A draft plan or prototype rehearsal is not
|
||||
release approval.
|
||||
|
||||
## Source and installed Development baseline
|
||||
|
||||
Repository HEAD at discovery was `643f28c4f99c72056b5a66a54398a0c7edd4847b`,
|
||||
an evidence-only descendant of implementation
|
||||
`f3c3683bc24674914b5d52499efa9b8e743615a5`. Current Development DLL and archive
|
||||
`character-overview-f3c3683b-20261123T223506Z` both hash to
|
||||
`0659e7aa4988516e3955ba33b120330cb039cdd154c2413a059fd6cab5195e27`.
|
||||
No newer installed build was found. Historical regression evidence reports 816
|
||||
application checks, authenticated browser acceptance and provenance preservation.
|
||||
|
||||
Implementation is on an isolated worktree/branch so the pre-existing untracked
|
||||
canonical-manuscript assessment and Context workspace audit are preserved. The
|
||||
qualified candidate must include this phase's tooling, migrations 318/319/321/322 and
|
||||
deployment-only application changes, built from its own clean commit.
|
||||
|
||||
## Independently verified web1 inventory
|
||||
|
||||
Strict SSH used the supplied dedicated identity and recorded ED25519 fingerprint.
|
||||
Administrator currently has passwordless administrative sudo. No remote changes
|
||||
were made. OS is Ubuntu 24.04.5 LTS. Both .NET/ASP.NET Core runtimes are 10.0.15;
|
||||
no SDK is listed. Approximately 21 GiB RAM was available, with 4 GiB swap and
|
||||
555 GiB free on the root volume at inspection.
|
||||
|
||||
Native SQL Server reports 17.0.5065.9, Express Edition. It binds loopback 1433;
|
||||
configuration limits memory to 4096 MiB, disables SQL Agent and sets backup directory
|
||||
`/srv/backups/sql`. PlotLine is ONLINE, compatibility 170, SIMPLE recovery, owned by
|
||||
sa; data/log allocations are 200/264 MiB. The backup service's SQL principal has
|
||||
db_backupoperator. Its metadata visibility is limited: a complete live login/user
|
||||
and permissions inventory still requires a SQL security administrator or appropriate
|
||||
VIEW DEFINITION/server-security visibility. Do not infer absence of an application
|
||||
login/user from that restricted view. The recovered backup contains PlotLineApp as
|
||||
an orphaned user on Atlas, as expected for a restore to another server.
|
||||
|
||||
The hourly `sql-backup.timer` invokes a root-owned 0750 script with a root-protected
|
||||
credentials file; it backs up both PlotLine and CatherineLynwood with CHECKSUM to
|
||||
new timestamped 0600 files. It is not changed by the new deployment tooling.
|
||||
Existing backups, including the original recovered media, were not overwritten.
|
||||
|
||||
`catherinelynwood.service`, Nginx, SQL Server and Fail2ban were active. Catherine
|
||||
runs as catherinelynwood from `/srv/catherinelynwood/current` on 127.0.0.1:5002 with
|
||||
its own environment file, enabled virtual host and certificate. Ports 5001/5003
|
||||
were free. UFW allows SSH/HTTP/HTTPS; SQL is not publicly listening. PlotDirector
|
||||
has no enabled virtual host, certificate or loaded application service yet.
|
||||
Fontconfig, FreeType, ICU 74 and libstdc++ are present; final native-library loading
|
||||
on web1 remains a Phase 2 smoke check.
|
||||
|
||||
Existing PlotDirector layout differs from the protected target: root/release
|
||||
directories are administrator-owned; shared uploads and key directories exist;
|
||||
logs are currently top-level; `/etc/plotdirector` is empty. The runtime account
|
||||
exists; deployment/migration accounts do not. The planned helper deliberately
|
||||
refuses this unprovisioned state. No ownership, accounts or services were changed.
|
||||
|
||||
Recovered private archives in `/home/administrator` contain uploads and the old
|
||||
environment file, service definition and two Data Protection key files. The config
|
||||
archive does not include appsettings.json. Shared configuration must be reconciled
|
||||
with the old effective configuration during provisioning. `/srv/backups/{websites,
|
||||
configuration}` existed but contained no files at inspection.
|
||||
|
||||
Atlas's default SSH include `/etc/ssh/ssh_config.d/20-systemd-ssh-proxy.conf` is
|
||||
root-owned mode 0777, causing OpenSSH's ownership/permissions refusal. `-F /dev/null`
|
||||
avoids it. No system-wide SSH configuration was modified.
|
||||
|
||||
## Old Production and recovered baseline
|
||||
|
||||
www remains inactive and unchanged. Installed helper and DLL still match the
|
||||
November archived hashes; release commit is
|
||||
`5d2e080539c10c3a2c6aed5c18c169abc8a55e77`. The installed November helper, not the
|
||||
September README, informed preservation, active-work, backup, failure and SQL rules.
|
||||
|
||||
Original recovered media: `web1:/srv/backups/sql/PlotLine-20261124.bak`, 198261248
|
||||
bytes, SHA-256
|
||||
`6cf9e6d4d340a222a48c43265582e45a0150b132ae6eeb2bb6cd112f97cb743c`.
|
||||
It was read over SSH into mode-0700 private Atlas storage, with matching source and
|
||||
local checksums. It passed VERIFYONLY and actual isolated restores to the existing
|
||||
Atlas SQL Server 2025 container (17.0.4006.2 Developer Edition). Production data was
|
||||
never used as a live migration test target.
|
||||
|
||||
There is no existing migration/release ledger in the restored copy. The original
|
||||
schema has 163 tables and 659 modules. Historical comparison found 642 literal
|
||||
module matches, eight comment-only differences, one migration-160 dynamic patch
|
||||
and one trigger deliberately removed by 125. Eight additional modules are SSMS
|
||||
diagram support, retained without inventing PlotDirector migration identities.
|
||||
The stored active Problem Solver graph exactly matches the archived non-numeric
|
||||
publication script's UTF-16 SHA-256. Historical scripts before 208 are unchanged
|
||||
between 5d2e080 and the selected source baseline.
|
||||
|
||||
[Baseline evidence](ProductionBaseline-20261125.json) distinguishes a verified
|
||||
cumulative final-state baseline from proof that an individual historical script
|
||||
executed. Baseline UTC is the actual verification time. [The explicit ordered
|
||||
plan](ProductionUpgrade-20261125.plan.json) records individual identities/checksums,
|
||||
dependencies, baseline evidence, prerequisites and postconditions.
|
||||
|
||||
Important ordering/classification decisions:
|
||||
|
||||
- 253 → **255 → 254** → 256, as documented in the geography implementation report.
|
||||
The first exploratory numeric rehearsal demonstrated the 254 truncation and a
|
||||
complete rollback of that script/history record. No automatic retry was made.
|
||||
- 301/302/303 are superseded by the standalone complete 304 definition; 302 also
|
||||
contains a known syntax error. Their files are preserved, never rewritten.
|
||||
- 286 refreshes Development reset procedures and is inapplicable to Production.
|
||||
Old reset definitions remain untouched; no reset procedure is executed.
|
||||
- 318 bootstraps history; 319 supplies local SQL health and 322 verifies the actual runtime permissions. Standalone 321 supplies the scoped runtime role, a bounded owner-context restore operation, and effective permission assertions. Isolated prototype 320 is retained but superseded because its DENY CONTROL also denied required EXECUTE/metadata. None changes business rows.
|
||||
- SQL performance/inline-SQL improvements are carried by 283–285, 287–289 and later
|
||||
included migrations. No blanket index maintenance or speculative tuning is added.
|
||||
|
||||
## Architecture and qualification evidence
|
||||
|
||||
See [the operational standard](Production.md) and `Tools/Deployment` for release
|
||||
preparation, Ed25519 authorisation, restricted transfer, root-owned activation,
|
||||
transactional history, versioned installation, atomic switching, health, evidence
|
||||
and rollback. Provisioning examples are prepared but not installed on web1.
|
||||
|
||||
Exploratory fresh-copy upgrades established the migration sequence, exact original
|
||||
business-data preservation and reproducible schema. Those rehearsals are not the
|
||||
final clean-commit qualification. Private data fingerprints cover all original
|
||||
columns, IDs, content, revision/synchronisation metadata and asset references in
|
||||
all 163 tables (139554 rows). New columns are excluded from old-column comparison
|
||||
so defaults cannot hide a change to existing data. No row content is published.
|
||||
|
||||
Actual SQL failure checks verify replay prevention, changed historical checksum,
|
||||
incorrect baseline, missing prerequisite and competing-session lock rejection.
|
||||
Filesystem/service-boundary tests cover package/signature/path/link integrity,
|
||||
space, backup verification, migration failure, installation permissions, HTTP
|
||||
failure and failed history recording. Service operations in these failure tests
|
||||
are mocked; they do not qualify web1's uninstalled service or Nginx configuration.
|
||||
|
||||
The final test-only host requires an isolated SQL database/login, a private request
|
||||
token and loopback binding; it verifies the actual application DLL hash. All app
|
||||
background services and external HTTP clients are disabled. Real SMTP, Stripe and
|
||||
OpenAI credentials are absent. Clone-only test authentication is in the test tool,
|
||||
not the deployed web application. Read-only clone requests supplement existing
|
||||
authentication/browser regression evidence; they are not a claim of physical Word
|
||||
or external-payment/email acceptance.
|
||||
|
||||
Application changes are limited to stable configurable Data Protection identity,
|
||||
trusted-loopback forwarded headers and the loopback deployment health endpoint.
|
||||
The health endpoint returns only binary/database identity and fails closed without
|
||||
leaking connection/SQL diagnostics. Existing Writer/Context/Companion functionality
|
||||
is retained. Synthetic key-ring tests establish the content-root discriminator and
|
||||
cross-root explicit identity behaviour; no real historical cookie is claimed valid.
|
||||
|
||||
## Remaining gates before Production
|
||||
|
||||
The final results below establish a clean-commit signed candidate, two complete
|
||||
fresh-copy upgrades and matching regression/HTTP/failure evidence. Phase 2 must
|
||||
still provision accounts, trust, ownership,
|
||||
SQL permissions/mappings, shared data/secrets, service and independent TLS/vhost,
|
||||
verifies the live starting fingerprint, and obtains explicit activation authority.
|
||||
|
||||
Actual web1 login permissions, its initial service, certificate, public HTTPS,
|
||||
Catherine coexistence after later configuration changes, physical Windows Word
|
||||
behaviour and real-cookie continuity remain deployment/cutover checks. Production
|
||||
configuration, databases, files, services, firewall and DNS remain unchanged.
|
||||
|
||||
Development adoption adds the same history mechanism after a verified backup and an isolated clone rehearsal. Historical entries are final-state baselines, not invented original executions. The installed f3c3683b application is preserved; successful historical activation rows are not fabricated. Runtime permission deprivileging passed the actual export/restore round-trip (rolled back) and was adopted atomically. Development remains active at PID 7065 with its original f3c3683b DLL; local/public GETs returned 200, and runtime SQL health reports ledger-ready/restricted. No historical successful-activation row was fabricated.
|
||||
|
||||
|
||||
## Final Phase 1 result
|
||||
|
||||
**READY for separately authorised Phase 2 provisioning; no Production deployment
|
||||
has been performed.** The qualified source is clean commit
|
||||
`190c074d5202fdf8a94b3b7a70c94857f848aafd`, application version `1.0.0`.
|
||||
It descends from the current Development source/evidence baseline and contains this
|
||||
phase's deployment architecture. Subsequent report/evidence commits do not change
|
||||
the qualified application. Development still runs the original f3c3683b binary.
|
||||
|
||||
[Machine-readable evidence](Evidence/Phase1-20261125/qualification.json),
|
||||
[two fresh upgrades](Evidence/Phase1-20261125/database-qualification.json) and
|
||||
[package identity](Evidence/Phase1-20261125/package-identity.json) bind the source,
|
||||
application DLL, original backup and exact starting/resulting schema. The immutable
|
||||
signed candidate is retained privately on Atlas at
|
||||
`/home/nick/plotdirector-phase1-20261125/plotdirector-production-190c074d-20261125/`.
|
||||
Its signing key is outside Git in protected local storage. This is a Phase 1
|
||||
candidate authority, not an installed or pre-approved Production trust anchor.
|
||||
Verify the public-key fingerprint independently before any Phase 2 trust decision.
|
||||
|
||||
Final qualification passed:
|
||||
|
||||
- 817 application checks, 332 native companion checks and 33 deployment-tool tests.
|
||||
- Two independent original-backup restores and full manifest upgrades: 210 verified
|
||||
final-state baseline entries plus 110 executed migrations, 320 total. Five scripts
|
||||
are explicitly omitted; no directory-wide replay or numeric high-water assumption.
|
||||
- All 163 original tables / 139554 rows preserved across every original column;
|
||||
resulting schema identical on both runs. CHECKDB and referential checks passed.
|
||||
[Post-functional fingerprints](Evidence/Phase1-20261125/preservation.json) also
|
||||
match after browser/export/restore testing.
|
||||
- 80 real read requests across ten recovered books returned 200; all 30 recovered
|
||||
upload files served with identical bytes. Writer/Context tabs, independent windows,
|
||||
Hold/Follow and mobile overflow checks passed with no browser page errors.
|
||||
- Actual runtime export/encoding/SQL restore passed and rolled back, under the
|
||||
restricted role. The recovered account first correctly hit expired-entitlement
|
||||
error 51046. A temporary clone-only entitlement override enabled this test and
|
||||
was removed in finally; original subscription rows were never changed. The guard
|
||||
was neither disabled nor relaxed. See [restore evidence](Evidence/Phase1-20261125/runtime-restore.json).
|
||||
- Completed-manifest replay left all 320 history records unchanged; modified
|
||||
historical checksum, wrong baseline, missing prerequisite and competing SQL lock
|
||||
were rejected. A read-only SQL login failed backup with SQL_262 and no success row.
|
||||
- [Actual Test success history](Evidence/Phase1-20261125/release-history.json) recorded
|
||||
healthy activation, code-only repeated activation and Rollback with predecessor
|
||||
links; duplicate deployment ID was rejected. These use identical qualified
|
||||
binaries. Filesystem/service switching and failure handling were tested with mocks;
|
||||
web1 service, Nginx and cross-version binary rollback remain Phase 2 acceptance.
|
||||
|
||||
No unresolved migration classification remains in the selected manifest. The
|
||||
repository preparation plan intentionally remains qualification-pending: release
|
||||
preparation must explicitly supply matching passed evidence, rather than treating
|
||||
an editable plan as authority. The signed candidate carries the passed evidence.
|
||||
Do not edit its contents or reuse its release ID for different bytes.
|
||||
|
||||
Remaining prerequisites are operational: full SQL security visibility/SID mapping,
|
||||
reviewed restricted accounts and root-owned helper/trust installation, permission
|
||||
verification, complete effective configuration (the recovered archive lacks
|
||||
appsettings.json), persistent assets/keys and stable Data Protection identity,
|
||||
independent service/vhost/certificate and live starting-schema confirmation. Exact
|
||||
ownership, role and verification instructions are in [the Phase 2 procedure](Production.md#phase-2-initial-provisioning-administrator-only-not-executed-in-phase-1).
|
||||
The migration SQL account requires PlotLine-only db_owner plus CREATE ANY DATABASE
|
||||
for VERIFYONLY; this sensitive server permission is explicit, not sysadmin or
|
||||
permission in CatherineLynwood. `/srv` on Atlas has only about 1.8 GiB free; packages
|
||||
and recovered data were kept on `/home/nick` and `/sql` instead.
|
||||
|
||||
Recovered secret **names and paths**, never values: the old effective configuration
|
||||
is `/var/www/plotdirector/appsettings.json` plus
|
||||
`/etc/plotdirector/plotdirector.env`; configuration groups include
|
||||
`ConnectionStrings:DefaultConnection`, `EmailSettings`, `Stripe`, `OpenAI`,
|
||||
`StoryIntelligence`, `Storage`, `Site`, `Admin`, `Logging` and feature/worker flags.
|
||||
External dependencies include SQL Server, SMTP, Stripe, OpenAI, geocoding/map/image
|
||||
services and Word/Windows Companion clients; qualification disabled external
|
||||
HTTP/email/payment/AI/background activity. Production shared configuration belongs
|
||||
under `/etc/plotdirector`; uploads, keys and logs belong under `/srv/plotdirector/shared`.
|
||||
Historical keys are not proof of cookie compatibility.
|
||||
|
||||
Final read-only checks found Catherine active at its original PID 13134, Nginx and
|
||||
SQL active, no PlotDirector current link or installed unit on web1, www inactive at
|
||||
PID 0, and Development still active at original PID 7065. No Production changes,
|
||||
recovery-backup overwrites, DNS changes or temporary administrator-key removals
|
||||
were performed. Temporary local qualification hosts/logins are stopped/disabled
|
||||
at completion; private databases, evidence and all recovery backups are retained.
|
||||
170
Docs/Deployment/Phase2-20261125.md
Normal file
@ -0,0 +1,170 @@
|
||||
# PlotDirector Production deployment — 25 November 2026
|
||||
|
||||
**COMPLETE: https://plotdirector.com/ is live on web1 over valid HTTPS.**
|
||||
Public availability is not waiting for DNS or another deployment phase. Owner
|
||||
manual authenticated and physical Word/Windows Companion acceptance remains.
|
||||
Chargeable processing, outbound application traffic and queued email remain held
|
||||
pending separate owner authorisation.
|
||||
|
||||
## Active installation
|
||||
|
||||
- Host web1, `85.190.124.132`; SQL PlotLine at IPv4 loopback 1433, unchanged.
|
||||
- Release `plotdirector-production-190c074d-20261125`, application `1.0.0`, source
|
||||
`190c074d5202fdf8a94b3b7a70c94857f848aafd`.
|
||||
- Qualified DLL SHA-256:
|
||||
`70c516e0a112c4e61813e563405c979ad35069539ddc440bddbd6dac0a4379d1`.
|
||||
- Package SHA-256:
|
||||
`0ec47c0c0e5ba17c0df34ce27105e183820947fd91bc466d276d305bf4cd10b9`.
|
||||
- Manifest SHA-256:
|
||||
`58bac17161e1ea280617c15fba61ef26ac976417217fbb77accbb5ab4ababe13`.
|
||||
- `/srv/plotdirector/current` points to
|
||||
`/srv/plotdirector/releases/plotdirector-production-190c074d-20261125/app`.
|
||||
- `plotdirector.service` is enabled and active, PID 23355 at acceptance, runtime
|
||||
identity plotdirector, Kestrel only `127.0.0.1:5001`.
|
||||
- Successful deployment `20261125T160148Z-c2e69a3902f2`; one successful Deploy record
|
||||
in ApplicationReleaseHistory, recorded after application/database health passed.
|
||||
- The exact existing signed package was transferred through restricted SSH. The
|
||||
installed public trust anchor matches the retained Atlas signing authority and
|
||||
Phase 1 fingerprint. No application or SQL script was rebuilt or modified.
|
||||
|
||||
## Database and recovery
|
||||
|
||||
Live starting schema and all original fingerprints matched Phase 1 before migration.
|
||||
The exact ordered manifest produced 320 history entries: **210 Baselined and 110
|
||||
Executed**, with five explicit omissions. Historical timestamps were not invented.
|
||||
Migrations ran from 15:58:20 to 15:58:34 UTC (14 seconds wall clock; summed individual
|
||||
execution durations 5909 ms). Retries skipped the completed migrations.
|
||||
|
||||
Final schema is
|
||||
`b17db2bbdc583cb7bd3c856fb4db5cf6fc470e87fbaee5dc1dbbe99b6878beb7`.
|
||||
CHECKDB and referential checks passed. Every original column across **163 tables /
|
||||
139554 rows** remains fingerprint-identical, including content, identities, sync
|
||||
metadata, accounts and asset references. No unexplained business-data changes
|
||||
were accepted. New deployment histories are expected additions.
|
||||
|
||||
Before the migrations the helper created and CHECKSUM/VERIFYONLY-verified:
|
||||
`/srv/backups/sql/PlotLine-predeploy-20261125T155815Z-7427734eba47.bak`.
|
||||
The successful retry independently created and verified:
|
||||
`/srv/backups/sql/PlotLine-predeploy-20261125T160148Z-c2e69a3902f2.bak`.
|
||||
The intermediate retry backup is also retained. The original recovery backup
|
||||
`/srv/backups/sql/PlotLine-20261124.bak` still matches its approved checksum.
|
||||
No recovery media were overwritten/deleted and no Production restore was performed.
|
||||
The existing hourly SQL backup timer remains active; it also retains responsibility
|
||||
for Catherine's existing backups without configuration changes.
|
||||
|
||||
## Security and persistent configuration
|
||||
|
||||
The restricted transfer account plotdirector-deploy cannot obtain a shell/SFTP,
|
||||
forward TCP, run general sudo, write helper/config/releases or read migration and
|
||||
Catherine credentials. These were verified after authentication. Root owns the
|
||||
trusted helper, worker, public key, target configuration and installed release.
|
||||
Release directories are 0750; release files are 0440.
|
||||
|
||||
PlotLineApp was reconciled with the restored database user and receives only
|
||||
PlotDirectorRuntime, with legacy db_owner removed. Actual runtime checks confirm
|
||||
no sysadmin/db_owner, unrestricted DDL/backup or deployment-history mutation, and
|
||||
no connection to CatherineLynwood. PlotDirectorMigration has PlotLine-only db_owner
|
||||
and direct CREATE ANY DATABASE for VERIFYONLY; neither sysadmin nor dbcreator nor
|
||||
Catherine access. Credentials are separate and protected. TRUSTWORTHY and
|
||||
cross-database chaining remain disabled; runtime owns no database/schema.
|
||||
|
||||
The temporary root-only SQL administrator credential was used only for SQL
|
||||
security setup/verification and removed. sa's password and SQL networking were not
|
||||
changed or restarted. Only Atlas's temporary administrator SSH key was removed;
|
||||
both other administration keys remain. New Atlas administrator SSH fails, while
|
||||
restricted deployment validation succeeds. The held administrative session was closed.
|
||||
|
||||
All 30 uploads and both recovered Data Protection XML files were installed under
|
||||
`/srv/plotdirector/shared`; original archives are retained. Upload hashes match
|
||||
both on disk and when served over public HTTPS. Both original key files remain
|
||||
byte-identical. Stable DP application identity is `/var/www/plotdirector/`, with
|
||||
shared key path configured; historical cookie/encrypted-payload compatibility is
|
||||
not claimed as a tested result. Reauthentication is expected where necessary.
|
||||
|
||||
`/etc/plotdirector/plotdirector.env` merges the read-only old appsettings.json and
|
||||
recovered environment file, replacing obsolete database/storage settings. It
|
||||
contains new runtime credentials, persistent paths, public URL, paragraph-manuscript
|
||||
flag enabled, allowed hosts and recovered Site/Admin/SMTP/Stripe/OpenAI/logging
|
||||
settings. No secret values appear in this report or Git. Actual external delivery,
|
||||
payments and AI calls were not used as acceptance tests.
|
||||
|
||||
## HTTPS and focused public acceptance
|
||||
|
||||
A new Let's Encrypt certificate covers **plotdirector.com and www.plotdirector.com**,
|
||||
expires **23 February 2027, 14:51:34 UTC**, and passed normal public chain/hostname
|
||||
validation. Certbot used webroot-only issuance; no historical certificate was
|
||||
transferred. HTTP redirects to HTTPS while preserving ACME challenge access; www
|
||||
redirects to apex. certbot.timer is active; the targeted PlotDirector renewal dry
|
||||
run and lineage-scoped validated Nginx reload hook passed. Catherine's certificate
|
||||
was not renewed or replaced.
|
||||
|
||||
Public homepage, login and Word host/static resources return 200. Writer/Context,
|
||||
Companion APIs and SignalR negotiation correctly reject unauthenticated access.
|
||||
An unauthenticated WebSocket upgrade is rejected by authentication, as expected;
|
||||
**authenticated 101/SignalR operation remains a manual acceptance item**. Internal
|
||||
health is 404 publicly, including case/encoded variants, and healthy locally with
|
||||
correct Production/source/version/database identity. Nginx supports HTTP/1.1
|
||||
upgrade headers and required upload limits. Native Skia ABI/version/bitmap
|
||||
construction and Fontconfig initialisation passed; an egress BPF filter is attached.
|
||||
|
||||
Catherine remains active at its original PID 13134 and returns public HTTPS 200.
|
||||
Its original vhost/service/certificate checksums are unchanged. www remains
|
||||
inactive, PID 0; installed DLL/helper hashes match the historical release. No DNS,
|
||||
Catherine, firewall or SQL network changes were made. Port 5003 remains reserved.
|
||||
|
||||
## Initial worker holds and owner action
|
||||
|
||||
Current settings: StoryIntelligence workers=false; illustration generation=false;
|
||||
WritingSolver indexing=false; Geography=false. The service's acceptance drop-in
|
||||
blocks egress except localhost. A fixed root-owned pre-start permission fence
|
||||
prevents email queue claims/reset, accepted-manuscript baseline discovery and
|
||||
writing/work pruning. Those services are always registered in this qualified
|
||||
build, so configuration flags alone cannot suspend them. Internal presence,
|
||||
notifications and in-memory capture expiry remain available for Companion operation.
|
||||
No payment, subscription mutation or live API/email acceptance was performed.
|
||||
|
||||
Recorded intended normal settings, **not enabled**: StoryIntelligence=true and
|
||||
illustration generation=true (recovered settings), WritingSolver indexing=true
|
||||
(qualified default), Geography=false until a provider is explicitly reviewed.
|
||||
Email and retention resume only with owner authorisation, queue review, removal
|
||||
of the pre-start fence and the corresponding five user-level EXECUTE denials.
|
||||
Egress must be deliberately reviewed before restoring SMTP/Stripe/AI access.
|
||||
See the operational standard for exact held procedure names and paths.
|
||||
|
||||
The configured owner/admin account is email-confirmed and unlocked. Its stored
|
||||
subscription is active, non-trial, with a ten-book entitlement and stored period
|
||||
end **8 December 2026, 18:18:47 UTC**. This is a database finding, not a Stripe API
|
||||
verification. Other historical accounts include expired entitlements; the Phase 1
|
||||
restore fixture selected a different account. No subscription records were changed.
|
||||
Password-reset/notification emails will remain queued while the email hold is in
|
||||
place. Existing-password authentication and authenticated Writer/Context, Word,
|
||||
Companion, WebSocket and image workflows require owner manual testing.
|
||||
|
||||
## Failures, timing and handover
|
||||
|
||||
The first activation migrated successfully but failed startup because umask 077
|
||||
masked requested release-directory 0750 to 0700. A second attempt, before recovery
|
||||
completed, failed the helper's inactive-service check against systemd's failed
|
||||
state. Neither attempt received successful activation history. Both evidence and
|
||||
all backups were retained. The failed installation/current-link evidence was
|
||||
quarantined under `/srv/plotdirector/failed-attempts/20261125T155815Z-7427734eba47`.
|
||||
The old helper was backed up. A narrow two-line installer correction explicitly
|
||||
chmods directories to the already documented 0750; a focused real-filesystem umask
|
||||
test passed. systemd's stopped/failed state was reset, and the unchanged signed
|
||||
package was activated again through the helper. No validation was bypassed,
|
||||
application/SQL changed, migration replayed or database rolled back.
|
||||
|
||||
The root-owned initial-acceptance permission fence/egress profile and ACME/internal
|
||||
health Nginx rules are checked into provisioning templates for maintainability.
|
||||
No full Phase 1 regression/restore qualification was repeated.
|
||||
|
||||
Tracked resumed operations: **15:45:06–16:04:33 UTC (~19m27s)**, including provisioning
|
||||
and WAN transfer. Public availability began **16:03:22 UTC**. Initial activation
|
||||
through successful recovery took **3m55s**, inside the 15-minute target; the final
|
||||
successful attempt took **22.5 seconds**. The earlier blocked preflight is retained
|
||||
as historical evidence. No further DNS/cutover step is required.
|
||||
|
||||
Sanitized evidence is in [the Phase 2 evidence directory](Evidence/Phase2-20261125/operations-handover.json).
|
||||
Private attempt logs and recovery evidence remain root-protected on web1. For
|
||||
later work: owner manual acceptance/worker decisions, periodic restore testing,
|
||||
approved signing-key custody and retention review. These do not defer public go-live.
|
||||
460
Docs/Deployment/Production.md
Normal file
@ -0,0 +1,460 @@
|
||||
# PlotDirector production deployment standard
|
||||
|
||||
This procedure separates Atlas preparation, immutable transfer and restricted
|
||||
activation. Production is live on web1 following the authorised [Phase 2 deployment](Phase2-20261125.md).
|
||||
[Phase 1 qualification](Phase1-20261125.md) remains historical release evidence;
|
||||
future changes still require environment-specific authorisation and qualification.
|
||||
|
||||
Latest routine release: `ff6369e9`, version `1.0.0`; see the [measured deployment receipt](Evidence/Routine-20261125-ff6369e9/pipeline-receipt.json) and [acceptance](Evidence/Routine-20261125-ff6369e9/acceptance.json). Manuscript import theme corrections only; no SQL or Production infrastructure changes. Previous release: [9b1770d9](Routine-20261125-9b1770d9.md).
|
||||
|
||||
**Tooling installed:** compressed transport, receipts and timing instrumentation are
|
||||
installed and non-activating verified on web1; see [qualification and installation](Transport-20261125.md).
|
||||
Use default Zstandard transport and the measured `deploy.py` workflow for future releases.
|
||||
Legacy raw signed packages remain supported for recovery.
|
||||
|
||||
## Trust and environment boundaries
|
||||
|
||||
- Build only on Atlas, from a clean, committed worktree. Keep source, SDKs and
|
||||
development tooling off web1. Use framework-dependent .NET 10 releases.
|
||||
- `administrator` provisions the server; `plotdirector-deploy` transfers approved
|
||||
releases and invokes one fixed activation command; `plotdirector` runs the app.
|
||||
- A separate `plotdirector-migrate` system identity reads the migration connection
|
||||
configuration. The runtime and transfer accounts must not read it.
|
||||
- The root-owned helper, Python modules, database-worker binaries/dependencies,
|
||||
target configuration and release-verification public key are outside releases.
|
||||
Neither runtime nor transfer identities may write any ancestor of these files.
|
||||
- Release signing is independent of deployment SSH. Keep the signing private key
|
||||
on Atlas under an approved secret-management process, mode 0600 inside a 0700
|
||||
directory. Do not place it on web1 or share it with the transfer account.
|
||||
- The manifest cannot select shell hooks, executables, service names, destinations
|
||||
or health URLs. Target paths/service/endpoint come from protected configuration.
|
||||
- Administrator access in this phase is temporary. Remove the specific temporary
|
||||
authorised key only after restricted deployment access has passed verification.
|
||||
|
||||
Production: `web1`, `85.190.124.132`, SQL `PlotLine`, Kestrel loopback 5001.
|
||||
Catherine Lynwood remains on 5002; 5003 remains reserved. No default Nginx site,
|
||||
Catherine service/configuration, SQL database or firewall change is part of a
|
||||
PlotDirector release.
|
||||
|
||||
Atlas SSH must use `-F /dev/null -o IdentitiesOnly=yes -o HostKeyAlgorithms=ssh-ed25519
|
||||
-o StrictHostKeyChecking=yes -o UpdateHostKeys=no` with the dedicated identity.
|
||||
Verified host fingerprint: `SHA256:4X54DW85/3J/iGU7ECfRkbMn0n13gVPbpRnvtcZfn/0`.
|
||||
The bypass is required because Atlas's system SSH include is mode 0777. Repair of
|
||||
that system-wide configuration is separate work, not part of this migration.
|
||||
|
||||
## Release preparation and approval
|
||||
|
||||
Tool location: `Tools/Deployment`. Publish the database worker separately during
|
||||
initial provisioning; the privileged helper never executes package binaries.
|
||||
|
||||
1. Select a full source SHA and create a clean worktree. Preserve unrelated work.
|
||||
2. Review the database state and explicit ordered plan. Do not infer history from
|
||||
a numeric maximum or replay the SQL directory. Retain script hashes forever.
|
||||
3. Restore the recovered backup into uniquely named isolated SQL databases.
|
||||
Qualify the complete plan twice from fresh copies. Keep original backups.
|
||||
4. Verify business fingerprints, integrity, SQL contracts, real app startup and
|
||||
feature evidence. Disable all background workers and substitute credentials
|
||||
before starting a clone application. Never load a production connection string.
|
||||
5. Save a sanitised evidence directory and a plan with qualification status passed.
|
||||
It must identify the actual source/build hashes and the two fresh-copy results.
|
||||
6. Prepare and sign on Atlas:
|
||||
|
||||
```bash
|
||||
python3 Tools/Deployment/release.py prepare \
|
||||
--source /absolute/clean/worktree \
|
||||
--plan /absolute/reviewed-plan.json \
|
||||
--sql /absolute/reviewed-sql-input \
|
||||
--evidence /absolute/sanitised-evidence \
|
||||
--output /absolute/new-release-bundle \
|
||||
--release-id FULLY-QUALIFIED-UNIQUE-ID \
|
||||
--signing-key /absolute/private/release-signing.pem
|
||||
python3 Tools/Deployment/release.py verify /absolute/new-release-bundle \
|
||||
--public-key /absolute/trusted-release-signing-public.pem
|
||||
```
|
||||
|
||||
`authorization.json` binds the source SHA, release ID, complete uncompressed tar
|
||||
SHA-256 and manifest SHA-256. Its Ed25519 signature is verified against the
|
||||
administrator-installed trust anchor. The manifest indexes every application,
|
||||
SQL and sanitised evidence file. The application checksum covers its canonical
|
||||
file index. Package version must match `PlotLine.deps.json`.
|
||||
|
||||
Preparation excludes appsettings, environment files, persistent directories and
|
||||
local tools configuration. Secrets must be provisioned separately. Evidence must
|
||||
never contain recovered rows, connection strings, key files or diagnostic dumps.
|
||||
Private qualification artifacts stay outside Git, under restricted Atlas storage.
|
||||
|
||||
## Migration and release history
|
||||
|
||||
Migration 318 introduces `dbo.DatabaseMigrationHistory` and
|
||||
`dbo.ApplicationReleaseHistory`. Migration 319 adds the local SQL health probe; 322 makes the actual runtime identity/permissions a health gate. Standalone migration 321 defines the runtime permission contract; isolated predecessor 320 is superseded and is not deployed to a new environment. There is no administration UI.
|
||||
|
||||
- Identity is a unique script identity, including historical non-numeric scripts.
|
||||
Filenames, SHA-256, current recorded UTC, deployment ID and execution duration
|
||||
are stored. `Baselined` rows contain an evidence reference and no duration.
|
||||
Baseline time means verification/recording time, never an invented execution time.
|
||||
- A historical final-state baseline does not assert that every original script
|
||||
executed. Superseded effects must be explained in its evidence. Unknown effects
|
||||
remain unresolved and block approval; do not label them applied.
|
||||
- A checksum mismatch against history blocks before backup or shutdown. Recorded
|
||||
scripts are skipped; dependencies must be explicit and ordered. An unknown
|
||||
recorded identity blocks a plan that does not account for it.
|
||||
- One SQL session holds `sp_getapplock` through migration, startup, health and
|
||||
release recording. A protected filesystem lock additionally prevents concurrent
|
||||
activation on the same host. A disconnected SQL session releases its lock.
|
||||
- Each transactional script, its postconditions and its successful history insert
|
||||
commit together. Error rolls back the current script and its history row. Earlier
|
||||
committed scripts remain. No automatic retry or database rollback is attempted.
|
||||
- This version refuses non-transactional scripts. Such a change requires an
|
||||
explicitly reviewed manual execution/recovery procedure before release approval;
|
||||
it must not be disguised as transactional or silently retried.
|
||||
- A completed plan is accepted again only with the exact final schema and all
|
||||
matching history. It does not reapply completed SQL. Code-only releases retain
|
||||
the full known history and have no unrecorded execute steps; they still receive
|
||||
an activation history row after health checks.
|
||||
- Successful activation history contains a new deployment ID, release/version,
|
||||
source SHA, package hash, manifest hash, server UTC and evidence reference.
|
||||
`ActivationKind` distinguishes Deploy/Rollback and links the preceding successful
|
||||
deployment. Failure attempts belong in protected JSONL evidence, never successful
|
||||
activation history.
|
||||
|
||||
`ApplicationReleaseHistory` is an append-only account of successful activations,
|
||||
not a promise that its last row is currently running. Determine current state by
|
||||
checking the service, resolved `current` symlink, installed hashes, root-owned
|
||||
`active-deployment.json`, SQL history and attempt evidence together. A crash between
|
||||
SQL recording and the filesystem marker requires operator reconciliation.
|
||||
|
||||
The same manifest, history schema, database worker and qualification rules apply
|
||||
to Development and Test. Development has adopted 318/319/321/322 and the restricted runtime role, with its existing application process preserved. A different environment gets its own explicit schema
|
||||
baseline, SQL identity and protected target configuration; never copy a production
|
||||
connection string. Adoption in Development must back up/verify its own database,
|
||||
check active work and baseline its actual current state. Do not run the legacy
|
||||
manual SQL procedure alongside this ledger after adoption.
|
||||
|
||||
## Activation and failure behaviour
|
||||
|
||||
`transfer.py` sends only the three immutable bundle files over strict SSH. The
|
||||
forced SSH dispatcher supports upload, validate, activate, rollback and sanitized receipt retrieval with one
|
||||
validated release ID; it rejects shells, SFTP and other commands. Transfer alone
|
||||
does not activate anything. An incomplete upload requires administrator review;
|
||||
it is not overwritten automatically.
|
||||
|
||||
After independent Phase 2 authorisation:
|
||||
|
||||
```bash
|
||||
python3 Tools/Deployment/transfer.py /absolute/bundle \
|
||||
--identity /home/nick/.ssh/plotdirector-production
|
||||
```
|
||||
|
||||
Use the verified SSH options above with `plotdirector-deploy@85.190.124.132` and
|
||||
remote command `validate RELEASE-ID`, then `activate RELEASE-ID`.
|
||||
|
||||
Validation takes private snapshots, checks signature/archive/index/version,
|
||||
target identity, exact schema, history, prerequisites and active work. It creates
|
||||
protected validation evidence and takes locks; it does not back up, migrate or
|
||||
operate the service. Archive members must be regular files, bounded in size/count,
|
||||
with no traversal, duplicate paths, links, special files or extra content.
|
||||
|
||||
Activation reserves space, creates a unique COPY_ONLY/CHECKSUM backup, executes
|
||||
RESTORE VERIFYONLY before stopping the service, rechecks active work, stops and
|
||||
requires inactive state, then runs SQL. It reconciles the fixed runtime permission policy (not a manifest hook) and installs a new root-owned release and
|
||||
atomically replaces `current`. It starts the service and checks local root/login
|
||||
HTTP, binary identity and database postconditions before recording success.
|
||||
|
||||
Backups are not overwritten. VERIFYONLY is useful but is not a restore rehearsal;
|
||||
the isolated restore qualifications provide separate evidence. The existing hourly
|
||||
backup timer continues independently and is not a substitute for pre-deploy backup.
|
||||
|
||||
Any migration/install/startup/health/history error leaves or requests the service
|
||||
stopped, retains artifacts and records the failure phase. The symlink may point at
|
||||
a failed candidate after activation begins; never assume it still identifies the
|
||||
last successful release. A root process kill or machine failure can interrupt this
|
||||
sequence: inspect evidence and ledger before any recovery action.
|
||||
|
||||
For application rollback, qualify old binaries against the **current** database,
|
||||
issue a new signed release ID with no outstanding SQL, and request `rollback ID`.
|
||||
The helper refuses rollback if any migration is unrecorded. Health must pass before
|
||||
a new Rollback history row is inserted. A SQL rollback is a separately authorised
|
||||
restore/recovery operation; never replace a database automatically.
|
||||
|
||||
## Phase 2 initial provisioning (administrator only; completed 25 November 2026)
|
||||
|
||||
Review existing files and take uniquely named configuration backups first. Keep
|
||||
Catherine's service, virtual host, certificate, data and database unchanged.
|
||||
|
||||
1. Verify OS/runtime/native dependencies, trusted SSH fingerprint, free ports and
|
||||
backup health again. Confirm web1's live schema matches the qualified starting
|
||||
fingerprint; additional changes require fresh qualification.
|
||||
2. Provision `plotdirector-deploy` with `/bin/sh` and a locked password; provision
|
||||
`plotdirector-migrate` as a system account with `/usr/sbin/nologin`. Reuse the
|
||||
existing `plotdirector` runtime account. Do not grant either new account access
|
||||
to Catherine's groups or add them to sudo/adm/docker groups.
|
||||
3. Create protected directories with these exact ownership/mode requirements:
|
||||
|
||||
| Path | Owner | Mode |
|
||||
| --- | --- | --- |
|
||||
| `/srv/plotdirector` | root:root | 0755 |
|
||||
| `/srv/plotdirector/releases` | root:root | 0755 |
|
||||
| `/srv/plotdirector/incoming` | root:plotdirector-deploy | 0730 |
|
||||
| `/srv/plotdirector/deployment-evidence` | root:root | 0700 |
|
||||
| `/srv/plotdirector/deployment.lock` (empty regular file) | root:root | 0600 |
|
||||
| `/srv/plotdirector/incoming-upload.lock` (empty regular file) | root:plotdirector-deploy | 0660 |
|
||||
| `/srv/plotdirector/shared/{uploads,logs}` | plotdirector:plotdirector | 0750 |
|
||||
| `/srv/plotdirector/shared/.aspnet/DataProtection-Keys` | plotdirector:plotdirector | 0700 |
|
||||
| `/etc/plotdirector` | root:plotdirector | 0750 |
|
||||
| `/etc/plotdirector/plotdirector.env` | root:plotdirector | 0640 |
|
||||
| `/etc/plotdirector-deployment` | root:plotdirector-migrate | 0750 |
|
||||
| `/etc/plotdirector-deployment/database.json` | root:plotdirector-migrate | 0640 |
|
||||
| target JSON and public verification key | root:root | 0600 / 0644 |
|
||||
|
||||
Do not recursively change existing shared data or `/srv/backups`. Preserve the
|
||||
recovered archives. Migrate any existing top-level logs into shared storage
|
||||
without replacing existing files. No deployed release directory may be writable
|
||||
by runtime or transfer identities. New release files are root:plotdirector 0440,
|
||||
directories 0750. Application files execute only through the unprivileged service.
|
||||
4. Publish `DatabaseWorker.csproj` on Atlas. Administrator installs the entire
|
||||
framework-dependent output under `/usr/local/lib/plotdirector-deployment/database`
|
||||
root:root, directories 0755/files 0644. Install `activate.py`, `release.py` and
|
||||
`ssh_dispatch.py` in the parent root-owned directory (0755; dispatcher executable).
|
||||
Install `deploy-plotdirector` as `/usr/local/sbin/deploy-plotdirector`, root 0755.
|
||||
Review every installed file/hash; no source repository or SDK is needed on web1.
|
||||
5. Copy reviewed `provision/target.example.json` to the target JSON location.
|
||||
Provision the independent approved signing public key. Create `database.json`
|
||||
privately with `database`, `connection`, `expected_host` and `expected_server`
|
||||
properties, using database PlotLine, host web1, server `127.0.0.1,1433` and a
|
||||
dedicated migration SQL login targeting local native SQL Server.
|
||||
Use a secure prompt/secret manager; never put its connection string in commands,
|
||||
reports, Git or a package.
|
||||
6. A SQL administrator must create/reconcile server logins and restored user SIDs.
|
||||
Runtime login: PlotLine-only user in `PlotDirectorRuntime`, no server role or db_owner. The role permits business DML and procedure execution; explicit denials protect migration/release history and the permission-policy procedure. The login receives no direct table/schema DDL or database-backup permission. The reviewed project-restore procedure alone uses owner context for its bounded restore operations, with TRUSTWORTHY and database/server cross-database chaining disabled. Validate these flags before migration. The history role is verified using a non-authenticatable database probe principal.
|
||||
After 321, map the runtime user to `PlotDirectorRuntime` and remove legacy db_owner membership; verify database ownership/server roles separately. Do not reduce privileges on an existing environment until the actual export/restore path has passed in an isolated clone.
|
||||
Migration login: db_owner **only in PlotLine** for reviewed DDL/backup work;
|
||||
direct CREATE ANY DATABASE permission is needed by SQL Server for VERIFYONLY ([Microsoft permission reference](https://learn.microsoft.com/en-us/sql/t-sql/statements/restore-statements-verifyonly-transact-sql?view=sql-server-ver17)).
|
||||
Do not use dbcreator (which grants broader powers), sysadmin, the hourly backup
|
||||
credential or the application credential for migration. It must have no user or
|
||||
elevated permissions in CatherineLynwood. Review existing PUBLIC/cross-database
|
||||
permissions. A future certificate-signed fixed verification procedure can narrow
|
||||
the server permission further; that is not silently assumed installed.
|
||||
7. Recover uploads and keys separately, validating archive paths/link types before
|
||||
copying, preserving originals and checking file hashes. Configure absolute
|
||||
`Storage__UploadsRoot` and `DataProtection__KeysPath` to shared directories.
|
||||
Explicitly provision `Features__ParagraphManuscripts=true`, the production `Site__PublicBaseUrl`, the intended worker/indexing flags and allowed-host/admin settings; these must not silently inherit the historical release defaults. Provision SMTP/Stripe/OpenAI settings and other qualified-build settings outside
|
||||
releases. The recovered configuration archive does not contain appsettings.json;
|
||||
reconcile the old effective settings explicitly, including Site/Admin and feature
|
||||
flags, rather than assuming environment-only recovery is complete.
|
||||
8. Data Protection's default application identity depends on the content root.
|
||||
A versioned release changes that root unless pinned. The application now supports
|
||||
`DataProtection__ApplicationName`; choose an explicitly reviewed stable identity
|
||||
and keep it unchanged across releases. Historical root was `/var/www/plotdirector`.
|
||||
Test old key purposes/discriminator before claiming cookie or encrypted-payload
|
||||
continuity. Copying XML keys alone does not establish compatibility. Phase 1 does
|
||||
not claim a real historical authentication cookie was successfully replayed.
|
||||
9. Install the reviewed service template and initial-acceptance drop-in; do not start it. Install the fixed `provision/acceptance-permissions.py` root-owned 0755 at `/usr/local/lib/plotdirector-deployment/acceptance-permissions.py` and `acceptance.conf` at `/etc/systemd/system/plotdirector.service.d/acceptance.conf`. Run systemd verification
|
||||
and check its account, environment path, content root, writable paths and loopback
|
||||
endpoint. Install the reviewed sudoers fragment only after `visudo -cf` passes;
|
||||
validate the whole sudo configuration. Install the forced-command SSH Match block
|
||||
only after `sshd -t` passes. Keep an administrator session open during SSH reload.
|
||||
10. Put the dedicated deployment public key in the root-owned **0644** authorised-keys file
|
||||
named by the Match block (sshd must read it as the target user), with `restrict` and an appropriate verified Atlas
|
||||
source-address restriction where operationally stable. Verify upload/validate,
|
||||
shell and SFTP refusal, forwarding refusal, no general sudo, helper/config
|
||||
non-writability and no access to Catherine. Then remove **only** the temporary
|
||||
Atlas administrator key authorisation. Do not remove other administration access.
|
||||
11. DNS already points apex/www to web1. Use the independent PlotDirector HTTP maintenance/ACME webroot at `/srv/plotdirector/acme`, verify both public challenges, and issue a **new** certificate using `certbot certonly --webroot --webroot-path /srv/plotdirector/acme --cert-name plotdirector.com -d plotdirector.com -d www.plotdirector.com --non-interactive --agree-tos` with the existing registered account. Do not transfer a historical certificate or use the Nginx installer plugin. Install the independent vhost/map and initial maintenance snippet, keeping the case-insensitive internal-health deny rule. Run `nginx -t` before each reload and check Catherine afterwards. Use the lineage-scoped reload hook and `certbot renew --cert-name plotdirector.com --dry-run --run-deploy-hooks --non-interactive`; never target Catherine for this test. Preserve ports 5002/5003. Use normal public TLS validation; no further DNS change is required.
|
||||
12. Activate only with explicit environment authorisation and a verified starting
|
||||
state/backup check. Remove only the PlotDirector maintenance return after
|
||||
automated health and preservation checks; normal public HTTPS is the acceptance
|
||||
target. Owner authenticated feature, image, Word/SignalR and account acceptance
|
||||
follows where credentials or physical clients are required; it does not defer
|
||||
this authorised public go-live. Keep www inactive and unchanged as fallback.
|
||||
|
||||
Phase 2 authorisation covered this initial installation and go-live, now complete.
|
||||
It does not authorise future releases, further DNS changes or enabling held workers.
|
||||
|
||||
|
||||
## Actual initial-acceptance profile and recovery notes
|
||||
|
||||
Production uses the base service plus
|
||||
`/etc/systemd/system/plotdirector.service.d/acceptance.conf`. The per-service
|
||||
IPAddressDeny=any / IPAddressAllow=localhost policy has an attached egress BPF
|
||||
program. It changes no firewall or SQL listening configuration. The fixed root
|
||||
pre-start fence reads only the protected migration configuration and drops its SQL
|
||||
subprocess to plotdirector-migrate; no SQL password is in arguments or output.
|
||||
It denies EXECUTE to the **PlotLineApp user** on these five procedures:
|
||||
|
||||
- dbo.EmailQueue_ResetStuckSending
|
||||
- dbo.EmailQueue_DequeueBatch
|
||||
- dbo.WritingActivity_BaselineTargets
|
||||
- dbo.WritingActivity_Prune
|
||||
- dbo.WriterWork_Prune
|
||||
|
||||
These always-registered background services cannot be stopped with configuration
|
||||
flags in the qualified build. Configurable StoryIntelligence/illustration workers,
|
||||
WritingSolver indexing and Geography are false. Presence/notifications and
|
||||
in-memory capture expiry remain available. Queued/reset emails will not send.
|
||||
Normal settings are recorded in `/etc/plotdirector/normal-worker-settings.json`;
|
||||
see the handover for qualified defaults and owner decisions. **Do not enable these
|
||||
workers or external processing without separate owner authorisation.**
|
||||
|
||||
After such authorisation, review pending jobs/email and external credentials, then
|
||||
review the acceptance drop-in and remove its pre-start fence only when intended.
|
||||
The migration principal must explicitly REVOKE the five user-level EXECUTE denials
|
||||
(the runtime role's existing schema EXECUTE grant then applies). Removing the hook
|
||||
alone does not remove those denials; restarting with the hook reapplies them.
|
||||
Review egress and worker flags separately, validate the unit and perform focused
|
||||
acceptance before allowing chargeable processing. No such restoration happened
|
||||
in Phase 2.
|
||||
|
||||
`install()` explicitly chmods newly created release directories to 0750 because the
|
||||
launcher intentionally uses umask 077. Files remain root-owned 0440. A focused
|
||||
regression reproduces the real restrictive umask. During initial deployment this
|
||||
missing chmod caused a failed start after successful migrations. The failed
|
||||
installation, prior helper and backup/evidence were retained; no activation-success
|
||||
row was written. After confirming PID=0/no successful activation, the failed release
|
||||
and current link were quarantined, stopped/failed state reset, and the corrected
|
||||
helper retried the **identical** signed package. Recorded migrations were skipped.
|
||||
This is initial-failure recovery evidence, not permission to overwrite an active
|
||||
release or erase histories on future failures.
|
||||
|
||||
Current certificate renewal uses the existing certbot.timer and webroot challenge.
|
||||
The root-owned `/etc/letsencrypt/renewal-hooks/deploy/plotdirector-reload` exits unless
|
||||
RENEWED_LINEAGE is `/etc/letsencrypt/live/plotdirector.com`, then runs `nginx -t`
|
||||
and reloads Nginx. The targeted dry run passed. Never replace Catherine's files.
|
||||
The supplied vhost template requires the PlotDirector map and maintenance snippet;
|
||||
initial provisioning starts with 503, while the live snippet contains only a comment.
|
||||
|
||||
|
||||
## Compressed transport and standard routine receipt
|
||||
|
||||
Selected transport: **Zstandard level 6, four workers, frame checksum**. Preparation
|
||||
now defaults to this codec; `--compression none` retains the original tar format.
|
||||
The original USTAR `package.tar`, authorization.json and Ed25519 authorization.sig
|
||||
remain the integrity/recovery basis. Compression does not change manifest bytes,
|
||||
application/SQL contents or the original signature. A new transport.json/signature
|
||||
binds compressed bytes/hash/size, original tar hash/size and original authorization
|
||||
hash. The compressed bundle contains exactly these transfer members:
|
||||
|
||||
```
|
||||
authorization.json
|
||||
authorization.sig
|
||||
transport.json
|
||||
transport.sig
|
||||
package.tar.zst
|
||||
```
|
||||
|
||||
Original three-file raw bundles remain valid. To wrap a retained raw release,
|
||||
without any application rebuild or modification of that original bundle:
|
||||
|
||||
```bash
|
||||
python3 Tools/Deployment/release.py compress \
|
||||
--bundle /absolute/original-signed-bundle \
|
||||
--output /absolute/new-compressed-bundle \
|
||||
--signing-key /absolute/private/release-signing.pem \
|
||||
--public-key /absolute/trusted/release-signing-public.pem
|
||||
```
|
||||
|
||||
Both signatures and compressed integrity are checked before decoding. The decoder
|
||||
uses signed exact output size, a 4 GiB global input/output ceiling, 128 MB window
|
||||
limit and CPU/wall limits. Reconstructed bytes must match the original signed tar
|
||||
SHA, then all original safe extraction, manifest, SQL and application checks run.
|
||||
No unsigned patches, incremental updates or active-directory modification occurs.
|
||||
Allow space for compressed snapshot + original tar + extracted payload + new
|
||||
release, as well as existing backups/releases and the configured free-space floor.
|
||||
Failed transfer/decompression affects only incoming/private temporary storage.
|
||||
Upload and deployment locks remain independent and mandatory.
|
||||
|
||||
For new release preparation, continue the qualified-source/evidence process above,
|
||||
add `--scope-base FULL_CURRENT_APPLICATION_COMMIT`, and use the default compression.
|
||||
For measured end-to-end orchestration, `deploy.py` can prepare from clean source
|
||||
(`--source`, `--scope-base`, `--plan`, `--sql`, `--evidence`, `--output`,
|
||||
`--release-id`, `--signing-key`) or use an existing qualified `--bundle` instead:
|
||||
|
||||
```bash
|
||||
python3 Tools/Deployment/deploy.py \
|
||||
--bundle /absolute/qualified-compressed-bundle \
|
||||
--identity /home/nick/.ssh/plotdirector-production \
|
||||
--public-key /absolute/trusted/release-signing-public.pem \
|
||||
--receipt /absolute/private/new-operation-receipt.json \
|
||||
--public-acceptance
|
||||
```
|
||||
|
||||
This defaults to **non-activating validation**. Add `--activate` only with explicit
|
||||
application-release authorisation. Unexpected pending history blocks activation;
|
||||
`--allow-migrations` requires a separately reviewed/qualified and authorised SQL
|
||||
upgrade. The application source/qualification process is unchanged. Scope timing
|
||||
captures clean-commit checks and Git differences, not a claim of automatic semantic
|
||||
review. Human scope/release approval remains necessary before signing/activation.
|
||||
|
||||
No long bespoke Markdown report is needed for an ordinary success. The command
|
||||
writes a structured JSON receipt plus a concise text summary from the same data.
|
||||
Keep detailed protected diagnostics for failures or exceptional timings. Receipts
|
||||
carry release/version/source, package/application/DLL checksums, compressed/original
|
||||
sizes and ratio, measured transfer/throughput, previous/new identity, backup result,
|
||||
actual history counts and executed/baselined migrations, read-back activation row,
|
||||
health, optional public acceptance, warnings/recovery and phase measurements.
|
||||
Failed server receipts are retrieved too; failed public acceptance remains a failed
|
||||
pipeline outcome even if the nested server record correctly shows an active release.
|
||||
No automatic retry, database restore or unqualified rollback is introduced.
|
||||
|
||||
Server receipts: `/srv/plotdirector/deployment-receipts/DEPLOYMENT-ID.json` and
|
||||
`.txt`, root:plotdirector-deploy 0640 in root:plotdirector-deploy 0750 directory.
|
||||
Retrieve JSON using the existing strict SSH options and command `receipt ID`.
|
||||
This reads only bounded root-owned regular sanitized receipt files, never arbitrary
|
||||
paths, protected attempt logs, configuration or credentials. The forced dispatcher
|
||||
and fixed sudo helper remain the only entry points; no general sudo/shell or
|
||||
additional database privilege is granted. The root-protected detailed JSONL attempt
|
||||
evidence remains separate. Receiver transfer metrics are explicitly unprivileged
|
||||
telemetry, not authorisation; Atlas sender throughput is measured independently.
|
||||
|
||||
Timing uses monotonic clocks. Parent phase durations include child phases;
|
||||
exclusive durations and unattributed overhead prevent double counting. UTC values
|
||||
are for correlation, not elapsed-time arithmetic. SQL history verification is timed
|
||||
in the worker with Stopwatch; if child UTC endpoints are unavailable they are null,
|
||||
not reconstructed. Missing/unperformed phases are explicit, never measured zero.
|
||||
Service confirmed-inactive-to-start-command-complete and inactive-to-health-ready
|
||||
are separate from stop-request-inclusive intervals and independently sampled public
|
||||
outage. Source preparation and web1 operations have distinct clocks/provenance.
|
||||
The combined pipeline measures its own total including otherwise unattributed work;
|
||||
using an already prepared bundle does not pretend to measure an earlier build.
|
||||
|
||||
Standard target: **3–5 minutes** for a routine release where achievable; **10 minutes**
|
||||
is the normal upper target subject to essential backup, integrity and health checks.
|
||||
Investigate exceptional times. Reuse valid qualification; do not repeat full app,
|
||||
Companion or recovered-database exercises on ordinary releases. Postactivation
|
||||
checks and history/row readback now occur inside the helper, so a further complete
|
||||
package extraction solely for status/reporting is unnecessary. Pre-activation
|
||||
validation and activation still independently verify immutable package integrity.
|
||||
|
||||
## Tooling-only administrative maintenance
|
||||
|
||||
Tooling installation is separate from an application release. If Atlas's temporary
|
||||
administrator authorisation has been removed, a desktop/laptop administrator must
|
||||
briefly re-authorise only the existing dedicated Atlas public key, fingerprint
|
||||
`SHA256:2Iw3JYNS8TgPARowjnp+7wNC6cmWf1EV7Cy1Mg1ig3w`. Use strict pinned SSH and
|
||||
remove that one authorisation after maintenance; preserve all other admin keys.
|
||||
The deployment account must never replace its own helper or read migration secrets.
|
||||
|
||||
1. Record the live current link, DLL/source identity, application PID and configuration
|
||||
hashes, and Catherine HTTPS. Confirm `/usr/bin/zstd` availability. Stop if a
|
||||
prerequisite is missing; do not change application or unrelated infrastructure.
|
||||
2. Publish only DatabaseWorker on Atlas from the reviewed tooling source. Stage
|
||||
reviewed hashes/files privately. No SDK, repository or Codex is installed on web1.
|
||||
3. Take the existing `/srv/plotdirector/deployment.lock` exclusively. Preserve the
|
||||
previous helper/modules and entire worker output under a new protected
|
||||
`/srv/backups/configuration/plotdirector-tooling-before-TIMESTAMP/` directory.
|
||||
4. Install receipt.py/transport.py first, then release.py and the new worker, then
|
||||
activate.py/dispatcher/launcher, all root-owned and non-writable by runtime/deploy.
|
||||
Worker directory/files remain 0755/0644; dispatcher and launcher 0755. Create the
|
||||
receipt directory with explicit root:plotdirector-deploy 0750 permissions. Keep
|
||||
target/configuration, credentials, service, SSH/sudo and web server settings intact.
|
||||
5. For the retained signed package transport test, preserve the existing incoming
|
||||
directory under a new protected transport-test archive before using the same
|
||||
release ID; never overwrite it or alter signed tar/manifest bytes. Upload the
|
||||
compressed wrapper through the restricted account, use `validate` only and
|
||||
retrieve its sanitized receipt. Test the raw package separately with the verifier.
|
||||
Do not invoke activate/rollback/migrate, backup/restore, or service stop/start.
|
||||
6. Confirm decoder measurements on web1, original tar/DLL checksums, receipt read
|
||||
restrictions, unchanged current link/PID/configuration hashes, history counts and
|
||||
successful-release count, and continued normal HTTPS for both sites. Remove only
|
||||
temporary maintenance files/authorisation; retain recovery and diagnostic evidence.
|
||||
|
||||
No Production application activation is authorised by a tooling-maintenance task.
|
||||
53
Docs/Deployment/ProductionBaseline-20261125.json
Normal file
@ -0,0 +1,53 @@
|
||||
{
|
||||
"historical_application_commit": "5d2e080539c10c3a2c6aed5c18c169abc8a55e77",
|
||||
"recovered_backup_sha256": "6cf9e6d4d340a222a48c43265582e45a0150b132ae6eeb2bb6cd112f97cb743c",
|
||||
"starting_schema_sha256": "1eaa17d39bfdc2542743d6e911659141466f0bdf4efbeb62fb76b958ddd03c21",
|
||||
"semantics": "Baselined at current verification time against cumulative final schema/data state. Individual historical execution is not asserted. No fabricated original timestamps. Module checks use preserved final definitions, including documented supersession.",
|
||||
"literal_modules_reviewed": 652,
|
||||
"literal_matches_initial": 642,
|
||||
"differences_explained_by_comments": 8,
|
||||
"dynamic_patch": "160_Phase25E_ProjectHardDeleteDependencyCleanup.sql updates ProjectHardDelete_ForOwner",
|
||||
"removed_trigger": "125_Phase20AE_RemoveDefaultScenePlaceholder.sql removes TR_Chapters_CreateDefaultScene",
|
||||
"additional_modules": "Eight retained SSMS diagram support modules; no PlotDirector migration identity assigned.",
|
||||
"publication_graph_utf16_sha256": "b341f299e0704490a57bbada6f3dd06a5b952c3a451f14506b811545e4d4cc3f",
|
||||
"original_business_tables": 163,
|
||||
"original_business_rows": 139554,
|
||||
"original_business_fingerprint_artifact_sha256": "759c6d23b59ac17d4447d33bf692029b88d180f20e4abcb3d4fe795b54def450",
|
||||
"historical_baseline_entries": 210,
|
||||
"executed_steps_in_plan": 110,
|
||||
"ordering_exception": "253 -> 255 -> 254 -> 256; Docs/Geography/GeographicalPositioning.md",
|
||||
"omitted_migrations": [
|
||||
{
|
||||
"id": "286_DevelopmentResetProcedures",
|
||||
"sha256": "ed1de0660ed11ad36799b4449adb8c502a792e34c3b238482039ebdf4d6a5b3e",
|
||||
"reason": "Development-only reset procedure refresh; no Production execution; current runtime guards require separate review.",
|
||||
"evidence": "evidence/baseline.json"
|
||||
},
|
||||
{
|
||||
"id": "301_CharacterLifeStatus",
|
||||
"sha256": "2ce923ff04ab7648790521d68f8aeea5d4e56b6c36ea884a73fdb212f17043e0",
|
||||
"reason": "Superseded by standalone migration 304, which explicitly replaces partial 301 and failed 302; 303 is the intermediate projection repair covered by 304.",
|
||||
"evidence": "evidence/baseline.json"
|
||||
},
|
||||
{
|
||||
"id": "302_CharacterLifeStatusProjections",
|
||||
"sha256": "b50f5bb1616bf5eff5a02ccba92cf6348e8da663941c1242fd578b3f315b62e7",
|
||||
"reason": "Superseded by standalone migration 304, which explicitly replaces partial 301 and failed 302; 303 is the intermediate projection repair covered by 304.",
|
||||
"evidence": "evidence/baseline.json"
|
||||
},
|
||||
{
|
||||
"id": "303_CharacterLifeStatusProjectionRepair",
|
||||
"sha256": "947d276060e33a8a07c8e6413d97c36ce6b41540a80efb14386e16015108e21f",
|
||||
"reason": "Superseded by standalone migration 304, which explicitly replaces partial 301 and failed 302; 303 is the intermediate projection repair covered by 304.",
|
||||
"evidence": "evidence/baseline.json"
|
||||
},
|
||||
{
|
||||
"id": "320_DeploymentRuntimePermissions",
|
||||
"sha256": "be2abc358df50c44ee61ff22e25e8a88aff7f3b5cf07435bd7f6363fb4425ac7",
|
||||
"reason": "Superseded isolated permission prototype: DENY CONTROL also denied required runtime EXECUTE and metadata. Standalone 321 supplies corrected denials and an effective-role assertion before commit. Never deploy 320 to a new environment.",
|
||||
"evidence": "evidence/baseline.json"
|
||||
}
|
||||
],
|
||||
"unresolved": "No unresolved module-definition discrepancy after documented patch, removal and SSMS-support classification. Historical per-script execution remains unknown; baselines represent verified current final state.",
|
||||
"resulting_schema_sha256": "b17db2bbdc583cb7bd3c856fb4db5cf6fc470e87fbaee5dc1dbbe99b6878beb7"
|
||||
}
|
||||
14269
Docs/Deployment/ProductionUpgrade-20261125.plan.json
Normal file
15
Docs/Deployment/Routine-20261125-9b1770d9.md
Normal file
@ -0,0 +1,15 @@
|
||||
# OTP refinement Production release — 25 November 2026
|
||||
|
||||
Complete: https://plotdirector.com/ is running `9b1770d96d17b7b2cc4f42efb936d822d20fe31e`, version 1.0.0, release `plotdirector-production-9b1770d9-20261125-r1`. Production deployment was explicitly authorised after Development acceptance. Application changes from eadda6f6 are limited to TwoFactor.cshtml client-side native insertion/submission handling and component-specific public-site.css centring. No SQL scripts changed. Existing Development clipboard/native insertion and visual evidence was reused.
|
||||
|
||||
The clean committed build matches Development DLL SHA-256 `ed76eb4cd0c7b071c9f576b7857548ebb9b6b86b0752bc950e6689f45798f156`. Signed raw package verification, restricted upload, preactivation validation and activation all passed. Compressed transport remains uninstalled; no tooling or infrastructure configuration was changed. Successful helper activation verifies installed identity/current link, application/database health and release-history insertion after health. These internal checks are trusted-helper verified; the restricted interface does not expose independent SQL or protected configuration reads.
|
||||
|
||||
Deployment `20261125T200432Z-3c965a19faba` created and verified backup `/srv/backups/sql/PlotLine-predeploy-20261125T200432Z-3c965a19faba.bak`. The unchanged 320-entry Production migration manifest and final schema passed pre/postactivation validation; previously recorded scripts were not reapplied. No new migrations, subscription changes, worker settings or integration settings were introduced. Previous releases and recovery backups remain retained. www was not accessed or modified.
|
||||
|
||||
Normal public TLS GETs passed for homepage, login and www redirection. The served stylesheet exactly matches 9b1770d9; internal deployment health remains public 404. Catherine Lynwood HTTPS returned 200 before and after. Authenticated OTP/physical Android acceptance remains the owner's check; no authentication bypass was introduced.
|
||||
|
||||
## Timing and limitations
|
||||
|
||||
Package: 528.59 MiB. Transfer: 268.97s at 1.965 MiB/s. Build: 6.33s; packaging/signing: 1.42s; validation: 8.70s; backup/activation/health: 18.48s. Elapsed through focused acceptance: 354.34s. Observed public unavailability: 5.435s (sampled public GETs; exact systemd downtime unavailable). Raw transfer dominated elapsed time. A premature local activation-driver invocation was rejected by its transfer-completion assertion before any remote operation; the driver was rerun after successful upload. No remote validation failed and no safeguard was bypassed.
|
||||
|
||||
[Sanitised evidence](Evidence/Routine-20261125-9b1770d9/activation-result.json). Physical Android Chrome verification remains outstanding; the Development controlled fixture demonstrated full native insertion and exactly one real POST.
|
||||
105
Docs/Deployment/Routine-20261125-eadda6f6.md
Normal file
@ -0,0 +1,105 @@
|
||||
# First routine Production release — 25 November 2026
|
||||
|
||||
**COMPLETE: https://plotdirector.com/ is running the qualified 2FA correction.**
|
||||
No provisioning, infrastructure reconfiguration, certificate issuance, Companion
|
||||
build, subscription change or worker/integration setting change was performed.
|
||||
No SQL administrator credential or temporary administrator SSH access was needed.
|
||||
|
||||
## Scope and release identity
|
||||
|
||||
The complete 190c074d → eadda6f6 diff was checked. Its only application change is
|
||||
19 lines of OTP-specific public-site.css geometry. SQL, application C#/Razor,
|
||||
project dependencies and Word/Windows Companion source are unchanged. Other
|
||||
changes are tests, documentation/evidence and deployment provisioning/tooling
|
||||
corrections already installed on web1. In particular the installed umask-corrected
|
||||
helper matches the intended source; it was reused, not reinstalled.
|
||||
|
||||
Built once on Atlas from clean detached source
|
||||
`eadda6f674ac456e8ae6014e2c5781088d408f8f`, version `1.0.0`.
|
||||
Existing Development Chromium/visual qualification was reused; no full regression
|
||||
suite or database recovery qualification was repeated. The resulting DLL exactly
|
||||
matches the qualified Development DLL:
|
||||
`780571eb8ba3583ae20d4f18df9f7a9aadaa6439f343de3480bd54d362ce7199`.
|
||||
|
||||
Release `plotdirector-production-eadda6f6-20261125-r1`; deployment `20261125T164603Z-39e834a5c00d`.
|
||||
Package SHA-256 `e4990e90c3d32084e87af5bb149c5aff393b61e7e0c03f8e3c5120771686a4d7`.
|
||||
Manifest SHA-256 `aeab7d79147518816adc541ef24af311f6564b248264c3057b95f1f3695649a2`.
|
||||
The signed package remains in `/home/nick/plotdirector-routine-20261125/bundle/`.
|
||||
Unrelated uncommitted repository documents were excluded and preserved.
|
||||
|
||||
## Deployment and acceptance
|
||||
|
||||
The existing restricted plotdirector-deploy account performed upload, validation
|
||||
and activation. Trusted helper success verifies the current link and installed
|
||||
DLL hash, active service, running source/version/Production database/environment,
|
||||
HTTP/database health and successful release-history insertion after health. The
|
||||
new current target is `/srv/plotdirector/releases/plotdirector-production-eadda6f6-20261125-r1/app`.
|
||||
|
||||
Before shutdown, the helper created and CHECKSUM/VERIFYONLY-verified:
|
||||
`/srv/backups/sql/PlotLine-predeploy-20261125T164603Z-39e834a5c00d.bak`.
|
||||
Backups and the prior 190c074d release remain retained. No database restore or
|
||||
application rollback occurred. No new SQL scripts were introduced. The same
|
||||
320-entry immutable Production manifest (210 baselines / 110 previously executed
|
||||
scripts) and unchanged final schema were validated before and after activation;
|
||||
recorded migrations are skipped by the worker's checksum history mechanism.
|
||||
The code-only plan's starting/resulting schema is
|
||||
`b17db2bbdc583cb7bd3c856fb4db5cf6fc470e87fbaee5dc1dbbe99b6878beb7`.
|
||||
|
||||
Independent normal public TLS GETs passed for homepage, login and www redirection.
|
||||
Production public-site.css is byte-identical to eadda6f6. The internal deployment
|
||||
health URL remains public 404. Unauthenticated TwoFactor redirects to Login;
|
||||
genuine authenticated OTP visual acceptance is left to the owner. No bypass or
|
||||
new test identity was introduced. Catherine's normal public HTTPS returns 200,
|
||||
before and after. The helper's fixed PlotDirector paths/service and existing
|
||||
configuration were reused; no configuration writes were requested or performed.
|
||||
Worker flags, acceptance permission fence and egress controls remain as provisioned.
|
||||
|
||||
## Timing
|
||||
|
||||
Timer start: 2026-11-25T16:39:16.348161+00:00; report prepared: 2026-11-25T16:48:49.435197+00:00.
|
||||
End-to-end: **9m 33.1s**, within the ten-minute target.
|
||||
Package: **554,260,480 bytes (528.58 MiB)**.
|
||||
Transfer: **279.961s**, **1.888 MiB/s**.
|
||||
Observed public outage: **6.627s**, sampled
|
||||
with normal public HTTPS GETs every 0.5s plus request latency. Exact systemd
|
||||
stop/start downtime is not exposed through the restricted interface.
|
||||
|
||||
| Requested phase | Measured seconds / limitation |
|
||||
| --- | --- |
|
||||
| 1. Release preparation and scope | 65.304 |
|
||||
| 2. Application build and required tests | 6.119; clean web publish; existing Development tests reused |
|
||||
| 3. Packaging and signing | 1.359 |
|
||||
| 4. Transfer | 279.961 |
|
||||
| 5. Production validation | 8.633 |
|
||||
| 6. Pre-deployment backup | Included in phase 8; separate timestamp unavailable |
|
||||
| 7. Database migration history verification | 8.403; postactivation restricted validation includes package/schema/history checks |
|
||||
| 8. Activation and health | 20.780; aggregate helper including backup and history checks |
|
||||
| 9. Public acceptance | 1.142 |
|
||||
| 10. Completion reporting | 117.270 |
|
||||
|
||||
Other orchestration/observation wall time: approximately
|
||||
64.116s. These measurements describe
|
||||
externally available boundaries; internal phases must not be added twice.
|
||||
Reporting time is measured through handover preparation; Git commit adds only
|
||||
its normal short local operation. No deployment failure or retry occurred.
|
||||
|
||||
## Verification limits and future performance opportunities
|
||||
|
||||
The forced SSH interface offers upload/validate/activate/rollback, but no read-only
|
||||
status or audit retrieval. Consequently source/current/activation-history checks
|
||||
are **trusted-helper verified**, not independently queried through another SQL
|
||||
login. Raw release rows, independent row counts, configuration hashes and internal
|
||||
backup/service phase timestamps could not be retrieved. Protected audit evidence:
|
||||
`/srv/plotdirector/deployment-evidence/20261125T164603Z-39e834a5c00d.jsonl`.
|
||||
This is an observability limitation, not a request for administrator credentials;
|
||||
no additional permissions or helper changes were made for this release.
|
||||
|
||||
The transfer dominated elapsed time. Future reviewed improvements could qualify
|
||||
SSH/transport compression or a smaller Linux-specific web publish while preserving
|
||||
immutable package verification. A fixed read-only redacted status/audit command
|
||||
could expose per-phase times, active identity, history counts and unchanged worker
|
||||
configuration hashes. Postactivation validation currently repeats package hashing
|
||||
and extraction to access the history check; reducing that duplication needs a
|
||||
reviewed status capability. None of these changes was implemented today.
|
||||
|
||||
[Sanitized timing and acceptance evidence](Evidence/Routine-20261125-eadda6f6/timing.json).
|
||||
160
Docs/Deployment/Transport-20261125.md
Normal file
@ -0,0 +1,160 @@
|
||||
# Signed transport and receipt qualification — 25 November 2026
|
||||
|
||||
**Installed and non-activating verified on web1 on 25 November 2026.**
|
||||
All 54 reviewed files match. Production remains 9b1770d9, PID 26493, with unchanged
|
||||
DLL, current link, active marker and all 67 captured configuration file hashes.
|
||||
No application release, restart, database backup or migration occurred. Both sites
|
||||
pass normal public HTTPS validation.
|
||||
|
||||
The retained successful routine package is an uncompressed USTAR archive:
|
||||
554260480 bytes / 528.58 MiB, SHA-256
|
||||
`e4990e90c3d32084e87af5bb149c5aff393b61e7e0c03f8e3c5120771686a4d7`.
|
||||
The application was not rebuilt. Each candidate was compressed, decompressed to
|
||||
a real temporary file and checked against that original SHA-256. Source/signature
|
||||
and manifest/file/DLL identity were separately verified using the full retained
|
||||
signed release. No application dependencies or other package contents were removed.
|
||||
|
||||
## Compression benchmark
|
||||
|
||||
Compression/decompression durations, sizes and encoder peak RSS below were
|
||||
**measured on Atlas**, sequentially at nice 10. Transfer durations are **estimates**
|
||||
using the prior observed 1.888 MiB/s file-payload throughput. Combined time is
|
||||
compression + estimated transfer + measured Atlas decompression. SHA verification
|
||||
was performed separately from the benchmark decoder timer. These are single warm
|
||||
fixture trials, not statistically significant comparisons of subsecond differences.
|
||||
|
||||
| Method | Compression s | MiB | Estimated transfer s | Atlas decode s | Combined s | Peak encoder MiB |
|
||||
| --- | ---: | ---: | ---: | ---: | ---: | ---: |
|
||||
| uncompressed | 0.000 | 528.58 | 279.97 | 0.000 | 279.97 | 0.0 |
|
||||
| gzip-1 | 5.747 | 192.50 | 101.96 | 2.067 | 109.78 | 7.7 |
|
||||
| gzip-6 | 17.991 | 173.40 | 91.85 | 1.845 | 111.68 | 7.7 |
|
||||
| zstd-1-T1 | 1.652 | 180.28 | 95.49 | 0.623 | 97.76 | 17.7 |
|
||||
| zstd-1-T4 | 0.481 | 180.28 | 95.49 | 0.619 | 96.59 | 30.8 |
|
||||
| zstd-1-T8 | 0.408 | 180.28 | 95.49 | 0.656 | 96.55 | 46.4 |
|
||||
| zstd-3-T1 | 2.447 | 166.86 | 88.38 | 0.668 | 91.50 | 50.9 |
|
||||
| zstd-3-T4 | 0.788 | 166.86 | 88.38 | 0.660 | 89.83 | 91.1 |
|
||||
| zstd-3-T8 | 0.735 | 166.86 | 88.38 | 0.670 | 89.79 | 142.9 |
|
||||
| zstd-6-T1 | 6.684 | 157.91 | 83.64 | 0.645 | 90.97 | 52.3 |
|
||||
| zstd-6-T4 | 2.027 | 157.91 | 83.64 | 0.661 | 86.33 | 95.4 |
|
||||
| zstd-6-T8 | 1.627 | 157.91 | 83.64 | 0.671 | 85.94 | 154.9 |
|
||||
|
||||
Select **Zstandard level 6, four workers, frame checksum enabled**. It produces
|
||||
165585450 bytes / 157.91 MiB (29.87% of original, approximately 70.1% smaller).
|
||||
Measured compression 2.027s, Atlas decompression 0.661s, estimated transfer 83.64s;
|
||||
combined 86.33s versus the 280s uncompressed transfer baseline. Estimated transfer
|
||||
savings are about 196s. Eight workers saved only approximately 0.4s, while increasing
|
||||
CPU consumption from 8.33 to 12.37 CPU seconds and peak RSS from 95.4 to 155.0 MiB.
|
||||
Level 3 compresses faster, but its larger output adds more transfer time overall.
|
||||
Gzip also helps substantially, but is slower overall than the selected Zstandard.
|
||||
|
||||
Measured on web1 during installation verification: **1.209s decoder-only**, with
|
||||
original tar SHA-256 verified separately; **1.520s instrumented decompression**,
|
||||
including verifier integrity work. Actual compressed transfer was **79.445s at
|
||||
1.988 MiB/s**. The complete existing-bundle transfer/validation/receipt/public
|
||||
acceptance workflow took **92.767s**. This is not a genuine release activation.
|
||||
Against the prior 280s raw transfer, observed transfer reduction is approximately
|
||||
**200.6s** across separate runs.
|
||||
|
||||
Keeping other baseline timings unchanged, replacing transfer and bespoke reporting
|
||||
suggests approximately **4.3 minutes** overall. The automated pipeline can reduce
|
||||
orchestration further; a **3–5 minute target is an estimate**, not a measured genuine
|
||||
release. Ten minutes remains the normal upper target, subject to essential safety.
|
||||
The next genuine application release is the definitive end-to-end benchmark.
|
||||
|
||||
## Implementation and focused qualification
|
||||
|
||||
- Original authorization/manifest signatures remain byte-identical. A separately
|
||||
signed transport envelope binds original authorization hash, original tar hash
|
||||
and size, compressed hash and size, release/source identity and codec settings.
|
||||
Corrupt compressed bytes are rejected before the decoder is launched. Decoded
|
||||
bytes must match both the original signature and complete manifest/file index.
|
||||
- Original raw packages remain supported. Decoder output is capped to the signed
|
||||
size and 4 GiB global maximum, with a 128 MB decoder window limit and CPU/wall
|
||||
limits. Existing regular-file-only archive extraction, no-follow snapshots,
|
||||
traversal/link/special-member/duplicate checks and count/size limits remain.
|
||||
Space checks include reconstructed archive, extraction and installation.
|
||||
- Upload remains unprivileged, fixed-member, bounded and serialised. Upload and
|
||||
validation never stop a service. Failed/incomplete staging is retained for review.
|
||||
Backup, transaction, history immutability, deployment lock, activation and
|
||||
qualified rollback safeguards remain. No incremental/unsigned active-file patching.
|
||||
- Root creates sanitized JSON/text receipts; the fixed `receipt ID` SSH operation
|
||||
reads only those receipts. It cannot read protected logs/configuration. The
|
||||
directory is root:plotdirector-deploy 0750, files 0640; the account gains no write
|
||||
or general sudo/shell privilege. Credential-like fields/values are defensively
|
||||
redacted; raw exceptions and command arguments are not copied into receipts.
|
||||
- Receipts contain actual before/after release identity, package/application/DLL
|
||||
checksums, transport sizes/ratio, transfer provenance/throughput, backup result,
|
||||
measured migration counts, read-back activation row, health, failures/recovery,
|
||||
monotonic timing and otherwise unattributed overhead. Service inactive-to-start,
|
||||
inactive-to-readiness and independently observed public outage are distinct.
|
||||
SQL worker history durations are measured with Stopwatch; UTC child endpoints
|
||||
are null when unavailable, never estimated. Unperformed phases remain explicit.
|
||||
- `deploy.py` is the measured Atlas workflow. It defaults to validate only; activation
|
||||
is explicit, and pending history requires a separately authorised allow-migrations
|
||||
run. It retrieves failed server receipts too. Its JSON/text summary replaces
|
||||
lengthy bespoke routine reports. Postactivation history checks happen inside the
|
||||
worker and its successful activation record is read back, avoiding another full
|
||||
package extraction solely to obtain these facts.
|
||||
|
||||
Focused qualification: **68 deployment regression tests passed**, including all
|
||||
previous tests and compression/signature/checksum/corruption/truncation/expansion,
|
||||
unsafe archive, lock, upload failure, timing, receipt/redaction, activation/backup/
|
||||
rollback and permission cases. A real root-owned Atlas filesystem fixture proved
|
||||
intended-group read-only access, other-user denial, symlink and foreign-owner
|
||||
rejection. A new tiny isolated SQL fixture proved 2 executed / 1 baselined count,
|
||||
zero-execution replay and failed transaction/history rollback, then was removed.
|
||||
The common C# activation-record reader was checked against retained Test history.
|
||||
No full application/Companion suite, recovered-database restore or Production
|
||||
migration was repeated. Only DatabaseWorker was published on Atlas.
|
||||
|
||||
## Completed installation and verification
|
||||
|
||||
The existing qualified worker output was reused without rebuilding the application
|
||||
or repeating completed qualification. Installation held the deployment and upload
|
||||
locks. Previous tooling and the raw incoming bundle are preserved root-private at
|
||||
`/srv/backups/configuration/plotdirector-tooling-before-20261125T202018Z/`.
|
||||
All 54 installed hashes match the reviewed inventory. Configuration, SQL permissions,
|
||||
SSH/sudo rules, services and certificates were preserved.
|
||||
|
||||
The retained eadda6f6 signed package was compressed and uploaded without changing
|
||||
its original tar/authorization/manifest bytes. Validation only passed signature,
|
||||
checksum, archive, schema, immutable-history and active-work checks. The installed
|
||||
verifier also accepted the retained legacy raw package. No activate/rollback/migrate
|
||||
or service-control operation was invoked. Production continues running 9b1770d9.
|
||||
|
||||
Receipt `20261125T202311Z-621fb47a47f8` was retrieved through the restricted account.
|
||||
It records unchanged 320 migration records (210 baselines / 110 historically executed),
|
||||
three successful releases, latest source 9b1770d9, measured phase durations and
|
||||
unattributed overhead. Unperformed backup/service/activation phases remain explicit;
|
||||
their prior focused qualification stands until the next genuine release.
|
||||
|
||||
Receipt files are root:plotdirector-deploy 0640 in a 0750 directory. Transfer read
|
||||
and read-only access passed; runtime/other-user read and transfer writes were denied.
|
||||
Protected logs/migration credentials remain inaccessible to transfer, migration
|
||||
credentials remain inaccessible to runtime, unrestricted sudo is denied, arbitrary
|
||||
SSH commands and receipt path traversal are rejected. No privileges were expanded.
|
||||
|
||||
Installation checks paused on private-path traversal during the staged read-only
|
||||
worker check. Staging moved to a separate root-owned traversable directory and the
|
||||
worker received a non-secret manifest copy; backup permissions remained private.
|
||||
An explicit receipt-directory chmod corrected umask reducing requested 0750 to 0700.
|
||||
No database permissions were changed and no application operation occurred during
|
||||
these pauses. Temporary staging was removed; recovery artifacts remain retained.
|
||||
|
||||
Only the temporary Atlas administrator key was removed after verification; both
|
||||
existing administrator key lines were preserved byte-for-byte. New Atlas admin
|
||||
SSH authentication is rejected; restricted receipt retrieval still works.
|
||||
|
||||
[Measured pipeline receipt](Evidence/Transport-20261125/Installed/web1-validation-receipt.json).
|
||||
[Unchanged state and permission verification](Evidence/Transport-20261125/Installed/web1-verified.json).
|
||||
The next genuine application release provides the definitive end-to-end performance
|
||||
benchmark. The 3–5 minute target remains estimated, with 10 minutes the normal upper
|
||||
target subject to safeguards.
|
||||
|
||||
Further reduction opportunity: Windows runtime directories alone occupy about
|
||||
276 MiB. Other RIDs and native variants also contribute. A future qualified
|
||||
framework-dependent linux-x64 publish may exclude unnecessary platform assets;
|
||||
no files were removed here, and download/Companion dependencies must be reviewed
|
||||
before such a change. The full immutable package remains the unit of deployment.
|
||||
|
||||
[Machine-readable measurements](Evidence/Transport-20261125/compression-benchmark.json).
|
||||
25
Docs/Investigations/TwoFactorOtpRefinement-20261125.md
Normal file
@ -0,0 +1,25 @@
|
||||
# Two-factor layout and native insertion correction — 2026-11-25
|
||||
|
||||
The owner confirmed Android Chrome pastes only the first digit; Windows desktop paste works. The old page handles the desktop `paste` event, but not native multi-character `beforeinput`. A trusted Chromium `keyboard.insertText("123456")` reproduced the failure: `beforeinput.data` contained six digits, then `maxlength="1"` reduced `input.data` to `1`. Manual typing and desktop Ctrl+V already worked.
|
||||
|
||||
The earlier acceptance used a constructed ClipboardEvent and prevented submission. It exercised the desktop handler but neither the mobile insertion path nor an actual POST. That evidence was insufficient for the reported mobile behaviour.
|
||||
|
||||
The existing component now captures paste and multi-character beforeinput at the form, validates exactly six ASCII digits after conventional space normalization, populates all six boxes and requests submission once. The submit latch also permits retries after client cancellation and page restoration. No server authentication, TOTP, recovery or database code changed. Component-only CSS centres the label, button group and recovery text; card dimensions and branding remain unchanged.
|
||||
|
||||
## Verification
|
||||
|
||||
`PlotLine.Tests/Browser/two-factor-otp.cjs` exercises the actual compiled Razor view and ordinary assets in Chromium. A private loopback fixture substitutes only the authentication service result with a controlled rejection: real MVC POST, antiforgery, model validation and error-page reload remain active. It never authenticates a real account and is not part of the deployed application.
|
||||
|
||||
At desktop, 390px and 320px, genuine clipboard writes followed by Ctrl+V pass for plain codes, surrounding whitespace, grouped digits, leading zero and nonbreaking spaces. All six boxes and the combined value are observed before exactly one actual POST. Trusted native insertion also passes. Malformed content makes no POST. Typing, backspace, corrections, keyboard navigation, manual submission, cancelled submission retry and rejected-code retry pass. The separate setup view retains its original single input.
|
||||
|
||||
The three after screenshots were visually inspected: compact horizontal boxes, centred label/actions/recovery text, natural mobile wrapping and no overflow. [Desktop](../Testing/TwoFactor-20261125/centred-1440.png), [390px](../Testing/TwoFactor-20261125/centred-390.png), [320px](../Testing/TwoFactor-20261125/centred-320.png). [Structured clipboard evidence](../Testing/TwoFactor-20261125/genuine-clipboard-results.json) uses synthetic codes only.
|
||||
|
||||
Physical Android Chrome confirmation remains an owner acceptance check; trusted native insertion reproduces the identified event mechanism but is not a physical Android test. Production deployment is not authorised for this correction.
|
||||
|
||||
## Development activation
|
||||
|
||||
Clean source `9b1770d96d17b7b2cc4f42efb936d822d20fe31e` was published and signed as `otp-9b1770d9-20261125`. The exact published assembly passed the same browser checks before activation. Development activation completed in 23.79 seconds, including verified pre-deployment backup, unchanged 321-entry migration history, no executed migrations, configuration/persistent-path preservation, DLL identity, database health and public HTTPS/CSS checksum checks. Successful application release history was recorded after health passed. See [sanitised deployment evidence](../Testing/TwoFactor-20261125/development-deployment.json).
|
||||
|
||||
The browser checks were repeated after activation using the exact published Razor assembly in the controlled fixture and the stylesheet fetched from Development over normal HTTPS. All passed. This is controlled rejection testing, not a claim of real-account authentication or physical Android testing. Production was not changed.
|
||||
|
||||
A diagnostic command accidentally printed the private Development SQL connection value to tool output during this task. No credential was written into these committed artifacts. Rotation through the established administrative procedure is recommended; credentials were not changed as part of this focused correction.
|
||||
78
Docs/Investigations/TwoFactorOtpStyling-20261125.md
Normal file
@ -0,0 +1,78 @@
|
||||
# Two-factor code entry styling — 25 November 2026
|
||||
|
||||
The ordinary-browser `/Account/TwoFactor` view loaded Bootstrap input styling but
|
||||
not its component geometry: `_PublicLayout` marks plotline-theme.css `media="not
|
||||
all"`, and public-auth-theme.js only enables that legacy stylesheet in installed
|
||||
windows. All existing `.two-factor-inputs` / `.two-factor-digit` rules lived there.
|
||||
Chromium confirmed the stylesheet loaded successfully but did not participate in
|
||||
the cascade. Bootstrap's display:block/width:100% then produced six stacked inputs.
|
||||
This is a loading/scope regression, not missing markup or an input-script failure.
|
||||
|
||||
The correction restores OTP geometry in the already-loaded public-site.css,
|
||||
inside its existing html[data-site-theme="public"] scope. Six equal shrinking
|
||||
square tracks, centred digits and spacing above/below the row work independently
|
||||
of the installed-window theme. Existing public colours, focus ring, page layout,
|
||||
buttons, recovery link, typography outside the digits and all form-control rules
|
||||
remain unchanged. Installed-window legacy styles remain responsible for that mode.
|
||||
No Razor, JavaScript, authentication/security or database structure was changed.
|
||||
|
||||
Actual compiled Razor/controller/layout rendering was exercised on an isolated
|
||||
loopback host. Its test-only IAuthService supplies a synthetic pending challenge;
|
||||
it cannot authenticate a user, perform TOTP operations or connect to a real DB.
|
||||
All hosted workers and outbound HTTP were disabled. This is rendered-page evidence,
|
||||
not a genuine account login or authenticator verification claim. The fixture was
|
||||
not installed into Development or Production.
|
||||
|
||||
Chromium checks at 1440, 390 and 320 pixels passed: one row, equal squares and gaps,
|
||||
centred text, inherited visible focus, no horizontal overflow and button separation.
|
||||
Inputs measured 56px, approximately 44.5px and 33.7px respectively. Before-and-after
|
||||
screenshots were visually inspected, including digits at the narrowest width.
|
||||
Advancement, numeric filtering, complete-code paste, backspace, Tab/Shift+Tab/arrows,
|
||||
existing accessibility/mobile attributes, automatic POST payload and antiforgery
|
||||
presence passed. Submission of empty Code exercised the real server-side required
|
||||
validation. Complete-code submissions were intercepted in the browser to avoid
|
||||
performing any authentication operation.
|
||||
|
||||
EnableTwoFactor uses a separate single `Code` input under ManageAccount, not these
|
||||
component classes or public layout. Its actual Razor view was also rendered with
|
||||
a display-only model; the verification input remains full-width. No setup or
|
||||
recovery-code logic was touched.
|
||||
|
||||
Reproduce browser checks with `OTP_VISUAL_URL=http://127.0.0.1:5282 node
|
||||
PlotLine.Tests/Browser/two-factor-otp.cjs` against the loopback Razor fixture retained
|
||||
privately at `/home/nick/otp-style-20261125/host`. The script refuses non-loopback
|
||||
hosts. Screenshots and measured geometry are in
|
||||
[the visual evidence directory](../Testing/TwoFactorOtp-20261125/after-390.png).
|
||||
|
||||
| Viewport | Before | After |
|
||||
| --- | --- | --- |
|
||||
| Desktop 1440px | [Before](../Testing/TwoFactorOtp-20261125/before-1440.png) | [After](../Testing/TwoFactorOtp-20261125/after-1440.png) |
|
||||
| Mobile 390px | [Before](../Testing/TwoFactorOtp-20261125/before-390.png) | [After](../Testing/TwoFactorOtp-20261125/after-390.png) |
|
||||
| Narrow 320px | [Before](../Testing/TwoFactorOtp-20261125/before-320.png) | [After](../Testing/TwoFactorOtp-20261125/after-320.png) |
|
||||
|
||||
Deployed to **Development only** from clean commit
|
||||
`eadda6f674ac456e8ae6014e2c5781088d408f8f`, version 1.0.0. The signed code-only
|
||||
release is `otp-eadda6f6-20261125`; application/DLL, served stylesheet and local
|
||||
identity hashes were verified. Local/public HTTPS homepage and login returned 200.
|
||||
Existing configuration, uploads, keys and log paths were preserved. The new
|
||||
successful release row was recorded after health checks. All 321 existing migration
|
||||
history entries remain; **zero migration scripts ran**. A COPY_ONLY/CHECKSUM backup
|
||||
was VERIFYONLY-verified, and the previous application was retained in protected
|
||||
Atlas storage. Deployment took 31.28 seconds.
|
||||
|
||||
Final Chromium checks used the exact published application assembly and the CSS
|
||||
fetched from https://dev.plotdirector.com/; the after screenshots reflect that
|
||||
combination. Actual pending-login credentials were not used; the loopback-only
|
||||
render fixture is explicitly distinguished from genuine account/TOTP validation.
|
||||
The setup view was checked separately using its actual Razor view/display-only model.
|
||||
The loopback fixture has been stopped.
|
||||
|
||||
The first local deployment attempt stopped before application shutdown because an
|
||||
unprivileged filesystem inspection could not inspect Development's protected
|
||||
current directory. The check was repeated using the existing authorised sudo path;
|
||||
no permissions were loosened. Its verified backup and diagnostics were retained.
|
||||
A draft plan's stale omission-evidence reference was also corrected before package
|
||||
validation; no SQL/checksum or history entry changed. Neither preparation issue
|
||||
modified the running app. Production was not contacted or deployed by this task.
|
||||
|
||||
[Sanitized Development deployment evidence](../Testing/TwoFactorOtp-20261125/development-deployment.json).
|
||||
BIN
Docs/Testing/TwoFactor-20261125/centred-1440.png
Normal file
|
After Width: | Height: | Size: 66 KiB |
BIN
Docs/Testing/TwoFactor-20261125/centred-320.png
Normal file
|
After Width: | Height: | Size: 50 KiB |
BIN
Docs/Testing/TwoFactor-20261125/centred-390.png
Normal file
|
After Width: | Height: | Size: 50 KiB |
21
Docs/Testing/TwoFactor-20261125/development-deployment.json
Normal file
@ -0,0 +1,21 @@
|
||||
{
|
||||
"status": "deployed-development-only",
|
||||
"source_commit": "9b1770d96d17b7b2cc4f42efb936d822d20fe31e",
|
||||
"version": "1.0.0",
|
||||
"dll_sha256": "ed76eb4cd0c7b071c9f576b7857548ebb9b6b86b0752bc950e6689f45798f156",
|
||||
"package_sha256": "abda399f2ff85262b7980e9bab0aff4e312430d649568dabb869d77efbe01809",
|
||||
"deployment_id": "dev-otp-20261125T194828Z-188a83",
|
||||
"release_id": "otp-9b1770d9-20261125",
|
||||
"database": "PlotDirector_Development",
|
||||
"executed_migrations": 0,
|
||||
"migration_history_before": 321,
|
||||
"migration_history_after": 321,
|
||||
"database_backup": "/var/opt/mssql/backup/PlotDirector_Development-predeploy-dev-otp-20261125T194828Z-188a83.bak",
|
||||
"database_backup_verified": true,
|
||||
"application_backup": "/home/nick/otp-refine-20261125/current-before-otp",
|
||||
"public_https": "passed",
|
||||
"public_css_checksum": "passed",
|
||||
"release_history_recorded_after_health": true,
|
||||
"duration_seconds": 23.79,
|
||||
"production_touched": false
|
||||
}
|
||||
159
Docs/Testing/TwoFactor-20261125/genuine-clipboard-results.json
Normal file
@ -0,0 +1,159 @@
|
||||
{
|
||||
"status": "passed",
|
||||
"physical_android_device_tested": false,
|
||||
"results": [
|
||||
{
|
||||
"width": 1440,
|
||||
"case": "real-clipboard",
|
||||
"synthetic_value": "\"123456\"",
|
||||
"submitted": "123456",
|
||||
"posts": 1,
|
||||
"all_six_populated_before_submit": true,
|
||||
"trusted_paste": true
|
||||
},
|
||||
{
|
||||
"width": 1440,
|
||||
"case": "real-clipboard",
|
||||
"synthetic_value": "\" \\t123456\\r\\n\"",
|
||||
"submitted": "123456",
|
||||
"posts": 1,
|
||||
"all_six_populated_before_submit": true,
|
||||
"trusted_paste": true
|
||||
},
|
||||
{
|
||||
"width": 1440,
|
||||
"case": "real-clipboard",
|
||||
"synthetic_value": "\"1 2 3 4 5 6\"",
|
||||
"submitted": "123456",
|
||||
"posts": 1,
|
||||
"all_six_populated_before_submit": true,
|
||||
"trusted_paste": true
|
||||
},
|
||||
{
|
||||
"width": 1440,
|
||||
"case": "real-clipboard",
|
||||
"synthetic_value": "\"012345\"",
|
||||
"submitted": "012345",
|
||||
"posts": 1,
|
||||
"all_six_populated_before_submit": true,
|
||||
"trusted_paste": true
|
||||
},
|
||||
{
|
||||
"width": 1440,
|
||||
"case": "real-clipboard",
|
||||
"synthetic_value": "\" 012 345 \"",
|
||||
"submitted": "012345",
|
||||
"posts": 1,
|
||||
"all_six_populated_before_submit": true,
|
||||
"trusted_paste": true
|
||||
},
|
||||
{
|
||||
"width": 1440,
|
||||
"case": "trusted-native-insertion",
|
||||
"submitted": "012345",
|
||||
"posts": 1
|
||||
},
|
||||
{
|
||||
"width": 390,
|
||||
"case": "real-clipboard",
|
||||
"synthetic_value": "\"123456\"",
|
||||
"submitted": "123456",
|
||||
"posts": 1,
|
||||
"all_six_populated_before_submit": true,
|
||||
"trusted_paste": true
|
||||
},
|
||||
{
|
||||
"width": 390,
|
||||
"case": "real-clipboard",
|
||||
"synthetic_value": "\" \\t123456\\r\\n\"",
|
||||
"submitted": "123456",
|
||||
"posts": 1,
|
||||
"all_six_populated_before_submit": true,
|
||||
"trusted_paste": true
|
||||
},
|
||||
{
|
||||
"width": 390,
|
||||
"case": "real-clipboard",
|
||||
"synthetic_value": "\"1 2 3 4 5 6\"",
|
||||
"submitted": "123456",
|
||||
"posts": 1,
|
||||
"all_six_populated_before_submit": true,
|
||||
"trusted_paste": true
|
||||
},
|
||||
{
|
||||
"width": 390,
|
||||
"case": "real-clipboard",
|
||||
"synthetic_value": "\"012345\"",
|
||||
"submitted": "012345",
|
||||
"posts": 1,
|
||||
"all_six_populated_before_submit": true,
|
||||
"trusted_paste": true
|
||||
},
|
||||
{
|
||||
"width": 390,
|
||||
"case": "real-clipboard",
|
||||
"synthetic_value": "\" 012 345 \"",
|
||||
"submitted": "012345",
|
||||
"posts": 1,
|
||||
"all_six_populated_before_submit": true,
|
||||
"trusted_paste": true
|
||||
},
|
||||
{
|
||||
"width": 390,
|
||||
"case": "trusted-native-insertion",
|
||||
"submitted": "012345",
|
||||
"posts": 1
|
||||
},
|
||||
{
|
||||
"width": 320,
|
||||
"case": "real-clipboard",
|
||||
"synthetic_value": "\"123456\"",
|
||||
"submitted": "123456",
|
||||
"posts": 1,
|
||||
"all_six_populated_before_submit": true,
|
||||
"trusted_paste": true
|
||||
},
|
||||
{
|
||||
"width": 320,
|
||||
"case": "real-clipboard",
|
||||
"synthetic_value": "\" \\t123456\\r\\n\"",
|
||||
"submitted": "123456",
|
||||
"posts": 1,
|
||||
"all_six_populated_before_submit": true,
|
||||
"trusted_paste": true
|
||||
},
|
||||
{
|
||||
"width": 320,
|
||||
"case": "real-clipboard",
|
||||
"synthetic_value": "\"1 2 3 4 5 6\"",
|
||||
"submitted": "123456",
|
||||
"posts": 1,
|
||||
"all_six_populated_before_submit": true,
|
||||
"trusted_paste": true
|
||||
},
|
||||
{
|
||||
"width": 320,
|
||||
"case": "real-clipboard",
|
||||
"synthetic_value": "\"012345\"",
|
||||
"submitted": "012345",
|
||||
"posts": 1,
|
||||
"all_six_populated_before_submit": true,
|
||||
"trusted_paste": true
|
||||
},
|
||||
{
|
||||
"width": 320,
|
||||
"case": "real-clipboard",
|
||||
"synthetic_value": "\" 012 345 \"",
|
||||
"submitted": "012345",
|
||||
"posts": 1,
|
||||
"all_six_populated_before_submit": true,
|
||||
"trusted_paste": true
|
||||
},
|
||||
{
|
||||
"width": 320,
|
||||
"case": "trusted-native-insertion",
|
||||
"submitted": "012345",
|
||||
"posts": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
BIN
Docs/Testing/TwoFactorOtp-20261125/after-1440.png
Normal file
|
After Width: | Height: | Size: 68 KiB |
BIN
Docs/Testing/TwoFactorOtp-20261125/after-320.png
Normal file
|
After Width: | Height: | Size: 51 KiB |
BIN
Docs/Testing/TwoFactorOtp-20261125/after-390.png
Normal file
|
After Width: | Height: | Size: 52 KiB |
146
Docs/Testing/TwoFactorOtp-20261125/after-geometry.json
Normal file
@ -0,0 +1,146 @@
|
||||
{
|
||||
"320": {
|
||||
"boxes": [
|
||||
{
|
||||
"x": 47,
|
||||
"y": 446.5,
|
||||
"width": 33.65625,
|
||||
"height": 33.65625,
|
||||
"textAlign": "center"
|
||||
},
|
||||
{
|
||||
"x": 85.453125,
|
||||
"y": 446.5,
|
||||
"width": 33.671875,
|
||||
"height": 33.671875,
|
||||
"textAlign": "center"
|
||||
},
|
||||
{
|
||||
"x": 123.921875,
|
||||
"y": 446.5,
|
||||
"width": 33.671875,
|
||||
"height": 33.671875,
|
||||
"textAlign": "center"
|
||||
},
|
||||
{
|
||||
"x": 162.390625,
|
||||
"y": 446.5,
|
||||
"width": 33.671875,
|
||||
"height": 33.671875,
|
||||
"textAlign": "center"
|
||||
},
|
||||
{
|
||||
"x": 200.859375,
|
||||
"y": 446.5,
|
||||
"width": 33.671875,
|
||||
"height": 33.671875,
|
||||
"textAlign": "center"
|
||||
},
|
||||
{
|
||||
"x": 239.328125,
|
||||
"y": 446.5,
|
||||
"width": 33.671875,
|
||||
"height": 33.671875,
|
||||
"textAlign": "center"
|
||||
}
|
||||
],
|
||||
"media": "not all",
|
||||
"overflow": false
|
||||
},
|
||||
"390": {
|
||||
"boxes": [
|
||||
{
|
||||
"x": 47,
|
||||
"y": 446.5,
|
||||
"width": 44.453125,
|
||||
"height": 44.453125,
|
||||
"textAlign": "center"
|
||||
},
|
||||
{
|
||||
"x": 97.296875,
|
||||
"y": 446.5,
|
||||
"width": 44.453125,
|
||||
"height": 44.453125,
|
||||
"textAlign": "center"
|
||||
},
|
||||
{
|
||||
"x": 147.59375,
|
||||
"y": 446.5,
|
||||
"width": 44.46875,
|
||||
"height": 44.46875,
|
||||
"textAlign": "center"
|
||||
},
|
||||
{
|
||||
"x": 197.90625,
|
||||
"y": 446.5,
|
||||
"width": 44.46875,
|
||||
"height": 44.46875,
|
||||
"textAlign": "center"
|
||||
},
|
||||
{
|
||||
"x": 248.21875,
|
||||
"y": 446.5,
|
||||
"width": 44.46875,
|
||||
"height": 44.46875,
|
||||
"textAlign": "center"
|
||||
},
|
||||
{
|
||||
"x": 298.53125,
|
||||
"y": 446.5,
|
||||
"width": 44.46875,
|
||||
"height": 44.46875,
|
||||
"textAlign": "center"
|
||||
}
|
||||
],
|
||||
"media": "not all",
|
||||
"overflow": false
|
||||
},
|
||||
"1440": {
|
||||
"boxes": [
|
||||
{
|
||||
"x": 522,
|
||||
"y": 440.234375,
|
||||
"width": 56,
|
||||
"height": 56,
|
||||
"textAlign": "center"
|
||||
},
|
||||
{
|
||||
"x": 590,
|
||||
"y": 440.234375,
|
||||
"width": 56,
|
||||
"height": 56,
|
||||
"textAlign": "center"
|
||||
},
|
||||
{
|
||||
"x": 658,
|
||||
"y": 440.234375,
|
||||
"width": 56,
|
||||
"height": 56,
|
||||
"textAlign": "center"
|
||||
},
|
||||
{
|
||||
"x": 726,
|
||||
"y": 440.234375,
|
||||
"width": 56,
|
||||
"height": 56,
|
||||
"textAlign": "center"
|
||||
},
|
||||
{
|
||||
"x": 794,
|
||||
"y": 440.234375,
|
||||
"width": 56,
|
||||
"height": 56,
|
||||
"textAlign": "center"
|
||||
},
|
||||
{
|
||||
"x": 862,
|
||||
"y": 440.234375,
|
||||
"width": 56,
|
||||
"height": 56,
|
||||
"textAlign": "center"
|
||||
}
|
||||
],
|
||||
"media": "not all",
|
||||
"overflow": false
|
||||
}
|
||||
}
|
||||
BIN
Docs/Testing/TwoFactorOtp-20261125/before-1440.png
Normal file
|
After Width: | Height: | Size: 66 KiB |
BIN
Docs/Testing/TwoFactorOtp-20261125/before-320.png
Normal file
|
After Width: | Height: | Size: 51 KiB |
BIN
Docs/Testing/TwoFactorOtp-20261125/before-390.png
Normal file
|
After Width: | Height: | Size: 52 KiB |
146
Docs/Testing/TwoFactorOtp-20261125/before-geometry.json
Normal file
@ -0,0 +1,146 @@
|
||||
{
|
||||
"320": {
|
||||
"boxes": [
|
||||
{
|
||||
"x": 47,
|
||||
"y": 435.25,
|
||||
"width": 226,
|
||||
"height": 35.75,
|
||||
"textAlign": "start"
|
||||
},
|
||||
{
|
||||
"x": 47,
|
||||
"y": 471,
|
||||
"width": 226,
|
||||
"height": 35.75,
|
||||
"textAlign": "start"
|
||||
},
|
||||
{
|
||||
"x": 47,
|
||||
"y": 506.75,
|
||||
"width": 226,
|
||||
"height": 35.75,
|
||||
"textAlign": "start"
|
||||
},
|
||||
{
|
||||
"x": 47,
|
||||
"y": 542.5,
|
||||
"width": 226,
|
||||
"height": 35.75,
|
||||
"textAlign": "start"
|
||||
},
|
||||
{
|
||||
"x": 47,
|
||||
"y": 578.25,
|
||||
"width": 226,
|
||||
"height": 35.75,
|
||||
"textAlign": "start"
|
||||
},
|
||||
{
|
||||
"x": 47,
|
||||
"y": 614,
|
||||
"width": 226,
|
||||
"height": 35.75,
|
||||
"textAlign": "start"
|
||||
}
|
||||
],
|
||||
"media": "not all",
|
||||
"overflow": false
|
||||
},
|
||||
"390": {
|
||||
"boxes": [
|
||||
{
|
||||
"x": 47,
|
||||
"y": 435.25,
|
||||
"width": 296,
|
||||
"height": 35.75,
|
||||
"textAlign": "start"
|
||||
},
|
||||
{
|
||||
"x": 47,
|
||||
"y": 471,
|
||||
"width": 296,
|
||||
"height": 35.75,
|
||||
"textAlign": "start"
|
||||
},
|
||||
{
|
||||
"x": 47,
|
||||
"y": 506.75,
|
||||
"width": 296,
|
||||
"height": 35.75,
|
||||
"textAlign": "start"
|
||||
},
|
||||
{
|
||||
"x": 47,
|
||||
"y": 542.5,
|
||||
"width": 296,
|
||||
"height": 35.75,
|
||||
"textAlign": "start"
|
||||
},
|
||||
{
|
||||
"x": 47,
|
||||
"y": 578.25,
|
||||
"width": 296,
|
||||
"height": 35.75,
|
||||
"textAlign": "start"
|
||||
},
|
||||
{
|
||||
"x": 47,
|
||||
"y": 614,
|
||||
"width": 296,
|
||||
"height": 35.75,
|
||||
"textAlign": "start"
|
||||
}
|
||||
],
|
||||
"media": "not all",
|
||||
"overflow": false
|
||||
},
|
||||
"1440": {
|
||||
"boxes": [
|
||||
{
|
||||
"x": 429,
|
||||
"y": 428.234375,
|
||||
"width": 582,
|
||||
"height": 38,
|
||||
"textAlign": "start"
|
||||
},
|
||||
{
|
||||
"x": 429,
|
||||
"y": 466.234375,
|
||||
"width": 582,
|
||||
"height": 38,
|
||||
"textAlign": "start"
|
||||
},
|
||||
{
|
||||
"x": 429,
|
||||
"y": 504.234375,
|
||||
"width": 582,
|
||||
"height": 38,
|
||||
"textAlign": "start"
|
||||
},
|
||||
{
|
||||
"x": 429,
|
||||
"y": 542.234375,
|
||||
"width": 582,
|
||||
"height": 38,
|
||||
"textAlign": "start"
|
||||
},
|
||||
{
|
||||
"x": 429,
|
||||
"y": 580.234375,
|
||||
"width": 582,
|
||||
"height": 38,
|
||||
"textAlign": "start"
|
||||
},
|
||||
{
|
||||
"x": 429,
|
||||
"y": 618.234375,
|
||||
"width": 582,
|
||||
"height": 38,
|
||||
"textAlign": "start"
|
||||
}
|
||||
],
|
||||
"media": "not all",
|
||||
"overflow": false
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,72 @@
|
||||
{
|
||||
"status": "deployed-development-only",
|
||||
"source_commit": "eadda6f674ac456e8ae6014e2c5781088d408f8f",
|
||||
"version": "1.0.0",
|
||||
"dll_sha256": "780571eb8ba3583ae20d4f18df9f7a9aadaa6439f343de3480bd54d362ce7199",
|
||||
"package_sha256": "3f6d0046bf8235cc8a69e72e1755f4148a6b7b9da424317d5bcb0c3b720f15bd",
|
||||
"deployment_id": "dev-otp-20261125T163452Z-3a3acb",
|
||||
"release_id": "otp-eadda6f6-20261125",
|
||||
"database": "PlotDirector_Development",
|
||||
"executed_migrations": 0,
|
||||
"migration_history_before": 321,
|
||||
"migration_history_after": 321,
|
||||
"database_backup": "/var/opt/mssql/backup/PlotDirector_Development-predeploy-dev-otp-20261125T163452Z-3a3acb.bak",
|
||||
"database_backup_verified": true,
|
||||
"application_backup": "/home/nick/otp-style-20261125/current-before-otp",
|
||||
"public_https": "passed",
|
||||
"public_css_checksum": "passed",
|
||||
"local_identity_health": {
|
||||
"healthy": true,
|
||||
"version": "1.0.0",
|
||||
"sourceCommit": "eadda6f674ac456e8ae6014e2c5781088d408f8f",
|
||||
"database": "PlotDirector_Development",
|
||||
"environment": "Development"
|
||||
},
|
||||
"release_history_recorded_after_health": true,
|
||||
"service_pid": 306856,
|
||||
"duration_seconds": 31.28,
|
||||
"production_touched": false,
|
||||
"events": [
|
||||
{
|
||||
"utc": "2026-11-25T16:34:57.832509+00:00",
|
||||
"phase": "validated-code-only",
|
||||
"source_commit": "eadda6f674ac456e8ae6014e2c5781088d408f8f",
|
||||
"package_sha256": "3f6d0046bf8235cc8a69e72e1755f4148a6b7b9da424317d5bcb0c3b720f15bd",
|
||||
"migration_records": 321
|
||||
},
|
||||
{
|
||||
"utc": "2026-11-25T16:35:07.102551+00:00",
|
||||
"phase": "database-backup-verified",
|
||||
"path": "/var/opt/mssql/backup/PlotDirector_Development-predeploy-dev-otp-20261125T163452Z-3a3acb.bak"
|
||||
},
|
||||
{
|
||||
"utc": "2026-11-25T16:35:15.256268+00:00",
|
||||
"phase": "application-backup-created",
|
||||
"path": "/home/nick/otp-style-20261125/current-before-otp"
|
||||
},
|
||||
{
|
||||
"utc": "2026-11-25T16:35:19.606595+00:00",
|
||||
"phase": "installed",
|
||||
"dll_sha256": "780571eb8ba3583ae20d4f18df9f7a9aadaa6439f343de3480bd54d362ce7199",
|
||||
"persistent_and_configuration_paths_preserved": true
|
||||
},
|
||||
{
|
||||
"utc": "2026-11-25T16:35:23.307822+00:00",
|
||||
"phase": "application-and-database-health-passed",
|
||||
"health": {
|
||||
"healthy": true,
|
||||
"version": "1.0.0",
|
||||
"sourceCommit": "eadda6f674ac456e8ae6014e2c5781088d408f8f",
|
||||
"database": "PlotDirector_Development",
|
||||
"environment": "Development"
|
||||
},
|
||||
"public_css_sha256": "0f8ac31d0922fe2679db5c4e08a25f76bf074c30016fceed0acdf9b281914c16"
|
||||
},
|
||||
{
|
||||
"utc": "2026-11-25T16:35:23.583368+00:00",
|
||||
"phase": "successful",
|
||||
"deployment": "dev-otp-20261125T163452Z-3a3acb"
|
||||
}
|
||||
],
|
||||
"rendered_page_verification": "Chromium actual published Razor/controller/layout in loopback synthetic-pending-challenge host, fetching exact Development public-site.css over normal HTTPS. Desktop/390/320 behavior and visual checks passed. No live account or TOTP bypass was installed."
|
||||
}
|
||||
44
PlotLine.Tests/Browser/character-attributes.cjs
Normal file
@ -0,0 +1,44 @@
|
||||
// Real compiled Razor + production shell/assets, with isolated in-memory HTTP fixtures.
|
||||
const {chromium}=require('playwright');const os=require('node:os'),path=require('node:path');const assert=require('node:assert/strict');const fs=require('node:fs');
|
||||
(async()=>{const installed=process.argv.includes('--installed'),profile=installed?fs.mkdtempSync(path.join(os.tmpdir(),'pd-attributes-pwa-')):null;
|
||||
const persistent=installed?await chromium.launchPersistentContext(profile,{headless:false,viewport:{width:1440,height:1000}}):null;
|
||||
const browser=installed?persistent.browser():await chromium.launch(),cdp=installed?await browser.newBrowserCDPSession():null;
|
||||
const manifestId='http://127.0.0.1:5238/Projects';
|
||||
if(installed){await persistent.pages()[0].goto('http://127.0.0.1:5238/fixture?page=calendar-test');await cdp.send('PWA.install',{manifestId,installUrlOrBundleUrl:'http://127.0.0.1:5238/fixture?page=calendar-test'});await cdp.send('PWA.changeAppUserSettings',{manifestId,displayMode:'standalone'});}
|
||||
async function newPage(){if(!installed)return browser.newPage({viewport:{width:1440,height:1000}});const opened=persistent.waitForEvent('page');await cdp.send('PWA.launch',{manifestId,url:'http://127.0.0.1:5238/fixture?page=calendar-test'});const page=await opened;await page.waitForLoadState();assert(await page.evaluate(()=>matchMedia('(display-mode: standalone)').matches));return page;}
|
||||
const results=[];try{
|
||||
for(const count of [10,100,500]){
|
||||
const page=await newPage(),errors=[];console.log('ACCEPTANCE',installed?'installed':'browser',count);page.on('pageerror',e=>errors.push(e.message));
|
||||
|
||||
const groups=await (await page.request.get('http://127.0.0.1:5238/character-attribute-definitions-fixture')).json();
|
||||
let clock=0,requests=[],undo=new Map(),records=Array.from({length:count},(_,i)=>({id:i+1,name:`Fixture character ${String(i+1).padStart(3,'0')}`,version:`v${clock++}`,values:{importance:(i+1)%3===0?'10':(i+1)%3===1?'6':'2',life:'',sex:'',quickAdd:'0'}}));
|
||||
await page.route('**/CharacterAttributes/Directory?*',route=>route.fulfill({json:{canEdit:true,groups,characters:records}}));
|
||||
await page.route('**/CharacterAttributes/Assign',async route=>{const input=route.request().postDataJSON();requests.push(input);assert(route.request().headers().requestverificationtoken);const previous=[],changed=[];for(const c of input.changes){const r=records.find(r=>r.id===c.id);if(r.version!==c.version)return route.fulfill({status:409,json:{message:'Characters changed in another window.'}});if(r.values[input.attribute]!==c.value){previous.push(structuredClone(r));r.values[input.attribute]=c.value;r.version=`v${clock++}`;changed.push(r);}}const token=`undo-${clock}`;undo.set(token,{previous,versions:changed.map(r=>[r.id,r.version])});await route.fulfill({json:{saved:true,characters:changed,undoToken:token}});});
|
||||
await page.route('**/CharacterAttributes/Undo',async route=>{const token=route.request().postDataJSON().token,state=undo.get(token);assert(state);if(state.versions.some(([id,version])=>records.find(r=>r.id===id).version!==version))return route.fulfill({status:409,json:{message:'Characters changed in another window.'}});const changed=state.previous.map(old=>{const r=records.find(r=>r.id===old.id);r.values=old.values;r.version=`v${clock++}`;return r;});await route.fulfill({json:{saved:true,characters:changed}});});
|
||||
const start=Date.now();await page.goto(`http://127.0.0.1:5238/character-attributes-fixture?count=${count}`);await page.locator('[data-attribute="importance"]').first().waitFor();const load=Date.now()-start;
|
||||
const card=id=>page.locator(`.character-card[data-drag-id="${id}"]`),value=(a,v)=>page.locator(`[data-attribute="${a}"][data-value="${v}"]`);
|
||||
assert.equal(await page.locator('.character-card').count(),count);const biography=await card(1).locator('.visual-card-heading p.muted').textContent();assert(biography.includes('Complete biography for character 1'));const heights=await page.locator('.character-card').evaluateAll(ns=>ns.slice(0,9).map(n=>n.getBoundingClientRect().height));assert(new Set(heights.map(Math.round)).size>1);
|
||||
await value('importance','10').locator('button').first().dragTo(card(1));await page.waitForFunction(()=>document.querySelector('.character-card[data-drag-id="1"] [data-attribute-indicators]').textContent===''&&document.querySelector('.character-card[data-drag-id="1"] [title="Story importance: Major"]'));assert.equal(records[0].values.importance,'10');
|
||||
await card(2).locator('[data-character-drag]').dragTo(value('importance','6'));await page.waitForFunction(()=>document.querySelector('.character-card[data-drag-id="2"] [title="Story importance: Supporting"]'));assert.equal(records[1].values.importance,'6');
|
||||
await card(1).locator('[data-character-select]').check();await card(2).locator('[data-character-select]').check();await value('importance','2').getByRole('button',{name:/Assign/}).click();await page.waitForFunction(()=>document.querySelector('.character-card[data-drag-id="1"] [title="Story importance: Minor"]'));assert.equal(requests.at(-1).changes.length,2);
|
||||
await page.locator('[data-undo]').click();await page.waitForFunction(()=>document.querySelector('.character-card[data-drag-id="1"] [title="Story importance: Major"]'));assert.equal(records[1].values.importance,'6');
|
||||
await card(1).locator('[data-character-drag]').dragTo(value('importance','2'));await page.waitForFunction(()=>document.querySelector('.character-card[data-drag-id="2"] [title="Story importance: Minor"]'));assert.equal(requests.at(-1).changes.length,2);await page.locator('[data-undo]').click();await page.waitForFunction(()=>document.querySelector('.character-card[data-drag-id="2"] [title="Story importance: Supporting"]'));
|
||||
await card(1).scrollIntoViewIfNeeded();await page.waitForTimeout(400);await card(1).click({button:'right'});await page.getByRole('menuitem',{name:'2 characters selected',exact:true}).waitFor();await page.getByRole('menuitem',{name:'Life status',exact:true}).hover();await page.getByRole('menuitemradio',{name:'Living',exact:true}).click();await page.waitForFunction(()=>document.querySelector('.character-card[data-drag-id="2"] [title="Life status: Living"]'));assert.equal(requests.at(-1).changes.length,2);
|
||||
await page.locator('[data-clear-selection]').click();
|
||||
// Modifier selection follows displayed order and does not navigate character links.
|
||||
await card(1).locator('h2 a').click({modifiers:['Control']});await card(3).locator('h2 a').click({modifiers:['Shift']});assert.equal(await page.locator('[data-character-select]:checked').count(),3);assert(page.url().includes('character-attributes-fixture'));
|
||||
await card(4).scrollIntoViewIfNeeded();await page.waitForTimeout(400);await card(4).click({button:'right'});assert.equal(await page.getByRole('menuitem',{name:'Open character',exact:true}).count(),1);await page.keyboard.press('Escape');
|
||||
await card(1).scrollIntoViewIfNeeded();await page.waitForTimeout(400);await card(1).click({button:'right'});await page.getByRole('menuitem',{name:'Story importance · Mixed values',exact:true}).hover();assert.equal(await page.getByRole('menuitemradio',{checked:true}).count(),0);await page.keyboard.press('Escape');
|
||||
await page.locator('[data-clear-selection]').click();await card(3).focus();await page.waitForTimeout(400);await page.keyboard.press('Shift+F10');await page.getByRole('menuitem',{name:'Story importance',exact:true}).focus();await page.keyboard.press('ArrowRight');await page.getByRole('menuitemradio',{name:'Major',exact:true}).waitFor();assert.equal(await page.getByRole('menuitemradio',{name:'Major',exact:true}).getAttribute('aria-checked'),'true');await page.keyboard.press('Escape');assert.equal(await page.locator('.pd-context-popup').count(),0);
|
||||
await card(4).evaluate(n=>n.dispatchEvent(new MouseEvent('contextmenu',{bubbles:true,cancelable:true,clientX:innerWidth-2,clientY:innerHeight-2})));await page.getByRole('menuitem',{name:'Quick Add Bar',exact:true}).hover();const menus=await page.locator('.pd-context-popup').evaluateAll(ns=>ns.map(n=>{const r=n.getBoundingClientRect();return {x:r.x,y:r.y,right:r.right,bottom:r.bottom}}));assert(menus.every(r=>r.x>=0&&r.y>=0&&r.right<=1440&&r.bottom<=1000));await page.getByRole('menuitemradio',{name:'Included',exact:true}).click();await page.waitForFunction(()=>document.querySelector('.character-card[data-drag-id="4"] [title="Quick Add Bar: Included"]'));assert.equal(requests.at(-1).changes.length,1);
|
||||
const beforeCancel=requests.length;await page.evaluate(()=>{const b=document.querySelector('[data-attribute="importance"][data-value="10"] button'),transfer=new DataTransfer();b.dispatchEvent(new DragEvent('dragstart',{bubbles:true,dataTransfer:transfer}));document.dispatchEvent(new KeyboardEvent('keydown',{key:'Escape',bubbles:true}));document.dispatchEvent(new DragEvent('dragend',{bubbles:true,dataTransfer:transfer}));});assert.equal(requests.length,beforeCancel);await page.waitForTimeout(260);
|
||||
await value('importance','10').locator('button').first().click();assert(await card(2).isHidden());await page.locator('[data-select-visible]').click();const visibleCount=await page.locator('.character-card:visible').count();assert.equal(await page.locator('[data-character-select]:checked').count(),visibleCount);await page.locator('[data-clear-filter]').click();await page.locator('[data-clear-selection]').click();
|
||||
const width=await page.locator('.character-card-grid').evaluate(n=>n.getBoundingClientRect().width);await page.locator('[data-attributes-toggle]').click();assert(await page.locator('[data-attribute-sidebar]').isHidden());assert(await page.locator('.character-card-grid').evaluate(n=>n.getBoundingClientRect().width)>width);await page.locator('[data-attributes-toggle]').click();
|
||||
if(count>=100){await page.evaluate(()=>{let n=document.querySelector('[data-character-attributes]');for(;n;n=n.parentElement){if(/auto|scroll/.test(getComputedStyle(n).overflowY)&&n.scrollHeight>n.clientHeight){n.scrollTo({top:1200,behavior:'instant'});return;}}window.scrollTo({top:1200,behavior:'instant'});});const box=await page.locator('[data-attribute-sidebar]').boundingBox();assert(box.y>=0&&box.y<1000&&box.y+box.height<=1001);await page.evaluate(()=>{let n=document.querySelector('[data-character-attributes]');for(;n;n=n.parentElement)n.scrollTo({top:0,left:0,behavior:'instant'});window.scrollTo({top:0,behavior:'instant'});});}
|
||||
await page.evaluate(()=>document.querySelectorAll('.pd-toast button[aria-label^="Dismiss"]').forEach(b=>b.click()));
|
||||
for(const theme of ['plotdirector','modern-light','modern-dark','warm-light','warm-dark','rose-pink','baby-blue']){await page.evaluate(theme=>{document.documentElement.dataset.appTheme=theme;document.documentElement.dataset.bsTheme=theme.endsWith('dark')?'dark':'light';},theme);if(count===100)await page.screenshot({path:`/tmp/character-attributes-${installed?'installed-':''}${theme}.png`});}
|
||||
for(const width of [1920,1366,1024,768,390]){await page.setViewportSize({width,height:1000});assert(await page.evaluate(()=>document.documentElement.scrollWidth<=innerWidth+2));}
|
||||
assert.equal(await card(1).locator('.visual-card-heading p.muted').textContent(),biography);assert.deepEqual(errors,[]);results.push({count,loadMs:load,assignments:requests.length});await page.close();
|
||||
}
|
||||
fs.writeFileSync(`/tmp/character-attributes-${installed?'installed-':''}performance.json`,JSON.stringify(results,null,2));console.log('PASS rendered directory: biography/card dimensions, bidirectional drag, bulk, individual prior-value Undo, individual/multi context, keyboard, filters/counts/selection scope, sticky/collapse, themes and responsive widths',results);
|
||||
}finally{if(installed){await cdp.send('PWA.uninstall',{manifestId}).catch(()=>{});await persistent.close();fs.rmSync(profile,{recursive:true,force:true});}else await browser.close();}})().catch(e=>{console.error(e);process.exitCode=1;});
|
||||
84
PlotLine.Tests/Browser/manuscript-import-theme.cjs
Normal file
@ -0,0 +1,84 @@
|
||||
// Render real component markup with synthetic model values; never starts an import.
|
||||
// node PlotLine.Tests/Browser/manuscript-import-theme.cjs
|
||||
// PD_THEME_RAZOR=http://127.0.0.1:5238 uses the compiled Razor fixture host.
|
||||
// PD_THEME_BEFORE=/absolute/original-css captures and compares the pre-change styles.
|
||||
const {chromium}=require('playwright');
|
||||
const fs=require('node:fs'),path=require('node:path'),assert=require('node:assert/strict');
|
||||
const root=path.resolve(__dirname,'../../PlotLine');
|
||||
const read=p=>fs.readFileSync(path.join(root, /^(css|js|lib)\//.test(p)?'wwwroot':'',p),'utf8');
|
||||
const output=process.env.PD_THEME_SCREENSHOTS || '/tmp/pd-manuscript-import-theme';
|
||||
fs.mkdirSync(output,{recursive:true});
|
||||
const view=read('Views/Onboarding/Index.cshtml');
|
||||
const details=view.match(/<dl class="onboarding-companion-details">[\s\S]*?<\/dl>/)[0]
|
||||
.replace(/@\(Model.CompanionPresence.CompanionVersion[^\n]+/,'Waiting</dd>')
|
||||
.replace(/@\(Model.CompanionPresence.CurrentDocumentName[^\n]+/,'No document reported yet</dd>');
|
||||
const counts=view.match(/<div class="onboarding-scan-counts">[\s\S]*?<\/section>/)[0].replace(/<\/section>$/,'')
|
||||
.replace(/@Model.ScanState.TotalWordCount.ToString\("N0"\)/g,'0').replace(/@Model.ScanState.\w+/g,'0');
|
||||
const layout=read('Views/Shared/_Layout.cshtml');
|
||||
let banner=layout.slice(layout.indexOf('<div class="story-intelligence-global-strip"'),layout.indexOf('<div hidden aria-hidden="true" data-story-intelligence-global-runs>'));
|
||||
banner=banner.replace(/\s+data-core-import="[^\n]+/,'').replace(/\s+hidden="[^\n]+/,'>')
|
||||
.replace(/@\([^\n]+\)/g,'42').replace(/@storyIntelligenceProgress\.[\w.]+/g,'42')
|
||||
.replace(/@primaryBook\?\.\w+/g,'10').replace(/@progressUpdatedUtc/g,'')
|
||||
.replace(/<strong data-story-intelligence-global-title>[\s\S]*?<\/strong>/,'<strong data-story-intelligence-global-title>Theme verification · Scanning manuscript</strong>')
|
||||
.replace(/<span data-story-intelligence-global-detail>[\s\S]*?<\/a>/,'<span data-story-intelligence-global-detail>Reading manuscript paragraphs</span></a>')
|
||||
.replace(/href="[^"]*"/g,'href="/onboarding"')+'<div data-story-intelligence-global-runs hidden></div></div>';
|
||||
const html=`${banner}<main class="onboarding-shell"><div class="onboarding-panel"><div class="onboarding-copy"><h1>Scan Manuscript</h1><p>Open your manuscript in Word and start the Companion.</p></div><section class="onboarding-companion-card onboarding-companion-card--compact is-offline" data-word-companion-presence data-word-companion-status="Offline"><div class="onboarding-companion-mark"><span></span></div><div class="onboarding-companion-body"><p class="eyebrow">Word Companion</p><h2 data-word-companion-waiting-status>Waiting for Word Companion...</h2><p data-word-companion-connected-copy>Open your manuscript in Word.</p>${details}<section class="onboarding-scan-panel" data-onboarding-scan-panel data-book-id="10" data-scan-status="NotStarted"><div class="onboarding-scan-status"><span data-onboarding-scan-message>Ready to scan</span><strong data-onboarding-scan-percent></strong></div><div class="onboarding-scan-progress"><span data-onboarding-scan-progress></span></div>${counts}</section></div></section><div class="onboarding-actions"><button class="btn btn-primary" data-onboarding-scan-start disabled>Import manuscript</button></div></div></main>`;
|
||||
const baseStyles=['lib/bootstrap/dist/css/bootstrap.min.css','css/site.css','css/plotline-theme.css'];
|
||||
const components=['onboarding.css','story-intelligence-global-progress.css'];
|
||||
(async()=>{const browser=await chromium.launch();try{
|
||||
const page=await browser.newPage({viewport:{width:1440,height:1000}});
|
||||
let renderedHtml=html;
|
||||
if(process.env.PD_THEME_RAZOR){
|
||||
const response=await page.goto(process.env.PD_THEME_RAZOR+'/fixture?desktop=ManuscriptImport');
|
||||
assert.equal(response.status(),200);
|
||||
renderedHtml=banner+await page.locator('.onboarding-shell').evaluate(el=>el.outerHTML);
|
||||
}
|
||||
const errors=[];page.on('pageerror',e=>errors.push(e.message));
|
||||
async function render(before,theme){
|
||||
await page.goto('about:blank');await page.setContent(`<html data-app-theme="${theme}" data-theme="${theme.endsWith('dark')?'dark':'light'}" data-bs-theme="${theme.endsWith('dark')?'dark':'light'}"><body class="app-layout">${before?renderedHtml.replace('btn-outline-primary btn-sm" data-story-intelligence-global-action','btn-outline-secondary btn-sm" data-story-intelligence-global-action'):renderedHtml}</body></html>`);
|
||||
for(const p of baseStyles)await page.addStyleTag({content:read(p)});
|
||||
for(const p of components)await page.addStyleTag({content:before?fs.readFileSync(path.join(process.env.PD_THEME_BEFORE,p),'utf8'):read('css/'+p)});
|
||||
await page.addStyleTag({content:read('css/application-shell.css')});
|
||||
await page.waitForTimeout(300);
|
||||
}
|
||||
async function capture(name){await page.locator('.story-intelligence-global-strip').screenshot({path:path.join(output,name+'-banner.png')});await page.locator('.onboarding-panel').screenshot({path:path.join(output,name+'-scan.png')});}
|
||||
async function inspect(){return page.evaluate(()=>{
|
||||
const canvas=document.createElement('canvas');canvas.width=canvas.height=1;const ctx=canvas.getContext('2d');
|
||||
function pixel(color){ctx.clearRect(0,0,1,1);ctx.fillStyle=color;ctx.fillRect(0,0,1,1);return [...ctx.getImageData(0,0,1,1).data];}
|
||||
function background(el){if(!el)return [255,255,255];const b=background(el.parentElement),c=pixel(getComputedStyle(el).backgroundColor),a=c[3]/255;return c.slice(0,3).map((v,i)=>v*a+b[i]*(1-a));}
|
||||
function lum(c){return c.map(v=>v/255).map(v=>v<=.04045?v/12.92:((v+.055)/1.055)**2.4).reduce((s,v,i)=>s+v*[.2126,.7152,.0722][i],0);}
|
||||
return [...document.querySelectorAll('.onboarding-companion-details dt,.onboarding-companion-details dd,.onboarding-scan-counts span,.onboarding-scan-counts strong,.story-intelligence-global-strip__copy strong,[data-story-intelligence-global-detail],[data-story-intelligence-global-action]')].map(el=>{const fg=lum(pixel(getComputedStyle(el).color).slice(0,3)),bg=lum(background(el));return {text:el.textContent.trim(),ratio:(Math.max(fg,bg)+.05)/(Math.min(fg,bg)+.05)};});
|
||||
});}
|
||||
let originalMobileWidth,originalGeometry;
|
||||
async function geometry(){return Promise.all(['.story-intelligence-global-strip','.onboarding-panel','.onboarding-companion-details','.onboarding-scan-counts'].map(selector=>page.locator(selector).boundingBox()));}
|
||||
if(process.env.PD_THEME_BEFORE){
|
||||
await render(true,'warm-dark');await capture('before-dark');originalGeometry=await geometry();
|
||||
await page.setViewportSize({width:390,height:1000});originalMobileWidth=await page.evaluate(()=>document.documentElement.scrollWidth);
|
||||
await page.setViewportSize({width:1440,height:1000});
|
||||
}
|
||||
for(const theme of ['plotdirector','warm-light','warm-dark','modern-light','modern-dark','rose-light','blue-light']){
|
||||
await render(false,theme);
|
||||
if(theme==='warm-dark'||theme==='warm-light')await capture('after-'+theme);
|
||||
if(theme==='warm-dark'&&originalGeometry)assert.deepEqual(await geometry(),originalGeometry,'Colour changes preserve original component geometry');
|
||||
await page.evaluate(()=>{window.handlers={};window.signalR={HubConnectionBuilder:class{withUrl(){return this}withAutomaticReconnect(){return this}build(){return{state:'Connected',on(n,f){handlers[n]=f},onreconnected(){},onreconnecting(){},onclose(){},start:async()=>{},invoke:async()=>({status:'NotStarted',isConnected:false})}}}};});
|
||||
await page.addScriptTag({content:read('js/word-companion-presence.js')});
|
||||
await page.waitForFunction(()=>!!handlers.WordCompanionPresenceChanged);
|
||||
for(const state of ['waiting','disconnected','connected','populated','failed']){
|
||||
await page.evaluate(state=>{
|
||||
if(state!=='waiting')handlers.WordCompanionPresenceChanged({isConnected:state==='connected'||state==='populated',documentOpen:true,companionVersion:'1.0.0.18',currentDocumentName:'Theme verification.docx'});
|
||||
if(state==='populated'||state==='failed')handlers.OnboardingScanStateChanged({status:state==='failed'?'Failed':'Complete',chapterCount:12,sceneCount:48,characterCandidateCount:17,totalWordCount:82500,percentComplete:100});
|
||||
},state);
|
||||
for(const c of await inspect())assert(c.ratio>=4.5,`${theme}/${state}: ${c.text} contrast ${c.ratio.toFixed(2)}`);
|
||||
if(state==='populated'&&(theme==='warm-dark'||theme==='warm-light'))await capture('populated-'+theme);
|
||||
}
|
||||
const dimensions=await page.locator('.onboarding-scan-counts').boundingBox();
|
||||
await page.evaluate(()=>{const h=document.documentElement;h.dataset.appTheme='warm-dark';h.dataset.theme=h.dataset.bsTheme='dark';});
|
||||
await page.waitForTimeout(300);
|
||||
for(const c of await inspect())assert(c.ratio>=4.5,`switched theme: ${c.text} ${c.ratio}`);
|
||||
assert.deepEqual(await page.locator('.onboarding-scan-counts').boundingBox(),dimensions,'Theme switch preserves metric geometry');
|
||||
await page.setViewportSize({width:390,height:1000});
|
||||
if(originalMobileWidth)assert.equal(await page.evaluate(()=>document.documentElement.scrollWidth),originalMobileWidth,'Preserve original mobile geometry');
|
||||
await page.setViewportSize({width:1440,height:1000});
|
||||
}
|
||||
assert.deepEqual(errors,[]);console.log('PASS import components: seven themes, waiting/disconnected/connected/populated/failed states, real presence updates, contrast >=4.5, live theme switching, unchanged desktop/mobile geometry. Screenshots: '+output);
|
||||
}finally{await browser.close();}})().catch(e=>{console.error(e);process.exitCode=1;});
|
||||
73
PlotLine.Tests/Browser/two-factor-otp.cjs
Normal file
@ -0,0 +1,73 @@
|
||||
// Actual Razor view in a loopback, database-free pending-auth fixture. Only
|
||||
// synthetic codes are used. Clipboard cases use the browser clipboard + Ctrl+V;
|
||||
// native insertion uses trusted CDP input (Android/IME-style), not value assignment.
|
||||
const {chromium}=require('playwright');
|
||||
const assert=require('node:assert/strict');
|
||||
const fs=require('node:fs');
|
||||
const base=process.env.OTP_VISUAL_URL||'http://127.0.0.1:5282';
|
||||
assert(/^http:\/\/127\.0\.0\.1:\d+$/.test(base),'Loopback fixture required');
|
||||
const output=process.env.OTP_SCREENSHOTS;
|
||||
(async()=>{const browser=await chromium.launch();const results=[];try{
|
||||
for(const width of [1440,390,320]){
|
||||
const context=await browser.newContext({viewport:{width,height:950},permissions:['clipboard-read','clipboard-write']});
|
||||
const page=await context.newPage();let submits=[],posts=[],pastes=[],insertions=[];
|
||||
await page.exposeFunction('observeOtp',x=>{if(x.type==='submit')submits.push(x);else if(x.type==='paste')pastes.push(x);else insertions.push(x);});
|
||||
await page.addInitScript(()=>{
|
||||
document.addEventListener('paste',e=>{if(e.target.matches('[data-two-factor-digit]'))window.observeOtp({type:'paste',trusted:e.isTrusted});},true);
|
||||
document.addEventListener('beforeinput',e=>{if(e.target.matches('[data-two-factor-digit]'))window.observeOtp({type:'beforeinput',trusted:e.isTrusted,inputType:e.inputType,data:e.data});},true);
|
||||
document.addEventListener('submit',e=>{if(e.target.matches('[data-two-factor-form]'))window.observeOtp({type:'submit',values:Array.from(e.target.querySelectorAll('[data-two-factor-digit]'),x=>x.value),code:e.target.querySelector('[data-two-factor-code]').value});},true);
|
||||
});
|
||||
page.on('request',r=>{if(r.method()==='POST'&&new URL(r.url()).pathname==='/Account/TwoFactor')posts.push(new URLSearchParams(r.postData()).get('Code'));});
|
||||
const digits=page.locator('[data-two-factor-digit]');
|
||||
const fresh=async()=>{await page.goto(base+'/Account/TwoFactor');await digits.first().waitFor();submits=[];posts=[];pastes=[];insertions=[];};
|
||||
const clipboard=async text=>{await digits.first().focus();await page.evaluate(text=>navigator.clipboard.writeText(text),text);await page.keyboard.press('Control+V');};
|
||||
const rejected=async()=>{await page.getByText('Synthetic authenticator rejection. Try again.',{exact:true}).waitFor();await page.waitForTimeout(30);};
|
||||
const assertSubmission=code=>{assert.deepEqual(posts,[code]);assert.equal(submits.length,1);assert.equal(submits[0].code,code);assert.deepEqual(submits[0].values,[...code]);};
|
||||
await fresh();
|
||||
const layout=await page.evaluate(()=>{
|
||||
const box=x=>{const r=x.getBoundingClientRect();return{x:r.x,y:r.y,w:r.width,h:r.height,cx:r.x+r.width/2}};
|
||||
const xs=Array.from(document.querySelectorAll('[data-two-factor-digit]'),box),label=document.querySelector('.two-factor-label'),help=document.querySelector('.two-factor-help');
|
||||
return{xs,label:box(label),labelAlign:getComputedStyle(label).textAlign,buttons:Array.from(document.querySelector('.two-factor-actions').children,box),helpAlign:getComputedStyle(help).textAlign,overflow:document.documentElement.scrollWidth>innerWidth,card:box(document.querySelector('.two-factor-card'))};
|
||||
});
|
||||
assert.equal(layout.overflow,false);assert.equal(layout.labelAlign,'center');assert.equal(layout.helpAlign,'center');
|
||||
assert(layout.xs.every(x=>Math.abs(x.y-layout.xs[0].y)<.1&&Math.abs(x.w-layout.xs[0].w)<.1&&Math.abs(x.w-x.h)<.1));
|
||||
const rowCenter=(layout.xs[0].x+layout.xs[5].x+layout.xs[5].w)/2;
|
||||
assert(Math.abs(rowCenter-layout.label.cx)<1);assert(Math.abs((layout.buttons[0].x+layout.buttons[1].x+layout.buttons[1].w)/2-rowCenter)<1);
|
||||
assert(Math.abs(layout.buttons[0].y-layout.buttons[1].y)<1);assert(layout.buttons[0].y-layout.xs[0].y-layout.xs[0].h>=20);
|
||||
for(let i=0;i<6;i++){
|
||||
assert.equal(await digits.nth(i).getAttribute('inputmode'),'numeric');assert.equal(await digits.nth(i).getAttribute('maxlength'),'1');
|
||||
assert.equal(await digits.nth(i).getAttribute('aria-label'),`Digit ${i+1} of 6`);assert.equal(await digits.nth(i).getAttribute('autocomplete'),'one-time-code');
|
||||
}
|
||||
if(output)await page.screenshot({path:`${output}/centred-${width}.png`,fullPage:true});
|
||||
for(const [text,expected] of [['123456','123456'],[' \t123456\r\n','123456'],['1 2 3 4 5 6','123456'],['012345','012345'],['\u00a0012\u202f345\u00a0','012345']]){
|
||||
await fresh();await clipboard(text);await rejected();assertSubmission(expected);assert(pastes.some(x=>x.trusted));
|
||||
results.push({width,case:'real-clipboard',synthetic_value:JSON.stringify(text),submitted:expected,posts:posts.length,all_six_populated_before_submit:true,trusted_paste:true});
|
||||
}
|
||||
for(const text of ['12345','1234567','abc123456','12-34-56','123\n456','123456']){
|
||||
await fresh();await clipboard(text);await page.waitForTimeout(70);assert.equal(posts.length,0);assert.equal(submits.length,0);
|
||||
assert.deepEqual(await digits.evaluateAll(xs=>xs.map(x=>x.value)),['','','','','','']);
|
||||
}
|
||||
// Browser-native insertion exposes the full value BEFORE maxlength truncation.
|
||||
await fresh();await digits.first().focus();await page.keyboard.insertText('012345');await rejected();assertSubmission('012345');
|
||||
assert(insertions.some(x=>x.trusted&&x.data==='012345'));results.push({width,case:'trusted-native-insertion',submitted:'012345',posts:posts.length});
|
||||
// A real rejected response renders a new attempt; no cancellation/mock response.
|
||||
submits=[];posts=[];pastes=[];await clipboard('654321');await rejected();assertSubmission('654321');
|
||||
await fresh();for(let i=0;i<6;i++)await digits.nth(i).press(String(i+1));await rejected();assertSubmission('123456');
|
||||
await fresh();await digits.first().press('1');await digits.nth(1).press('2');await digits.nth(2).press('3');await digits.nth(3).press('Backspace');
|
||||
assert(await digits.nth(2).evaluate(x=>x===document.activeElement));assert.equal(await page.locator('[data-two-factor-code]').inputValue(),'12');
|
||||
await digits.nth(2).press('4');await digits.first().focus();await digits.first().press('0');assert.equal(await page.locator('[data-two-factor-code]').inputValue(),'024');
|
||||
await digits.first().press('Tab');assert(await digits.nth(1).evaluate(x=>x===document.activeElement));await digits.nth(1).press('Shift+Tab');assert(await digits.first().evaluate(x=>x===document.activeElement));
|
||||
await digits.first().press('ArrowRight');await digits.first().press('ArrowLeft');assert.equal(await page.locator('[data-two-factor-code]').inputValue(),'024');
|
||||
await page.getByRole('button',{name:'Continue',exact:true}).click();await rejected();assert.deepEqual(posts,['024']);
|
||||
// A cancelled client validation must not permanently latch automatic submission.
|
||||
await fresh();await page.evaluate(()=>document.querySelector('[data-two-factor-form]').addEventListener('submit',e=>e.preventDefault(),{once:true}));
|
||||
await clipboard('123456');await page.waitForTimeout(50);assert.equal(posts.length,0);assert.equal(submits.length,1);
|
||||
submits=[];await digits.first().focus();await digits.first().press('9');await rejected();assertSubmission('923456');
|
||||
await fresh();await page.getByRole('button',{name:'Continue',exact:true}).click();await page.getByText('Enter the code from your authenticator app.',{exact:true}).waitFor();assert.deepEqual(posts,['']);
|
||||
await page.goto(base+'/fixture/setup');assert.equal(await page.getByLabel('Verification code').count(),1);assert.equal(await page.locator('[data-two-factor-digit]').count(),0);
|
||||
assert((await page.getByLabel('Verification code').boundingBox()).width>100);
|
||||
await context.close();
|
||||
}
|
||||
if(output)fs.writeFileSync(`${output}/genuine-clipboard-results.json`,JSON.stringify({status:'passed',physical_android_device_tested:false,results},null,2));
|
||||
console.log('PASS actual Razor/HTTP rejection: genuine Ctrl+V, whitespace/grouping/leading zero, malformed rejection, trusted native insertion, exactly one POST, typing/backspace/correction/navigation/manual submit, cancelled-submit retry, rejected-code retry; centred desktop/390/320 layout and separate setup field.');
|
||||
}finally{await browser.close();}})().catch(e=>{console.error(e);process.exit(1)});
|
||||
27
PlotLine.Tests/CharacterQuickAttributesTests.cs
Normal file
@ -0,0 +1,27 @@
|
||||
using System.Text.Json;
|
||||
using Microsoft.AspNetCore.DataProtection;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using PlotLine.Controllers;
|
||||
using PlotLine.Models;
|
||||
using PlotLine.Services;
|
||||
internal static class CharacterQuickAttributesTests
|
||||
{
|
||||
public static async Task Run()
|
||||
{
|
||||
void Check(bool value,string label){if(!value)throw new Exception(label);Console.WriteLine("PASS character quick attributes: "+label);}
|
||||
var definitions=CharacterQuickAttributes.Definitions([new(){CharacterSexValueID=17,SexName="Recorded custom value"}]);
|
||||
Check(definitions.Single(g=>g.Id=="sex").Values.Any(v=>v.Value=="17"&&v.Label=="Recorded custom value"),"custom catalogue values remain available without binary assumptions");
|
||||
var snapshot=JsonSerializer.Serialize(CharacterQuickAttributes.Snapshot(new(){CharacterID=5,IsDeceased=null,Sex="Legacy custom sex",DefaultDescription="Private complete biography"}));
|
||||
Check(!snapshot.Contains("Private complete biography")&&snapshot.Contains("legacy:Legacy custom sex")&&snapshot.Contains("\"life\":\"\""),"live snapshots preserve unknown/legacy states and omit biographies");
|
||||
var user=NativeWorkflowTests.Proxy<ICurrentUserService>((name,a)=>name=="get_UserId"?23:throw new Exception(name));
|
||||
var protection=new EphemeralDataProtectionProvider();
|
||||
var controller=new CharacterAttributesController(null!,null!,null!,user,null!,null!,protection);
|
||||
var receipt=new CharacterAttributesController.UndoReceipt(24,7,"importance",[],DateTime.UtcNow.AddMinutes(10));
|
||||
string Protect(CharacterAttributesController.UndoReceipt r)=>protection.CreateProtector("CharacterQuickAttributes.Undo.v1").Protect(JsonSerializer.Serialize(r));
|
||||
Check(await controller.Undo(new(Protect(receipt))) is BadRequestObjectResult,"Undo receipt cannot be used by another author");
|
||||
Check(await controller.Undo(new(Protect(receipt with{User=23,Expires=DateTime.UtcNow.AddSeconds(-1)}))) is BadRequestObjectResult,"expired Undo is rejected before persistence");
|
||||
Check(await controller.Undo(new(Protect(receipt)+"tampered")) is BadRequestObjectResult,"modified Undo receipt is rejected before persistence");
|
||||
Check(await controller.Assign(new(7,"biography",[new(5,"rewrite",DateTime.UtcNow.ToString("O"))])) is BadRequestObjectResult,"precision/free-text fields cannot enter the quick-assignment endpoint");
|
||||
Check(await controller.Assign(new(7,"life",[new(5,"1",DateTime.UtcNow.ToString("O")),new(5,"0",DateTime.UtcNow.ToString("O"))])) is BadRequestObjectResult,"duplicate IDs cannot widen or repeat a bulk assignment");
|
||||
}
|
||||
}
|
||||
87
PlotLine.Tests/DeploymentOperationsTests.cs
Normal file
@ -0,0 +1,87 @@
|
||||
using System.Net;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using PlotLine.Controllers;
|
||||
using PlotLine.Data;
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
using Microsoft.AspNetCore.DataProtection;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Options;
|
||||
|
||||
internal static class DeploymentOperationsTests
|
||||
{
|
||||
public static void Run()
|
||||
{
|
||||
foreach(var address in new[]{"203.0.113.1","192.168.10.8"})
|
||||
{
|
||||
var repository=new Probe();var controller=Controller(address,repository);
|
||||
if(controller.Read(default).GetAwaiter().GetResult() is not NotFoundResult || repository.Calls!=0)
|
||||
throw new Exception("External health request reached the database");
|
||||
}
|
||||
foreach(var address in new[]{"127.0.0.1","::1"})
|
||||
{
|
||||
var repository=new Probe();var controller=Controller(address,repository);
|
||||
if(controller.Read(default).GetAwaiter().GetResult() is not JsonResult || repository.Calls!=1)
|
||||
throw new Exception("Loopback health request did not verify the database");
|
||||
}
|
||||
var unready=new Probe{Ready=false};
|
||||
if(Controller("127.0.0.1",unready).Read(default).GetAwaiter().GetResult() is not ObjectResult {StatusCode:503})
|
||||
throw new Exception("Uninitialised ledger passed health");
|
||||
if(Controller("127.0.0.1",new Probe{Restricted=false}).Read(default).GetAwaiter().GetResult() is not ObjectResult {StatusCode:503})
|
||||
throw new Exception("Privileged runtime credentials passed deployment health");
|
||||
var failed=new Probe{Fail=true};
|
||||
if(Controller("127.0.0.1",failed).Read(default).GetAwaiter().GetResult() is not ObjectResult {StatusCode:503})
|
||||
throw new Exception("Database failure passed health");
|
||||
DataProtectionIdentity();
|
||||
}
|
||||
private static void DataProtectionIdentity()
|
||||
{
|
||||
var temporary=Directory.CreateTempSubdirectory("pd-protection-test-").FullName;
|
||||
try
|
||||
{
|
||||
var oldRoot=Path.Combine(temporary,"old");var newRoot=Path.Combine(temporary,"new");var keys=Path.Combine(temporary,"keys");
|
||||
Directory.CreateDirectory(oldRoot);Directory.CreateDirectory(newRoot);Directory.CreateDirectory(keys);
|
||||
ServiceProvider Services(string root,string? applicationName=null)
|
||||
{
|
||||
var builder=WebApplication.CreateBuilder(new WebApplicationOptions{ContentRootPath=root,EnvironmentName="Qualification"});
|
||||
var protection=builder.Services.AddDataProtection().PersistKeysToFileSystem(new DirectoryInfo(keys));
|
||||
if(applicationName is not null)protection.SetApplicationName(applicationName);
|
||||
return builder.Services.BuildServiceProvider();
|
||||
}
|
||||
using var original=Services(oldRoot);
|
||||
var identity=original.GetRequiredService<IOptions<DataProtectionOptions>>().Value.ApplicationDiscriminator;
|
||||
if(identity!=oldRoot+Path.DirectorySeparatorChar)throw new Exception("Hosting content-root identity differs from the reviewed assumption");
|
||||
var purpose=new[]{"Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationMiddleware","Cookies","v2"};
|
||||
var protectedValue=original.GetRequiredService<IDataProtectionProvider>().CreateProtector(purpose).Protect("synthetic compatibility probe");
|
||||
using var moved=Services(newRoot);
|
||||
var failed=false;
|
||||
try{moved.GetRequiredService<IDataProtectionProvider>().CreateProtector(purpose).Unprotect(protectedValue);}
|
||||
catch(System.Security.Cryptography.CryptographicException){failed=true;}
|
||||
if(!failed)throw new Exception("Different default roots unexpectedly shared an application identity");
|
||||
using var pinned=Services(newRoot,identity);
|
||||
if(pinned.GetRequiredService<IDataProtectionProvider>().CreateProtector(purpose).Unprotect(protectedValue)!="synthetic compatibility probe")
|
||||
throw new Exception("Explicit stable Data Protection identity did not preserve the synthetic payload");
|
||||
}
|
||||
finally{Directory.Delete(temporary,true);}
|
||||
}
|
||||
private static DeploymentHealthController Controller(string address,Probe repository)
|
||||
{
|
||||
var http=new DefaultHttpContext();http.Connection.RemoteIpAddress=IPAddress.Parse(address);
|
||||
return new DeploymentHealthController(repository,new TestEnvironment()){ControllerContext=new ControllerContext{HttpContext=http}};
|
||||
}
|
||||
private sealed class TestEnvironment:Microsoft.AspNetCore.Hosting.IWebHostEnvironment
|
||||
{
|
||||
public string EnvironmentName {get;set;}="Production";
|
||||
public string ApplicationName {get;set;}="PlotLine";
|
||||
public string ContentRootPath {get;set;}="/unused";
|
||||
public string WebRootPath {get;set;}="/unused/wwwroot";
|
||||
public Microsoft.Extensions.FileProviders.IFileProvider ContentRootFileProvider {get;set;}=new Microsoft.Extensions.FileProviders.NullFileProvider();
|
||||
public Microsoft.Extensions.FileProviders.IFileProvider WebRootFileProvider {get;set;}=new Microsoft.Extensions.FileProviders.NullFileProvider();
|
||||
}
|
||||
private sealed class Probe:IDeploymentHealthRepository
|
||||
{
|
||||
public int Calls;public bool Ready=true;public bool Restricted=true;public bool Fail;
|
||||
public Task<DeploymentDatabaseHealth> ReadAsync(CancellationToken cancellationToken)
|
||||
{Calls++;if(Fail)throw new InvalidOperationException("Private diagnostic must not reach HTTP");return Task.FromResult(new DeploymentDatabaseHealth("Isolated",Ready,Restricted));}
|
||||
}
|
||||
}
|
||||
@ -199,6 +199,8 @@ if(args.Contains("--focus-diagnostics")){SharedFocusDiagnosticsTests.Run();retur
|
||||
|
||||
var tests = new (string Name, Action Test)[]
|
||||
{
|
||||
("Deployment health is loopback-only, database-backed and fails closed",DeploymentOperationsTests.Run),
|
||||
("Character quick attributes and protected Undo", () => CharacterQuickAttributesTests.Run().GetAwaiter().GetResult()),
|
||||
("Main Character workspace lazy reads and safe management",()=>CharacterWorkspaceTests.Run().GetAwaiter().GetResult()),
|
||||
("Scene family identification and branch exploration",ContextFamilyTests.Run),
|
||||
("Context Family/Story projection and bounded reads",()=>ContextRelationshipLensTests.Run().GetAwaiter().GetResult()),
|
||||
|
||||
54
PlotLine.Tests/Sql/CharacterQuickAttributes.sql
Normal file
@ -0,0 +1,54 @@
|
||||
-- Run ONLY on a disposable qualification copy with migration 323 installed.
|
||||
IF DB_NAME() NOT LIKE N'PlotDirector_Qualification[_]%' THROW 51000,'Disposable qualification database required',1;
|
||||
SET NOCOUNT ON;
|
||||
DECLARE @project int=(SELECT TOP(1) a.ProjectID FROM dbo.ProjectUserAccess a JOIN dbo.Projects p ON p.ProjectID=a.ProjectID WHERE a.AccessRole=N'Owner' AND a.IsActive=1 AND p.IsArchived=0 ORDER BY a.ProjectID);
|
||||
DECLARE @user int=(SELECT TOP(1) UserID FROM dbo.ProjectUserAccess WHERE ProjectID=@project AND AccessRole=N'Owner' AND IsActive=1);
|
||||
IF @project IS NULL THROW 51000,'Qualification owner required',1;
|
||||
INSERT dbo.Characters(ProjectID,CharacterName,DefaultDescription,CharacterImportance,Sex,EyeColour) VALUES(@project,N'Quick assignment fixture A',N'Entire biography retained exactly',10,N'Legacy recorded custom value',N'Existing eye value');
|
||||
DECLARE @a int=SCOPE_IDENTITY();
|
||||
INSERT dbo.Characters(ProjectID,CharacterName,DefaultDescription,CharacterImportance) VALUES(@project,N'Quick assignment fixture B',N'Another complete biography',6);
|
||||
DECLARE @b int=SCOPE_IDENTITY(),@json nvarchar(max),@stamp datetime2,@error int;
|
||||
SELECT @json=(SELECT CharacterID AS Id,N'2' AS Value,CONVERT(nvarchar(50),UpdatedDate,126) AS Version FROM dbo.Characters WHERE CharacterID IN(@a,@b) FOR JSON PATH);
|
||||
EXEC dbo.Character_QuickAttributes_Assign @project,@user,N'importance',@json;
|
||||
IF (SELECT COUNT(*) FROM dbo.Characters WHERE CharacterID IN(@a,@b) AND CharacterImportance=2)<>2 THROW 51000,'Bulk assignment failed',1;
|
||||
IF NOT EXISTS(SELECT 1 FROM dbo.Characters WHERE CharacterID=@a AND DefaultDescription=N'Entire biography retained exactly' AND Sex=N'Legacy recorded custom value' AND EyeColour=N'Existing eye value' AND IsDeceased IS NULL) THROW 51000,'Unrelated fields changed',1;
|
||||
-- Undo each distinct prior importance, using the post-assignment versions.
|
||||
SELECT @json=(SELECT CharacterID AS Id,CASE WHEN CharacterID=@a THEN N'10' ELSE N'6' END AS Value,CONVERT(nvarchar(50),UpdatedDate,126) AS Version FROM dbo.Characters WHERE CharacterID IN(@a,@b) FOR JSON PATH);
|
||||
EXEC dbo.Character_QuickAttributes_Assign @project,@user,N'importance',@json,1;
|
||||
IF NOT EXISTS(SELECT 1 FROM dbo.Characters WHERE CharacterID=@a AND CharacterImportance=10) OR NOT EXISTS(SELECT 1 FROM dbo.Characters WHERE CharacterID=@b AND CharacterImportance=6) THROW 51000,'Individual previous values not restored',1;
|
||||
-- No-op must retain the timestamp.
|
||||
SELECT @stamp=UpdatedDate FROM dbo.Characters WHERE CharacterID=@a;
|
||||
SELECT @json=(SELECT @a AS Id,N'10' AS Value,CONVERT(nvarchar(50),@stamp,126) AS Version FOR JSON PATH);
|
||||
EXEC dbo.Character_QuickAttributes_Assign @project,@user,N'importance',@json;
|
||||
IF (SELECT UpdatedDate FROM dbo.Characters WHERE CharacterID=@a)<>@stamp THROW 51000,'No-op wrote a row',1;
|
||||
-- Invalid canonical value, denied user, foreign project and mixed valid/invalid selection are atomic.
|
||||
SELECT @json=(SELECT CharacterID AS Id,N'9' AS Value,CONVERT(nvarchar(50),UpdatedDate,126) AS Version FROM dbo.Characters WHERE CharacterID IN(@a,@b) FOR JSON PATH);
|
||||
SET @error=0;BEGIN TRY EXEC dbo.Character_QuickAttributes_Assign @project,@user,N'importance',@json;END TRY BEGIN CATCH SET @error=ERROR_NUMBER();END CATCH;
|
||||
IF @error<>51012 THROW 51000,'Invalid canonical value accepted',1;
|
||||
SELECT @json=(SELECT @a AS Id,N'2' AS Value,CONVERT(nvarchar(50),@stamp,126) AS Version FOR JSON PATH);
|
||||
SET @error=0;BEGIN TRY EXEC dbo.Character_QuickAttributes_Assign @project,-1,N'importance',@json;END TRY BEGIN CATCH SET @error=ERROR_NUMBER();END CATCH;
|
||||
IF @error<>51010 THROW 51000,'Unauthorised user accepted',1;
|
||||
DECLARE @foreign int=ISNULL((SELECT MAX(ProjectID) FROM dbo.Projects),0)+1;
|
||||
SET @error=0;BEGIN TRY EXEC dbo.Character_QuickAttributes_Assign @foreign,@user,N'importance',@json;END TRY BEGIN CATCH SET @error=ERROR_NUMBER();END CATCH;
|
||||
IF @error<>51010 THROW 51000,'Cross-project assignment accepted',1;
|
||||
SELECT @json=(SELECT Id,N'2' AS Value,CONVERT(nvarchar(50),@stamp,126) AS Version FROM (VALUES(@a),(-1)) x(Id) FOR JSON PATH);
|
||||
SET @error=0;BEGIN TRY EXEC dbo.Character_QuickAttributes_Assign @project,@user,N'importance',@json;END TRY BEGIN CATCH SET @error=ERROR_NUMBER();END CATCH;
|
||||
IF @error<>51010 OR (SELECT CharacterImportance FROM dbo.Characters WHERE CharacterID=@a)<>10 THROW 51000,'Partial assignment occurred',1;
|
||||
-- Stale version (including stale Undo) rejects the entire operation.
|
||||
UPDATE dbo.Characters SET UpdatedDate=DATEADD(second,1,UpdatedDate) WHERE CharacterID=@a;
|
||||
SELECT @json=(SELECT @a AS Id,N'2' AS Value,CONVERT(nvarchar(50),@stamp,126) AS Version FOR JSON PATH);
|
||||
SET @error=0;BEGIN TRY EXEC dbo.Character_QuickAttributes_Assign @project,@user,N'importance',@json,1;END TRY BEGIN CATCH SET @error=ERROR_NUMBER();END CATCH;
|
||||
IF @error<>51011 OR (SELECT CharacterImportance FROM dbo.Characters WHERE CharacterID=@a)<>10 THROW 51000,'Concurrent Undo overwrote a newer value',1;
|
||||
-- Individual nullable life status remains independent of archive.
|
||||
SELECT @json=(SELECT @a AS Id,N'1' AS Value,CONVERT(nvarchar(50),UpdatedDate,126) AS Version FROM dbo.Characters WHERE CharacterID=@a FOR JSON PATH);
|
||||
EXEC dbo.Character_QuickAttributes_Assign @project,@user,N'life',@json;
|
||||
IF NOT EXISTS(SELECT 1 FROM dbo.Characters WHERE CharacterID=@a AND IsDeceased=1 AND IsArchived=0) THROW 51000,'Life status did not remain independent of archive',1;
|
||||
-- Restore legacy sex exactly, even without a catalogue ID.
|
||||
DECLARE @sex int=(SELECT TOP(1) CharacterSexValueID FROM dbo.CharacterSexValues WHERE IsSystem=1 AND IsActive=1);
|
||||
SELECT @json=(SELECT @a AS Id,CONVERT(nvarchar(100),@sex) AS Value,CONVERT(nvarchar(50),UpdatedDate,126) AS Version FROM dbo.Characters WHERE CharacterID=@a FOR JSON PATH);
|
||||
EXEC dbo.Character_QuickAttributes_Assign @project,@user,N'sex',@json;
|
||||
SELECT @json=(SELECT @a AS Id,N'' AS Value,N'Legacy recorded custom value' AS Sex,CONVERT(nvarchar(50),UpdatedDate,126) AS Version FROM dbo.Characters WHERE CharacterID=@a FOR JSON PATH);
|
||||
EXEC dbo.Character_QuickAttributes_Assign @project,@user,N'sex',@json,1;
|
||||
IF NOT EXISTS(SELECT 1 FROM dbo.Characters WHERE CharacterID=@a AND SexValueID IS NULL AND Sex=N'Legacy recorded custom value') THROW 51000,'Legacy sex Undo lost data',1;
|
||||
DELETE dbo.Characters WHERE CharacterID IN(@a,@b);
|
||||
PRINT N'PASS individual/bulk, unrelated fields, canonical validation, authorisation, cross-project isolation, atomic failure, no-op, stale Undo, nullable life status and legacy custom sex restoration';
|
||||
@ -268,6 +268,11 @@ internal static class ToolbarBrowserHost
|
||||
await context.RequestServices.GetRequiredService<INarrativeFocus>().Open(context.RequestServices.GetRequiredService<ICurrentUserService>().UserId!.Value,null,id);
|
||||
await RenderFullAsync(context,"Scenes","Edit",model);
|
||||
}).WithOrder(-1);
|
||||
app.MapGet("/character-attribute-definitions-fixture",()=>Results.Json(CharacterQuickAttributes.Definitions([new(){CharacterSexValueID=1,SexName="Male"},new(){CharacterSexValueID=2,SexName="Female"},new(){CharacterSexValueID=3,SexName="Custom recorded sex"}]).Select(g=>new{g.Id,g.Label,values=g.Values.Select(v=>new{v.Value,v.Label,v.Icon,v.Tone,path=ApplicationRibbon.Icon(v.Icon).IconPath})})));
|
||||
app.MapGet("/character-attributes-fixture",async (HttpContext context)=>{
|
||||
var count=int.TryParse(context.Request.Query["count"],out var n)?Math.Clamp(n,1,500):10;
|
||||
await RenderFullAsync(context,"Characters","Index",new CharacterListViewModel{Project=new(){ProjectID=7,ProjectName="Character attribute acceptance fixture",AccessRole="Owner"},Characters=Enumerable.Range(1,count).Select(i=>new Character{CharacterID=i,ProjectID=7,CharacterName=$"Fixture character {i:D3}",CharacterImportance=i%3==0?10:i%3==1?6:2,DefaultDescription=string.Join(" ",Enumerable.Repeat($"Complete biography for character {i}: remembered history, motivations and relationships.",i%9+1))}).ToArray()});
|
||||
});
|
||||
app.MapGet("/Characters",async (HttpContext context)=>await RenderFullAsync(context,"Characters","Index",new CharacterListViewModel{Project=new(){ProjectID=7,ProjectName="Fixture project",AccessRole="Owner"},Characters=[new(){CharacterID=5,ProjectID=7,CharacterName="Fixture participant",CharacterImportance=6}]})).WithOrder(-1);
|
||||
app.MapGet("/Projects", () => Results.Redirect("/fixture"));
|
||||
app.MapGet("/map-story-fixture", () => {
|
||||
|
||||
79
PlotLine/Controllers/CharacterAttributesController.cs
Normal file
@ -0,0 +1,79 @@
|
||||
using System.Data;
|
||||
using System.Security.Cryptography;
|
||||
using Microsoft.AspNetCore.DataProtection;
|
||||
using System.Text.Json;
|
||||
using Dapper;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.Data.SqlClient;
|
||||
using PlotLine.Data;
|
||||
using PlotLine.Models;
|
||||
using PlotLine.Services;
|
||||
using PlotLine.Services.Context;
|
||||
namespace PlotLine.Controllers;
|
||||
|
||||
[Authorize]
|
||||
public sealed class CharacterAttributesController(IProjectRepository projects,ICharacterRepository characters,IProjectCollaborationRepository collaboration,ICurrentUserService user,ISqlConnectionFactory connections,ContextWorkspaceNotifications notifications,IDataProtectionProvider protection) : Controller
|
||||
{
|
||||
[HttpGet]
|
||||
public async Task<IActionResult> Directory(int projectId)
|
||||
{
|
||||
if(user.UserId is not int author)return Unauthorized();
|
||||
var project=await projects.GetForUserAsync(projectId,author);
|
||||
if(project is null)return NotFound();
|
||||
var owner=await collaboration.GetOwnerUserIdAsync(projectId);
|
||||
var definitions=CharacterQuickAttributes.Definitions(owner.HasValue?await characters.ListSexValuesAsync(owner.Value):[]);
|
||||
using var db=connections.CreateConnection();
|
||||
var rows=await db.QueryAsync<Character>("dbo.Character_QuickAttributes_Read",new {ProjectID=projectId,UserID=author},commandType:CommandType.StoredProcedure);
|
||||
return Json(new {canEdit=ContextEditPolicy.CanEdit(project),groups=definitions.Select(g=>new {g.Id,g.Label,values=g.Values.Select(v=>new {v.Value,v.Label,v.Tone,v.Icon,path=ApplicationRibbon.Icon(v.Icon).IconPath})}),characters=rows.Select(CharacterQuickAttributes.Snapshot)});
|
||||
}
|
||||
|
||||
public sealed record UndoChange(int Id,string Value,string? Sex,string Version);
|
||||
public sealed record UndoReceipt(int User,int ProjectId,string Attribute,UndoChange[] Changes,DateTime Expires);
|
||||
public sealed record UndoRequest(string Token);
|
||||
private sealed class PreviousValue {public int Id{get;set;}public string Value{get;set;}="";public string? Sex{get;set;}}
|
||||
|
||||
[HttpPost,ValidateAntiForgeryToken]
|
||||
public async Task<IActionResult> Undo([FromBody] UndoRequest request)
|
||||
{
|
||||
if(user.UserId is not int author)return Unauthorized();
|
||||
if(!ModelState.IsValid||request is null||request.Token is null||request.Token.Length>1000000)return BadRequest("Undo is unavailable.");
|
||||
try
|
||||
{
|
||||
var receipt=JsonSerializer.Deserialize<UndoReceipt>(protection.CreateProtector("CharacterQuickAttributes.Undo.v1").Unprotect(request.Token));
|
||||
if(receipt is null||receipt.User!=author||receipt.Expires<DateTime.UtcNow)return BadRequest("Undo has expired.");
|
||||
return await Execute(receipt.ProjectId,receipt.Attribute,receipt.Changes,true);
|
||||
}
|
||||
catch(Exception e) when(e is CryptographicException or JsonException or ArgumentException){return BadRequest("Undo is unavailable.");}
|
||||
}
|
||||
|
||||
[HttpPost,ValidateAntiForgeryToken]
|
||||
public async Task<IActionResult> Assign([FromBody] CharacterQuickAssignment input)
|
||||
{
|
||||
if(user.UserId is not int author)return Unauthorized();
|
||||
if(!ModelState.IsValid||input is null||input.Changes is null||input.Changes.Any(c=>c is null)||input.Changes.Length is <1 or >2000||input.Changes.Select(c=>c.Id).Distinct().Count()!=input.Changes.Length)return BadRequest("Choose a distinct character selection.");
|
||||
if(input.Attribute is not ("importance" or "life" or "sex" or "quickAdd"))return BadRequest("Unknown attribute.");
|
||||
if(input.Changes.Any(c=>c.Value?.Length>100||!DateTime.TryParse(c.Version,out _)))return BadRequest("Invalid assignment.");
|
||||
return await Execute(input.ProjectId,input.Attribute,input.Changes.Select(c=>new UndoChange(c.Id,c.Value??"",null,c.Version)).ToArray(),false);
|
||||
}
|
||||
private async Task<IActionResult> Execute(int projectId,string attribute,UndoChange[] changes,bool restore)
|
||||
{
|
||||
var author=user.UserId!.Value;
|
||||
try
|
||||
{
|
||||
using var db=connections.CreateConnection();
|
||||
using var result=await db.QueryMultipleAsync("dbo.Character_QuickAttributes_Assign",new {ProjectID=projectId,UserID=author,Attribute=attribute,Changes=JsonSerializer.Serialize(changes),Restore=restore},commandType:CommandType.StoredProcedure);
|
||||
var rows=(await result.ReadAsync<Character>()).ToArray();
|
||||
var before=(await result.ReadAsync<PreviousValue>()).ToArray();
|
||||
string? undoToken=null;
|
||||
if(rows.Length>0)
|
||||
{
|
||||
var versions=rows.ToDictionary(c=>c.CharacterID,c=>c.UpdatedDate.ToString("O"));
|
||||
undoToken=protection.CreateProtector("CharacterQuickAttributes.Undo.v1").Protect(JsonSerializer.Serialize(new UndoReceipt(author,projectId,attribute,before.Select(c=>new UndoChange(c.Id,c.Value,c.Sex,versions[c.Id])).ToArray(),DateTime.UtcNow.AddMinutes(10))));
|
||||
await notifications.Invalidate(author,projectId:projectId,kind:"characters");
|
||||
}
|
||||
return Json(new {saved=true,characters=rows.Select(CharacterQuickAttributes.Snapshot),undoToken});
|
||||
}
|
||||
catch(SqlException e) when(e.Number is 51010 or 51011 or 51012){return StatusCode(e.Number==51010?403:409,new {message=e.Number==51011?"Characters changed in another window. Refresh their attributes and try again.":"The selection or attribute value is no longer available."});}
|
||||
}
|
||||
}
|
||||
37
PlotLine/Controllers/DeploymentHealthController.cs
Normal file
@ -0,0 +1,37 @@
|
||||
using System.Net;
|
||||
using System.Reflection;
|
||||
using System.Text.RegularExpressions;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using PlotLine.Data;
|
||||
|
||||
namespace PlotLine.Controllers;
|
||||
|
||||
[AllowAnonymous]
|
||||
[ApiExplorerSettings(IgnoreApi=true)]
|
||||
public sealed class DeploymentHealthController(IDeploymentHealthRepository database,IWebHostEnvironment environment) : Controller
|
||||
{
|
||||
[HttpGet("/_deployment/health")]
|
||||
[ResponseCache(NoStore=true,Location=ResponseCacheLocation.None)]
|
||||
public async Task<IActionResult> Read(CancellationToken cancellationToken)
|
||||
{
|
||||
// Forwarded headers have already restored the external client's address.
|
||||
// This endpoint is for the local activation helper, never the public proxy.
|
||||
if(HttpContext.Connection.RemoteIpAddress is not { } ip || !IPAddress.IsLoopback(ip))
|
||||
return NotFound();
|
||||
try
|
||||
{
|
||||
var state=await database.ReadAsync(cancellationToken);
|
||||
if(!state.LedgerReady||!state.RuntimeRestricted)return StatusCode(503,new {healthy=false});
|
||||
var info=typeof(Program).Assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>()?.InformationalVersion??"";
|
||||
var sha=Regex.Match(info,@"\+([a-f0-9]{40})").Groups[1].Value;
|
||||
if(sha.Length!=40)return StatusCode(503,new {healthy=false});
|
||||
return Json(new {healthy=true,version=info.Split('+')[0],sourceCommit=sha,database=state.DatabaseName,environment=environment.EnvironmentName});
|
||||
}
|
||||
catch(Exception) when(!cancellationToken.IsCancellationRequested)
|
||||
{
|
||||
// Never return SQL diagnostics or connection information to HTTP clients.
|
||||
return StatusCode(503,new {healthy=false});
|
||||
}
|
||||
}
|
||||
}
|
||||
22
PlotLine/Data/DeploymentHealthRepository.cs
Normal file
@ -0,0 +1,22 @@
|
||||
using System.Data;
|
||||
using Dapper;
|
||||
|
||||
namespace PlotLine.Data;
|
||||
|
||||
public sealed record DeploymentDatabaseHealth(string DatabaseName, bool LedgerReady, bool RuntimeRestricted = true);
|
||||
|
||||
public interface IDeploymentHealthRepository
|
||||
{
|
||||
Task<DeploymentDatabaseHealth> ReadAsync(CancellationToken cancellationToken);
|
||||
}
|
||||
|
||||
public sealed class DeploymentHealthRepository(ISqlConnectionFactory connections) : IDeploymentHealthRepository
|
||||
{
|
||||
public async Task<DeploymentDatabaseHealth> ReadAsync(CancellationToken cancellationToken)
|
||||
{
|
||||
using var connection=connections.CreateConnection();
|
||||
return await connection.QuerySingleAsync<DeploymentDatabaseHealth>(new CommandDefinition(
|
||||
"dbo.Deployment_Health",commandType:CommandType.StoredProcedure,
|
||||
cancellationToken:cancellationToken,commandTimeout:5));
|
||||
}
|
||||
}
|
||||
@ -6,6 +6,8 @@ using PlotLine.Models;
|
||||
using PlotLine.Services;
|
||||
using Microsoft.AspNetCore.Authentication.Cookies;
|
||||
using Microsoft.AspNetCore.DataProtection;
|
||||
using Microsoft.AspNetCore.HttpOverrides;
|
||||
using System.Net;
|
||||
using Microsoft.Extensions.FileProviders;
|
||||
using PlotLine.Hubs;
|
||||
|
||||
@ -24,6 +26,15 @@ public class Program
|
||||
builder.Logging.ClearProviders();
|
||||
builder.Logging.AddConsole();
|
||||
builder.Logging.AddDebug();
|
||||
builder.Services.Configure<ForwardedHeadersOptions>(options =>
|
||||
{
|
||||
options.ForwardedHeaders = ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto;
|
||||
options.ForwardLimit = 1;
|
||||
options.KnownIPNetworks.Clear();
|
||||
options.KnownProxies.Clear();
|
||||
options.KnownProxies.Add(IPAddress.Loopback);
|
||||
options.KnownProxies.Add(IPAddress.IPv6Loopback);
|
||||
});
|
||||
|
||||
builder.Services.AddControllersWithViews(options =>
|
||||
{
|
||||
@ -59,8 +70,14 @@ public class Program
|
||||
builder.Environment.ContentRootPath,
|
||||
builder.Configuration["DataProtection:KeysPath"]);
|
||||
Directory.CreateDirectory(dataProtectionKeyPath);
|
||||
builder.Services.AddDataProtection()
|
||||
var dataProtection = builder.Services.AddDataProtection()
|
||||
.PersistKeysToFileSystem(new DirectoryInfo(dataProtectionKeyPath));
|
||||
// Releases live in versioned directories. A separately provisioned stable
|
||||
// identity prevents a path change from silently changing the key purpose.
|
||||
// Leave the existing default intact unless operations explicitly configure it.
|
||||
var dataProtectionApplicationName = builder.Configuration["DataProtection:ApplicationName"];
|
||||
if (!string.IsNullOrWhiteSpace(dataProtectionApplicationName))
|
||||
dataProtection.SetApplicationName(dataProtectionApplicationName);
|
||||
builder.Services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme)
|
||||
.AddCookie(options =>
|
||||
{
|
||||
@ -143,6 +160,7 @@ public class Program
|
||||
});
|
||||
});
|
||||
builder.Services.AddSingleton<ISqlConnectionFactory, SqlConnectionFactory>();
|
||||
builder.Services.AddScoped<IDeploymentHealthRepository, DeploymentHealthRepository>();
|
||||
builder.Services.AddSingleton<DevelopmentSqlDiagnostics>();
|
||||
builder.Services.AddHostedService(services => services.GetRequiredService<DevelopmentSqlDiagnostics>());
|
||||
builder.Services.AddScoped<IUserRepository, UserRepository>();
|
||||
@ -384,6 +402,8 @@ public class Program
|
||||
configure?.Invoke(builder);
|
||||
var app = builder.Build();
|
||||
|
||||
app.UseForwardedHeaders();
|
||||
|
||||
if (!app.Environment.IsDevelopment())
|
||||
{
|
||||
app.UseExceptionHandler("/Home/Error");
|
||||
|
||||