Documentation Menu · Durability, Time Travel & Proofs

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.

CRASH-SAFE LOG SHA-256 Journal SNAPSHOT World::fork_cow MINIMAL CONE Keep / Laws / Run ORACLE CHECK Naive Parity Exact i128 Farkas proofs (0 runtime guard instructions) · O(1) WhyIndex · Secret taint guard

1. SHA-256 Crash Journal, Epochs & Digital Twin

  • Chained Integrity (LockedFile): Every committed step appends a SHA-256 chained format-4 record (PendingEffect boundaries keep incomplete tails safely ignored).
  • Zero-Copy Replay & Epoch Migration: hector replay streams verified prefixes under shared locks; hector migrate upgrades 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 TagCoW ActionGuarantee
KeepDisjoint reads/writes reused directly across checkpointsZero redundant re-execution
KeepIfLawsStandState unchanged; laws referencing mutated slice re-verifiedInvariant soundness preserved
RunRe-executed natively inside the forked causal coneChecked bit-for-bit vs Oracle

3. Farkas i128 Elimination, DRed, WhyIndex & Oracle

  • Exact i128 Farkas 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 via naive::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: secret fields reaching unauthorized show observers are refused (SECRET_REACHES_OBSERVER); hector describe --privacy maps all personal data lineage.
  • Ed25519 .orp Bundles & --dossier: Cryptographic signatures paired with SHA-256 proof certificates inside delivered binaries.