Skip to content

fix: clear main's SDK budget and dead-export reds - #206963

Merged
obviyus merged 2 commits into
mainfrom
core/sdk-export-restart-reds
Nov 27, 2026
Merged

obviyus merged 2 commits into
mainfrom
core/sdk-export-restart-reds

Conversation

@obviyus

@obviyus obviyus commented Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

main fails two checks:

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.

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.

- 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.
@clawsweeper

clawsweeper Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XS labels Nov 27, 2026
@clawsweeper clawsweeper Bot added the P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. label Nov 27, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 27, 2026
@clawsweeper

clawsweeper Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Codex review: passed.

What this changes

This 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.

  • Before: The surface check exceeds budgets of 3,930 public exports and 2,258 callables.
  • After: Budgets account for the two existing exports without changing the SDK itself.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Focused maintenance with preserved behavioral coverage and supporting CI; no runtime or stored-format change requires a live or upgrade demonstration.
Proof confidence 🐚 platinum hermit (4/6) There is no user-visible behavior change; reported focused tests and reviewed-head CI support this budget and visibility cleanup.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Complete
User problem: Repository checks reject already-merged SDK additions and unused internal exports.
Reason: The maintainer-authored repair restores useful CI checks without adding capabilities or changing application behavior.

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: 6ea559384e98e385cb977fc5792dc97b45501e2a

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

  • SDK surface budgets keeps the original intent (fa5d2a7: The previous adjustment accounted for the merged audio-budget reader; this PR follows that established accounting pattern for two later merged exports.)
  • Restart-sentinel helper visibility keeps the original intent (bf00dc5: Shared helpers supported failed-update reporting, and the keyed reader was later refactored in cbfe33a; the implementations remain intact after their outside production consumers were retired.)
  • Managed-handoff fixture row construction changes intended behavior with a stated reason (75b169b: The earlier change used canonical rows and authoritative typed reads to prevent JSON-shadow false positives; this PR explains direct fixture construction and retains typed decoding and payload equality.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vincent Koc: Raw commit fa5d2a7 adds scripts/plugin-sdk-surface-report.mts:346 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: fa5d2a7ee124; files: scripts/plugin-sdk-surface-report.mts)
  • Peter Steinberger: Raw commit cbfe33a adds src/infra/restart-sentinel-store.ts:244 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: cbfe33af1c45; files: src/infra/restart-sentinel-store.ts)

PR surface

Source 0, Tests +17, Other +3. Total +20 across 4 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 3 3 0
Tests 2 22 5 +17
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 5 2 +3
Total 4 30 10 +20

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 27, 2026, 4:40 PM ET / 21:40 UTC.

@obviyus
obviyus merged commit ac59124 into main Nov 27, 2026
201 of 203 checks passed
@obviyus
obviyus deleted the core/sdk-export-restart-reds branch November 27, 2026 22:03
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 28, 2026
## 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant