Skip to content

feat(conformance): add narrowed Step 1 runner#325

Merged
pentaxis93 merged 7 commits into
mainfrom
issue-297/feat-architecture-step-1-conformance-run
May 29, 2026
Merged

feat(conformance): add narrowed Step 1 runner#325
pentaxis93 merged 7 commits into
mainfrom
issue-297/feat-architecture-step-1-conformance-run

Conversation

@pentaxis93
Copy link
Copy Markdown
Collaborator

Summary

  • Adds python -m tooling.conformance for narrowed Step 1 C-2/C-3/C-4 conformance checks.
  • Adapts existing exception-raising validators into aggregate pass/fail results with non-zero exit on failure.
  • Documents default source-tree discovery and records the user-visible runner in the changelog.

Changes

GitHub Issue(s)

Closes #297

Test plan

  • python -m unittest tests.test_conformance tests.test_workflow_contracts tests.test_mechanics tests.test_artifact_schemas
  • python -m tooling.conformance
  • python -m tooling.conformance tests/fixtures/workflow-contracts/valid-*.toml tests/fixtures/mechanics/valid-*.toml tests/fixtures/artifacts/valid-*.json

Add the authoring-time runner for C-2 workflow contracts, C-3 mechanics, C-4 artifact instances, and JSON Schema definitions. The runner adapts the existing validators into aggregate pass/fail results and exposes a CLI for default source-tree checks and explicit fixture paths.

Refs #297
Route C-2 conformance through a populated workflow registry and convert explicit path read failures into aggregate failed results so review-fix runs keep reporting remaining units.

Refs #297
Resolve explicit TOML unit paths before Step 1 classification so bare filenames passed from workflow-contracts/ or mechanics/ retain their directory-scoped C-2/C-3 category. TOML files outside those unit directories remain unsupported by design.

Refs #297
Align workflow registry mechanic discovery with the recursive conformance unit discovery path so workflow contracts can reference mechanics under mechanics subdirectories.

Refs #297
Treat non-UTF-8 conformance units as read failures so malformed explicit inputs produce failed results without aborting the run.

Refs #297
Reuse the runner discovery rules for directory arguments so non-unit files such as manifest.toml are skipped during expansion, while explicitly named unsupported files still fail.

Refs #297
Directory arguments can name either a methodology root or a unit directory. Expand direct unit directories with their category rules so requested checks are not skipped silently.

Refs #297
@pentaxis93 pentaxis93 merged commit 30b40e5 into main May 29, 2026
1 check passed
@pentaxis93 pentaxis93 deleted the issue-297/feat-architecture-step-1-conformance-run branch May 29, 2026 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(architecture/step-1): conformance runner — C-2/C-3/C-4 dispatch (Step-1-narrowed)

1 participant