Repository navigation
register: C-123 — the draws gate declares an interface and enforces half of it - #333
Merged
Polichinel merged 1 commit intoNov 12, 2026
Merged
Conversation
…orces half of it /falsify's two soft falsifications from the #329 review, the only findings from this session's audits that were still untracked. Re-measured before registration rather than copied from the audit output: s_min=None and s_min="2" both escape check 3 as TypeError (neither a DrawsCollapseError nor a ValueError, so uncatchable by either narrow type), and a 2-D DataFrame passes all four checks because np.asarray coerces it. Registered at Tier 3, not 2: unreachable today — both products declare S_MIN: int = 2 and both managers pass that constant. Not 4 either, because the floor is the one argument scheduled to stop being a literal. Merged into nothing: C-107 is the same docstring but the opposite shape (prose drifted from code; here the prose is accurate and the code falls short), so this is cross-referenced rather than folded in. The failing stubs stay out of tests/ for the reason C-114 records. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ANY1CCy9Xo7zjMY4XJ69v9
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.
The two soft falsifications
/falsifyreturned on #329 were the only findings from this session's audits still untracked. One entry, not two: both are the same problem type at the same boundary — a precondition the module states and does not check.Re-measured this session, not copied from the audit output:
s_min=None→TypeError: '<' not supported between instances of 'int' and 'NoneType';s_min="2"→ the same with'str'. Neither is aDrawsCollapseErrornor aValueError, so a caller catching either narrow type misses it.pandas.DataFramepasses all four checks —np.asarraycoerces it. "No pandas" is about this module's imports, not about its argument.Tier 3. Not 2: unreachable today, measured —
unfao/product.py:36andcrafd/product.py:42both declareS_MIN: int = 2, and that constant is what both managers pass at:350. Not 4: the floor is the one argument scheduled to stop being a literal, by the pending per-audienceS_MINdecision or by views-postprocessing#327.Not merged into C-107, which is the same docstring in the opposite shape: there the prose had drifted from the code, here the prose is accurate (
b80bd3dnarrowed it to say the gap out loud) and the code is what falls short. Cross-referenced instead.The failing stubs stay in the scratchpad rather than
tests/, for the reason C-114 and the untracked region stub already record.tests/test_register_integrity.py— 12 passed. Header 123→124 total, 40→41 open.🤖 Generated with Claude Code
https://claude.ai/code/session_01ANY1CCy9Xo7zjMY4XJ69v9