Repository navigation
feat(todos): Replace the Plan with To-dos - #3824
Conversation
Rename Plan and Plan item to To-do in one cutover. The updateTodos tool replaces updatePlan, the <todos> and <todo-delta> blocks replace <plan> and <plan-delta>, and the dashboard card and API read To-dos. Statuses are now open, done, and dropped. The migration maps pending, in_progress, and blocked to open and cancelled to dropped, and drops the one-in-progress-per-assignee index. Co-Authored-By: BYK <[email protected]>
Co-Authored-By: BYK <[email protected]> # Conflicts: # packages/junior/migrations/meta/0131_snapshot.json # packages/junior/migrations/meta/_journal.json
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
BYK
left a comment
There was a problem hiding this comment.
Do we have evidence that the agent actually struggled with the other states? I feel like having at least "in_progress" would be useful to see work that is yet to be started
# Conflicts: # packages/junior/migrations/meta/0133_snapshot.json # packages/junior/migrations/meta/_journal.json # packages/junior/src/api/conversations/plan.ts
A To-do can be open, in_progress, done, or dropped. The migration keeps in_progress rows as they are and still has no one-in-progress-per-assignee rule. The dashboard menu adds Start and Stop. Co-Authored-By: BYK <[email protected]>
|
@BYK I found no evidence that the agent struggled with the other statuses. It used Per your call, |
# Conflicts: # packages/junior/migrations/meta/0134_snapshot.json # packages/junior/migrations/meta/_journal.json
This comment has been minimized.
This comment has been minimized.
# Conflicts: # packages/junior/migrations/meta/0135_snapshot.json # packages/junior/migrations/meta/_journal.json
# Conflicts: # packages/junior/migrations/meta/0136_snapshot.json # packages/junior/migrations/meta/_journal.json
Co-Authored-By: BYK <[email protected]> # Conflicts: # TERMINOLOGY.md # packages/junior-dashboard/src/mock-reporting/routes.ts # packages/junior/migrations/meta/0137_snapshot.json # packages/junior/migrations/meta/_journal.json
Co-Authored-By: BYK <[email protected]> # Conflicts: # design/review-desk.md # packages/junior-dashboard/src/app.ts # packages/junior-dashboard/src/client/conversations/ConversationDetails.tsx # packages/junior-dashboard/src/client/conversations/ConversationDetailsPanel.tsx # packages/junior-dashboard/src/client/conversations/ConversationTodos.tsx # packages/junior-dashboard/src/mock-reporting/routes.ts # packages/junior/migrations/meta/0138_snapshot.json # packages/junior/migrations/meta/_journal.json # packages/junior/src/api/conversations/routes.ts # packages/junior/src/chat/agent/prompt.ts # packages/junior/src/chat/plan/prompt.ts # packages/junior/src/chat/plan/store.ts # packages/junior/src/chat/plan/tool-output.ts # packages/junior/src/chat/plan/types.ts # packages/junior/src/chat/prompt.ts # packages/junior/src/chat/system-prompt-rules.ts # packages/junior/src/chat/tools/runtime/update-todos.ts # packages/junior/tests/component/services/context-compaction-active-turn.test.ts # packages/junior/tests/integration/model-message-history.test.ts # packages/junior/tests/integration/update-todos.test.ts
Co-Authored-By: BYK <[email protected]>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 83a6631. Configure here.
|
35 screenshot changes — 35 changed · 0 added · 0 removed Review screenshots in Frameshift Show 12 more changed screenshots17 more changed screenshots in Frameshift. |
Co-Authored-By: BYK <[email protected]> # Conflicts: # packages/junior/tests/integration/model-message-history.test.ts
`searchMcpTools` connects a provider on demand, and `intent` is the
reason the authorization notice shows the person ("*Why:* …"). The field
was optional, with only a hint in its description, so the model
sometimes left it out and the notice had no reason.
- The input schema now rejects `provider` without `intent` through a
schema-level `refine`. The model gets "Pass intent with provider." as a
repairable input error, and no provider connects until it retries with
an intent.
- The `intent` description now says "Required with provider." A call
without `provider` is unchanged.
This unblocks #3824, whose prompt change makes the MCP
authorization eval run live and hit the missing intent.
<!-- junior-request-attribution:start -->
via @BYK.
<!-- junior-request-attribution:end -->
<!-- junior-session-footer:start -->
<!-- junior-conversation-id:agent%3Ab532e61f522b672af8b9e6e0d710a06f -->
--
[View
Session](https://junior-prod.sentry.dev/conversations/agent%3Ab532e61f522b672af8b9e6e0d710a06f)
[[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3Ab532e61f522b672af8b9e6e0d710a06f/?project=4510944073809921)
<!-- junior-session-footer:end -->
Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: BYK <[email protected]>
# Conflicts: # packages/junior/migrations/meta/0139_snapshot.json # packages/junior/migrations/meta/_journal.json
This comment has been minimized.
This comment has been minimized.
Co-Authored-By: BYK <[email protected]> # Conflicts: # packages/junior/migrations/meta/0141_snapshot.json # packages/junior/migrations/meta/_journal.json
# Conflicts: # packages/junior/src/chat/plan/store.ts
# Conflicts: # packages/junior/src/api/conversations/routes.ts

Junior's Plan is used as a to-do list, but it has five statuses and a one-in-progress-per-assignee rule.
pendingandblockedboth mean the work is still open, and the rule makes the agent shuffle statuses before it can start a second item. This PR makes it a To-do list with four statuses and renames Plan and Plan item to To-do everywhere, in one hard cutover.open,in_progress,done,dropped. Migration0143_todosrenames the table, sequence, and constraints (data stays), keepsin_progress, mapspending/blockedtoopenandcancelledtodropped, and drops the one-in-progress-per-assignee unique index.updateTodosreplacesupdatePlan, with the same add, update, remove, delta, andreplaced_person_changes. The model sees and passes To-do ids asTODO-<n>(from fix(plan): Show Plan item ids to the model as TODO-<n> #3852); storage, the REST API, and the dashboard keep numeric ids.<todos>and<todo-delta>replace<plan>and<plan-delta>. The rules section is<todo-policy>. It asks the agent to setin_progresswhen work starts anddoneordroppedin the Turn that the work ends, and to keepTODO-<n>ids out of replies.updateTodosresult, no<todos>, no<todo-delta>), the next Turn context gets a<todos>block with every open To-do: "These To-dos are still open. Close each one whose work ended." The Turn-context field istodos; a<todo-delta>wins over a review./api/conversations/:id/todosreplaces/plan. The card is "To-dos", with Start / Mark done / Stop / Drop / Reopen.What breaks: code from before this PR cannot read the renamed table, so roll forward instead of rolling back the deploy. The
/planroutes are gone; only the dashboard used them.Status menu on an in-progress To-do:
via @BYK.
--
View Session [Sentry]