Skip to content

refactor: remove Tasks and TaskFlow runtime - #159179

Merged
steipete merged 16 commits into
mainfrom
codex/taskflow-runtime-removal
Sep 27, 2026
Merged

steipete merged 16 commits into
mainfrom
codex/taskflow-runtime-removal

Conversation

@steipete

@steipete steipete commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Related: #156532

Final removal after the prerequisite batches #158221, #158217, #158225, #158222, #158702, and #158776. This completes the original removal.

What Problem This Solves

Removes the remaining Tasks and TaskFlow runtime after Cron, follow-up results, native execution and generated-media completion have their own existing owners.

User Impact

The Tasks/TaskFlow APIs, CLI and SDK surfaces, and Chat/native Tasks panels retire immediately. Plugins using the removed Task-specific SDK APIs must migrate to the retained session/native/Cron contracts; this intentionally provides no compatibility facade. Cron history and transcripts, native subagents and background commands, Workboard control, and retained media completion continue through their Cron/session/native owners.

Existing stored rows are preserved. Doctor imports provable legacy native assignments into existing binding metadata; ambiguous ownership stays untouched with a visible warning. This removal introduces no database schema version, replacement ledger, new configuration option, or new dependency.

Why This Change Was Made

The Tasks ledger duplicated execution and completion state already owned elsewhere. The cut moves each retained decision to that owner, then removes the old tools, registrations, events, wrappers, UI, tests and documentation together. Follow-up caller/result custody stays with the session/subagent completion owner; the temporary Task projection adapter is removed.

Native completion keeps exact delivery obligations through cleanup and restart. Media completion is fenced to the original requester/store/generation, and Cron retention shares atomic admission with pending delivery. The touched correlated-completion lifecycle uses the existing database worker and broker, retaining admission, FIFO ordering, transaction-time identity checks and write settlement.

Evidence

The removal passed full CI on 274595e2, including openclaw/ci-gate. Attempt 1 had 143 successful jobs and two interrupted jobs (pnpm download reset and SDK runner shutdown); only those failed jobs were rerun, unchanged, and passed. The SDK shutdown cause remains unresolved; no source defect or corrective source patch is claimed for it.

Merged as 6652f7eac8d96ccc50b0da648cbbd8b556fcfb7b from reviewed head ddbe2b2d7e65ed24e5c03c9cbfbc156fca1fae11. The actual main parent is 44f67c2a7d3b1752de4d8998fcc85cab1afbc756; landed tree be0f28179cea8e556596a5be33b34bafa0f8d0ae exactly matches the pre-dispatch merge-tree calculation. Final conflicts preserved deletion of the retired TaskFlow type and Task SDK modules; no live implementation was reintroduced. The cut preserves main's native lifecycle, write settlement, SQLite transaction/maintenance owners, ACP preflight, and retained UI behavior. The five type graphs, protocol registry, canonical database-worker inventory and source-locale verification passed on the preceding conflict candidate. The last nine conflicts preserve main’s Swift decoding/test cleanup and the Task retirement; Swift parsing and source-isolation guards pass. Review retained the distinct pre-existing ownerless-custody case: owned + ownerless cases pass (2/2, 41 filtered, 36.85s wrapper; 519ms and 307ms case time). Earlier focused native coverage remains 64 distinct passing cases. Independent P2 reviews cover substantive resolutions and subsequent fixture repairs; accepted findings are resolved. The earlier full CI is evidence for its exact head, and is not presented as a new full CI pass on this conflict candidate.

Generated UI translation-memory/meta/fallback and native translated/platform resource updates are left to their existing post-merge locale workflows, as required by the source-PR ownership policy. Both source/generated isolation checks pass. English/source retirement remains complete. Runtime materialization ignores obsolete memory keys absent from English. This reduced the hosted review input to 67.7 MiB at 5c730848, below the unchanged 256 MiB limit; no scanner or review guard is relaxed.

The later native overlap retains main’s generic cancellation and child-custody fixes while discarding preparation of retired Task-mirror reads. Core/extension types and the two focused native authority cases pass (66.84s wrapper, 17 filtered); independent P2 review is clean. The final mechanical conflicts preserve main’s recovery helpers, the existing asynchronous settlement callback contract and the canonical Workboard asset build; core types pass.

PR CI at 69333bf failed before test/build planning because changed_paths_json becomes null when the file list exceeds the scope producer’s 64 KiB cap. Its 78,745-byte filename list deterministically triggers that limit. The second failed gate is Security Review mirroring that CI preflight failure; security-fast passed. The maintainer explicitly authorized administrative landing after the earlier successful full CI and logical conflict resolution. This does not claim a new full CI pass on the final head.

Package proof uses immutable candidate cdeaedbda459b1b5b7df6e836cf92438be4e68ff (2026.9.6, tarball SHA-256 58faa6fd9d3e20006fb738d38d4d37c5a9a9728a2c5bfdc30416abd5bbf9d1a9). The producer run passed the published 9.6 cell: both Cron jobs preserve transcript identities, cursors, provenance and order after update and candidate execution, and rollback passes (1061s, one attempt). This is evidence for those package bytes, not later branch changes.

The genuine published 9.4 cell passes the installed updater and first-hop import of both native assignments while preserving original Task rows. The synthetic provider then exposed fixture contract defects rather than an established product migration failure: missing companion selection, seed ordering/agent policy, model response fields, and configuration reload lifecycle. The corrected peer was proven against the actual immutable packaged client: cold/warm resumes preserve both parent history turns and the running child, emit unload before the resume response, and refuse active or competing-subscriber reconfiguration. All 254 wire checks and independent P2 review pass (2.90s lifecycle, 2.91s wire).

The focused 9.4 upgrade replay passed the real installed update and first-hop assignment import. Its trace also confirms the corrected configuration unload/resume and policy-injection acknowledgment. It then failed because agent.wait requested a 60-second server wait through a CLI transport that still defaulted to 10 seconds. The four-line fixture repair gives only that RPC a 70-second transport budget, retaining the 60-second operation and 120-second process budgets and the existing success assertion. An actual isolated Gateway using the original package reproduced the 10-second error, then returned the server's typed timeout with the corrected transport (13.080s versus 61.165s wall). Independent P2 review, lint and syntax checks pass.

The remaining five hosted native witnesses and the final 9.4 rollback were not reached and remain unproven; no additional whole upgrade replay is claimed. The earlier published 9.6 Cron/rollback cell remains valid for its immutable package. This uses a synthetic provider with real published Gateway/companion packages and the installed updater; it does not claim live external-provider execution. Existing rollback verifies per-agent session/transcript databases, not a separate logical restoration hash for shared native-assignment rows.

Full CI on b538fdb finished with 107 successful jobs and 31 underlying failing jobs. Reviewed repairs address retired Tasks expectations, proper test fixture settlement, database worker routing, canonical schema admission, Cron failure-history ordering, committed child ownership, and native /status presentation. The catalog failure did not reproduce in the original 30-file Linux shard (444/444 passed); no speculative repair was added. The new exact-head CI run completed with 133 successful jobs and five underlying failures: a missing script entry, Android Maven connection resets, session-group teardown, persistence fixture cleanup, and repeated continuation settlement. All identified source/fixture repairs are included in the current candidate; macOS packages/tests and iOS passed. The Android failure was dependency-download infrastructure. The stale Swift Task event/menu assertions are also removed; the Swift package compiles in 133.62s and its isolated review is clean. The earlier macOS presence-clear timing failure did not recur; its unproven proposed patch was excluded, and no assertion or timeout was weakened.

The retained flow proofs include real database-worker races; native recovery, cancellation and completion delivery; Chat send/completion and Workboard stop/update without Tasks RPCs; and the private completion QA scenario, including restart with zero replay. Local startup/type/lint prerequisites that stalled remain explicitly unproven until integrated CI; passing focused replays are not represented as one monolithic green check.

Earlier focused validation and measured costs
Proof Result Measured wall time
Full private-QA build at 7850820b Passed 640.94s
Three Cron E2E files at that source 17 passed, no skips 75.04s wrapper; 71.24s Vitest
Corrected quiet-finalization, history/publication, CLI suppression, runs, and Gateway Cron suites Six files passed 313.66s
Cross-tick admission (pnpm test src/cron/service.cross-tick-admission.test.ts --maxWorkers=1) 6 passed 22.83s
Subagent lifecycle after mutation-verified fixture correction 216 passed 60.75s
Cron scheduler / retention / startup with unchanged relevant inputs Passed 3.33s / 28.23s / 4.60s

Production types, affected test types, scoped lint/format, generated worker/UI/Workboard outputs, and actual-base ratchets passed across their recorded stages. Older proof retains its source attribution.

The maturity taxonomy uses authentic historical evidence; mismatched coverage is Unscored. Existing quality/completeness/LTS values remain unchanged.

Inspected synthetic before/after screenshots: browser and Android chat/menu and Android context, Wear, iOS, and macOS. All 20 images were verified rendering. Captions preserve source identities and proof limits; subsequent UI repairs change tests and generated locale pruning only.

Measured costs and limitations for the reviewed CI repairs

Recorded validation for the 21 applied repairs. run-vitest below means node scripts/run-vitest.mjs; grouped file lists and filters are abbreviated. Times are separate observed invocations, not additive totals. Cold worker preparation, transforms, and shared-host contention dominate several runs; these are validation costs, not performance comparisons.

Owner / applied repairs Recorded command or scope Measured cost Limits and remaining conditions
Architecture: worker kernel, held reader run-vitest: shared-state worker imports, delivery state, requester-wake admission and retry Kernel proof 378.11 s wrapper Held-reader types/lint/review pass, but local runtime attempts never reached a case. Successful runtime timing unavailable; combined CI must confirm it.
Retired CLI / Doctor / backup / startup surfaces run-vitest: backup-create, doctor-state-integrity, session-startup-orphans Backup + Doctor 1375.06 s wrapper; startup 385.39 s wrapper Targeted types refused borrowed compiler dependencies; integrated CI must supply that check. Original startup timeout was retained; the later successful replay is not claimed as an engine fix.
QA completion inspection QA scenario subagent-completion-direct-fallback; actual inspector owner proof Scenario suite 219.06 s wall (104.69 s scenario); owner proof 8.52 s wall; separate QA runtime build 505.26 s wall Unit Vitest attempt stopped before execution after 687.63 s. Lint never started because SDK declaration preparation timed out at 300 s. The real built scenario passed; these missing checks are not reported green.
Cron: schema admission, stream ordering, timer fixtures run-vitest … --maxWorkers=1: receipt binding/store/schema facts; stream validation; original quiet-finalization → run-history → timer order Receipt group 662.37 s wrapper; changed binding file 410.22 s wrapper; stream/order run 798.06 s wall; corrected timer order 53.13 s wall The stream/order invocation still had the two timer-fixture failures; it was not fully green. The separately repaired original-order timer run covers those failures. Repeated binding cases are not additional coverage.
Native /status observations run-vitest: status-subagents, subagent-execution-observation, agent-events 50.26 s wall; primary status case 2.189 s Registration-reset negative control failed as intended and exact candidate bytes were restored. No full shard replay claimed.
Peripheral fixtures: managed images, context maintenance, command delivery pnpm test … --maxWorkers=1: managed-image-attachments; context-engine-maintenance; live-model-switch + pending-final-delivery-marker Images 1007.86 s wall; maintenance standalone 93.61 s wall (paired ownership run 361.20 s); delivery pair 58.43 s wall Changed gates pass. Full original shard replays were not completed; context's 442.78 s group attempt stopped before the target. Catalog uncertainty remains separate below.
Proxy capture pnpm test src/proxy-capture/proxy-server.test.ts src/proxy-capture/proxy-server.managed-proxy.test.ts --maxWorkers=1 520.63 s wall (518.41 s wrapper) Original-order shard attempt stopped after 689.58 s before proxy cases. Focused failure reproduced through real sockets/readers, then repaired focused proof passed; no complete original shard pass claimed.
Doctor worker fixture run-vitest: doctor-maintenance.worker, staged focused runs Intermediate run 546.65 s wall; final lifecycle subset 681.39 s wall First five successful cases are reused from an invocation whose other three cases failed; those three pass in the final subset. No final all-eight-case run claimed. Lint did not start: SDK-DTS preparation exceeded 300 s.
Central completion / Gateway fixtures: control, routing, resume, registry run-vitest: steering/requester continuation; collector suites; chat incarnation/resume; selected registry timing/restart/publication/replacement Control 661.16 s wrapper; collectors 1143.74 s wall; registry 60.27 s wall; final resume 53.85 s wall Full chat success was observed in the 117.74 s mixed chat/resume invocation that still had two resume failures; standalone full-chat timing unavailable. Final resume proof covers those failures. Initial import-only cancellations are not passes; no uninterrupted full-shard/check run claimed.
Spawn acknowledgement run-vitest: post-commit parent closure, pre-commit authority, cancellation/replacement/write controls; full Gateway transport file Focused selection 169.93 s wall; transport file 95.55 s wall The corrected descriptor observer still failed before the runtime acknowledgement fix, providing the negative control. Other filtered cases were not rerun.
UI boundaries and locales Browser runner: rail, mobile clearance, retained-pane cases; canonical i18n sync/check/verify 50.94 s runner (48.93 s Vitest) Ten unrelated browser siblings were skipped. i18n command timings unavailable; strict checks pass. No production UI/English-copy change or new screenshot capture is claimed.
Published-upgrade native schema fixture run-vitest: upgrade-survivor schema expectation + backup rollback; genuine published 9.4 pre-update validation Unit proof 37.12 s wrapper (34.24 s Vitest) Full 9.4 pre-update validation passed, including native seed, strict schema/approvals, verified backup and retained Cron. End-to-end pre-update timing unavailable in the receipt; this is not final candidate upgrade/rollback Package Acceptance.

Earlier catalog condition: original CI's shared-path actor identity conflict has no established corrective patch. The original 30-file Linux group passed unchanged through node --import tsx scripts/ci-run-node-test-shard.mts with OPENCLAW_NODE_TEST_PLAN_CONCURRENCY=1 and OPENCLAW_VITEST_MAX_WORKERS=2: 211.89 s shard-wrapper time. That is bounded non-reproduction, not proof of a fix. The macOS original-order attempt stopped before completing a test; its focused diagnostic timed out early and later passed the original failing case, so it is not clean proof either. The escaping actor remains unidentified; The later full CI on 274595e2 passed; this does not establish the original cause or a source fix.

Costs are attributed to the frozen per-owner inputs recorded with the patches (mostly b538fdb, native-schema fixture 894af9fb). They do not establish a monolithic pass on the integrated repair head, and unchanged-package evidence retains its original source identity.

Conflict resolution and final repair proof

Actual conflicts against pinned main ad3103420e403adb3e8a2f1aa046cb9397dffcbb preserve its retained native delivery helpers, grouped chat rendering, current translations, lifecycle types, and CI routing. Canonical native/UI locale generation and strict checks pass with cached translations only; Workboard assets and prompt snapshots were regenerated through their owners.

Core, extension, script and root-test type graphs pass. Seven affected Codex files pass 80 tests in 324.92s; five selected session-binding cases pass in 116.10s (43 filtered). The affected media/Cron/planner tests pass in 406.43s across three routed shards. The updated combined-project routing case initially exposed Cron admitting unrelated include-file entries; using the existing intersection option fixed the original case (35.61s wrapper).

The repeated continuation callback failure was reproduced before fixing its payload-owned settlement promise. The complete waiting-status and dispatch-finalization groups now pass 36 cases in 61.07s, including concurrent/repeated callbacks and rejected-handoff recovery; isolated P2 review is clean. The persistence fixture now joins existing owner work before its unchanged zero-root assertion: its original four-case failure order reproduced, then all 22 cases passed (45.71s wrapper), with clean P2 review. Session-group teardown independently has the same async-drain repair on main; that repair is retained. The missing native-peer script entry is registered at Knip's existing shell-process entry owner; both unused-file scans pass.

