Skip to content

counterfactual: pure fixture assembler — replayable cases from the raw-context corpus #8220

Description

@JSONbored

Problem

Counterfactual sub-epic phase 2. The replay harness needs its input shaped: from a labeled corpus, select and shape exactly the cases that are replayable under the design contract — pure selection, no AI calls, no IO.

Requirements

⚠️ Required pattern. Engine-pure module in packages/loopover-engine/src/calibration/, mirroring the corpus builders' discipline (#8083 shape); root vitest mirror suite per the engine blind-spot rule. Implements the fixture/sampling contract types from the design issue verbatim — do not invent alternatives.

Deliverables

  • Assembler + types exported from the engine barrel, 100% line+branch mirror coverage (eligibility arms, seeded sampling determinism, skip accounting, era segmentation)

Links & Resources

The sub-epic (parent), the design issue (blocked-by), packages/loopover-engine/src/calibration/backtest-corpus.ts

Boundaries

Pure only. No fetches, no model calls, no store reads.

Metadata

Metadata

Assignees

No one assigned

    Labels

    gittensor:featureGittensor-scored feature linked to a feature issue — scores a 0.25x multiplier.help wantedExtra attention is needed

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions