Skip to content

fix(ci): stabilize spawn, cron, and automation checks - #148769

Merged
fuller-stack-dev merged 18 commits into
mainfrom
fix/ci-subagent-spawn-fixture-ownership-20260915
Sep 15, 2026
Merged

fuller-stack-dev merged 18 commits into
mainfrom
fix/ci-subagent-spawn-fixture-ownership-20260915

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 15, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Stabilizes recursive-spawn and cron checks without changing their deadlines, and avoids loading the broad Claude runtime barrel at the existing helper boundary.

User Impact

No intended user-visible behavior or authorization-policy change. Restores the existing Copilot credential-only login metadata lost when overlapping main cleanups combined.

Changes

  • Keep asynchronous recursive-spawn fixture work owned through cleanup, including the existing 15-second runner-arrival assertion.
  • Use the existing private Claude helper leaf with matching package, build, and native resolver coverage.
  • Seed completed cron state directly and verify the due slot remains unchanged in memory and storage.
  • Consume canonical fix: restore Copilot credential-only login choices #149038's three-line Copilot metadata restoration without weakening the registry contract.
  • Open real-Gateway delegation disclosures only when collapsed and assert the visible tool-result body, preserving all permission and config checks.
  • Keep provider-readiness assertions separate from per-account authentication and use the current Models unavailable status in progressive-loading tests.
  • Consume the independently qualified runtime auth-store fixture correction from fix(gateway): subagent sessions stay running after restart #126322 (e6fa9fa03a), preserving its author and existing assertions.

Preserves @vincentkoc's fixture ownership and CI work, @fuller-stack-dev's Claude import repair, and @steipete's canonical Copilot restoration. Main's shard ownership, auth/model fixes, automation fixture repair, and UI assertion corrections are retained rather than duplicated.

Evidence

  • Original 11 prerequisite files remain byte-identical to the previously qualified revision; retained evidence includes 226 passes, one existing platform skip, spawn timing, cron state, and native SDK/resolver coverage.
  • Fresh integration qualification: full build; 24 shard tests and exact-once ownership guard; 21 first-run tests; 19 UI E2E tests, including real HTTPS Gateway callback, credential persistence, and restart.
  • Real native Chromium extension lifecycle passed creation, readback, reconnect, and revocation. The historical hosted revocation failure was not reproduced; hosted CI remains required.
  • Copilot source-root regression: missing metadata produces the observed registry failure; canonical restoration passes all 28 registry tests and the metadata guard. No assertion or deadline relaxed.
  • Provider UI regression proof: original card-wide status failure and three obsolete-label failures reproduced; 7 provider E2E cases, 12 progressive E2E cases, and 40 renderer tests passed after correction. The canonical auth fixture's six-test proof transfers by exact test, runtime-owner, and lockfile identity.
  • Delegation follow-up: all three real-Gateway cases passed with state-aware disclosure handling. Unmodified local ordered cases also passed, so the precise hosted timeout cause remains unproven and fresh CI remains required. Independent P0–P2 review is clean. The nested-checkout lint boundary refusal was retained; the required lint passed with normal declaration preparation in a separate physical checkout (zero warnings/errors), without bypassing the guard.
  • Maintained changed-file checks and independent P0–P2 review cover the integrated candidate. Exact-head hosted CI and native prepare/merge are still required; this PR is not yet landed.

Historical automation proof used real Gateway/browser/storage with synthetic local Bot API and Responses endpoints, not live-account Telegram proof. Earlier failed or invalid qualification attempts remain retained separately and are not counted as passes.

@vincentkoc vincentkoc self-assigned this Sep 15, 2026
@clawsweeper

clawsweeper Bot commented Sep 15, 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.

@vincentkoc
vincentkoc marked this pull request as ready for review September 15, 2026 04:24
@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: S maintainer Maintainer-authored PR labels Sep 15, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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. labels Sep 15, 2026
@clawsweeper

clawsweeper Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 15, 2026, 11:13 AM ET / 15:13 UTC (Revision 12).

ClawSweeper review

