Recover the whole backend, not just the database.
Reprise is a local-first recovery and compatibility control plane for changing backends. It records how deployments, database schema, migrations, functions, configuration, storage contracts, authentication, and dependency sets relate over time. Given an incident, Reprise identifies a defensible compatible historical checkpoint, reconstructs it in isolation, records verification evidence, and prevents promotion when evidence is incomplete.
It is designed for the question infrastructure teams ask during a difficult rollback:
What was the last mutually compatible state of this backend, and can we prove that it is safer than the state we have now?
Reprise is intentionally not a database-backup wrapper. A snapshot may restore data while leaving the deployed application, migration lineage, contracts, or configuration incompatible. Reprise treats recovery as a cross-component compatibility problem.
Current release: v1.1.0-rc.3 — a technically validated release candidate, not a general-availability production release.
The core recovery reasoning path is verified locally and in CI: immutable graph and ledger behavior, evidence-based compatibility decisions, compound checkpoints, deterministic historical reconstruction, change-boundary analysis, recovery guardrails, tamper-evident receipts, durable local checkpoints, and the credential-free acquisition demonstration. The Neon branch-lifecycle adapter is covered by mocked provider contract tests; it has not been exercised against a live Neon account.
Read the release notes, capability matrix, and known limitations before evaluating the project for production use.
- Why Reprise
- What is implemented
- Safety model
- Architecture
- Quick start
- Run the recovery demonstration
- Neon integration
- Configuration and provider model
- Verification and auditability
- Repository layout
- Development and validation
- Documentation and diligence
- Security, telemetry, and licensing
Traditional rollback tooling normally answers one narrow question: how to restore a particular system. Production incidents rarely stay that narrow. A migration, an application deployment, a function revision, an environment change, and a storage contract can all be individually valid yet mutually incompatible.
Reprise maintains an evidence-backed view of those relationships. It uses typed historical records and explicit compatibility results rather than timestamp matching or a single “healthy� status. The planner can therefore explain why it selected a candidate, what evidence supports it, and which unknowns still block action.
| A conventional restore workflow | Reprise’s recovery model |
|---|---|
| Restores a database point or backup | Selects a compound checkpoint across backend components |
| Assumes recency implies safety | Ranks evidence and preserves contradictions |
| Treats provisioning as completion | Requires verification evidence and a receipt |
| Can hide uncertainty in a status | Models COMPATIBLE, INCOMPATIBLE, and UNKNOWN explicitly |
| Risks acting on stale plans | Rechecks the live state revision before promotion |
The repository deliberately distinguishes verified behavior from future integrations.
| Capability | Current status | Evidence |
|---|---|---|
| Typed state graph, versioned nodes, and dependency traversal | Verified | graph unit tests |
| Hash-chained append-oriented change ledger | Verified | ledger integrity tests |
| Evidence-based compatibility engine | Verified | compatibility tests, negative paths |
| Compound backend checkpoints and local atomic persistence | Verified | recovery tests |
| Deterministic Time Machine reconstruction | Verified | recovery and CLI tests |
| Change-boundary analysis and blast-radius evidence | Verified | acquisition-demo tests |
| Recovery Guard and tamper-evident receipts | Verified | guard and receipt integrity tests |
| Deterministic local recovery demonstration | Verified | CLI test and CI |
| Neon Management API branch lifecycle adapter | Implemented / tested | mocked provider contract tests |
| Static interactive product site | Implemented | website/ and Pages workflow; deployment requires Pages configuration |
| Live Neon verification or restore execution | Not implemented | intentionally absent |
| Production promotion command | Unsupported by design | no CLI command is exposed |
| MCP agent service and operational dashboard | Proposed | not represented as shipping |
The full, release-scoped list is maintained in docs/V1_CAPABILITY_MATRIX.md.
Reprise is designed to fail safely.
- Unknown is blocking.
UNKNOWNcompatibility is never silently treated asCOMPATIBLE. - Isolation first. Recovery work is meant to construct and verify a candidate before any production action.
- No default production mutation. This release intentionally does not expose a production restore or promotion command.
- Stale-plan protection. The Recovery Guard compares the revision used to produce a candidate with the executor’s supplied current revision.
- Evidence is durable. Verification produces a tamper-evident receipt with the candidate, checks, timestamp, and evidence identifiers.
- Provider limits are explicit. Unsupported provider operations are surfaced as unsupported rather than simulated.
flowchart TD
F[Incident evidence] --> B[Change Boundary Engine]
O[Normalized observations] --> L[Hash-chained Change Ledger]
O --> G[Typed State Graph]
L --> B
G --> C[Compound checkpoint repository]
B --> T[Time Machine]
C --> T
T --> V[Isolated verification]
V --> RG[Recovery Guard]
RG --> R[Tamper-evident receipt]
The vendor-neutral core is isolated from provider actions. The graph and ledger preserve immutable observations; compatibility and planning operate over normalized domain types; recovery persists and reconstructs compound checkpoints; providers advertise only capabilities they truly support.
flowchart LR
CLI[CLI / SDK] --> Core[Core domain types]
Core --> Graph[State Graph]
Core --> Ledger[Change Ledger]
Graph --> Compatibility[Compatibility engine]
Ledger --> Planner[Recovery planner]
Compatibility --> Planner
Planner --> Recovery[Time Machine + Guard]
Recovery --> Verifier[Verification engine]
Providers[Capability-based providers] --> Recovery
Neon[Neon branch adapter] --> Providers
The detailed architecture and its invariants are documented in docs/V1_ARCHITECTURE.md. The acquisition package contains a separate architecture map and technical overview.
- Node.js 22.13 or newer
- pnpm 11.19.0 (Corepack is recommended)
- Git
No account, provider token, or external service is required for the local demo.
corepack enable
pnpm install --frozen-lockfile
pnpm build
pnpm test
node apps/cli/dist/index.js demo acquisitionThe repository is a pnpm workspace. Use the compiled CLI shown above; this release does not yet publish an installable package or expose production mutation commands.
The demo is a deterministic, credential-free reconstruction of a recoverable incident:
v1.7
├── schema S12
├── function F17
└── storage contract C6
v1.8
├── migration M104
├── schema S13
├── function F18
└── storage contract C7
failure → change boundary → compatible v1.7 checkpoint
→ six verification checks → guarded recovery receipt
For automation or inspection, request machine-readable output:
node apps/cli/dist/index.js demo acquisition --jsonThe fixture does not contact Neon, provision infrastructure, or mutate production. It is executable evidence for the deterministic reasoning and verification path, not a simulation of a live provider restore.
See the CLI reference and product site source for the same scenario in operational and interactive forms.
Neon is the first provider adapter, but Reprise is not coupled to Neon-specific domain logic. The adapter implements documented Neon Management API branch lifecycle operations:
- list branches:
GET /projects/{project_id}/branches - create an isolated branch:
POST /projects/{project_id}/branches - explicitly delete a branch:
DELETE /projects/{project_id}/branches/{branch_id}
The adapter requires a runtime-only project ID and API key. Tokens are not stored in checkpoints, receipts, or logs. It does not claim support for snapshots, point-in-time restore, schema diffs, Object Storage, Functions, Auth, Data API, or AI Gateway operations.
Before using a provider account, review Neon provider notes, the credential model, and the factual Neon integration map.
Provider integrations are capability-based. A provider declares what it can do; Reprise does not infer a restore or snapshot primitive simply because a vendor has a database product.
interface RecoveryProviderCapabilities {
supportsBranchCreation: boolean;
supportsBranchRestore: boolean;
supportsSnapshotDiscovery: boolean;
supportsEphemeralRecoveryEnvironment: boolean;
}The exact provider surface and missing capabilities are intentionally retained as decision evidence. This lets the recovery planner return an unresolved unknown instead of a convincing but unsafe suggestion.
The public JSON configuration shape is conservative; runtime validation is the source of truth. See configuration boundaries and assumptions and package-level types for the current implementation.
Provisioning is not verification. A candidate becomes eligible for the Recovery Guard only after checks have produced evidence. The verification layer supports normalized checks and receipts; live health probes, schema inspection, and application test execution require a future execution adapter.
Each recovery receipt binds the candidate, verification outcome, evaluation time, and evidence references. The ledger and receipt integrity checks are designed to make later review possible without relying on an ephemeral terminal log.
candidate selected
→ verification checks evaluate evidence
→ guard compares candidate revision to supplied current revision
→ receipt records the decision or blocking reason
For the precise current boundary, see limitations and the security review.
apps/cli/ Deterministic command-line demonstration
packages/core/ Shared domain contracts and errors
packages/graph/ Typed state graph and traversal
packages/ledger/ Append-oriented hash-chained change ledger
packages/compatibility/ Evidence-based compatibility decisions
packages/planner/ Deterministic recovery candidate planning
packages/recovery/ Checkpoints, Time Machine, guard, receipts
packages/verifier/ Verification checks and evidence
packages/providers/ Provider contracts and capability types
providers/neon/ Neon branch-lifecycle implementation
website/ Static interactive product scenario
acquisition/ Technical diligence and transfer materials
docs/ Architecture, security, CLI, and limitations
Run the release-equivalent local validation:
pnpm release:validateThis runs linting, type checking, tests, build, the deterministic CLI demo, and both SBOM outputs. The GitHub Actions workflow runs the same validation path on pushes and pull requests.
Useful focused commands:
pnpm build
pnpm lint
pnpm typecheck
pnpm test
pnpm sbom:inventory
pnpm sbom:cyclonedxThe CI workflow is intentionally pinned to Node 22 because pnpm 11 requires Node 22.13 or newer. See CONTRIBUTING.md for repository expectations.
| Area | Primary reference |
|---|---|
| Architecture and recovery reasoning | docs/V1_ARCHITECTURE.md |
| Reproducible proof of concept | docs/PROOF_OF_CONCEPT.md |
| Capability and limitation boundaries | docs/V1_CAPABILITY_MATRIX.md, docs/V1_LIMITATIONS.md |
| Neon implementation | docs/providers/neon.md |
| Threats and credentials | docs/THREAT_MODEL.md, docs/CREDENTIAL_MODEL.md |
| Acquisition and transferability | acquisition/README.md |
| IP, dependencies, SBOM, and licenses | acquisition/IP_PROVENANCE.md, acquisition/DEPENDENCY_INVENTORY.md, acquisition/LICENSE_AUDIT.md |
| Risks and known limitations | acquisition/RISK_REGISTER.md, acquisition/KNOWN_LIMITATIONS.md |
The website is a polished static product surface with a clearly labelled deterministic sample scenario. It includes a motion-enabled four-frame recovery briefing, animated sample state graph, and executable visual console; all three are driven by local fixture data and disclose that they do not perform provider operations. The Pages workflow is included, but publishing requires GitHub Pages to be enabled for the repository.
Reprise is local-first. The shipped demo does not collect telemetry, require an account, or include credentials. Provider keys belong in runtime-only configuration and must never be committed. The detailed threat and credential models document current controls and remaining implementation work.
Source is made available for evaluation in this repository but remains proprietary. No license to use, distribute, modify, or create derivative works is granted merely through repository access. See LICENSE, COMMERCIAL_LICENSE.md, ACQUISITION.md, and SECURITY.md.
This is a proprietary evaluation repository. Security disclosures are governed by SECURITY.md; evaluation and transaction terms are described in COMMERCIAL_LICENSE.md and ACQUISITION.md. Do not submit confidential provider credentials or production incident data.
Buyer-facing diligence materials live in docs/acquisition/. Commercial licensing contact path: COMMERCIAL.md.
| Badge | Meaning |
|---|---|
| docs live | Public documentation / Pages surface for reprise |
| release v1.0.0 | Stable tagged release with narrative notes |
| license | See repository LICENSE for terms |
| status maintained | Actively kept in the @theworker02 portfolio |
| version 1.0.0 | Documentation and brand completeness milestone |
| pages enabled | Site intended at https://theworker02.github.io/reprise/ |
Detailed narrative for the stable line lives in CHANGELOG.md and the v1.0.0 GitHub Release.