dnQuant — Git / Off-Host Disaster Recovery Contract
Status: Standing recovery requirement approved by the sole operator, November 6, 2026.
Goal: Recover the latest available consistent dnQuant system on a replacement Linux machine using GitHub source + WendtWerks encrypted off-host backups, without unexplained dependencies on the lost host.
This contract reuses already accepted independent production PostgreSQL restore evidence from November 3, 2026. It is not a claim that a full replacement-server application startup has been exercised; the distinction is documented below. It does not change backup schedules, request another restore, or authorize deletion of historical state.
Accepted recovery evidence — November 3, 2026
Do not re-run an accepted restore merely because an agent wrote a new recovery checklist. The existing WendtWerks activation proved:
- Independent full A recovery: production backup
20261103-035806F, database ready in 396.257s, fully verified in 408.7s. - Independent full B + named WAL recovery: production backup
20261103-042406F, database ready in 333.637s, fully verified in 346.222s; named WAL pointdnquant_offhost_accept_20261103T044252Zreached LSN 17/D6000350. - Integrity: pgBackRest repository verification passed (November 3, 04:48:36 UTC). Both restores validated manifests and page checksums, 41 ledger registry entries, 213 user tables, 40 row-security policies, service login-role counts and bounded identity/accounting anchors.
- Independence: restored on a separate Mac Docker linux/amd64 recovery client with the production primary network blocked and its data volume absent.
- Later continuity: the November 3 12:13 UTC incremental and health check passed; that specific incremental was not itself independently restored. Subsequent backup health must be assessed at its actual timestamp.
These are accepted full production PostgreSQL and WAL recovery tests, including remote storage delivery and integrity. They did not provision a fresh Linux host or start the complete app/portal/DD/inference stack; do not describe them as if they did. Equally, do not call the PostgreSQL restore component untested or request another full recovery merely to verify a documentation change.
Source receipts: WendtWerks activation and recovery runbook, November 3 recovery recheck, sanitized recovery receipts.
A. GitHub must contain reproducible deployment inputs
- Entire accepted source for alfaEngine, intelEngine, ddEngine, dashboard, alerts and currently enabled agents/interfaces.
- Current Docker/Compose definition and full ordered override/launcher commands for every service: engine, PostgreSQL, portal/tunnel, chat/DD, consumer fence, local inference and enabled workers. Do not document an obsolete SQLite recipe as the current PostgreSQL restore procedure.
- Locked application dependencies, Dockerfiles, migration/grant/setup scripts, host prerequisites, supported Linux/GPU model setup and pinned model weights with verified upstream download/restore instructions.
- For each deployment, an accurate non-secret release recipe/manifest including actual Git commit(s), verified service image digests, Postgres version, relevant config/method schema or policy versions, restore compatibility notes, and rollback reference. Prefer updating existing
deploy/working-source-pins.jsonand canonical deploy instructions instead of inventing another incompatible manifest. - Exact launch/drain/restart procedures and known pitfalls. A corrected host-only launch command is not a completed change until it is documented and pushed.
The Git repository must never contain actual private deployment.env, credential files, secrets, private provisioning manifests, account receipts, database archives, WAL, provider/customer data, signing material, private IP/SSH access artifacts or decryption keys. A sanitized list of required private-file categories and expected mount paths is appropriate.
B. WendtWerks off-host backup must contain irreplaceable state
Maintain an explicit restore inventory and verify that backups cover, as applicable:
- PostgreSQL consistent physical base backups and all needed WAL segments for an identified recoverable position; grants/principals, extensions, ownership and catalog compatibility.
- intelEngine persistent token histories, context, summaries, source cursors and other file-backed intelligence.
- Non-Postgres operational ledgers or state still used by active services, including provider-account charging/uncertain attempts, safety/method receipts, schedule positions, delivery/deduplication, DD and trading-agent journals when present.
- Private active
deployment.env, host-specific Compose overrides, bound policies/manifests, service secrets, credentials/allowlists, tunnel/private network identity, monitoring/backup configuration and privileged restore inputs. - Any required local files that cannot reliably be recreated from pinned Git/public upstream (or document the verified redownload path, checksums, platform assumptions and access).
Off-host archives must be encrypted and integrity-checked. The restore operator must be able to obtain decryption keys and necessary service credentials without relying exclusively on the failed host. Backup health warnings must be visible and not hidden by application-release reports.
C. Restore process
On a clean compatible Linux machine:
- Obtain current GitHub release manifest and validated off-host recovery inventory.
- Prepare OS, drives, Docker/GPU dependencies, permissions and storage mounts using checked-in scripts/instructions.
- Fetch exact source and pin/build/pull compatible images; restore private configuration from encrypted recovery material without writing it to Git or logs.
- Restore a consistent PostgreSQL base plus WAL to the chosen justified cutoff, and intelEngine/runtime files to a logically compatible point. Preserve immutable identities, receipts, provider charges, balances and delivery/decision history; explicitly reconcile cross-store cutoffs.
- Start one owner/writer set at a time using the complete current Compose chain. Verify DB service identity/grants, engine, portal/tunnel, DD/chat, intelEngine, scheduled discovery and market sampling, inference where enabled, and read-only consumers.
- Verify no duplicate dispatches, no reset provider budgets, no unauthorized alerts/trades and no old ledger overwritten on a code-only rollback. State the restored timestamp, WAL position and any post-cutoff data gap.
Existing acceptance is the starting point: reuse the independently verified November 3 PostgreSQL full/WAL restores and prior deployment/backup receipts. Do not schedule or require another full restore, a clean-host rehearsal, or long validation solely because these operating rules are new. For any genuinely uncovered system component or materially changed restoration dependency, first identify the specific gap in existing evidence and address it narrowly under operator authorization. Normal application-only releases document Git/host parity and relevant recoverability; they do not repeat whole-system recovery drills.
D. Definition of done for future agent work
For any live-changing task, report:
- Pushed source commit/PR and the exact deployed source/image(s), distinguishing repo main from live.
- Which deployment/launcher/Compose/manifest/runbook files were changed or verified, and Git readback of those changes.
- What private configuration/state has changed and whether its encrypted WendtWerks backup coverage has been verified. No sensitive values in the report.
- Latest verified recoverable base/WAL time and any outage/gap; do not claim recovery to the present if backup health is degraded.
- Either confirmation that a replacement host can use the previously tested restore procedure, or an explicit unresolved compatibility/inventory gap.
An application change with no host-side change may reuse an existing restore procedure; no need for another broad audit.
E. Known current gaps to resolve (not claims of failure or instructions to alter production)
As checked in GitHub on November 6, 2026:
deploy/working-source-pins.jsonstill advertises engine sourced23f36b...and imagesha256:c160a8f..., while the latest separately observed deployed PR #28 engine is source5592879.../ imagesha256:295bb94.... Reconcile actual live source/image pins for every service before calling the Git recipe current. Do not overwrite unrelated service pins from inference.- Some
deploy/README.mdsections still describe historical SQLite/older Compose image recipes. Establish a clearly designated current PostgreSQL restore command and archive older examples as historical. - The 13:00 UTC November 6 scheduled backup failure and later backup-overdue warning were reported independently; PostgreSQL WAL pending=0 is not sufficient to prove continuous off-host restorable WAL.
- The live deployment required corrected launcher/environment and stage-directory commands. Verify these fixes are now in the repository's canonical deployment procedure, not merely in the last operator shell/history.
- The November 3 PostgreSQL full and WAL restore acceptance remains valid and is not an open test item. A complete replacement-server application stack startup from Git + all private non-database assets was not established by those database tests. Reconcile actual pinned deployment recipes and off-host coverage of non-DB state; disclose any remaining specific gap. Do not mandate another full recovery rehearsal for this documentation or routine application changes.
Scope: Do not change production, secrets, PostgreSQL, quotas or backup schedules merely to satisfy this documentation requirement. Close the gaps in a focused, operator-authorized follow-up.