What this changes

The PR improves spawn-test cleanup, verifies overdue cron state, corrects browser-test assertions, and loads existing Claude helpers through a lightweight private package entrypoint.

Merge readiness

✅ Ready for maintainer review

Keep open: meaningful fixture and import-boundary repairs remain absent from main. No actionable introduced defect was found, and the earlier secrets-shard finding is resolved. The member-authored, protected PR is also ineligible for automatic closure.

Priority: P2
Reviewed head: af4bad03adee597758f12772c60ec5b1f429b0c2

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A useful, bounded repair with preserved contracts and no actionable finding; reported qualification remains distinct from reviewer execution.
Proof confidence 🌊 off-meta tidepool Not applicable: The member-authored PR is exempt from the external proof gate and changes no runtime authority. Its body reports relevant build, resolver, and real-Gateway fixture qualification; the inspected update-badge images belong to a separate merged change.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The member-authored PR is exempt from the external proof gate and changes no runtime authority. Its body reports relevant build, resolver, and real-Gateway fixture qualification; the inspected update-badge images belong to a separate merged change.
Evidence reviewed 10 items Pinned introduction and current-main comparison: The inspected introduced delta matches the supplied 13-path inventory. The central spawn, cron, disclosure, and Claude import changes remain different from fetched main; this comparison establishes necessity, not removal of main-only work.
Release comparison: The latest supplied release still imports these helpers from the broad llm-core barrel, so it does not contain this import-boundary repair.
Private implementation boundary: The private llm-core package exports an existing dependency-free helper module. Package exports, build entries, TypeScript and Vitest resolution agree; the SDK’s exported names remain unchanged. Native resolver coverage checks both core resolution and rejection for external plugin parents. Nothing in this delta establishes a Codex dependency.
Findings None None.
Security None None.

How this fits together

OpenClaw’s validation suites exercise agent spawning, scheduled jobs, and browser interactions against their runtime owners. The Claude helper boundary supplies model policy to core and plugin SDK callers without needing the broader validation module.

flowchart TD
  A[Validation fixtures] --> B[Gateway and scheduler]
  B --> C[Execution and stored state]
  C --> D[Assertions and cleanup]
  E[Core and SDK callers] --> F[Lightweight Claude helpers]
  F --> B
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +1, Tests +118, Config +6, Other +1. Total +126 across 13 files.

View PR surface stats
Area Files Added Removed Net
Source 3 3 2 +1
Tests 7 263 145 +118
Docs 0 0 0 0
Config 2 6 0 +6
Generated 0 0 0 0
Other 1 1 0 +1
Total 13 273 147 +126

Review metrics

Metric Value Why it matters
API surface 1 private package subpath; 0 public SDK exports added The import repair reuses existing helpers without expanding the plugin-facing contract.

Technical review

Best possible solution:

Retain the existing runtime contracts while using explicit fixture ownership, state-aware browser assertions, and the single lightweight Claude helper owner.

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

No high-confidence reproduction of the hosted timeout was established in this read-only review; source supports the fixture repairs, while the body reports that the unmodified local delegation cases also passed.

Is this the best way to solve the issue?

Yes: the changes preserve behavioral assertions and deadlines while correcting ownership and selectors, and reuse existing Claude helpers instead of duplicating policy.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 0fc638865c36.

Labels

Label justifications:

  • P2: This is bounded validation and import-loading maintenance with no demonstrated urgent user-facing regression.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The member-authored PR is exempt from the external proof gate and changes no runtime authority. Its body reports relevant build, resolver, and real-Gateway fixture qualification; the inspected update-badge images belong to a separate merged change.

Evidence

