Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
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.
Description
Integrates
specfact code review runinto this repository's pre-commit flow and rewritescode-review-09away from the stale F-4/n8n framing into a repo-owned implementation.This PR adds a staged-file pre-commit review gate, portable adoption guidance for other projects, JSON-first reward-ledger documentation, and fixes the local review environment by declaring
radonin the package/dev/Hatch dependencies.Fixes #393
New Features #393
Contract References: Adds
@icontractdecorators to the newscripts/pre_commit_code_review.pyhelper only.Type of Change
Please check all that apply:
@icontractdecorators)Contract-First Testing Evidence
Required for all changes affecting CLI commands or public APIs:
Contract Validation
@icontractdecorators on public APIs)@beartypedecorators applied)hatch run contract-test-explorationTest Execution
hatch run contract-test-contracts✅hatch run contract-test-exploration✅hatch run contract-test-scenarios✅hatch run contract-test-full✅Test Quality
How Has This Been Tested?
Contract-First Approach: Added targeted unit tests for the new pre-commit helper and script/docs integration, then validated the changed Python scope with
specfact code review run.Manual Testing
Automated Testing
Test Environment
Checklist
@icontract,@beartype)Quality Gates Status
hatch run type-check)hatch run lint)hatch run contract-test-contracts)hatch run contract-test-exploration)hatch run contract-test-scenarios)Additional evidence actually run in this worktree:
openspec validate code-review-09-f4-automation-upgrade --strict.venv/bin/pytest tests/unit/scripts/test_pre_commit_code_review.py tests/unit/scripts/test_pre_commit_smart_checks_docs.py tests/unit/scripts/test_code_review_module_docs.py -qPYLINTHOME=/tmp/pylint .venv/bin/pylint scripts/pre_commit_code_review.py tests/unit/scripts/test_pre_commit_code_review.py tests/unit/scripts/test_pre_commit_smart_checks_docs.py tests/unit/scripts/test_code_review_module_docs.pyPATH=$(pwd)/.venv/bin:$PATH .venv/bin/specfact code review run --json scripts/pre_commit_code_review.py tests/unit/scripts/test_pre_commit_code_review.py tests/unit/scripts/test_pre_commit_smart_checks_docs.py tests/unit/scripts/test_code_review_module_docs.pyKnown limitation:
hatch run lint/hatch run type-checkwere not closed out here because the branch still sees unrelated baseline findings outside this change, and Hatch env bootstrap was network-sensitive after addingradonScreenshots/Recordings (if applicable)
Not applicable.