The previous whole-PR hosted ClawSweeper refresh exceeded its fixed staging capacity because of generated translation-memory churn. That churn is now removed under the canonical source-PR policy; the final immutable tree fits the cap without exemptions. A fresh hosted review completed for 5c730848 at 2026-09-27 15:35:16 UTC. Its recovered-requester authority question is addressed with the existing real SDK and final-dispatch boundary coverage in this evidence response. The latest nine conflicts and the one accepted test correction have completed independent review. Earlier incremental local review remains supplemental evidence only.

Complete the removal begun in #156532 after the Cron, follow-up custody, Webhooks, and workspace prerequisite batches. Preserve native execution and result recovery, retained Cron history, and media completion under their existing owners. Keep the released database layout and source rows; Doctor imports provable native assignments into existing binding metadata.
@clawsweeper

clawsweeper Bot commented Sep 26, 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 docs Improvements or additions to documentation channel: slack Channel integration: slack app: android App: android app: ios App: ios app: macos App: macos app: web-ui App: web-ui gateway Gateway runtime extensions: lobster Extension: lobster cli CLI command changes scripts Repository scripts commands Command implementations docker Docker and sandbox tooling agents Agent runtime and tooling extensions: openai extensions: qa-lab extensions: codex plugin: file-transfer extensions: xai extensions: admin-http-rpc extensions: copilot plugin: workboard app: wearos App: wearos plugin: facetime FaceTime plugin size: XL labels Sep 26, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

Inspected synthetic before/after screenshots

The browser after captures use the final runtime source, including newer main’s header and sidebar alignment. Browser before captures retain their original source identities. The native captures are reused after a source audit confirmed their rendering inputs remain identical. The Swift captures cover short completed messages and the Actions menu; they do not certify overflow, streaming, search, or scroll-follow behavior.

Surface Before After
Browser Chat Browser Chat before Browser Chat after
Browser Workboard details Browser Workboard details before Browser Workboard details after
Cron retained transcript Cron retained transcript before Cron retained transcript after
Android chat Android chat before Android chat after
Android menu Android menu before Android menu after

Capture source trees:Chat/Workboard after 2934426c42144b40eb4a43c6fa985244a65008f4 (original browser before ea73bab822429acf7f00440e04fa18b569562705); Android 11eae6f10b92851cd660bef01a2efbb8ec6b2f82; Swift/Wear a487d0cfa02516e9f81a89b397beba7ef8abdd26; Cron after 2934426c42144b40eb4a43c6fa985244a65008f4 (original Cron before commit e79bb74df9d232715369604b44a1b2a7cad676b7). These identify the captures, not fresh execution on the final PR head.

@clawsweeper

clawsweeper Bot commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed September 27, 2026, 1:37 PM ET / 17:37 UTC (Revision 6).

ClawSweeper review

What this changes

The branch removes the Tasks and TaskFlow runtime, CLI and SDK surfaces, and chat panels while moving retained history, completion, and legacy Codex recovery to Cron, session, and native owners.

Merge readiness

⛔ Blocked before merge - 9 items remain

Current main and the latest release still contain the Tasks runtime, so this final retirement remains useful. A maintainer has accepted the intentional SDK break, while native upgrade and requester-authority proof remain incomplete on a head that currently conflicts with main.

Priority: P2
Reviewed head: d545e65f41cbb4da63134e0f144149176386b5db

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The cutover has substantial scoped validation and inspected UI evidence, with material native upgrade and final-effect proof still missing.
Proof confidence 🦐 gold shrimp (3/6) Needs stronger real behavior proof before merge: Authority-chain proof required: The Codex assignment inventory and completion SDK carry stored requester facts into Gateway delivery. Published 9.4 proof reaches import but not post-import native completion or rollback; the reassignment test invokes final-dispatch checks through a mocked send adapter, and older private completion proof does not establish the forbidden-requester outcome. Existing-state compatibility remains insufficient. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Verification

