Skip to content

Delete the tasks primitive (CL-6620) - #305

Merged
TheGreatAxios merged 3 commits into
mainfrom
cl-drop-tasks
Aug 22, 2026
Merged

Delete the tasks primitive (CL-6620)#305
TheGreatAxios merged 3 commits into
mainfrom
cl-drop-tasks

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

Summary

  • Deletes packages/tasks, packages/tasks-ui, packages/task-planner, packages/task-dispatch-tools (~18.8k lines removed, 137 files) per CL-6620: workflows and routines replaced tasks as the platform's automation primitive, and a browser sweep confirmed tasks were already unreachable in the UI.
  • Sidebar: removes the "Working" strip (WorkbenchList) and its bench-activity.ts tasks query; Mission Control drops task in-flight rows and lists routines only.
  • Agent-definition drafting (CL-6074) and inventory assembly move from task-planner into @corbits/agent-directory — the package they belonged to by domain. Myra-definition-id resolution and the stale planner-created-name filter move with them.
  • Deletes the recurring-task workflow and the routine-launcher bridge that dispatched a fired routine through tasks' launchTask; every remaining catalog entry now delivers to a workbench.
  • workflow-catalog, notify, folded-runs, chat, agent-events lose their tasks-shaped seams (deliveryMode: "inbox", TaskResultNotification, task-side orchestrator doc comments).
  • scripts/db-setup.ts stops applying tasks migrations and stops reading task/task_leg for the folded-run backfill seed.

Data note

The tasks.task and tasks.task_leg Postgres tables and their migration ledger are left in place, untouched, in any database that already has them — this PR only removes the code that read and wrote them, per the owner's removal ruling.

Verification

  • WORKBENCH_CHECK_SINCE=origin/main bun run typecheck — clean
  • bun run lint — clean (0 errors; pre-existing unrelated warnings only)
  • check:deletion, check:killdates, check:licenses, check:tool-package-pins, check:tool-package-freshness — all pass (task-dispatch-tools is unpinned from workflows/assistant)
  • Targeted bun test runs green across every touched package (agent-directory, cli, hub-client, onboarding, routines, run-scope, apps/web shell/mission-control/insights, the DB-gated folded-run-backfill e2e test against a real Postgres)
  • Found and fixed two real breaks left by an earlier interrupted pass: apps/hub/src/index.ts still importing from the deleted @corbits/task-planner, and scripts/e2e/folded-run-backfill.test.ts calling now-unimported applyTasksMigrations/listTaskFoldedRunIds

Test plan

  • CI green
  • Confirm sidebar and Mission Control render with no dead "Working" section
  • Confirm tasks.task/tasks.task_leg tables still exist untouched on a database that has them

Update every surviving suite that exercised @corbits/tasks, tasks-ui,
task-planner, or task-dispatch-tools behavior to reflect their removal
(fewer seeded catalog entries, no more Working-strip rows, no more
task/task_leg backfill seeding), and add tests for agent-definition
drafting and inventory assembly now that they live in
@corbits/agent-directory.
PRODUCT.md, GLOSSARY.md, and every package README that described
@corbits/tasks, tasks-ui, task-planner, or task-dispatch-tools now
describe the current shape: workflows/routines replaced the tasks
primitive, and the "Working" sidebar strip is gone along with it.
revendor-inventory.md marks the tasks-scoped findings RETIRED rather
than deleting their history.
…ask-dispatch-tools (CL-6620)

Workflows and routines replaced tasks as the platform's automation
primitive; a browser sweep confirmed tasks were already unreachable in
the UI, and 35 importers across the repo only reached them for a
sidebar strip, one-shot Myra drafting, and a routine-to-task bridge —
none of which need a second primitive.

- Sidebar: drop the "Working" strip and its bench-activity tasks query
  (apps/web/src/shell/workbench-list.tsx, bench-activity.ts).
- Mission Control: drop the task in-flight rows; routines only.
- Agent-definition drafting (CL-6074) and inventory assembly move from
  task-planner into @corbits/agent-directory, the package they
  belonged to by domain, not by accident of history. Myra-definition
  resolution and the stale planner-created-name filter move with them.
- The recurring-task workflow and its routine-launcher bridge
  (dispatching a fired routine through tasks' launchTask) are deleted;
  every catalog entry now delivers to a workbench.
- workflow-catalog, notify, folded-runs, chat, agent-events lose their
  tasks-shaped seams (deliveryMode "inbox", TaskResultNotification,
  the tasks-side of the process-wide orchestrator doc comments).
- scripts/db-setup.ts stops applying tasks migrations and stops
  reading task/task_leg for the folded-run backfill seed. The
  `tasks.task`/`tasks.task_leg` tables and their migration ledger are
  left untouched in any database that already has them — only the
  code that read and wrote them is gone.
- check:tool-package-pins/freshness pass: task-dispatch-tools is
  unpinned from every agent definition (workflows/assistant).
@TheGreatAxios
TheGreatAxios merged commit a389a6d into main Aug 22, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant