Repository navigation
refactor(core): remove unused private helper arguments - #178666
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 helper arguments and updates tests to exercise the existing runtime defaults. Review scores
ProductKind: Refactor · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this maintainer-authored cleanup open: the removed arguments have no production consumers, and review found no actionable defect; existing CI gates remain unresolved. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherInternal callers pass session, workspace, document, and delivery requests through core helpers to existing storage, Gateway, and transport owners, which return records, document bytes, or delivery outcomes. flowchart TD
A[Internal callers] --> B[Core helper interfaces]
B --> C[Transcript readers]
B --> D[Gateway services]
B --> E[Canvas document owner]
D --> F[Artifact transport]
C --> G[Existing storage]
Technical reviewBest possible solution: Retain the smaller private interfaces and existing production owners, then complete the repository's existing CI gates. Do we have a high-confidence way to reproduce the issue? There is no reported runtime bug to reproduce; source inspection confirms production callers use the retained defaults, and no target code was executed. Is this the best way to solve the issue? Removing unused controls at their existing owners is the smallest coherent simplification; the changed tests retain distinct byte-boundary, ordering, lifecycle, and failure coverage. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b7c858fcf245. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource -149, Tests -15. Total -164 across 51 files. Added test files: 0. View PR surface stats
Review metrics
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 20, 2026, 3:05 PM ET / 19:05 UTC. |
|
Merged via squash.
|
* refactor(core): remove unused private helper arguments * refactor(core): narrow cleanup after exact-head CI attribution
What Problem This Solves
Internal helpers still exposed cancellation, dependency, clock and limit arguments
that no production caller supplied. Tests kept those alternate paths alive even
though runtime always selected the same behavior.
What changed
Remove unused wrapper arguments and inline the actual defaults across transcript
readers, worker artifact transfer, Canvas widgets, session preparation and a few
small core helpers. Tests use existing module spies or the real fixed boundary
instead of production-only test injection.
This is the core/packages area of the original 83-path private-argument family, split from
the extension area to keep CI attribution bounded. Net production reduction:
143 lines across 24 production files (50 paths including tests/support/baseline). Already
landed UI changes are excluded. No config keys, CLI flags, public SDK or Gateway
protocol fields, persisted shapes, schema, retention or permission policy change.
Best-effort tradeoffs accepted
iterator cleanup. Unused chunk overrides/clamping and never-supplied cancellation
disappear. The original Bug: Non-atomic write of exec-approvals file + unbounded transcript readFileSync #54296 memory-bound repair remains; tests now exercise
the real chunk boundary and consumer early-break cleanup.
return an unread boolean. Ordering, mixed-key exclusion, idempotent release and
restart/close settlement stay unchanged; cancellation of a hypothetical future
waiter is no longer offered by this private interface.
batching work (improve: keep large workspace transfers responsive #147626, improve(gateway): reduce Git subprocesses when staging worker results #150057) remains: actual lower worker cancellation,
security/effect authority, digests, resource bounds and accepted cleanup stay.
shared preparation, failure recovery, path watches or current-source check.
of test-only overrides. Bearer validation, expiry, live authorization, serving
limits, revocation and transfer settlement remain.
32-document scope bound. No caller selected a different bound; CSP, alias/link
refusal, report durability, grants and partial-failure behavior remain.
thread lookup and credential collection lose unused argument alternatives; the
lower owners' real modes and public contracts stay intact.
use their existing real owners. Inference authority, Funnel route validation,
waveform evidence and terminal-result retention remain. The separate Git-path
platform cut is excluded because PR tooling imports that signature.
These are caller-contract cuts, not a claim that the underlying delivery,
authorization, durability or concurrency repairs were speculative. Phase E's
standalone session memory backend and all its machinery/tests are untouched.
Evidence
Per-owner focused tests, native typechecks and fresh independent reviews passed
before assembling this area. Retained proof includes transcript streaming and
library/store readers; FIFO/delivery ordering; Canvas document/widget/presenter/
report/session behavior; artifact transfer and installer paths; context/templates/
BTW parsing; wizard retention; waveform verification; greeting and Funnel behavior.
Latest workspace proof: four selected manifest adapter/cancellation cases plus
all 43 reconciliation/publication/checkpoint cases passed. Five unchanged
maximum-size manifest cases were not selected locally; hosted CI owns them.
Targeted native graphs and typed touched-path lint passed. No new runtime import
edge was added; the existing zero-cycle proof is retained. Local proof is serial,
isolated and limited to focused tests; no broad build/E2E claim.
Original-head area integration passed: the native targeted 51-root typecheck, typed lint
of all 51 touched paths, all 33 lint-suppression/import-closure cases, zero runtime
cycles, zero Madge cycles, formatting and
git diff --check. Each transplantedfile is byte-identical to its independently reviewed collector version, and no
owner changed upstream between those reviewed versions and this area's base.
Exact-head hosted CI remains the broad landing gate; no hosted-CI success is
claimed at publication time.
CI repair: the assertion-safety job correctly required deleting the stale
transcript-stream.tsbaseline row (zero assertions now, previously one). Thatshrink-only repair changes no runtime or test behavior. The UI hover-preview
navigation failure reaches only the retry clamp and fast-test environment hunks;
both files are restored byte-identically to current main under campaign rule 8,
with those two cleanup hunks reserved for a parked branch. Local browser E2E is
outside this lane's proof budget. All other reviewed cleanup remains.
The old Node shard's five Windows lifecycle failures are inherited from the
tested merge baseline, not this PR: serial focused replay passed all five on
aef3bf54246b, then failed all five with the exact CI signatures on its actualbaseline
6a6ba1da8dcb. The untouched fixture has the same SHA-256 in both trees.Baseline #178624 (
00cb4b3c512e) moved enabled-state mutations to PowerShell COM;this fixture still intercepts only
schtasksthroughrunCommandWithTimeout,so its expected disable/enable effects never occur. This evidence does not claim
the main-side fixture is fixed. No test expectations, skips, retries or timeouts
were changed. New exact-head CI remains the broad gate after the repair push.