Repository navigation
refactor: explore removing Tasks and TaskFlow - #156532
roboclaw-bot wants to merge 5 commits into
Conversation
Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: a5dd854a-868a-4418-bbc0-ce88118fc49a
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review blockedAutomated review did not run, so no review verdict was produced. Reason: The input-safety check rejected material in this revision. No detected value, path, or scanner output is reproduced here. ClawSweeper will not retry this unchanged revision. Next step: If this is a genuine credential, remove and rotate it. If it is an intentional test fixture, a maintainer must review and qualify it. |
Before and after: Tasks removal baselineActual Control UI and native Workboard fixture, with identical synthetic content, fixed timestamp, Claw/light theme, and 1600×1000 viewport. These are local candidate captures—not a live Gateway deployment or native mobile-app proof. ChatBefore After Workboard detailsSession and Run remain; separate Gateway task identity, status, and progress are removed. Before After After-capture request audit: zero |
No-schema revision: supersedes the storage-retirement planPeter requested an unchanged database schema and accepted loss of retired Task/Flow feature data in the work discussion. This supersedes the earlier schema-19/table-drop plan.
The currently published head still contains the old v19 implementation while this revision is prepared; prior updater evidence applies to that old head, not the forthcoming no-schema candidate. |
Cron transcript: retained-owner integrationActual Control UI with identical synthetic content and a mock Gateway, light theme, 1280×960. Before is the published removal baseline; after is the local table-retirement candidate being prepared for this same draft. This is UI-boundary proof, not a deployment or live-provider claim. The retained cron transcript now keeps icon sizing on icons rather than narrowing message text. Main’s forwarded-message attribution, accessible role labels, and close-focus restoration are preserved. Paging and overflow checks passed. Before After |
Integrate main and retire shared Tasks storage at schema 19, preserving Cron history and bound native subagent outcomes. Keep native execution, admission, recovery, and cancellation with their owners. Worked on by: - @steipete Co-authored-by: steipete <[email protected]>
Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 88bea43f-73dc-4d0b-a320-6ea58b4bb5c6
|
ClawSweeper closed this pull request because it changes 190,244 lines (17,868 added, 172,376 removed) across 1,542 files, above this repository's 50,000-line limit for review. Changes this large cannot be reviewed safely or scanned within limits and usually indicate a stale branch merged against an old base. Please open a fresh pull request from current |
Keep the published-updater no-op assertion strict while accepting the explicit nonmutating advisory for isolated state/config paths. Preserve status, reason, repair, survival, and Gateway-probe checks. The regression failed on the original assertion; 101 harness tests now pass. No product runtime code changed. Co-authored-by: steipete <[email protected]>
Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: b0a4652f-c5a0-4c8c-b9dd-be9eeb4b5db6
|
This retirement is being landed in smaller independently working batches:
The next batch moves automation transcripts to Cron-owned RPCs. The final native execution, completion/recovery, and Cron writer/pruner cutover stays together so each intermediate revision has one working owner. No removal-specific database schema change is introduced. This PR remains the reference for the remaining retirement until the replacement series is verified on main. |
Remove Tasks and TaskFlow runtime, APIs, CLI, SDK surfaces and panels after the Cron, session, native execution and media completion ownership cutovers. Preserve stored rows and import provable legacy native assignments through Doctor; ambiguous ownership stays untouched with a warning. Follows #158221, #158217, #158225, #158222, #158702 and #158776. Related: #156532. Task-specific public APIs retire immediately; retained responsibilities use their existing owners. Maintainer-authorized administrative landing after full CI run 36312986498 attempt 2 passed on 274595e, with subsequent actual conflicts reviewed and focused checks passing. Current PR CI preflight hits the 64 KiB changed-path metadata limit before tests (run 36335042695); its duplicate security-review status mirrors that planning failure. Review and scoped proof are recorded in the PR. Published 9.4 native import is proven; remaining native completion and 9.4 rollback witnesses are explicitly unproven.
|
The TaskFlow removal has landed on main through the six prerequisite batches and #159179, merged as The final change removes the Tasks/TaskFlow runtime and public surfaces while preserving existing data and the retained Cron, session, native-execution and media-completion owners. The replacement PR records the reviewed changes, CI, migration evidence and remaining proof limits. Closing this original cut as superseded. |
Remove Tasks and TaskFlow runtime, APIs, CLI, SDK surfaces and panels after the Cron, session, native execution and media completion ownership cutovers. Preserve stored rows and import provable legacy native assignments through Doctor; ambiguous ownership stays untouched with a warning. Follows openclaw#158221, openclaw#158217, openclaw#158225, openclaw#158222, openclaw#158702 and openclaw#158776. Related: openclaw#156532. Task-specific public APIs retire immediately; retained responsibilities use their existing owners. Maintainer-authorized administrative landing after full CI run 36312986498 attempt 2 passed on 274595e, with subsequent actual conflicts reviewed and focused checks passing. Current PR CI preflight hits the 64 KiB changed-path metadata limit before tests (run 36335042695); its duplicate security-review status mirrors that planning failure. Review and scoped proof are recorded in the PR. Published 9.4 native import is proven; remaining native completion and 9.4 rollback witnesses are explicitly unproven.






