Record clean-commit release and recovered Production upgrade qualification
This commit is contained in:
parent
190c074d52
commit
4182dbdf5d
10
Docs/Deployment/Evidence/Phase1-20261125/browser.json
Normal file
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
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
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
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"
|
||||
}
|
||||
}
|
||||
@ -1,8 +1,9 @@
|
||||
# Production migration Phase 1 — 25 November 2026
|
||||
|
||||
Status at the implementation commit: **qualification in progress; no Production
|
||||
deployment authorised**. Final evidence is recorded separately after clean-commit
|
||||
qualification. Do not treat a draft plan or prototype rehearsal as release approval.
|
||||
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
|
||||
|
||||
@ -147,9 +148,9 @@ cross-root explicit identity behaviour; no real historical cookie is claimed val
|
||||
|
||||
## Remaining gates before Production
|
||||
|
||||
Final readiness requires a clean-commit signed package, two complete fresh-copy
|
||||
upgrades using the final worker, regression/HTTP/failure results and a matching
|
||||
qualified DLL/evidence identity. Phase 2 then provisions accounts, trust, ownership,
|
||||
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.
|
||||
|
||||
@ -159,3 +160,85 @@ behaviour and real-cookie continuity remain deployment/cutover checks. Productio
|
||||
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.
|
||||
|
||||
@ -38,3 +38,9 @@ migrate, health and activated. The session lock spans begin through process exit
|
||||
fingerprint/integrity operations accept only qualification database names. Errors
|
||||
return a safe type/SQL number, script identity and batch number, never SQL text or
|
||||
connection diagnostics. Root activation evidence preserves the failure stage.
|
||||
|
||||
Recovered accounts may correctly fail the restore contract's subscription guard.
|
||||
On a disposable isolated clone only, a separately recorded short-lived entitlement
|
||||
fixture may enable that test. Remove it in finally, never change original entitlement
|
||||
rows, and compare all original business-column fingerprints afterwards. Do not
|
||||
disable the subscription trigger or use a Production database as the fixture.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user