Repository navigation
fix(test): align scheduled child tools with retained admin authority - #193683
Conversation
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]>
|
🦞👀 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: needs maintainer review before merge. What this changesThis 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.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete 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 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherAuthenticated 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]
Technical reviewBest 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
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceTests +5, Other +2. Total +7 across 2 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 5, 2026, 2:05 PM ET / 19:05 UTC. |
…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]>
…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]>
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 withsenderIsOwner: false, soautomationsremains 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
d1b1e78b4452: receivedread,automations,sessions_spawn,agents_waitversus the old three-tool expectation. One failing case, 27 skipped; wrapper wall time 79.37s.git diff --checkpassed. Standalone broad typechecks/builds were left to CI.d1b1e78b4452with unchanged policy/fixture context supplied. No outstanding findings. The committed diff is identical to that reviewed candidate.Broad proof belongs to this PR's CI. No containers, browser E2E, broad tests, repository-wide checks, or packaging ran on the production host.