diff --git a/Docs/Deployment/Evidence/Routine-20261125-eadda6f6/acceptance.json b/Docs/Deployment/Evidence/Routine-20261125-eadda6f6/acceptance.json new file mode 100644 index 00000000..b9559d41 --- /dev/null +++ b/Docs/Deployment/Evidence/Routine-20261125-eadda6f6/acceptance.json @@ -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" +} diff --git a/Docs/Deployment/Evidence/Routine-20261125-eadda6f6/activation-result.json b/Docs/Deployment/Evidence/Routine-20261125-eadda6f6/activation-result.json new file mode 100644 index 00000000..5d718322 --- /dev/null +++ b/Docs/Deployment/Evidence/Routine-20261125-eadda6f6/activation-result.json @@ -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." +} diff --git a/Docs/Deployment/Evidence/Routine-20261125-eadda6f6/authorization.json b/Docs/Deployment/Evidence/Routine-20261125-eadda6f6/authorization.json new file mode 100644 index 00000000..57b7f7ff --- /dev/null +++ b/Docs/Deployment/Evidence/Routine-20261125-eadda6f6/authorization.json @@ -0,0 +1,7 @@ +{ + "format": 1, + "manifest_sha256": "aeab7d79147518816adc541ef24af311f6564b248264c3057b95f1f3695649a2", + "package_sha256": "e4990e90c3d32084e87af5bb149c5aff393b61e7e0c03f8e3c5120771686a4d7", + "release_id": "plotdirector-production-eadda6f6-20261125-r1", + "source_commit": "eadda6f674ac456e8ae6014e2c5781088d408f8f" +} diff --git a/Docs/Deployment/Evidence/Routine-20261125-eadda6f6/public-before.json b/Docs/Deployment/Evidence/Routine-20261125-eadda6f6/public-before.json new file mode 100644 index 00000000..26cbc61f --- /dev/null +++ b/Docs/Deployment/Evidence/Routine-20261125-eadda6f6/public-before.json @@ -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" +} diff --git a/Docs/Deployment/Evidence/Routine-20261125-eadda6f6/scope.json b/Docs/Deployment/Evidence/Routine-20261125-eadda6f6/scope.json new file mode 100644 index 00000000..54d05141 --- /dev/null +++ b/Docs/Deployment/Evidence/Routine-20261125-eadda6f6/scope.json @@ -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" + ] +} diff --git a/Docs/Deployment/Evidence/Routine-20261125-eadda6f6/timing.json b/Docs/Deployment/Evidence/Routine-20261125-eadda6f6/timing.json new file mode 100644 index 00000000..250abab1 --- /dev/null +++ b/Docs/Deployment/Evidence/Routine-20261125-eadda6f6/timing.json @@ -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 +} diff --git a/Docs/Deployment/Production.md b/Docs/Deployment/Production.md index 7638a49b..fcc2c723 100644 --- a/Docs/Deployment/Production.md +++ b/Docs/Deployment/Production.md @@ -5,6 +5,8 @@ activation. Production is live on web1 following the authorised [Phase 2 deploym [Phase 1 qualification](Phase1-20261125.md) remains historical release evidence; future changes still require environment-specific authorisation and qualification. +Latest routine release: `eadda6f6`, version `1.0.0`; see [deployment and timings](Routine-20261125-eadda6f6.md). + ## Trust and environment boundaries - Build only on Atlas, from a clean, committed worktree. Keep source, SDKs and diff --git a/Docs/Deployment/Routine-20261125-eadda6f6.md b/Docs/Deployment/Routine-20261125-eadda6f6.md new file mode 100644 index 00000000..c6d0752e --- /dev/null +++ b/Docs/Deployment/Routine-20261125-eadda6f6.md @@ -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).