What Problem This Solves
Explore removing the generalized Tasks/TaskFlow layer instead of maintaining a second execution and lifecycle ledger alongside Cron, subagents, ACP, media generation, and sessions.
User Impact
Large-change review: @steipete approved the documented review-size exception;
size: accepted-largeis applied and the original draft is reopened. This does not waive the merge blockers below.Exploratory draft—not ready to merge. Removes the Tasks page/rail, CLI, RPC/events, TaskFlow APIs, and TaskFlow-only Webhooks plugin. Cron execution/history, session controls, native subagent delivery/cancellation, media operations, and Workboard session-based planning remain. Removed integrations intentionally break; there is no automatic workflow conversion.
Following the approved storage-retirement decision, shared schema 19 drops
task_delivery_state,task_runs, andflow_runsafter preserving retained Cron history and provably bound released native subagent outcomes. Only Task/flow lifecycle bindings are removed; independent audit facts, Cron bindings, native sessions/results/receipts, recovery archives, and unrelated data remain. History does not become execution authority. Unknown dependencies refuse migration rather than risk unrelated data.Upgrade/rollback: main’s shared schema 18 and agent schema 23 are preserved. Existing old-updater content/publication deferral remains intact. A downgrade after retirement requires a verified pre-migration backup, not lowered schema markers. No live database has been migrated.
Known merge blocker: initial native Codex children that have not reached requester completion admission still lack a durable replacement for the removed cold/cross-parent recovery path. Gateway restart or native-parent replacement can lose that completion obligation. Preserved accepted follow-up receipts and admitted completion recovery do not close this gap; this draft does not claim restart-equivalent behavior.
Why This Change Was Made
Surviving responsibilities stay with their native owners. Cron owns a small history table with its existing identities, details, partitions, and retention; native subagents retain completion/cancellation custody. A fenced atomic migration extracts supported historical outcomes before retiring the generalized tables. Obsolete persistence, repairs, runtime projections, and Tasks-only tests are removed instead of renamed.
Validation also repaired native wait ordering: published facts no longer discard pending read/cleanup custody, and cancellation joins that work before returning. Native admission again preserves persistence-failure context and refuses untracked dispatch. No new lifecycle ledger was introduced.
Published head:
22c5772d632d57a17c5068295a5fcc5b5ea02ae6(the publisher’s metadata commit has the exact reviewed source tree). The candidate integrates pinned main264c3355f0d5db50c223f286df21c8f9e437049d; GitHub still reports conflicts with newer main, which must be resolved before merge. It also repairs retained Cron transcript sizing and keeps main’s attribution, accessible roles, and close-focus behavior. Page-owned styles no longer get absorbed into measured JavaScript boot groups; no styles, size budgets, or baselines were relaxed.Evidence
--maxWorkers=1. Integration builds passed; final package/old-updater proof is separate.Published 9.2 acceptance passed: Package Acceptance attempt 1 completed successfully in 36m51s, with workflow, tooling, frozen admission, and package source all bound to
22c5772d632d57a17c5068295a5fcc5b5ea02ae6. The actual installed2026.9.2updater upgraded to candidate2026.9.5/schema 19. The singlelegacy-operator-statelane passed, including the corrected already-current no-op, clean Doctor, formerly-bundled-plugin Doctor, and subsequent completion checks. Nine jobs passed; 15 unselected jobs were skipped and are not coverage.The inspected published proof artifact records
passed/published-updater-import-preserved: two retained history rows, the import receipt, and unrelated state were preserved; retired Task/Flow tables and indexes were absent; content schema 19 coexisted with published markers 15 while the old updater remained active. The qualifying Doctor already saw migrated content on entry, so this is preservation proof—not a claim that this particular Doctor first migrated it. No-op/Doctor outcomes are backed by executed source assertions, phase receipts, and successful log markers; their raw standalone reports are not separately published. Backup rollback is not applicable to the 9.2 lane.The harness-only no-op correction fixed the first run’s advisory misclassification without changing runtime code. Its regression failed on the original assertion; 101 tests / 2 files passed in 10.85s, with type/lint/Docker-boundary checks and scoped P0 review.
Proof limitations: the Doctor/Gateway process fixture reached ready, but the parent’s loopback probe received a non-JSON HTTP 502 through this host’s proxy path. Its assertions and timeout remain unchanged; this is not counted as passing startup proof. No live-provider, native-device, or full-repository-suite claim is made. The installed-package private-completion scenario remains unrun locally.
Final local verification: production and all affected test/extension/script/root type lanes passed across scoped runs. Typed lint, full UI stylelint, line-cap and assertion-safety guards passed; baseline changes only remove or reduce retired debt. The source and isolated validation checkout match across 48,600 files. Independent review completed 24/24 passes with zero accepted P0 findings (
scoped-clean, exit 0); the final two test diagnostic arguments were then type/lint checked. This is P0-scoped review, not merge or deployment approval.Worked on by
Work sessions
View the OpenClaw team session