Repository navigation
fix(ci): remove unused exec helper exports - #199511
Conversation
Keep service limits, capacity errors and default-timeout resolution private to their owners after #199079 removed their external production consumers. Use the documented 16-service contract as the real-process integration suite's independent expectation instead of importing a test-only production export. Preserve existing behavior, assertions and platform conditions.
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Codex Review Summary: ✅ CompletedThis 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 review Please review final head |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. What this changesMakes four exec helpers and constants module-private and gives the existing integration tests an independent 16-service expectation. Example: The unused-export audit inspects exec helper modules.
Review scores
ProductKind: Maintenance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR is a focused, behavior-preserving repair with no actionable findings; exact-head CI passed, while the aggregate review gate remains pending. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherExec tools use the process-adoption owner to admit and track background services and the timeout owner to resolve command budgets; this PR changes their internal module surfaces without changing tool results. flowchart TD
A[Exec tool request] --> B[Exec tool owner]
B --> C[Service admission and adoption]
B --> D[Timeout resolution]
C --> E[Process registry]
F[Real process integration suite] --> B
Technical reviewBest possible solution: Retain the module-private helpers and independent service-limit expectation, preserving the existing production owners and integration coverage. Do we have a high-confidence way to reproduce the issue? Source inspection confirms that main retains three exports without external consumers and a fourth used only by the integration test; the author reports a matching red/green Knip run, and no target code was executed during this read-only review. Is this the best way to solve the issue? The patch fixes the unused surface at its owners rather than weakening the audit, and the test expectation now derives from the documented contract instead of the implementation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 2080a79c2226. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource 0, Tests 0. Total 0 across 3 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. 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 November 15, 2026, 2:18 AM ET / 07:18 UTC. |
|
Merged via squash.
|
Keep service limits, capacity errors and default-timeout resolution private to their owners after openclaw#199079 removed their external production consumers. Use the documented 16-service contract as the real-process integration suite's independent expectation instead of importing a test-only production export. Preserve existing behavior, assertions and platform conditions.
What Problem This Solves
Fixes main's unused-export gate after #199079 (
237111eabf619a78bb1180aa49d4164b1b2e0c81) left exec service-cap and timeout helpers exported without production consumers.Why
Keep
MAX_SERVICES_PER_GATEWAY,MAX_SERVICES_PER_SESSION,serviceCapacityError, andresolveExecDefaultTimeoutSecprivate to their owning modules. All four still have internal callers. #199079 added the three service symbols and moved the timeout helper's last external caller toresolveExecTimeoutDefaults.The real-process integration suite already exercises the public exec/process tools. Replace its import of the production session cap with the independently documented expectation of 16 services. This preserves every assertion and makes the expected limit independent of the implementation. No checks, ignores, counts, or skip conditions are weakened.
User Impact
The unused-export gate is green again. Process lifetime, capacity limits, timeouts, and cleanup behavior are unchanged. Production and test LOC deltas are both zero; production source shrinks by 28 bytes. No configuration, schema, cache, or public SDK contract changes.
Evidence
Fresh branch from
7a60c1a148c63e77715065914d7e88725672908e. Open-PR searches and relevant file lists found no overlapping peer changes in these three files.MAX_SERVICES_PER_SESSION, is consumed only by the integration test and therefore is not flagged by the test-aware full-tree scan.pnpm dlx --package [email protected] knip --config config/knip.all-exports.config.ts --no-progress --reporter compact --include exports,nsExports,types,nsTypes,enumMembers,namespaceMembers --no-config-hints. After the fix: exit 0, zero unused exports.pnpm test src/agents/bash-tools.exec-group-cleanup.real.test.ts src/agents/bash-tools.exec-host-node.test.ts src/agents/bash-tools.exec-host-node.integration.test.ts src/agents/bash-tools.exec-background-followup.test.ts: 128 passed across four files; three existing Linux-only cases skipped on macOS. No skip conditions changed.pnpm check:changed: passed, including production/test typechecking, format/lint, all three zero-export scans and the remaining guards.git diff --checkpassed.d8f6761540f03ffe10895c697156969cb9e3e1e1; no reruns or inherited-infrastructure exception were needed.