Skip to content

register: C-123 — the draws gate declares an interface and enforces half of it - #333

Merged
Polichinel merged 1 commit into
developmentfrom
chore/register-falsify-draws-interface-c123
Nov 12, 2026
Merged

Polichinel merged 1 commit into
developmentfrom
chore/register-falsify-draws-interface-c123

Conversation

@Polichinel

Copy link
Copy Markdown
Collaborator

The two soft falsifications /falsify returned 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 a DrawsCollapseError nor a ValueError, so a caller catching either narrow type misses it.
  • A 2-D pandas.DataFrame passes all four checks — np.asarray coerces it. "No pandas" is about this module's imports, not about its argument.

Tier 3. Not 2: unreachable today, measured — unfao/product.py:36 and crafd/product.py:42 both declare S_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-audience S_MIN decision 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 (b80bd3d narrowed 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

…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
@Polichinel
Polichinel merged commit f33cfb9 into development Nov 12, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant