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