TEST_SCHEMA_TS_PLAN

TypeScript Workflow-Test Validation Plan

Port the workflow-test file validator to galaxy-tool-util-ts so both the gxwf CLI and the galaxy-workflows-vscode plugin can share a single, Python-sourced schema. Follow-up to TEST_JOB_VALDIATION_PLAN.md (which landed the Pydantic Job model in Galaxy).

Decisions

Work items

1. Sync pipeline (galaxy-tool-util-ts)

2. Schema package additions (packages/schema/src/test-format/)

3. Test fixtures (packages/schema/test/test-format/)

4. CLI command (packages/cli/src/commands/validate-tests.ts)

5. Changeset

6. VS Code migration (galaxy-workflows-vscode/wf_tool_state)

Test strategy (red-to-green)

  1. Scaffolding commit: empty schema file + test-format package layout + failing fixture tests.
  2. Sync target lands; pull real schema from Python branch.
  3. Wire Ajv; positives green, negatives produce expected errors.
  4. Add CLI command with snapshot tests over error output.
  5. Swap VS Code schema; run plugin tests.

Unresolved questions