Conversation
|
CI note while this is still draft: The red checks currently appear unrelated to this PR's two-file diff (
Focused checks for this PR remain green:
|
|
Marked ready for review. Focused PR checks remain green locally and in CI where diff-scoped checks apply. The currently red checks were triaged above as baseline/unrelated to this two-file helper PR. |
|
Closing as stale/superseded by the current upstream direction. This patch is still technically unique and applied cleanly during the latest reality check, but the original quality-gate / artifact-checker motivation has since moved upstream via the merged |
Summary
Adds a small reusable helper for checking declared required artifact paths.
Why
Agent workflows often need to verify that a worker produced concrete files rather than trusting a textual summary. This helper makes that pattern reusable without introducing a task-runtime framework. It provides the file-existence layer for the independent verification / quality-gate primitive discussed in #406.
Design
{path: ...}declarations.require_file=True), with an explicit opt-out for directory artifacts.artifact_checks.pyrather thanutils/artifact_checks.pybecause upstream already has top-levelutils.py; the dedicated module avoids import/package ambiguity while keeping the helper out of the general-purposeutils.pycatch-all.Test plan
python -m pytest tests/test_artifact_checks.py -q -o 'addopts='python -m py_compile artifact_checks.py tests/test_artifact_checks.pygit diff --check