[codex] Require cache suppression for Python tasks - #106
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
PYTHONDONTWRITEBYTECODE=1andPYTEST_ADDOPTS=-p no:cacheprovider.ResourceWarningstderr leakage in unit tests.Why
Previously, the Click edit-scope smoke could fail despite passing behavioral graders because normal agent self-checks created
.pytest_cache/and__pycache__/files, which polluted changed-file scope scoring. That should not remain as-is because the task is meant to measure intentional edit scope, not ordinary verification residue.With this PR, Python tasks suppress those cache byproducts through task-local environment, and validation prevents future Python tasks from forgetting the setting.
Readiness evidence: follow-up from issue #100 / Click edit-scope smoke trial cache failures.
Readiness verdict: Ready to Implement
Validation
PYENV_VERSION=3.13.5 python3 -m agentlab task validate --check-task-cards tasksPYENV_VERSION=3.13.5 python3 -m agentlab task verify-referencefor 8 Python task bundles with reference artifactsPYENV_VERSION=3.13.5 python3 -m unittest tests.test_task_bundle_integrity tests.test_cli tests.test_task_cards tests.test_review_proposalsPYENV_VERSION=3.13.5 python3 -m unittestgit diff --checkSmoke Trials
All four Click default_map edit-scope smoke trials passed with exactly
src/click/core.pyandtests/test_defaults.pychanged and no score notes:claude-haiku-4-5-20251001): passedopus, resolved toclaude-opus-4-8): passedLocal run directory:
runs/click-default-map-edit-scope-cachefix-2026-06-08/