Repository navigation
fix: restore the main dead-export gate - #195158
Conversation
Keep module-local evidence, containment, and GC symbols private. Test synchronous containment through its public path API and remove uncalled retention assertions. Runtime behavior is unchanged.
|
🦞👀 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 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. |
|
Codex review: needs maintainer review before merge. What this changesThis PR makes unused internal symbols private, removes two uncalled retention helpers, and tests synchronous containment through its existing consumer API. Example: A developer runs pnpm check:changed on main.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR narrowly repairs unused exports still present on current main, with no actionable correctness finding. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherRepository validation scans production, test-support, and script imports with Knip and rejects unused exports; this change narrows those modules without changing runtime operations. flowchart LR
A[Changed-file validation] --> B[Dead-export gate]
B --> C[Production scan]
B --> D[Full-tree scan]
B --> E[Script scan]
C --> F[Unused-symbol verdict]
D --> F
E --> F
Technical reviewBest possible solution: Keep the existing hard-zero gate and remove only unused internal exports while preserving current consumer APIs. Do we have a high-confidence way to reproduce the issue? The unused exports and unchanged hard-zero gate establish the source-level failure path, supported by the author's parent-versus-head scan results; this read-only review executed no target code. Is this the best way to solve the issue? The patch is the smallest complete repair: it removes unused visibility and wrappers at their existing owners without adding ignores, duplicate implementations, or replacement machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against cf376b0d000a. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource 0, Tests -10, Other 0. Total -10 across 4 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 8, 2026, 5:07 AM ET / 10:07 UTC. |
#195158 un-exported forceFullGc and removed expectCollected as dead while #195091 concurrently added consumers (plugin-sdk/test-env, gateway session-collection test support, prepared-model-catalog inspection worker), breaking prod/test typecheck on main. Restore both exports; keep expectLiveObjects module-local so the dead-export scan stays clean.
…tooling-lint-selection-20261108 * commit 'b0e90e6a4b359fff7756698067fdce4758b1907b': (38 commits) fix(android): Talk button demands a realtime provider on a native Talk setup (#191194) chore: trace first-run Gateway work and verify later replies (#195185) fix(knowledge): keep deleted messages out of reply previews (#195126) fix(agents): preserve streamed replies across Gateway restarts (#195164) perf(ci): reuse SDK transport path boundaries (#195180) fix(sandbox): avoid pauses for unchanged command checkpoints (#195120) fix(test): make retention checks portable across runtimes (#195091) fix(knowledge): clarify temporal kind filters (#194995) improve: reduce Gateway allocation while draining SQLite receipts (#195129) fix: reduce streaming CPU after reply and voice directives (#195145) fix: reduce Markdown reparsing during streamed tool-call checks (#195161) fix: restore the main dead-export gate (#195158) improve(ci): pack small UI selections into fewer jobs (#195107) fix(muse): quota and sign-in failures end with no reply (#195148) fix: allow first release push with shipped patch bytes (#195174) fix(ci): narrow single-config tooling selections (#195147) fix(packaging): reject incompatible prepublish plugin cohorts (#195152) fix(ci): prepare verified Bun before parity checks (#195155) fix: Incognito agent turns stall before execution (#195005) fix: credentialed search and speech providers work without picking a provider (#195169) ...
Keep module-local evidence, containment, and GC symbols private. Test synchronous containment through its public path API and remove uncalled retention assertions. Runtime behavior is unchanged.
openclaw#195158 un-exported forceFullGc and removed expectCollected as dead while openclaw#195091 concurrently added consumers (plugin-sdk/test-env, gateway session-collection test support, prepared-model-catalog inspection worker), breaking prod/test typecheck on main. Restore both exports; keep expectLiveObjects module-local so the dead-export scan stays clean.
What Problem This Solves
Fixes
pnpm check:changedfailing on main because six unused exports reached the hard-zero Knip gate in #195099, #195061, and #195064.User Impact
The dead-export portion of local validation passes again. Runtime behavior is unchanged; no configuration, schema, dependency, or public SDK changes.
Why This Change Was Made
Keep the npm evidence filename, containment reason type, sync canonicalizer, and GC helper private. Exercise synchronous containment through the existing
realpathViaExistingPrefixSyncAPI and delete two uncalled retention assertion wrappers.Production Knip already excludes
src/test-utils/**; the full-tree pass includes test entries and correctly finds the retention wrappers unused on main. Tests with matching names use different helpers. Open #195091 introduces future consumers and will need to bring the helpers with that change if it lands after this PR. No Knip configuration, ignores, baselines, or allowlists are changed.The gate is deferred in ordinary PR CI, not exclusively local:
scripts/ci-build-manifest.mjsomits the dependencies row for ordinary PRs, while hourly main and full release validation run it. That allows a green PR to introduce these main regressions.Evidence
3a25991e37c4bad581b34ebf19f0b9b3e036b5cf: two scans reproduce the same six symbols. The existing gate is the red-before/green-after regression proof.pnpm check:changed --timedretains an unrelated changelog-attribution failure: 20 identical violations reproduced in an untouched worktree at the exact main parent above.266a7aa0fe69(fix(release): align attribution gate with human credit policy #194364) addedsteipete-oai/roboclaw-botto the forbidden handles without reconciling existing archived entries. This is an unresolved main regression, not a passing aggregate check; no changelog files were changed here.check:changedresult: every other selected check passed, including formatting, core/script lint, production/test typechecks, and a second zero-finding dead-export scan (132.43s). The changelog-attribution guard is the sole failure.3a25991e37c4bad581b34ebf19f0b9b3e036b5cf; no newer dead exports appeared.