Skip to content

exp(replay): add deterministic historical training fixture - #165

Draft
kvnloo wants to merge 20 commits into
upstream-main-20261008-historical-replayfrom
exp/historical-replay-20261008
Draft

kvnloo wants to merge 20 commits into
upstream-main-20261008-historical-replayfrom
exp/historical-replay-20261008

Conversation

@kvnloo

@kvnloo kvnloo commented Oct 8, 2026

Copy link
Copy Markdown
Owner

Implements the first pure-data slice of #141 and supplies the deterministic mutation/receipt boundary needed by the falsification study in #148.

Credit / provenance

Contract

frozen historical fixture
  -> deterministic checkpoint
  -> optional branch-only facilitator mutation
  -> participant decision + cited evidence
  -> epistemic scorecard + exportable training receipt

The first fixture uses the already-shipped Bhote Koshi event pack:

  1. historical evidence only -> access remains unknown;
  2. inject an explicit simulated blocked segment -> expected unsupported;
  3. replace it with explicit stale-open evidence -> expected unknown.

Invariants

  • canonical fixtures are deeply frozen and cannot be mutated;
  • mutations require a disposable branch and never alter the bundled event pack;
  • pause, checkpoint seek/rewind, and branch are deterministic data operations;
  • decisions bind the evidence revisions visible at that checkpoint;
  • changing a watched evidence revision makes the prior decision non-current;
  • safe, or unsupported open, fails the scorecard;
  • live data cannot enter replay state implicitly; it requires an explicit live-comparison lane with its own revision;
  • participant decisions, mutations, rights, provenance, and scenario revision export in a deterministic receipt;
  • every fixture and receipt says trainingOnly: true and operationalGuidance: false;
  • no LLM, network, provider, Cesium, storage service, room service, or UI dependency.

Source rights

The fixture references the event pack's source-specific rights rather than flattening them into the code license. Linked media remains link-only/not redistributed, imagery sources remain identified, and the reconstruction caveat remains attached to every exported receipt.

Scope

Three files only:

  • src/data/historicalReplay.js
  • src/data/bhoteKoshiTrainingReplay.js
  • src/data/historicalReplay.test.mjs

Validation

The focused eight-test replay battery passed locally against a structurally identical 16-observation event fixture. Exact-head CI is the authoritative integration run against the repository's bundled public/events/bhote-koshi-2026/event.json.

Promotion rule

Keep downstream until a concrete training/workspace surface consumes the contract. This slice does not depend on bilawalsidhu#882 and does not claim live operational readiness.

@kvnloo
kvnloo changed the base branch from upstream-main-20261008-historical-replay to main October 9, 2026 04:20
@kvnloo
kvnloo changed the base branch from main to upstream-main-20261008-historical-replay October 9, 2026 04:20
@kvnloo
kvnloo changed the base branch from upstream-main-20261008-historical-replay to main October 9, 2026 04:22
@kvnloo
kvnloo changed the base branch from main to upstream-main-20261008-historical-replay October 9, 2026 04:24
@kvnloo
kvnloo force-pushed the upstream-main-20261008-historical-replay branch from 550c477 to 6be2559 Compare October 9, 2026 04:25
@kvnloo kvnloo changed the title exp(replay): add deterministic historical training fixture exp(replay): add deterministic historical training fixture [format probe] Oct 9, 2026
@kvnloo kvnloo closed this Oct 9, 2026
@kvnloo kvnloo reopened this Oct 9, 2026
@kvnloo kvnloo closed this Oct 9, 2026
@kvnloo kvnloo changed the title exp(replay): add deterministic historical training fixture [format probe] exp(replay): add deterministic historical training fixture Oct 9, 2026
@kvnloo kvnloo reopened this Oct 9, 2026
@kvnloo kvnloo added the keep pr-janitor: never auto-close label Oct 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

keep pr-janitor: never auto-close

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant