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
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