Contracts

_archivesourcetypescript
Path: _archive/loom-stale-pre-sprint-snapshot/src/types/contracts.tsRelative: loom-stale-pre-sprint-snapshot/src/types/contracts.tsSubproject: _archiveCategory: archived
Lines: 214Bytes: 5,951Imports: 0Exports: 29

Content Preview

  1. /**
  2. * TypeScript mirrors of the 5 LOOM contracts (src/contracts/*.schema.json).
  3. * The JSON Schemas are the source of truth at runtime boundaries (ajv);
  4. * these types are the compile-time shadow. tests/contracts.test.ts pins
  5. * fixtures against BOTH so the two cannot silently diverge.
  6. */
  7. // ── shared primitives ─────────────────────────────────────────────────────
  8. export type GoalId = `goal_${string}`;
  9. export type StageId = `stg_${string}`;
  10. export type EventId = `evt_${string}`;
  11. export type