Repository navigation
Closed
Description
Non-blocking findings from the independent review of #110 (PASS at a76230c). Collect them before #55/#57 build on the state machine.
- Hold linkage is per-Bot, not per-task (Low).
taskHeld/taskDecidedmatch byownerBotId, so one held send blocks all of that Bot's working tasks with the same approvalId — and rejecting one card cancels all of them. Fine single-human, wrong once Bots work several tasks. Fix shape: link holds to tasks explicitly (e.g. the send carries ataskIdin meta via the [Team] Persist a minimal collaboration task lifecycle #54 work-start wiring, or match on the round the task started). - Prune window can drop a
result-readytask (Info).ACTIVEexcludesresult-ready, so a task awaiting requester acceptance is evicted once terminal records exceed 200. Addresult-readyto the protected set (its whole point is waiting for the requester). - Authz prefix over-allow (Info).
ep.startsWith('task-')auto-ALLOWs any futuretask-*endpoint for any signed-in actor. Replace with an explicit set when the next task endpoint lands. - Clarification state +
workBotIdare neither implemented nor deferred (Info). The issue lists clarification (asks the requester) in scope; the specialist linkworkBotIdis declared but never assigned. Either land them with [Team] Recover task handoffs without duplicate work #55's exchange wiring (a clarifying question is a request exchange; the specialist is the reply's sender) or split a dedicated issue. - Restart test assertion was weak (void-ed final move) — strengthened in the follow-up commit to this issue's PR; noting here for the record.
Plan update (2026-10-16, team mode via groups): No separate team-mode subsystem is needed; groups with per-Bot grants cover it. The remainder of this issue (items 1 and 4) is split across the ordered plan on #51 rather than waiting on #55.
workBotId: effort S, in step 1 (Team mode via groups: task layer step 1 - responsible-owner authority, FLYBOT-TASK envelope, workBotId #149). Assign it ontask-start, or on the firstrole:'request'exchange fromownerBotIdto a specialist that carriesmeta.taskId(hooks.js run()/tasks.js, addrt.taskDelegated(msg));ofSender()already matches it. This also gives per-task hold linkage (item 1). Test: a specialist hold blocks only that task.- Clarification: effort M, in step 2. Add a
clarifyingstate (working -> clarifying -> working, plus cancel and fail) withtask.question = {text, askedAt}. A new task-bound Bot tooltask_ask(taskId, question)posts a card in the origin room or session; the requester's answer goes throughanswer-questionand resumes the task. Files:tasks.js,tools.js,authz.js(allow-list; use an explicit set, see item 3),client/cells.js. Includes the room task card.
Metadata
Metadata
Assignees
Labels
No labels
Activity
Birfy commentedon Oct 16, 2026
Partly fixed on main (
566f1e6) by #135. Items 1 (partly), 4 and part of 5 remain; I changed the title to match.Done:
result-readyis in the protected set and is never evicted. Test:a result-ready task is not pruned while it waits for acceptance.TASK_ENDPOINTSset replacesstartsWith('task-'), so an unknowntask-explodeis denied. Test:task endpoints are an explicit allow-list….meta.taskId, or the Bot's only working task. Rejecting one card no longer cancels the others. Tests:a held send blocks only the named working task…,an untagged hold does not block every working task….Remaining:
meta.taskIdyet.rg taskId core/src pluginsfinds only the reader intasks.js. So while a Bot has two or more working tasks, a held send blocks none of them. The [Team] Persist a minimal collaboration task lifecycle #54 work-start wiring still has to stamptaskIdon sends (natural home: [Team] Recover task handoffs without duplicate work #55).workBotIdare still unimplemented. Docs now say they wait on [Team] Recover task handoffs without duplicate work #55's exchange wiring. They still need to land there or be split into a dedicated issue.Keeping this open for those two.
[-]Task lifecycle follow-ups: per-task hold linkage, prune window, authz prefix, clarification + workBotId (#54 review)[/-][+]Task lifecycle: stamp meta.taskId on held sends; clarification state + workBotId (remainder of #111, needs #55)[/+]