Documentation Menu · Durability, Time Travel & Proofs
Advanced & Production Systems
Living Runtime & Neural MoEDurability, Time Travel & ProofsNetworking, Targets & MigrationReal-World AAA Workloads
Durability, Time Travel & Proofs
SHA-256 crash journals, Copy-on-Write history amendments, exact i128 Farkas proofs, O(1) WhyIndex provenance, and privacy flow analysis.
High performance means nothing if a power cut loses money or an invariant leak reaches production. Hector compiles crash recovery, time travel, formal proofs, and information-flow security directly around your rules.
1. SHA-256 Crash Journal, Epochs & Digital Twin
- Chained Integrity (
LockedFile): Every committed step appends a SHA-256 chained format-4 record (PendingEffectboundaries keep incomplete tails safely ignored). - Zero-Copy Replay & Epoch Migration:
hector replaystreams verified prefixes under shared locks;hector migrateupgrades schemas atomically across versions. - Digital Twin (
hector replay --under): Replays live historical logs against a candidate program edit to surface semantic divergences (Under::diverged) before deployment.
2. Copy-on-Write Time Travel (hector correct)
NativeRetroEngine snapshots via World::fork_cow to retract, amend, or insert historical events, re-executing only steps inside the causal impact cone while verifying bit-for-bit parity against Naive:
| Cone Tag | CoW Action | Guarantee |
|---|---|---|
Keep | Disjoint reads/writes reused directly across checkpoints | Zero redundant re-execution |
KeepIfLawsStand | State unchanged; laws referencing mutated slice re-verified | Invariant soundness preserved |
Run | Re-executed natively inside the forked causal cone | Checked bit-for-bit vs Oracle |
3. Farkas i128 Elimination, DRed, WhyIndex & Oracle
- Exact
i128Farkas Proofs: Algebraic conservation invariants emit 0 runtime check instructions once discharged. O(1)WhyIndex&WhyNot: Trace every derived value to its exact causal rule in constant time without copying logs, or shrink minimal refusal blockers vianaive::reduce.- Differential Oracle (
Naive): Every native pass is cross-tested against an independent mathematical interpreter across randomized mutants.
4. Information-Flow Privacy & Signed .orp Bundles
- Compile-Time Taint & Privacy Lineage:
secretfields reaching unauthorizedshowobservers are refused (SECRET_REACHES_OBSERVER);hector describe --privacymaps allpersonaldata lineage. - Ed25519
.orpBundles &--dossier: Cryptographic signatures paired with SHA-256 proof certificates inside delivered binaries.