The calibration-report, prediction-ledger, and metrics-exporter issues in this phase all live under a new packages/gittensory-miner/src/calibration/ subtree. Scaffold the directory, shared TypeScript types, and package-level wiring FIRST so those issues can land independently without each one re-deciding the module boundary — pure structural/mechanical setup, no calibration logic itself.
Deliverables
References
packages/gittensory-mcp/package.json — the sibling package's exact packaging convention (tsconfig, build script, files list, bin shebang pattern) this scaffold copies
src/review/parity.ts (301 lines) — GateEvalReport/GateEvalRow, the field-naming reference for the new shared types
- New path:
packages/gittensory-miner/src/calibration/ (the directory this issue creates)
The calibration-report, prediction-ledger, and metrics-exporter issues in this phase all live under a new
packages/gittensory-miner/src/calibration/subtree. Scaffold the directory, shared TypeScript types, and package-level wiring FIRST so those issues can land independently without each one re-deciding the module boundary — pure structural/mechanical setup, no calibration logic itself.Deliverables
packages/gittensory-miner/src/calibration/types.tsdefining the sharedPredictedVerdictRecord,ObservedOutcomeRecord, andCalibrationReport/CalibrationRowshapes (mirroringGateEvalReport/GateEvalRow's field names fromsrc/review/parity.tsfor easy mental mapping, without importing it directly)packages/gittensory-miner/src/calibration/index.tsre-exporting the module's public surfacetsconfig/build script (mirrorpackages/gittensory-mcp'snode --check-style build step) and its published-fileslist if calibration output is meant to be user-facing CLI outputpackages/gittensory-miner/test/calibration/types.test.tsor equivalent) asserting the shared types compile and satisfy a minimal fixture, so the directory isn't merged emptyReferences
packages/gittensory-mcp/package.json— the sibling package's exact packaging convention (tsconfig, build script,fileslist, bin shebang pattern) this scaffold copiessrc/review/parity.ts(301 lines) —GateEvalReport/GateEvalRow, the field-naming reference for the new shared typespackages/gittensory-miner/src/calibration/(the directory this issue creates)