Check Result Evidence
Real behavior Needs proof Needs stronger real behavior proof before merge: Authority-chain proof required: The Codex assignment inventory and completion SDK carry stored requester facts into Gateway delivery. Published 9.4 proof reaches import but not post-import native completion or rollback; the reassignment test invokes final-dispatch checks through a mocked send adapter, and older private completion proof does not establish the forbidden-requester outcome. Existing-state compatibility remains insufficient. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 12 items Current main still owns Tasks: The current main task registry still exports task creation, cancellation, delivery, and queries; the proposed retirement is not implemented there.
Latest release retains the runtime: Both the task registry and Task-specific SDK subpath remain in v2026.9.6.
Public SDK cutover: The introduced patch replaces the exported Task-specific SDK subpath with a completion-only subpath. The author, identified as a repository admin in the discussion, explicitly accepted immediate removal and documented migration paths in comment 5852044118; that accepted compatibility tradeoff is not a new blocker.
Findings None None.
Security Needs attention Prove requester revocation before final send: The new completion SDK rechecks current requester custody, but the cited reassignment test substitutes a mocked send adapter; a recovered foreign or replaced requester still needs a final-I/O rejection witness.

How this fits together

The Gateway uses Tasks to track asynchronous work and expose it to plugins, the CLI, and chat clients. This branch moves retained history and completion to Cron and session/native owners, with Doctor importing eligible old Codex assignments.

flowchart LR
  Legacy[Existing Tasks data] --> Doctor[Doctor assignment import]
  Doctor --> Native[Native Codex recovery]
  Native --> Guard[Current requester check]
  Guard --> Delivery[Gateway completion delivery]
  Delivery --> Reply[Chat or channel reply]
  Cron[Cron jobs] --> History[Cron run history]
Loading

Before merge

  • Add real behavior proof - Needs stronger real behavior proof before merge: Authority-chain proof required: The Codex assignment inventory and completion SDK carry stored requester facts into Gateway delivery. Published 9.4 proof reaches import but not post-import native completion or rollback; the reassignment test invokes final-dispatch checks through a mocked send adapter, and older private completion proof does not establish the forbidden-requester outcome. Existing-state compatibility remains insufficient. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Resolve security concern: Prove requester revocation before final send - The new completion SDK rechecks current requester custody, but the cited reassignment test substitutes a mocked send adapter; a recovered foreign or replaced requester still needs a final-I/O rejection witness.
  • Resolve merge risk (P1) - The published 9.4 upgrade witness proves assignment import but did not reach native completion or final rollback, leaving the existing-state recovery outcome unverified.
  • Resolve merge risk (P1) - A reassigned or foreign requester has not been rejected through a real final transport send path after recovered completion; the current boundary test uses a mocked send adapter.
  • Resolve merge risk (P1) - The reviewed head is currently not cleanly mergeable with main, so its final integrated behavior has not been reviewed.
  • Complete next step (P2) - Resolve the current main conflicts and supply a published 9.4 native completion/rollback witness plus allowed and reassigned requester outcomes through final transport I/O before merge.
  • Resolve review confidence - ClawSweeper must reach high confidence before merge readiness is known.
  • Review config compatibility - Confirm compatibility and upgrade impact for the changed config or default surface before merge.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.

Findings

  • [medium] Prove requester revocation before final send — src/plugin-sdk/agent-harness-completion.ts:173
Agent review details

Security

Needs attention: Recovered native completion carries requester authority into channel delivery, and rejection after reassignment remains unobserved through a real transport client.

PR surface

PR surface statistics unavailable: the file list is incomplete.

Review metrics

Metric Value Why it matters
Public SDK cutover 1 Task-specific subpath retired; 1 completion subpath added Plugin authors need the documented migration path for an intentionally breaking API change.
Stored recovery shape 2 binding fields added; 0 SQL schema version bumps Doctor writes existing plugin state, making old-state recovery proof relevant despite the unchanged SQL layout.

Stored data model

Persistent data-model change detected: unknown-truncated-pull-files. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Prove the final cutover (recommended)
    Resolve the main conflicts, then capture published 9.4 native completion and rollback plus allowed and reassigned requester results through a real final transport client.

Technical review

Best possible solution:

Finish the single-owner cutover with a conflict-resolved candidate, a published-state native recovery and rollback witness, and allowed and reassigned requester outcomes observed at final transport I/O.

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

