Repository navigation
fix: resolve eleven stale exports in local checks - #201014
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 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 re-review Please review ready head |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. What this changesThis PR makes internal helpers private, exposes six existing SDK types, and updates tests to use production entry points. Example: A plugin imports PluginHookBeforeModelRequestEvent from openclaw/plugin-sdk/plugin-entry.
Review scores
ProductKind: Maintenance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it provides useful, narrowly scoped export cleanup, and I found no actionable correctness or security defects; exact-head CI remains pending. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe SDK entry point supplies plugin authoring contracts, while session delivery and cron formatting retain their existing runtime owners. flowchart LR
A[Plugin source] --> B[SDK entry point]
B --> C[Existing hook and metric types]
D[Contract compiler] --> B
E[Behavior tests] --> F[Delivery and cron owners]
Technical reviewBest possible solution: Retain the existing runtime owners, publish the six named type contracts, and keep internal helpers private as this patch does. Do we have a high-confidence way to reproduce the issue? Parent source lacks the six named exports and retains the internal export declarations; the PR reports a parent-failing, head-passing consumer compilation, which was not rerun during this read-only review. Is this the best way to solve the issue? The patch is the smallest complete repair using existing owners: it removes unnecessary export boundaries and exposes existing contracts without new runtime machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 4698d8f832a0. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +10, Tests +35, Docs +6, Other +1. Total +52 across 11 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. 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 November 18, 2026, 12:56 AM ET / 05:56 UTC. |
|
Merged via squash.
|
What Problem This Solves
Local
check:changedruns report eleven inherited dead exports from #200533, #193550, #198455, and #200817. Those findings obscure regressions in otherwise unrelated branches.User Impact
No runtime behavior changes. Plugin authors can name the existing model-request hook and metric contracts through
openclaw/plugin-sdk/plugin-entry; existing plugin types and callable APIs remain compatible.Why This Change Was Made
Keep module-only session delivery, cron formatting, and reference-model types private, and inline the obsolete segmented-control test helper at its sole caller. Existing delivery and formatting tests now exercise their production entrypoints. Reuse the existing event-state fixture setup to keep the recovery suite within its line cap.
The six public SDK types remain owned by their existing modules and gain explicit type-only re-exports from the canonical entrypoint. The surface budget increases by exactly six, with the source PRs recorded beside the budget. No Knip ignore or baseline entry is added. Production LOC is +10, entirely those type-only re-exports; no runtime import, config, cache, schema, or dependency is added.
Evidence
The untouched main parent
34d6c288fe1c46a369ff4171a103226b8c6059e3also has four newer findings:gbrainReleaseAssetandattestsGbrainReleasefrom #200987 (0ff7e2772eb15), andbuildMessageToolSchemaandresolveMessageToolActionSchemaActionsfrom #197553 (34d6c288fe1c4). Parent-relative source diffs identify their introduction/last-consumer removal. The original eleven findings are absent after this patch; those four remain a separately attributed main regression. Aggregate scan counts are 12 → 4 production, 9 → 1 full-tree, and 0 → 0 script entries. This does not claim a clean aggregate scan.Codex autoreview P0–P2 on the final local patch against parent
34d6c288fe1c46a369ff4171a103226b8c6059e3: scoped-clean, no accepted/actionable findings. The three consolidated recovery cases pass in 24.26s Vitest / 31.63s wrapper.pnpm check:changedcompleted with every check passing except the four attributed inherited dead exports listed above. This includes core/UI/extension/script/test typechecks, SDK boundary declaration emission, scoped lint, dependency and database guards, and format checks. No check was skipped or weakened.