GeezerVison is showing github.com — feat(delivery): agents can manage boards and tasks, and restart the engine with the saved key by polymaniadeveloper-hub · Pull Request #236 · Tevin2119/t3code
Conversation
Agents could read boards and file drafts, but couldn't close, move, edit, remove or clean up in bulk. Engine controls also asked for the passphrase even when one was saved in Settings.
What changed
Tools (orchestrator toolkit; each action maps to one engine route, through BoardAgentTools and DeliveryService):
delivery_board: list (with repository ids), create, edit, remove.
delivery_task: get, edit, move (to a lane and/or board; a board in another repository needs base), submit, close (reason required), discard (drafts only).
delivery_tasks: list, filtered by board, lane, state, query, origin and updatedBefore, with a limit; plus bulk close and move.
delivery_engine_lifecycle: stop / restart.
One access rule. apps/server/src/delivery/deliveryAgentAccess.ts decides every board, task and engine action, for both the delivery.engineControl RPC and the MCP tools.
- Reading needs
orchestration:read, and changes need orchestration:operate.
- Engine controls use the saved key, so they need
environment:maintain, the same scope that saves it.
- Read-only clients, and links paired below full access, can only read.
- Outside clients and full-access links never hold maintain.
- A thread in this environment, outside any link, holds maintain only while it runs in full access.
Dry runs.
- Board
remove, task discard and bulk close and move start as a dry run that returns a dryRunToken and a next line. They act only with confirm: true and that token.
- Closing one task is a single call.
- Tokens are held on the server for 15 minutes and used once. Each is bound to the call (action, reason, lane, board, force), the normalised filter, the exact ids, and each task's state, lane, board, live run and protection.
- An omitted board encodes as
null in that binding, distinct from any board id.
- On confirm, a filter that now matches a different list is refused.
- Each task is re-read just before its write; one whose eligibility changed is
skipped with "changed since the dry run".
- Lane moves send
seen.
- A missing id is a per-item
not-found.
- A board with more tasks than one engine read shows (500) is refused before its remove's dry run, so no partial list is previewed.
Filters and pagination.
- Every predicate is checked in T3; the engine's
origin search ignores the other filters.
query matches number, id, title and team.
more is true only for matches within the engine's newest-500 window, and truncated says older tasks can't be reached.
Protection. A board or task is protected if it's deployment-linked or bound to an illusivetrading repository. Edit, remove, close, discard and re-board need force there, as they do for a live run. Every change records by as T3 thread <id>, T3 thread <id> (linked) or T3 client <label>.
No engine words for keyed calls.
DeliveryService.act answers a refused request that carried a key with fixed text by status, and drops the engine's answer.
engineControl returns only { ok, action, state, id, commit, channel }. id, commit and channel pass only in their fixed formats: a UUID, 40 hex characters, a known channel. Nothing else of a 2xx answer reaches a client or agent.
Engine panel. Update, defer, release channel, stop and restart use the saved key when one is saved and this connection may use it. They ask for the passphrase only when none is saved.
Docs. "What agents can do with boards" in docs/user/updating.md.
Agent context
mcpToolListJsonBytes is 67,202 (master 64,370, so +2,832). The evals/ evals call paid model APIs, so they were not run (subscriptions only).
Not in this PR
- Cross-machine send and bring. These belong on top of linked boards (feat(delivery): linked boards over peer links, with visibility and task moves #206, in QA), as a follow-up PR. No
/api/shared tool is exposed.
- Engine follow-ups (Operation-PaperClip; not filed, because this task forbade calling the live engine's mutating routes):
- no reopen (a closed task stays closed until the engine adds one);
- no board restore;
- no bulk routes;
- no cursor or
updated filter on GET /api/tasks;
- no expected-state field on close.
- Other keyed paths. The server-only keyed paths in
BoardThreadTasks and SeatHandoffs keep their existing refusal mapping. The board notice's dismiss still takes a typed key.
Tests
BoardAgentTools.test.ts (9 tests) runs the real DeliveryService against an in-memory engine (boardAgentEngine.testkit.ts, OPC f0479dd8). It covers:
- protection;
- remove: dry run and confirm, plus refusal of a board past 500 tasks;
- local filters, and the window ending with
truncated;
- close in one call;
- discard: dry run and confirm;
- bulk: a not-found id; refusal of another filter, of a grown list, and of a
keep board after an omitted-board dry run; a task that went live is skipped; a token works once;
- bulk move sends
seen;
- engine controls: the saved key is used; with no key saved, the call is refused; 4xx refusals carry no engine words; a 2xx answer echoing the key reaches no result.
deliveryAgentAccess.test.ts: scopes for each kind of caller.
core.test.ts (production MCP registration):
- a read-only client is refused every change;
- full-access outside and linked clients are refused lifecycle;
- Delivery off hides the tools.
RpcAuthorization.test.ts: delivery.engineControl needs maintain.
BoardToolbar.test.tsx: with a key saved, Update and Stop use it with no passphrase typed.
DeliveryService.test.ts, ws.test.ts, ClaudeAdapterV2.test.ts, AgentContextBudget.test.ts and DeploymentsPage.test.tsx pass.
vp run check:changed passes.
Not checked:
- No real-client UI pass (needs a launcher-owned engine; no dev server was started).
- No real engine checkout.
- No mobile run.
Model and harness: Claude Opus 5.5 in Claude Code, via T3 Code.
🤖 Generated with Claude Code
QA round 2, final (Codex astra, laptop): FAIL at 524a868 → fixed at c231249, merged with master at 1797a1c
Four last findings, all fixed, and I read the diff myself:
engineControl reduces the engine's answer to a fixed summary, so no body is forwarded;
- an omitted board encodes as
null in the bulk token;
- single-task close is one call again;
- board remove refuses a preview when the board has more than 500 tasks.
The merge of master keeps #235's shared key-check semaphore. CI is green. agent-context-increase was added with the owner's approval (+2.9 KB). Merging.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…ngine with the saved key
Agents could only read boards and file drafts. They now have MCP tools for everything a
person does with boards and tasks: list, create, edit and remove boards; list, read, edit,
submit, move, close and discard tasks; and dry-run-first bulk close and move. Each tool is a
thin handler over one BoardAgentTools service method that maps to one engine route through
DeliveryService, so linked environments reach them through the usual forwarding.
Engine stop and restart now use the approval key saved in Settings, through one server path
(delivery.engineLifecycle RPC and the delivery_engine_lifecycle tool). The key never leaves
the server. The Engine panel only asks for the passphrase when none is saved.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ent context
The thirteen board and task tools added 9.6 KB to every agent's tool list. They are now
`delivery_board`, `delivery_task` and `delivery_tasks`, each with an `action`, plus
`delivery_engine_lifecycle`. Lanes are a plain string the engine checks, and the fields the
engine caps itself carry no length caps here. The tool list is 67,272 bytes, 2,902 over
master.
Also adds the saved-key lifecycle hook to the web test mocks of state/delivery.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ixed keyed refusals
QA round 1 on #236:
- One helper (deliveryAgentAccess) decides board, task and engine actions for the RPC and the
MCP tools. Engine controls need environment maintain: an outside client or a link, even one
paired with full access, is refused.
- Board remove and task close and discard go through a dry run and a confirm token, as bulk
does. Tokens are held on the server, used once, and bound to the call, the normalised
filter, the exact ids and each task's state, lane, board, run and protection. A confirm
re-reads each task just before its write, skips one that changed, and sends `seen` with
lane moves.
- Every filter predicate is checked here; a missing id is a per-item not-found.
- A board or task in an illusivetrading repository is protected, deployment project or not.
- The relay gives keyed refusals in fixed words and drops the engine's answer.
- Task lists report `truncated` at the engine's 500-task window and stop saying `more`.
- The Engine panel's update, defer, channel, stop and restart all use the saved key.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…all again
Final QA on #236:
- engineControl returns { ok, action, state, id, commit, channel } and nothing else. id, commit
and channel pass only in their fixed formats (UUID, 40 hex, a known channel), so a key the
engine echoes, even in a 2xx answer, reaches no client or agent.
- An omitted board in a bulk move encodes as null in the dry-run binding, so it can never
match a board named "keep".
- Closing one task is one call again. Board remove, discard and bulk keep the dry run.
- Removing a board with more tasks than one engine read shows (500) is refused before the
dry run: close or move some of its tasks first.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Keeps #235's keyChecked and the shared two-slot semaphore on every relayed keyed write, with
this branch's fixed-refusal wrapper outside it. The saved-key engine controls go through act,
so they take the same two slots; a new test shows four at once never pass two.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.
polymaniadeveloper-hub
pushed a commit
that referenced
this pull request
Nov 28, 2026
Brings in the agent board tools (#236). DeliveryService.act keeps both sides:
the owner-only check and the refusal of linked visibility writes around the
tools' key checks and engine-word scrubbing. The peer test keeps the tools'
mock without hiding the fence tests' delivery layer.
A test pins that a linked caller reaches none of the board tools or the
saved-key engine controls, while the owner still does.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|