What I checked:

  • Pinned introduction and current-main comparison: The inspected introduced delta matches the supplied 13-path inventory. The central spawn, cron, disclosure, and Claude import changes remain different from fetched main; this comparison establishes necessity, not removal of main-only work. (src/plugin-sdk/claude-model-runtime.ts:12, af4bad03adee)
  • Release comparison: The latest supplied release still imports these helpers from the broad llm-core barrel, so it does not contain this import-boundary repair. (src/plugin-sdk/claude-model-runtime.ts:12, 3a9d69db306c)
  • Private implementation boundary: The private llm-core package exports an existing dependency-free helper module. Package exports, build entries, TypeScript and Vitest resolution agree; the SDK’s exported names remain unchanged. Native resolver coverage checks both core resolution and rejection for external plugin parents. Nothing in this delta establishes a Codex dependency. (packages/llm-core/package.json:17, af4bad03adee)
  • Fixture ownership and failure preservation: The fixture owns asynchronous work, preserves the 15-second arrival deadline, waits for idle before closing the scope, attempts remaining cleanup after failures, and retains original assertions and errors. The inspected AsyncWorkScope implementation permits cooperating cleanup while closing and fences new work after drain. (src/agents/subagents/spawn/subagent-spawn.production-boundary.test.ts:451, af4bad03adee)
  • Re-review continuity: Comparison with the previous reviewed revision shows the new disclosure adjustment. The core spawn, cron, and helper changes are unchanged. The prior secrets-shard blocker is no longer present: the agents-tools shard includes both secrets test extensions, and this PR introduces no shard-config delta. (test/tsconfig/tsconfig.core.test.agents-tools.json:15, af4bad03adee)
  • Browser assertion contract: The disclosure controls expose aria-expanded and render the tool-result body when expanded. The new test respects that state and still verifies saved configuration and absence of approval events. Provider readiness and account authentication have distinct renderer elements, matching the revised assertions. (extensions/qa-lab/src/control-ui-openclaw-delegation.real-gateway.e2e.test.ts:531, af4bad03adee)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • yetval: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (11 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-15T07:07:08.415Z sha 39c3175 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-15T07:53:15.872Z sha 3d42682 :: blocked before merge. :: none
  • reviewed 2026-09-15T08:32:17.287Z sha 65564d1 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-15T08:57:55.496Z sha 91894d3 :: blocked before merge. :: none
  • reviewed 2026-09-15T10:32:18.066Z sha 91894d3 :: blocked before merge. :: [P2] Restore the remaining secrets-test shard includes
  • reviewed 2026-09-15T11:31:00.299Z sha f627adf :: needs maintainer review before merge. :: none
  • reviewed 2026-09-15T12:31:43.968Z sha 86e3b5d :: needs maintainer review before merge. :: none
  • reviewed 2026-09-15T13:31:28.273Z sha cf9d87b :: needs maintainer review before merge. :: none

@fuller-stack-dev fuller-stack-dev changed the title fix(ci): preserve spawn fixture ownership and failures fix(ci): own recursive-spawn work and trim cold model loading Sep 15, 2026
@vincentkoc vincentkoc changed the title fix(ci): own recursive-spawn work and trim cold model loading fix(ci): stabilize spawn, cron, and automation checks Sep 15, 2026
steipete added a commit that referenced this pull request Sep 15, 2026
Adopt the configured-owner fixture repair from #148769 (508ad6e). Preserve the actual non-owner denial boundary, unchanged job and run state, creator policy, and Control UI management lifecycle. Keep session_status available in the fixture so a non-owner reaches the provider after owner-only automations are removed.

Co-authored-by: Vincent Koc <[email protected]>
steipete added a commit that referenced this pull request Sep 15, 2026
* fix(update): stop stuck spinners and show unverified identity

Release CLI progress resources even when the final run-history read fails.
Use the report owner's identity classification for version badges, so missing
evidence is unverified while observed version/build mismatches still fail.
Keep updater execution and recorded outcomes unchanged.

Remove copied test translations, redundant coverage and guards, unnecessary
type assertions, and comment repetition. Preserve real localization,
connection ownership, recovery, and receipt contracts.

Validation: both regressions fail before and pass after; 202 selected tests
pass with current pinned dependencies; independent P2 review is clean.
Synthetic before/after UI proof makes no update requests.

Related: #147993, #147553.

* test(update): record installed version in coalesced restart fixture

* fix(models): await saved API key configuration

Wait for the existing Gateway configuration application receipt before refreshing saved credentials. Preserve reload policy, concurrent credential guards, and saved-but-unconfirmed warnings in the CLI and Models RPC.

* ci: keep combined test partitions within capacity

Return heartbeat test roots to infrastructure after independent main-branch rebalances jointly overfilled services. Preserve all 10,601 canonical roots, graph limits and runtime routing.

* test(qa): align automation management ownership proof

Adopt the configured-owner fixture repair from #148769 (508ad6e). Preserve the actual non-owner denial boundary, unchanged job and run state, creator policy, and Control UI management lifecycle. Keep session_status available in the fixture so a non-owner reaches the provider after owner-only automations are removed.

Co-authored-by: Vincent Koc <[email protected]>

---------

Co-authored-by: Vincent Koc <[email protected]>
@clawsweeper clawsweeper Bot added the merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. label Sep 15, 2026
@clawsweeper clawsweeper Bot removed the status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. label Sep 15, 2026
Merge current main to retain the canonical secrets typecheck ownership and
auth/image fixture repairs. Align Control UI assertions with the existing
Check again action, setup heading, provider label, and trimmed error text.

Preserve all behavior assertions, deadlines, browser access checks, and
Vincent Koc contributor ancestry. Browser source remains unchanged.
@openclaw-barnacle openclaw-barnacle Bot added the app: web-ui App: web-ui label Sep 15, 2026
@clawsweeper clawsweeper Bot added 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 rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 15, 2026
@fuller-stack-dev
fuller-stack-dev merged commit c64f235 into main Sep 15, 2026
212 of 214 checks passed
@fuller-stack-dev
fuller-stack-dev deleted the fix/ci-subagent-spawn-fixture-ownership-20260915 branch September 15, 2026 15:51
@fuller-stack-dev

Copy link
Copy Markdown
Member

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 16, 2026
* fix(update): stop stuck spinners and show unverified identity

Release CLI progress resources even when the final run-history read fails.
Use the report owner's identity classification for version badges, so missing
evidence is unverified while observed version/build mismatches still fail.
Keep updater execution and recorded outcomes unchanged.

Remove copied test translations, redundant coverage and guards, unnecessary
type assertions, and comment repetition. Preserve real localization,
connection ownership, recovery, and receipt contracts.

Validation: both regressions fail before and pass after; 202 selected tests
pass with current pinned dependencies; independent P2 review is clean.
Synthetic before/after UI proof makes no update requests.

Related: openclaw#147993, openclaw#147553.

* test(update): record installed version in coalesced restart fixture

* fix(models): await saved API key configuration

Wait for the existing Gateway configuration application receipt before refreshing saved credentials. Preserve reload policy, concurrent credential guards, and saved-but-unconfirmed warnings in the CLI and Models RPC.

* ci: keep combined test partitions within capacity

Return heartbeat test roots to infrastructure after independent main-branch rebalances jointly overfilled services. Preserve all 10,601 canonical roots, graph limits and runtime routing.

* test(qa): align automation management ownership proof

Adopt the configured-owner fixture repair from openclaw#148769 (508ad6e). Preserve the actual non-owner denial boundary, unchanged job and run state, creator policy, and Control UI management lifecycle. Keep session_status available in the fixture so a non-owner reaches the provider after owner-only automations are removed.

Co-authored-by: Vincent Koc <[email protected]>

---------

Co-authored-by: Vincent Koc <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 16, 2026
* fix(ci): preserve spawn fixture ownership and failures

* test(qa): align automation owner fixture

* test(cron): isolate due-job scheduling assertion

* fix: restore Copilot credential-only login choices

* test(ui): distinguish provider readiness from profile authentication

* test(agents): supply runtime auth store in thinking fixture

(cherry picked from commit e6fa9fa)

* test(ui): match progressive provider availability status

* test(qa): preserve expanded delegation result disclosures

---------

Co-authored-by: Jason (Json) <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui extensions: qa-lab maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M 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.

3 participants