Repository navigation
refactor: narrow private operator and lifecycle inputs - #179952
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review in progressClawSweeper is reviewing this revision. This supersedes any previous blocked status. |
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. |
|
|
@clawsweeper re-review The repaired head migrates the leftover diagnostic lock-reader test argument and converts the lifecycle mock to real-export pass-through, removing its obsolete baseline row. Both focused suites (29 tests), targeted types, scoped lint/format, and both cycle checks passed; the repair also has a clean independent review. The PR body records the initial CI failures and the separately proven inherited local suppression failure. |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. What this changesThis PR removes unused private overrides and ignored result fields while adapting existing tests to their underlying owners. Example: Doctor requests cached memory status.
Review scores
ProductKind: Refactor · Worth it: Yes Merge readiness✅ Ready for maintainer review Keep this PR open: the maintainer-approved cleanup preserves the serving paths, and the repaired head has no actionable finding from this review. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThese internal helpers connect CLI, Doctor, setup, and update operations to config parsing, plugin metadata, process inspection, transport, and lifecycle owners. flowchart TD
A[CLI and Doctor] --> B[Private operation helpers]
C[Setup and updater] --> B
B --> D[Config and metadata owners]
B --> E[Process and transport owners]
B --> F[Package lifecycle owner]
Technical reviewBest possible solution: Retain this private-interface reduction and let the existing exact-head CI gate complete before merging. Do we have a high-confidence way to reproduce the issue? This is a behavior-preserving refactor rather than a bug report; source inspection establishes the removed private alternatives, and no target code was executed during this read-only review. Is this the best way to solve the issue? The change uses existing owners, removes unused forwarding and projections, and preserves production defaults without adding replacement machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 868f0aa0959a. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -150, Tests -36, Docs 0, Other -1. Total -187 across 66 files. Added test files: 0. View PR surface stats
LabelsLabel 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 Reviewed October 21, 2026, 6:24 PM ET / 22:24 UTC. |
|
Exact-head CI attribution for
This is an inherited-failure native admin exception under the standing cleanup campaign authority, not green CI. The actual tested checkout980afec9e1492e2dad053fb00852e718b5848ac6 has ordered parents868f0aa0959a15d4d2ab37931daff20dee6db181 and the exact PR head, with its merge tree verified. The six latest completed scheduled-main runs and coordinator flake ledger were checked before attribution. No CI rerun or source push was used to chase green. The accepted auto request was explicitly retired through native recovery before selecting this exception. Focused proof remains149 owner cases plus29 CI-repair cases, targeted native types, typed lint, formatting and zero runtime/Madge cycles. The separate local suppression guard remains13PASS/1FAIL on the unchanged perf row99vs98, reproduced on clean base; no allowlist expansion. Initial PR-caused test-type/mock-export failures were repaired before this head and are not called inherited. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
* refactor: narrow private operator and lifecycle inputs * test: migrate private lifecycle and lock reader fixtures
What Problem This Solves
Operator, installation, and lifecycle helpers still accept private inputs or return fields that no production caller uses. This leaves alternate paths, forwarding, and test-only plumbing to maintain.
User Impact
No user-visible behavior change. Config keys, CLI flags, Gateway protocol, Plugin SDK contracts, persisted formats, security checks, and lifecycle settlement are unchanged.
Why This Change Was Made
Remove unused private arguments and always-defaulted options, inline their actual values, and drop unread result projections. Keep each producer with its callers and existing tests. Tests use the existing clock, transport, or lower-owner seams rather than unused outer injection points.
This is the operator/core area of a wider cleanup, split to keep CI attribution bounded: 66 files; 150 net production lines and 36 net test/support lines removed; one obsolete mock-baseline row removed; zero net documentation lines. The execution, plugin-adapter, and presentation areas are not included.
Fresh-main changes to diagnostic redaction, secret-masking regressions, and lifecycle fixtures are preserved. All 64 files have the same ordered added/removed lines as the previously reviewed cleanup; fresh caller/export checks found no new supplier or public escape.
Best-effort tradeoffs accepted
No new operating failure mode is accepted. These alternate inputs had no serving supplier; real defensive checks remain.
staleMsdisappear. Existing tests already mock the native readers; actual process identity, deadlines, namespace, recovery, and ownership remain. Reader seams came from fix: detect PID recycling in gateway lock on Windows/macOS + startup progress [AI-assisted] #59843; fix(gateway): never reclaim locks from unverifiable owners #178076 had already removed the age-based read.031bf0cimplementation's bounded windows, regex reset, and compiler/security checks remain.Evidence
Whole-tree caller/alias/export census includes extensions, packages, UI, and scripts, with introducing history and in-flight activation checks. Fresh-main caller drift and complete cutover were checked before publication.
Fresh focused owner proof: 149 tests passed across status formatting, channel status, package-update lifecycle, Doctor health, credential preservation, and the real Doctor output/redaction regression. Unchanged owner/sibling proof from the individually reviewed source cuts is retained; hosted exact-head CI is the broad proof. No local broad suite, build, E2E, added skips, retries, or timeout increases.
Known inherited local failure:
test/scripts/lint-suppressions.test.tsfinds the unchangedscripts/perf/provider-request-prepare-measure.ts|typescript/unbound-method|3entry missing from its allowlist (99 versus 98). It reproduces on exact clean base9bd9b07fe1d59a2fa148da45609c581a033017e5with 13 passing cases and one failure. The script came from #179456; this PR changes neither it nor the guard and adds no suppression. The cleanup was restored after the serial base replay, with all 64 file hashes verified identical. No allowlist expansion or dropped cleanup hunk.Targeted native types, exact-file typed lint, formatting, and whitespace checks passed. Runtime-value and Madge cycle checks both report zero cycles. The four selected native PR-wrapper inventory/import-closure cases passed (the unrelated eager-import fixture cases were not selected). Fresh independent P0–P2 review is scoped-clean with no accepted/actionable finding. The inherited suppression failure above is not claimed green.
Initial exact-head CI found two PR-caused test-tooling omissions: a diagnostic cancellation test still supplied the removed lock-reader argument, and the changed lifecycle mock invalidated its grandfathered closed-factory hash. The repair keeps cancellation-before-inspection proof through the existing native identity mock and preserves real lifecycle exports with
importOriginal; its obsolete baseline tuple is deleted, not replaced. Both changed suites pass (29 tests, 62.25 seconds wrapper), the focused test-type graph passes, and independent P0–P2 repair review is clean. No production code, real behavior assertion, timeout, retry, skip, or suppression was added to repair CI. Hosted proof must pass on the repaired head; the original red is not classified as inherited.