Import Lesson

loom-builder-solsourcetypescript
Path: loom-builder-sol/src/import-lesson.tsRelative: src/import-lesson.tsSubproject: loom-builder-solCategory: dispatch-system-sol
Lines: 456Bytes: 14,814Imports: 3Exports: 10

Content Preview

  1. /**
  2. * import-lesson.ts — reads enforcement artifacts from pi-cybernetic's file-based
  3. * queue and applies them to loom-builder's gate governance system (Phase D bridge).
  4. *
  5. * CLI usage:
  6. * bun run src/import-lesson.ts --queue <dir> [--repo-root <loom-builder root>] [--apply]
  7. *
  8. * Without --apply → dry-run: print what would happen per artifact.
  9. * With --apply:
  10. * gate_pack_rule → invoke cut_gate_version.py --from <latest>/<scope> --bump patch
  11. * --add-validation-js