Skip to content

Apply NRA Wave 5: 48 mechanical P51/P38/P39 recipes (53 findings) - #5299

Merged
trissim merged 1 commit into
mainfrom
refactor/nra-wave5-p51-p58-p38-p39
Nov 28, 2026
Merged

trissim merged 1 commit into
mainfrom
refactor/nra-wave5-p51-p58-p38-p39

Conversation

@trissim

@trissim trissim commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

100% mechanical NominalRefactorAdvisor #668 (7e87461f) codemod batch across 27 files (+177/-151, zero hand-edits in src/ or tools/), taking total mechanical NRA recipes landed on agent-comms from 117 -> 165:

  • 36 P51 restated_base drops (leaving only 1 P51 in the entire codebase):
    • All 30 pydantic BaseModel subclasses redundantly listing ABC across cli_bridges/* (ClaudeRecord, RolloutItem, Part, ToolState, etc.)
    • All 3 served_requests.py readers (OwnerScopedRead, OwnedRead, OwnerLiveRead)
    • All 3 tools/repairs.py classes (Repair, HoistVerdict, KeptImport)
  • 12 P38 duplicate_class / P39 missing_mixin extractions covering 17 findings:
    • UnavailableExtensionStatus (acp_extension.py), ExitCodeSummary (child_process.py, background_runs.py), UnansweredTrackedTerminal (tracked_turn.py), TranscriptItemRow (external_transcript_rows.py, transcript_sources.py), NoFollowupTurnPhase (turn_phase.py), ObservedLiveInstall (upgrade.py), OfflineVisibleDelivery (notification_progress.py, 3 findings), TaskRevisionSource (task_sources.py), OrderlessReviewSource (head_review.py), RequiredTextChoice (thread_text.py, thread_model.py), ScopedUiGrant (connector_profile.py, connector_store.py), CliSessionIdentity (zmq_comms_server.py, 3 findings).

Verification

  • Full 1,048-line codemod diff read in full; REL_IMPORTS=0.
  • 922/922 repository modules imported cleanly (ERRORS=0).
  • Python MRO & base-drop proof: WAVE5_FULL_PYTHON_PROOF_OK=1.
  • Focused pytest across 20 touched test files: 268 passed (0 regressions; pre-existing origin/main failures noted in test_codex_items.py [3, ItemStream.receive returns RuntimeUpdate | None], test_codex_earlier_pages.py:9 [WATCH_LINE], test_outbound_transcript_source.py:20 [NativePiUnavailable]).

@trissim
trissim merged commit d1d0f58 into main Nov 28, 2026
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