Repository navigation
refactor(core): remove vestigial private controls and test seams - #178807
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
|
Codex review: needs maintainer review before merge. What this changesThis PR removes unused private options, dependency substitutions, alternate branches, and unread result fields from core helpers. Example: Automatic transcription uses language pt-BR with whisper-cli installed.
Review scores
ProductKind: Refactor · Worth it: Yes Merge readiness✅ Ready for maintainer review This maintainer-authored PR provides useful internal cleanup with no actionable introduced defects found; exact-head CI remains pending. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherCLI, Gateway, Doctor, and agent callers use these helpers to derive plugin metadata, inspect runtime state, prepare setup operations, and report diagnostics. flowchart TD
A[CLI and Gateway requests] --> B[Core helper callers]
B --> C[Plugin metadata owners]
B --> D[Agent and session owners]
B --> E[Doctor and setup owners]
C --> F[Existing results and effects]
D --> F
E --> F
Technical reviewBest possible solution: Retain the smaller private interfaces and canonical owners while preserving existing runtime behavior and completing ordinary CI gates. Do we have a high-confidence way to reproduce the issue? No product bug reproduction is claimed; source inspection supports the stated unused-private-control cleanup. Is this the best way to solve the issue? Removing unused controls at their existing owners is the smallest coherent approach, and the changed tests retain real limits, platform behavior, currentness, and failure handling. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 4213136ceea7. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource -217, Tests -49. Total -266 across 65 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (2 earlier review cycles)
Reviewed October 20, 2026, 7:56 PM ET / 23:56 UTC (Revision 3). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
The remaining failure on head
The progress wrapper had detached the repair method from its check. The existing normalized test fixture happened to preserve the receiver, masking the bug. A raw, valid receiver-dependent check makes all four existing repair-flow table cases fail before the fix. Binding the method restores those cases, config carry, and change output while preserving progress, dry-run, and repair validation. The direct red-main repair is I am integrating that repair for this named failing gate. No CI rerun, empty push, test weakening, or cleanup hunk removal is being used to chase green. The earlier PR-owned test-type failure was fixed separately on the current head and its replacement type jobs passed. |
2e6247d to
bca164f
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Exact-head CI attribution for
All exact-head check runs were enumerated. The old cancelled PR-context job 118952612417 is superseded by successful job 118952712160. The main-flake registry and six latest completed scheduled-main job inventories were checked; no matching-signature shortcut is claimed. The independent baseline replay establishes attribution. No CI rerun, empty push or relabeling of failed CI as green. The stale Groq expectation is corrected separately on main in signed commit 8d9e341071be, preserving the intended model-choice behavior. The existing input moves from the migration table to the unconfirmed-model advisory table; no production code or cases change. All 14 Doctor flow cases passed after integration, as did targeted native types, typed lint, formatting, whitespace and 14 suppression cases. Independent P0–P2 review found no actionable defect. The unchanged cleanup head landed through the native inherited-failure admin exception, with captured checkout, artifact hashes, exact failed-attempt review, and complete failure accounting. Focused cleanup tests, targeted native typechecks, lint/format, suppression and cycle checks passed; the independent review is clean. Public/security/durability contracts and Phase E remain unchanged. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…nclaw#178807) * refactor(core): remove vestigial private controls and test seams * test(doctor): use canonical provider discovery in catalog repair
What Problem This Solves
Private core helpers still exposed options, alternate signatures, and injected dependencies that no runtime caller used.
User Impact
No user-visible change. Existing defaults, authorization checks, plugin/config/CLI/protocol contracts, persisted data, and ordinary restart/settlement behavior stay intact. No migration is required. The standalone Phase E session-memory backend and its factory, registry, expiry/federation machinery, and tests are untouched.
Why This Change Was Made
Remove unused private arguments and the branches they kept alive across plugin metadata, Doctor diagnostics, agent bookkeeping, local-audio inspection, and one-shot setup. Tests use canonical module spies or the real production boundary instead of runtime-only test controls. Remove unread result members without removing their live computations or error handling.
This is the core/packages area of the widely imported core/plugin helper family, split from its extension area to keep CI attribution bounded. The campaign's area-split rule waives the usual size floor for these slices. Net production reduction: 217 lines; tests/support shrink 49 lines; 65 paths. No UI, dependency, generated schema, SDK export, or database schema/durability/retention change.
Best-effort tradeoffs accepted
8ddd9b8aac69; callers use default/true. Keep the full bundled resolution/secret-input policy. A future private caller cannot turn it off without defining a real contract.These are unused-argument cuts, not permission to discard incident fixes or security/durability guards. No live failure scenario is intentionally dropped.
Evidence
39506351602, job118917140531(check-test-types-core-5), found a missed direct Doctor test still passing the removed privatepluginProviderIdsoption. This is attributable to this PR. Remove only that argument member; retain the same JSONC fixture, warning/model/fallback assertions, and byte-exact catalog preservation. Its selected native typegraph and real canonical-discovery test passed; no replacement mock, production change, weakened assertion, or test growth.39511959813, job118936204233, found an inherited unboundHealthCheck.repairextraction introduced by newer main in fix(doctor): show progress while checks and repairs run #178767. Maine6b866d3adb8reproduced the exact lint failure; four strengthened existing repair-flow cases also failed before the fix. Direct main repair5d80482379b3binds the method to its check. This branch now includes that fix after a conflict-free rebase; both cleanup commits are patch-identical by range comparison, and all 65 PR file blobs are identical to the previous head. The selected changed-root native typegraph and all 10 focused Doctor flow/startup cases pass on the integrated head. Prior-head CI remains prior-head evidence; the new exact head must pass its own hosted gates.