Skip to content

fix(test): align scheduled child tools with retained admin authority - #193683

Merged
steipete merged 1 commit into
mainfrom
fix/scheduled-turns-tool-list
Nov 5, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/scheduled-turns-tool-list

Conversation

@roboclaw-bot

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes the scheduled-command child tool-ceiling assertion in main scheduled CI, where the received ceiling now includes automations.

Related: #193098. This is the requested main-CI repair for that failure.

User Impact

The test now checks the intended retained-admin contract. Product behavior is unchanged.

Why This Change Was Made

Commit 56753f7762a (#193098) forwards the native command's live operator authority into the owner-tool policy. An admitted administrator retains control-plane eligibility even with senderIsOwner: false, so automations remains in the inherited ceiling. The hidden child's effective policy separately denies automations; the inherited list is a ceiling, not the child's callable inventory.

Keep exact equality against all four names and correct the obsolete comment. Production delta: zero lines. The five net test lines only format the longer array; the per-change allocation covers exactly those five lines, with no new tests or helpers.

Evidence

  • Original assertion reproduced the exact saved failure on base d1b1e78b4452: received read, automations, sessions_spawn, agents_wait versus the old three-tool expectation. One failing case, 27 skipped; wrapper wall time 79.37s.
  • Updated scheduled-turn suite: 28/28 passed, 85.05s Vitest wall time. Owning tool-policy suite: 15/15 passed, including hidden-child automation denial. Combined named-file wrapper: 101.23s. The existing scheduled suite exercises real loader, scheduler, admission, lineage, revocation, and persistence boundaries; no tests or waits were added.
  • Touched-file type-aware oxlint, pinned oxfmt check, and git diff --check passed. Standalone broad typechecks/builds were left to CI.
  • Fresh Codex autoreview, P0–P2 scoped-clean, of the complete two-file local candidate against d1b1e78b4452 with unchanged policy/fixture context supplied. No outstanding findings. The committed diff is identical to that reviewed candidate.
  • Remote Testbox was queued and stopped before executing the check. The focused local proofs above completed within the production-host rules. CI seconds are pending.

Broad proof belongs to this PR's CI. No containers, browser E2E, broad tests, repository-wide checks, or packaging ran on the production host.

Keep the scheduled-child tool ceiling exact after 56753f7 (#193098)
retained live administrator eligibility for control-plane tools. Hidden
children still deny automations through their own effective tool policy.

Allocate exactly five test lines for the longer expected-array formatting;
no production behavior, tests, helpers, or waits are added.

Co-authored-by: vincentkoc <[email protected]>
@clawsweeper

clawsweeper Bot commented Nov 5, 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.

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review November 5, 2026 18:49
@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. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 5, 2026
@clawsweeper

clawsweeper Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR adds automations to the expected scheduled-child tool ceiling and allocates five formatting lines.

Example: An admitted administrator schedules a command that spawns a hidden child.

  • Before: The assertion expects read, sessions_spawn, and agents_wait, so the retained automations ceiling causes a failure.
  • After: The assertion expects all four tools; the hidden child's separate effective policy still denies automations.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is focused and source-supported; validation is reported through an in-process harness rather than a shipped entry point, which is proportionate for this test-only repair.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored test-only repair reports a matching base failure and passing focused suites; inspected screenshots belong to the linked PR's separate UI warning scenario.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Scheduled CI reports a failure because an existing test still expects the tool ceiling from before retained-admin eligibility.
Reason: The maintainer-authored repair aligns coverage with an already-approved behavior while retaining exact equality and independent denial coverage.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it narrowly corrects a stale assertion to match the approved retained-admin behavior, with no production changes or actionable findings.

Priority: P3
Reviewed head: 5545015999306d4a764e4fba97f93ff7140ec046

Before merge

None.

Findings

None.

Agent review details

How this fits together

Authenticated plugin commands schedule bounded continuations through the Gateway scheduler; native spawn records the inherited tool ceiling, and child tool policy separately filters callable tools.

flowchart TD
  A[Authenticated plugin command] --> B[Scheduled continuation]
  B --> C[Native subagent admission]
  C --> D[Stored inherited ceiling]
  D --> E[Hidden child tool policy]
  E --> F[Callable child tools]
Loading

Technical review

Best possible solution:

Land the exact expectation correction through the existing CI gates while preserving the independent hidden-child deny policy.

Do we have a high-confidence way to reproduce the issue?

Source inspection confirms the stale three-tool expectation conflicts with retained admin eligibility; the PR records a matching base failure, but this read-only review ran no tests.

Is this the best way to solve the issue?

The smallest complete fix updates the existing exact assertion and comment, with the required allocation and no additional machinery or test scaffolding.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 9f3ed313782f.

Provenance checked

  • Scheduled-child inherited tool ceiling assertion changes intended behavior with a stated reason (ad40743: Bounded requester-owned scheduled commands must preserve child lineage and avoid recursively granting scheduling capability.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

Tests +5, Other +2. Total +7 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 7 2 +5
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 2 0 +2
Total 2 9 2 +7

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 P3: This is a focused test-expectation repair with no change to user-facing runtime behavior.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp 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:

  • P3: This is a focused test-expectation repair with no change to user-facing runtime behavior.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp 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 5, 2026, 2:05 PM ET / 19:05 UTC.

@steipete
steipete merged commit 642693a into main Nov 5, 2026
195 of 196 checks passed
@steipete
steipete deleted the fix/scheduled-turns-tool-list branch November 5, 2026 19:21
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 6, 2026
…penclaw#193683)

Keep the scheduled-child tool ceiling exact after 5005442 (openclaw#193098)
retained live administrator eligibility for control-plane tools. Hidden
children still deny automations through their own effective tool policy.

Allocate exactly five test lines for the longer expected-array formatting;
no production behavior, tests, helpers, or waits are added.

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
wangmiao0668000666 pushed a commit to wangmiao0668000666/openclaw that referenced this pull request Nov 6, 2026
…penclaw#193683)

Keep the scheduled-child tool ceiling exact after 56753f7 (openclaw#193098)
retained live administrator eligibility for control-plane tools. Hidden
children still deny automations through their own effective tool policy.

Allocate exactly five test lines for the longer expected-array formatting;
no production behavior, tests, helpers, or waits are added.

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: vincentkoc <[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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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.

2 participants