Skip to content

v0.5.0 — Deterministic Replay

Choose a tag to compare

@adrydevel adrydevel released this 19 Jul 00:49
· 2 commits to main since this release

Deterministic Replay

A decision you cannot re-derive is a screenshot. bastion replay closes that gap.

bastion run --ticker NVDA --record
bastion replay 4e968bb0
  ok   cassette integrity
  ok   regime
  ok   verdict
  ok   features hash
  ok   verdict hash
  verified — this decision follows from its recorded inputs

Edit any field in the cassette and it fails with a non-zero exit code, so it drops straight into CI.

Added

  • bastion run --record writes a replayable cassette: config, market window, verbatim model transcript, verdict and proof.
  • bastion replay <hash> re-derives a recorded decision and verifies every stage.
  • bastion replay --live re-queries the model instead of the transcript, to measure drift rather than assert determinism.
  • examples/demo-cassette.json so you can exercise the verifier without wiring up an endpoint.
  • docs/replay.md.

Changed

  • Decision digests are now taken over canonical JSON (keys sorted at every depth), so a refactor cannot silently invalidate historical proofs.

Fixed

  • tsc could not resolve process, which broke npm run build from a clean checkout.

Breaking

  • Canonical hashing changes the digest of any decision made before 0.5.0. Proofs anchored by earlier builds do not verify against this one.

What replay does not prove: that the model is deterministic. Sampling is not repeatable, and claiming otherwise would be the kind of unfalsifiable assertion this command exists to replace.

What's Changed

  • chore(deps-dev): bump vitest from 2.1.9 to 4.1.10 by @dependabot[bot] in #8
  • chore(deps): bump openai from 4.104.0 to 6.45.0 by @dependabot[bot] in #7
  • chore(deps-dev): bump typescript from 5.9.3 to 7.0.2 by @dependabot[bot] in #4
  • chore(deps): bump actions/checkout from 4 to 7 by @dependabot[bot] in #3

New Contributors

Full Changelog: v0.4.2...v0.5.0

What's Changed

  • chore(deps-dev): bump vitest from 2.1.9 to 4.1.10 by @dependabot[bot] in #8
  • chore(deps): bump openai from 4.104.0 to 6.45.0 by @dependabot[bot] in #7
  • chore(deps-dev): bump typescript from 5.9.3 to 7.0.2 by @dependabot[bot] in #4
  • chore(deps): bump actions/checkout from 4 to 7 by @dependabot[bot] in #3

New Contributors

Full Changelog: v0.4.2...v0.5.0