Add task fingerprint audit tool#231
Open
gyx09212214-prog wants to merge 1 commit into
Open
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
tools/task_fingerprint.pyto generate a deterministic SHA-256 manifest for a task directoryWhy
Recent stale-checkout investigations, such as #226, depend on proving that the instruction, tests, and data seen by an agent match the verifier snapshot. This utility gives harness operators a small repo-native way to record that snapshot before a sweep and compare it later without changing any canonical task specs.
Validation
python -m pytest tests\test_task_fingerprint.py -qpython tools\task_fingerprint.py tasks\13f-amendment-aware-crowding --indent 0 | python -c "import json,sys; d=json.load(sys.stdin); print(d['task_name'], d['file_count'], len(d['aggregate_sha256']))"python -m py_compile tools\task_fingerprint.py tests\test_task_fingerprint.pypython -m ruff check tools\task_fingerprint.py tests\test_task_fingerprint.pygit diff --check(only Windows line-ending warnings)