Contracts

loom-sprint-scaffoldsourcetypescript
Path: loom-sprint-scaffold/loom/src/types/contracts.tsRelative: loom/src/types/contracts.tsSubproject: loom-sprint-scaffoldCategory: other
Lines: 241Bytes: 6,845Imports: 0Exports: 31

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