Spec Lint
Path:
loom-builder-sol/src/spec_lint.tsRelative: src/spec_lint.tsSubproject: loom-builder-solCategory: dispatch-system-solLines: 234Bytes: 7,585Imports: 3Exports: 4
Content Preview
- /**
- * Spec-schema lint — validates DispatchSpec at preflight before dispatch.
- *
- * Checks:
- * - Unknown top-level keys (with list of valid keys)
- * - validation field must be array of objects with cmd (string[]) and optional cwd
- * - Rejects specs writing outputs under /tmp
- * - Missing validation → default [] + warning
- * - Gate ref format: "gates" must match vX.Y.Z/scope if present
- * - WARN (not FAIL) when spec has inline validation[] but no gates field (D4)
- * - Dynamic rules from gates/li