Skip to content

Replace 8 more NRA constant_subtype_answer booleans with polymorphism - #2239

Merged
trissim merged 1 commit into
mainfrom
toad-qt/nra-slop-sweep-31
Nov 24, 2026
Merged

trissim merged 1 commit into
mainfrom
toad-qt/nra-slop-sweep-31

Conversation

@trissim

@trissim trissim commented Nov 24, 2026

Copy link
Copy Markdown

Batch 31 NRA structural slop sweep (450 -> 443 raw findings; -102 total from 545; constant_subtype_answer: 13 -> 6, 0 sibling_override regressions):

  • Replace constant boolean branches with polymorphic methods/properties on ToolCallStatus, OffScreenRunway/Runway, InputModality, LineLink, NotificationStatus, PendingWork, CallPolicy, and SidebarGroup/ChannelGroup.

Verified with qt_inherit_ratchet.py (0/0/0/0/0), shadow_check.py (0), guarded_imports.py (0), runtime invariant assertions, and 137/137 tests/guards/ passing.

… (Batch 31)

- ToolCallStatus: replace busy/boundary flags with ActiveToolCallStatus/FinishedToolCallStatus activity() overrides (declared_name=None preserves exact 4 ACP members).
- OffScreenRunway/Runway: replace on_screen with prepare_source(preparation, history).
- InputModality: replace describes_inline() with row_text(label, description) and row_subtext(description).
- LineLink/UnunderlinedLink: replace underlined with rich_underline and css_text_decoration.
- NotificationStatus/UnavailableNotifications: replace unavailable with role property override.
- PendingWork/NoPendingWork: replace shown() with await_on(surface, awaitable).
- CallPolicy/UnavailablePolicy: replace allows_calls() with require_callable(message) and forbid_calls(message).
- SidebarGroup/ChannelGroup: replace navigation_header with header_navigation_rows() and header_rows_for_target(target).
- Cached NRA raw findings: 450 -> 443 (-102 from 545; constant_subtype_answer: 13 -> 6, 0 sibling_override regressions).
@trissim
trissim merged commit f0e3c22 into main Nov 24, 2026
1 of 2 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