Repository navigation
Record refusals before launch in the review ledger, with a reason code - #33
Merged
Merged
Conversation
A call that ModelQuad refused before Codex started left no trace, so the report could not say why calls were stopped. Each such refusal is now written to the ledger with its closed reason code, and the report lists the stopped calls by reason. - Ledger schema 4: `runs` gains a `reason` column; a schema 3 ledger is migrated in place. Only a closed code is stored, never free text. - The write never waits for a locked ledger and never changes the refusal; when it fails, the reply says so (`ledger_note`). - Worker refusals and unusable project paths are not recorded, so those paths still touch nothing. - Docstrings in `review_reminder.py` and `netpolicy.py` now match the code, and AGENTS.md states that the cross-process run lock falls back to the in-process rule when its file cannot be opened. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Merged
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
A call that ModelQuad refused before Codex started left no row in the review ledger, so
modelquad review reportcould count stopped calls but not say why they were stopped. Each such refusal is now recorded with its closed reason code, and the report lists the stopped calls by reason.runsgains areasoncolumn. A schema 3 ledger is migrated in place and keeps its rows; rows written before this change show asnot recorded. Only a closed code ([a-z0-9_]{1,64}) is stored, never free text.ledger_note), and the MCP reply shows that note on refusals too.Reasons:line under "Stopped before Codex started".review_reminder.pyandnetpolicy.pynow match the code. AGENTS.md states that the cross-process run lock falls back to the in-process rule when its lock file cannot be opened; that is existing behaviour, now written down. PRIVACY.md and CHANGELOG.md are updated.No linked issue.
Notes for the reviewer:
4while the version stays0.5.3; the entry is under## Unreleasedin the changelog.review.run()was restructured so the ledger write happens outside the running lock.Tests run
python scripts/check.py fast(as part ofreview)python scripts/check.py review: 1878 passed, 7 skippedNot run locally: the whole suite (
python scripts/check.py python); CI runs it. One blank line inside a docstring innetpolicy.pywas removed after the test run. Not exercised against a real ledger, only the suite's temporary state.Windows version: Windows 11
AI assistance
Yes. OpenAI Codex wrote the code and tests from a brief; Claude Code planned the change, reviewed the whole diff, ran the checks above, and wrote the commit message and this description.
Checklist
git commit -s), as described in CONTRIBUTING.md (DCO 1.1). The maintainer's own commits need none. (Maintainer's commit; no sign-off.)🤖 Generated with Claude Code