Repository navigation
feat(server): workflow rules and task tools for project chats (ADR-0024) - #40
Merged
Merged
Conversation
Workflow rules (Agent-Workspace ADR-0024): a coding session started for a board card (cardKey task:<id>) moves its task as its work moves - a passing verify to review, a ship to done with the commit in a comment, a discard back to ready. Each move is ws task status plus a comment, so the task's activity tells the story; a refused move never undoes the push or the discard it follows, and ship reports it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A chat bound to a project gets list_tasks, today, add_task, update_task, and client_profile: the same ws commands the desk and ws mcp use, for the project and its client's own work only. Changes are the task_change action under the project's operator policy (ADR-0014/0020), gated like run_command; an update carries the revision through its steps. Restricted client records never appear in an answer. The system prompt tells the model to record what it changes on the task. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
These are the last two desk steps of Agent-Workspace ADR-0024.
Workflow rules. A coding session started for a board card ("Assign to agent",
cardKey: task:<id>) now moves that task as the work moves:Each move is
ws task statusplus a comment, so the task's activity records what happened. If a move is refused, the push or discard it follows is not undone. Ship reports the task's new status, or a warning. The rules live inserver/workflow.ts; verify, ship, and discard each call it.Task tools in a project chat.
list_tasks,today,add_task,update_task, andclient_profile.wscommands the desk andws mcpuse, limited to the project and its client's own work.task_changeaction under the project's operator policy, gated likerun_command. With no policy, a change is refused. An update passes the task's revision from one step to the next.Test plan
pnpm test: 264 passing.server/workflow.test.ts: the task link, each move with its comment, and a refused move that does not fail.server/hand-back.test.ts: a linked task moves to review on verify and to done on ship, using real git.server/tools/pm-tools.test.ts: the scope limit, no activity in the brief, refusal without a policy, a change allowed by policy, and the revision carried across update steps.pnpm lint,pnpm exec tsc -bPW_CHANNEL=chrome pnpm test:ui: 37 passingGenerated with Claude Code