Repository navigation
fix(record): read a Depth line with a parenthetical note - #159
Merged
Merged
Conversation
- Drop one parenthetical note after the Depth value, such as `standard (review round on 5e1b699)`, before checking it - Keep refusing any other value, naming the line as written - Bump the Already checked block contract to version 11 Closes #146 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Ticket: #146
Motivation
scripts/record.pyrefused a built pull request's Already checked block whoseDepth:line carried a note, such asDepth: standard (review round on 5e1b699). The refusal stopped the record for the whole pull request, so its review never reachedrevise's finding rates, although the depth itself was valid. #146 asked for the note to be read past.Change Summary
record.pynow drops one parenthetical note after the depth value before checking it, so the line above records asstandard. Any other value is still refused, with the line quoted as written: a bare(x),standard(x)with no space, a nested note, two notes, or text after the note. The Already checked block contract indocs/contracts.mdmoves to version 11 for the change.Used by: nothing outside this repository
Departures
None.
Details
Design decisions
inner.depthmust stay one of light, standard and deep for the finding rates. The regex takes exactly one balanced note at the end of the line (\s+\([^()]*\)$), so a malformed line is still refused rather than guessed at.implement-change's outcome and pr-create'sbody.md) still write the bare level. This change makes only the reader tolerant of the note people add by hand.Testing
Run:
bash tests/checks.sh(21 checks pass)test_the_builds_depth_line_is_its_inner_depthcovers the note read asstandard, and the refused values listed above.🤖 Generated with Claude Code. AI assistance level: 5/5 (not read by a person).