Not applicable: this is a planned retirement rather than a current-main bug report. Focused tests and package replays cover portions of the cutover.

Is this the best way to solve the issue?

Unclear pending final proof: consolidating ownership under Cron, sessions, and native execution fits the repository's design, but the old-state completion and authority outcomes are not yet established end to end.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 42e53a49df3a.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a substantial planned runtime retirement with bounded but important upgrade and delivery review work.
  • merge-risk: 🚨 compatibility: The maintainer accepted immediate retirement of Task-specific SDK APIs, while old native assignment upgrade behavior still needs complete proof.
  • merge-risk: 🚨 message-delivery: A native completion recovered from published state has not been observed reaching its intended requester after import.
  • merge-risk: 🚨 security-boundary: Recovered requester custody crosses a final channel-send boundary without real transport evidence for reassignment rejection.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: Authority-chain proof required: The Codex assignment inventory and completion SDK carry stored requester facts into Gateway delivery. Published 9.4 proof reaches import but not post-import native completion or rollback; the reassignment test invokes final-dispatch checks through a mocked send adapter, and older private completion proof does not establish the forbidden-requester outcome. Existing-state compatibility remains insufficient. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

Security concerns:

  • [medium] Prove requester revocation before final send — src/plugin-sdk/agent-harness-completion.ts:173
    The new completion SDK rechecks current requester custody, but the cited reassignment test substitutes a mocked send adapter; a recovered foreign or replaced requester still needs a final-I/O rejection witness.
    Confidence: 0.78

What I checked:

Likely related people:

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

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Complete the published 9.4 native recovery and rollback witness on a conflict-resolved candidate.
  • Exercise the completion SDK through real final transport I/O for an allowed requester and the nearest reassigned or foreign requester.

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 (5 earlier review cycles)
  • reviewed 2026-09-27T00:11:16.234Z sha b538fdb :: blocked before merge. :: [P1] Preserve the shipped Plugin SDK transition
  • reviewed 2026-09-27T02:49:41.003Z sha 894af9f :: blocked before merge. :: none
  • reviewed 2026-09-27T15:35:16.736Z sha 5c73084 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-27T16:26:44.064Z sha 02128a9 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-27T17:02:58.628Z sha 69333bf :: needs real behavior proof before merge. :: none

@steipete

Copy link
Copy Markdown
Contributor Author

Inspected synthetic before/after screenshots

The browser after captures use the final runtime source, including newer main’s header and sidebar alignment. Browser before captures retain their original source identities. The native captures are reused after a source audit confirmed their rendering inputs remain identical. The Swift captures cover short completed messages and the Actions menu; they do not certify overflow, streaming, search, or scroll-follow behavior.

Surface Before After
Android context Android context before Android context after
Wear Agent Pulse Wear Agent Pulse before Wear Agent Pulse after
iOS chat iOS chat before iOS chat after
iOS actions iOS actions before iOS actions after
macOS Chat macOS Chat before macOS Chat after

Capture source trees:Chat/Workboard after 2934426c42144b40eb4a43c6fa985244a65008f4 (original browser before ea73bab822429acf7f00440e04fa18b569562705); Android 11eae6f10b92851cd660bef01a2efbb8ec6b2f82; Swift/Wear a487d0cfa02516e9f81a89b397beba7ef8abdd26; Cron after 2934426c42144b40eb4a43c6fa985244a65008f4 (original Cron before commit e79bb74df9d232715369604b44a1b2a7cad676b7). These identify the captures, not fresh execution on the final PR head.

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: android App: android app: ios App: ios app: macos App: macos app: wearos App: wearos app: web-ui App: web-ui channel: matrix Channel integration: matrix channel: slack Channel integration: slack cli CLI command changes commands Command implementations docker Docker and sandbox tooling docs Improvements or additions to documentation extensions: admin-http-rpc extensions: codex extensions: copilot extensions: lobster Extension: lobster extensions: openai extensions: qa-lab extensions: xai gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. plugin: facetime FaceTime plugin plugin: file-transfer plugin: workboard rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts security-sensitive-changed size: accepted-large Maintainer-accepted large change; exempts ClawSweeper size closure, not review or CI. size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant