fix(agent-team): post-build check writes scratch outside the checkout (smoke fix) #38

Merged
amoussa1229 merged 1 commit from fix/post-build-scratch-outside-checkout into main 2026-06-22 23:20:05 +00:00

1 commit

Author SHA1 Message Date
2dce5c6b76 fix(agent-team): post-build denied-path check writes scratch outside the checkout
Live smoke exposed a self-pollution bug (pre-existing from PR #17): the post-build
denied-path check wrote its own _build_diff_z.bin / _build_status_z.bin into the
working tree, then its own `git status --untracked-files=all` flagged them as
out-of-scope writes — failing any run with a narrow declared_scope (the smoke's
docs/**). Write them to $RUNNER_TEMP instead (read via $_DIFF_Z/$_STATUS_Z), so
the check no longer sees its own temp files. The agent-team pytest artifacts were
already correctly gitignored; only the check's own files tripped it. Test harness
updated to pass the env paths. 1044 tests, ruff clean.
2026-06-22 19:18:47 -04:00