Repository navigation
fix: clear main's SDK budget and dead-export reds - #206963
Conversation
- Make three restart-sentinel store helpers module-private; #206700 removed their last outside reader. - Seed the read-worker test rows directly instead of through the store builder. - Record AgentHarnessSideQuestionRequest (#205963) and hasReplyRestartResume (#206839) in the Plugin SDK budgets; both landed without a budget line.
|
🦞👀 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: passed. What this changesThis PR accounts for two merged SDK exports and makes three internal restart-sentinel helpers private while preserving their test coverage. Example: The SDK inventory contains 3,932 public exports and 2,259 callable exports.
Review scores
ProductKind: Maintenance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR is a focused, worthwhile CI repair with no actionable defects found; maintainer authorship also prevents automatic closure. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe SDK report compares package exports against CI budgets; the restart-sentinel store encodes and reads update notifications, with worker and subprocess fixtures checking persisted results. flowchart TD
A[SDK entrypoints] --> B[Surface report]
B --> C[CI budget checks]
D[Test fixtures] --> E[Restart sentinel table]
E --> F[Production typed reader]
F --> G[Snapshot and handoff assertions]
Technical reviewBest possible solution: Keep the existing runtime owners, account precisely for the merged SDK surface, and remove unused internal exports. Do we have a high-confidence way to reproduce the issue? Source inspection confirms the stale budgets, existing SDK additions, and lack of remaining outside callers for the narrowed helpers; this read-only review ran no target code. Is this the best way to solve the issue? The patch is appropriately small: it retains production implementations, removes test-only access to internal helpers, and keeps independent persisted-state assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against da296d0c9108. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource 0, Tests +17, Other +3. Total +20 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 27, 2026, 4:40 PM ET / 21:40 UTC. |
## Problem `main` fails two checks: - `plugin-sdk:surface:check`: public exports 3932 > 3930, callable exports 2259 > 2258. openclaw#205963 added `AgentHarnessSideQuestionRequest` and openclaw#206839 added `hasReplyRestartResume` without budget lines. - Dead-export scan: `buildRestartSentinelRow`, `nextRevision` and `readRestartSentinelRowForKeySync` in `src/infra/restart-sentinel-store.ts` have no outside readers after openclaw#206700. ## Change - Make the three restart-sentinel helpers module-private. The read-worker test and the managed-handoff lifecycle fixture write their rows directly. The lifecycle test decodes the row and compares it with the payload, so a wrong column fails it. - Record the two SDK exports in the budgets. Both have bundled consumers (copilot side questions, telegram restart recovery). ## User impact None. Behavior does not change. The diff touches only CI budgets, export visibility and one test fixture. ## Evidence - `pnpm plugin-sdk:surface:check`: exit 0. - `node --import tsx scripts/check-deadcode-exports.mts`: script, production and full-tree scans each report 0 entries. - `src/infra/restart-sentinel.read.worker.test.ts`: pass. - `src/infra/update-managed-service-handoff-engine.test.ts` (uses the lifecycle fixture): 14 passed, 5 skipped (PostgreSQL). - `pnpm tsgo:core`, `pnpm tsgo:core:test`: clean. Co-authored-by: Ayaan Zaidi <[email protected]>
Problem
mainfails two checks:plugin-sdk:surface:check: public exports 3932 > 3930, callable exports 2259 > 2258. fix(copilot): answer native side questions with request policy #205963 addedAgentHarnessSideQuestionRequestand fix(telegram): tell users when a reply will resume after restart #206839 addedhasReplyRestartResumewithout budget lines.buildRestartSentinelRow,nextRevisionandreadRestartSentinelRowForKeySyncinsrc/infra/restart-sentinel-store.tshave no outside readers after refactor: report update failures from recorded runs #206700.Change
User impact
None. Behavior does not change. The diff touches only CI budgets, export visibility and one test fixture.
Evidence
pnpm plugin-sdk:surface:check: exit 0.node --import tsx scripts/check-deadcode-exports.mts: script, production and full-tree scans each report 0 entries.src/infra/restart-sentinel.read.worker.test.ts: pass.src/infra/update-managed-service-handoff-engine.test.ts(uses the lifecycle fixture): 14 passed, 5 skipped (PostgreSQL).pnpm tsgo:core,pnpm tsgo:core:test: clean.Note on the SDK export limit: 3930 to 3932 public and 2258 to 2259 callable is public-surface growth, not a waiver. The two exports are used by bundled plugins (copilot, telegram), and the limit tracks the real public surface.