Commit Graph

2 Commits

Author SHA1 Message Date
Michael Pursifull 8119c5d30f
feat: implement workflow schema validator with Zod
Implement the Zod schema for workflow.yaml files and the CLI
validator tool, completing the GREEN phase of TDD.

- tools/schema/workflow.js: Zod schema with 5 required fields,
  template polymorphism (string|false), input_file_patterns with
  load_strategy enum, execution_hints, and instructions extension
  validation. Passthrough for varying optional string fields.
- tools/validate-workflow-schema.js: CLI tool mirroring
  validate-agent-schema.js with --strict flag and GitHub Actions
  ::warning annotations.
- package.json: Wire test:schemas and validate:schemas to include
  workflow schema validation.

27/27 tests passing. 12/13 real workflow files pass validation
(qa/automate missing standalone — pre-existing upstream defect).

Ref: MSSCI-12749
2026-02-04 13:27:57 -06:00
Michael Pursifull 0b83185a64
test: add RED-phase test fixtures and runner for workflow schema validator
27 test fixtures (11 valid + 16 invalid) and a test runner that
exercises the forthcoming Zod schema for workflow.yaml files.
Includes a stub schema that fails all validation, confirming
26 failing / 1 passing (yaml-parse-error) — TDD red state.

Follows the validate-agent-schema pattern (tools/schema/agent.js,
test/test-agent-schema.js).

Ref: MSSCI-12749
2026-02-04 13:11:44 -06:00