Repository navigation
refactor: localize private CLI and delivery phases - #179372
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review blockedAutomated review did not run, so no review verdict was produced. Reason: The input-safety check rejected material in this revision. No detected value, path, or scanner output is reproduced here. Automatic review is on hold, including after source changes. Request a fresh re-review after resolving the failure; maintainers can also release the hold through an intentional scanner-policy update. Next step: If this is a genuine credential, remove and rotate it. If it is an intentional test fixture, a maintainer must review and qualify it. |
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c35ca16912
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| @@ -1,70 +0,0 @@ | |||
| // Status overview value tests cover compact display values for agents, events, tasks, and services. | |||
There was a problem hiding this comment.
Retarget the light-test entry before deleting this test
Deleting this file leaves test/vitest/vitest.commands-light-paths.mjs:71-72 pointing to a nonexistent test. The commands-light config consumes that list, and routing a change to status-overview-values.ts now selects this missing path; because that project enables passWithNoTests, targeted validation can succeed without running the assertions moved into status-overview-rows.test.ts. Retarget the mapping to the moved test or remove the stale source route.
AGENTS.md reference: AGENTS.md:L46-L51
Useful? React with 👍 / 👎.
|
Merged via squash auto-merge.
|
* refactor(cli): localize channel setup registration facts * refactor(status): localize overview presentation values * refactor(cli): localize private command presentation * refactor(status): keep section formatting with report owners * refactor(cli): keep camera and presentation phases with their owners * refactor(gateway): keep probe discovery in the status command * refactor(reply): inline private streaming and diagnostics phases * refactor(infra): inline private presentation and delivery phases * refactor(channels): inline private log filtering phases
What Problem This Solves
Private CLI, status and reply phases carry single-consumer helper modules and argument envelopes that their existing owners do not need.
User Impact
No intended user-visible change. CLI commands, output, config, protocol, plugin SDK and persisted formats remain unchanged; no migration is needed.
Why This Change Was Made
Keep channel registration, camera commands, status sections, Gateway discovery and small presentation phases at their actual consumers. Remove the obsolete camera, status-section and discovery modules, rather than retaining forwarding exports for tests. The camera and Gateway tests now exercise the existing public owners. Streaming configuration, diagnostics, heartbeat delivery, issue transport, private browser handoff and approval presentation lose only their private one-use frames.
This removes 511 net production lines: 1,254 added / 1,765 removed across 21 production paths. Tests, fixtures, test support, generated files and declarations are excluded. Two obsolete mock-export baseline entries are removed; no allowance is added.
Best-effort tradeoffs accepted
Evidence
Every packet has focused owner/consumer tests, targeted native typechecks, formatting, typed lint, line-cap proof and independent P0–P2 review. The latest packets pass 71 reply/streaming cases across five files, 122 infra/consumer cases across nine files, and 29 channel-log/CLI cases across two files. Earlier packets cover registered channel commands, status values/sections, CLI output, camera/migration/docs (65 cases) and Gateway/SSH boundaries (50 cases). These are focused deterministic proofs, not live provider, browser, channel, SSH or deployed Gateway acceptance.
All runtime proof used isolated state,
nice -n 10and one Vitest worker; no whole-graph local typecheck or broad suite was run. An initial camera selection mistakenly included an E2E file that began build preparation; only that task-owned process tree was stopped and its owned lock released. No local build/E2E result is claimed; that proof belongs to exact-head hosted CI.Independent review is scoped-clean for each packet. Targeted lint caught a local shadowed variable introduced by the heartbeat inline; it was renamed before the final passing proof, without a suppression. Existing behavioral assertions are retained; docs output escaping coverage is strengthened. Final branch guards and exact-head hosted CI are recorded below when completed.
Final assertion-safety, mock-export and session-accessor guards pass. The required local suppression suite passes 13/14 and fails on the existing
src/config/sessions/session-native-binding.execution.test-support.ts|typescript/unbound-method|1entry missing from main's allowlist (98 versus 97). The source, test and collector are unchanged from the branch base; the directive came from #179124. No suppression or allowlist is added here. This is an unresolved baseline failure, not a passing replay. Exact-head hosted CI remains the broad gate.The four selected wrapper-inventory/eager-runtime-closure cases pass (18 unrelated cases filtered, no new skips). Runtime value cycles: zero. Static cycles: zero. Whole-branch line caps and
git diff --checkpass. Reviewed head:c35ca16912d3df024886e29491f5a775d7480718.