The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.
TypeScript 3d-modelingagent-frameworkagent-harnessai-agentscadclaude-codecodexcoding-agentsdeveloper-toolsesp32game-developmentmcp-servermulti-agentopen-hardwareopencodeopenharnesspcbroboticsterminaltmux
fix: settle asks answered by the entrusted project agent (#3421)
harness-for-autonomous[bot]956331d37319
diff --git a/backend/src/superTabs/commands.ts b/backend/src/superTabs/commands.tsindex 10c0b8704..688585140 100644--- a/backend/src/superTabs/commands.ts+++ b/backend/src/superTabs/commands.ts@@ -1,7 +1,7 @@import { authorizeTaskApproval, pendingTaskApproval, personalApprovalCommand, rejectTaskApproval, reopenTaskApproval, REQUESTER_LEFT, requireTaskApproval, stageTaskApproval, undecidedProposal } from './taskApproval.js'import type { PullRequestFilesRead } from './pullRequestFiles.js'import { legacyProposalId, migrateLegacyProposals, type LegacyProposalAsk, pmAcceptsMessage, applyProposalAction, authorizeProposalAction, authorizePersonProposal, cardPriority, createPersonProposal, createProposalCard, proposalCreateSchema, proposalFields, proposalNotices, proposalRoot, type ProposalRecord } from './proposalCards.js'-import { pulseProjectOf, recordPulse, owe, settleDeleted, settleReaction, settleReply, settleRequest } from './pulse.js'+import { handoffAsk, pulseProjectOf, recordPulse, owe, settleDeleted, settleReaction, settleReply, settleRequest } from './pulse.js'import { linesOf } from './statusCard.js'import { applyPushOrigin, barredFromTeamWritten, failPushUnknown, failTeamWritten, mainAccountMembers, markTeamWritten, mayName, ownersOwnAgent, ownersOwnMachine, requireTeamWrittenAccount, requireTeamWrittenMachine, stepMark, TEAM_WRITTEN_REASON, TEAM_WRITTEN_STOP, teamWrittenTask } from './teamWritten.js'import { crewMoveFailed, takeOverCrewMember, wakeCrewMember } from './crewKeep.js'@@ -464,6 +464,8 @@ export const commandSchema = z.discriminatedUnion('type', [// The message this post answers right below it, in the main flow (anh Dee, 2026-11-04: "every message is a thread"). It// settles and routes as a reply to that message does, and opens no thread. Never with replyTo.answers: id.optional(),+ // The PM entrusts this owed project-chat ask to the one project agent explicitly addressed by this post in its task.+ handoff: id.optional(),// The answer to the message in `answers` (answers.ts, task #3403): placed in that message's thread when it is a reply in// one, else right below it, and refused when it was answered already. Only with `answers`.answer: z.literal(true).optional(),@@ -4586,8 +4588,13 @@ function applyCommandOnce(original: SuperTabState, actor: Actor, input: Command,// Apply the Board's PM boundary before reporting delivery or recording work that depends on who heard the post.const excludedPm = command.agentOnly ? [] : recipients.filter(id => !pmAcceptsMessage(state, id, undefined))recipients = recipients.filter(id => !excludedPm.includes(id))+ if (command.handoff) {+ if (command.agentOnly || group.audience || group.kind || isBuddyChat(group)) fail('ASK_HANDOFF_PUBLIC', 'Hand off an ask in a public post to its project agent.', 400)+ handoffAsk(state, group, poster?.id ?? null, command.handoff, addressed)+ }// The transcript still accepts a human message while the lead is unavailable. The UI can say why no delivery was created.- message(group.id, text, recipients, command.replyTo, command.agentOnly ? { ...AGENT_ONLY, ...command.notice ? { notice: command.notice } : {} } : undefined, attachments, tagged,+ const postText = command.handoff ? `${text}\n\nAnswer message ${command.handoff} in ${groupProject(state, group).leadConversationId} in its thread.` : text+ message(group.id, postText, recipients, command.replyTo, command.agentOnly ? { ...AGENT_ONLY, ...command.notice ? { notice: command.notice } : {} } : undefined, attachments, tagged,tagged.length ? command.mentionsIfNoWorker : undefined)if (!command.agentOnly) effects.messages.at(-1)!.post = trueif (command.answers) effects.messages.at(-1)!.answers = command.answersdiff --git a/backend/src/superTabs/delegatedAsks.test.ts b/backend/src/superTabs/delegatedAsks.test.tsnew file mode 100644index 000000000..b9b1e876d--- /dev/null+++ b/backend/src/superTabs/delegatedAsks.test.ts@@ -0,0 +1,187 @@+import { describe, expect, it } from 'vitest'+import { commandSchema, type Command } from './commands.js'+import { owedLines } from './inbox.js'+import type { Actor, Author } from './model.js'+import { touchesFor } from './parts/touches.js'+import { projectsOf } from './projects.js'+import { storedPulse } from './pulse.js'+import { owner, stepsFixture } from './steps.test-support.js'++function setup() {+ const f = stepsFixture()+ const guest = { kind: 'person' as const, userId: 'guest', email: '[email protected]' }+ const invite = f.run({ type: 'invite.create', email: guest.email, role: 'collaborator', conversationId: 'lead' })+ f.run({ type: 'invite.accept', inviteId: invite.result.inviteId as string }, guest)+ const project = () => projectsOf(f.state)[0]!+ const ask = (by: Actor = guest, replyTo: string | null = null) => f.run({ type: 'message.send', conversationId: 'lead',+ text: 'Where is the installer?', replyTo, recipientIds: [f.lead] }, by,+ replyTo ? { reply: { id: replyTo, conversationId: 'lead', author: { kind: 'person', id: 'guest' } as Author, createdAt: 0, thread: replyTo } } : {}).result.messageId as string+ const handoffCommand = (messageId: string, recipientIds = [f.dev]) => ({ type: 'message.send', conversationId: f.task,+ text: 'Please answer this support ask in its thread.', replyTo: null, recipientIds, handoff: messageId }) as Command+ const handoff = (id: string, to = f.dev) => f.run(handoffCommand(id, [to]), f.as(f.lead))+ const reply = (by: string, id: string, options: { thread?: string; answers?: true; agentOnly?: true } = {}) => f.run({ type: 'message.send',+ conversationId: 'lead', text: 'Get the installer from Downloads.', replyTo: options.answers ? null : id,+ recipientIds: options.agentOnly ? [by] : [], ...options.answers ? { answers: id } : {}, ...options.agentOnly ? { agentOnly: true } : {} },+ f.as(by), { reply: { id, conversationId: 'lead', author: { kind: 'person', id: 'guest' } as Author, createdAt: 0, thread: options.thread ?? id } })+ const owes = () => (f.group('lead').owed ?? []).map(a => a.id)+ const count = () => storedPulse(f.state, project())!.asks.count+ const lines = () => owedLines(f.state, project(), f.now).join('\n')+ const anotherGuide = () => {+ const task = f.step('More support'), guide = f.add('other-guide', task)+ f.run({ type: 'work.assign', conversationId: task, agentId: guide }, f.as(f.lead))+ return guide+ }+ return { f, guest, project, ask, handoffCommand, handoff, reply, owes, count, lines, anotherGuide }+}++describe('an ask entrusted to a project agent', () => {+ it('settles a restored handoff when its named project agent answers', () => {+ const { f, ask, reply, count, lines } = setup()+ const id = ask()+ Object.assign(f.group('lead').owed![0]!, { delegatedTo: f.dev })+ reply(f.dev, id)+ expect(count()).toBe(0)+ expect(lines()).not.toContain(`message ${id} `)+ })++ it('leaves the owed list and Board only when the named agent answers in its thread', () => {+ const { f, ask, handoff, reply, owes, count, lines } = setup()+ const first = ask()+ f.tick(60_000)+ const other = ask()+ const routed = handoff(first)+ expect(routed.messages.find(m => m.id === routed.result.messageId)?.recipients).toEqual([f.dev])+ expect(routed.messages.find(m => m.id === routed.result.messageId)?.text).toContain(`Answer message ${first} in lead in its thread.`)+ expect(owes()).toEqual([first, other])+ expect(count()).toBe(2)+ expect(f.group('lead').answered).toBeUndefined()+ const answer = reply(f.dev, first).result.messageId+ expect(owes()).toEqual([other])+ expect(count()).toBe(1)+ expect(lines()).not.toContain(`message ${first} `)+ expect(lines()).toContain(`message ${other} `)+ expect(f.group('lead').pulse!.asks.oldestAt).toBe(f.now)+ expect(f.group('lead').answered).toContainEqual({ id: first, answerId: answer, thread: first, at: f.now })+ })++ it('keeps a member ask answered only by a Guide owed until the PM answers', () => {+ const { f, guest, project, ask, reply, owes, count, lines } = setup()+ f.run({ type: 'project.sharing', projectId: project().id, visibility: 'public', memberIds: [guest.userId] })+ const memberAsk = ask(guest)+ const ownerAsk = ask(owner)+ reply(f.dev, memberAsk)+ reply(f.dev, ownerAsk)+ expect(owes()).toEqual([memberAsk, ownerAsk])+ expect(count()).toBe(2)+ expect(lines()).toContain(`message ${memberAsk} `)+ reply(f.lead, memberAsk)+ expect(owes()).toEqual([ownerAsk])+ })++ it('keeps even a non-member ask owed after an unsolicited Guide reply', () => {+ const { f, ask, reply, owes, count } = setup()+ const id = ask()+ reply(f.dev, id)+ expect(owes()).toEqual([id])+ expect(count()).toBe(1)+ })++ it('does not infer handoffs from the words of a PM post', () => {+ const { f, ask, reply, owes } = setup()+ const id = ask()+ f.run({ type: 'message.send', conversationId: f.task, text: `Discuss whether to answer ${id}.`, replyTo: null, recipientIds: [f.dev] }, f.as(f.lead))+ reply(f.dev, id)+ expect(owes()).toEqual([id])+ })++ it('requires the entrusted agent, the ask thread, and a public thread reply', () => {+ const { f, ask, handoff, reply, owes, anotherGuide } = setup()+ const otherAgent = anotherGuide()+ const id = ask(), otherAsk = ask()+ handoff(id)+ reply(otherAgent, id)+ reply(f.dev, otherAsk)+ reply(f.dev, id, { answers: true })+ expect(() => reply(f.dev, id, { agentOnly: true })).toThrow('The project chat holds only its coordinator among agents')+ expect(owes()).toEqual([id, otherAsk])+ reply(f.dev, id)+ expect(owes()).toEqual([otherAsk])+ })++ it('leaves a member follow-up in the same thread owed until the PM answers', () => {+ const { f, ask, handoff, reply, owes, count } = setup()+ const id = ask()+ handoff(id)+ const memberFollowup = ask(owner, id)+ reply(f.dev, id)+ expect(owes()).toEqual([memberFollowup])+ expect(count()).toBe(1)+ reply(f.lead, memberFollowup, { thread: id })+ expect(count()).toBe(0)+ })++ it('uses the latest explicit handoff and still allows the PM to answer', () => {+ const { f, ask, handoff, reply, owes, anotherGuide } = setup()+ const otherAgent = anotherGuide()+ const id = ask()+ handoff(id)+ handoff(id, otherAgent)+ reply(f.dev, id)+ expect(owes()).toEqual([id])+ reply(otherAgent, id)+ expect(owes()).toEqual([])+ const next = ask()+ handoff(next)+ reply(f.lead, next)+ expect(owes()).toEqual([])+ })++ it('accepts the optional handoff in the public message command', () => {+ const { ask, handoffCommand } = setup()+ expect(commandSchema.safeParse(handoffCommand(ask())).success).toBe(true)+ })++ it('allows only the PM to hand off an ask', () => {+ const { f, ask, handoffCommand } = setup()+ const command = handoffCommand(ask())+ expect(() => f.run(command, owner)).toThrow('Only the project PM can hand off an owed ask.')+ expect(() => f.run(command, f.as(f.dev))).toThrow('Only the project PM can hand off an owed ask.')+ })++ it('requires a still-owed ask and exactly one named project agent', () => {+ const { f, ask, handoffCommand, handoff, reply } = setup()+ const id = ask(), other = f.add('other-guide', f.task)+ expect(() => f.run(handoffCommand(id, []), f.as(f.lead))).toThrow('Name exactly one project agent for the handoff.')+ expect(() => f.run(handoffCommand(id, [f.dev, other]), f.as(f.lead))).toThrow('Name exactly one project agent for the handoff.')+ expect(() => handoff('missing-ask')).toThrow('This ask is no longer owed in the project chat.')+ reply(f.lead, id)+ expect(() => handoff(id)).toThrow('This ask is no longer owed in the project chat.')+ })++ it('does not accept an agent-only handoff', () => {+ const { f, ask, handoffCommand } = setup()+ const command = { ...handoffCommand(ask(), [f.lead]), agentOnly: true } as Command+ expect(() => f.run(command, f.as(f.lead))).toThrow('Hand off an ask in a public post to its project agent.')+ })++ it('guards a handoff against a concurrent PM replacement', () => {+ const { f, ask, handoffCommand } = setup()+ const command = handoffCommand(ask()), actor = f.as(f.lead), before = f.state+ const effects = f.run(command, actor)+ expect(touchesFor(command, actor, before, effects)).toContainEqual({ kind: 'group', key: 'lead' })+ })++ // Any explicit reaction of the PM settles it (#3346); another agent's does not.+ it('lets the PM close a plain greeting with a reaction and no answer', () => {+ const { f, guest, owes, count, lines } = setup()+ const id = f.run({ type: 'message.send', conversationId: 'lead', text: 'hảo hn1', replyTo: null, recipientIds: [] }, guest).result.messageId as string+ const react = (by: string, emoji: 'check') => f.run({ type: 'message.react', conversationId: 'lead', messageId: id, emoji, on: true },+ f.as(by), { reaction: { messageId: id, reacted: false } })+ react(f.dev, 'check')+ expect(owes()).toEqual([id])+ expect(react(f.lead, 'check').messages).toEqual([])+ expect(count()).toBe(0)+ expect(lines()).not.toContain('Owed asks')+ expect(f.group('lead').answered).toBeUndefined()+ })+})diff --git a/backend/src/superTabs/parts/touches.ts b/backend/src/superTabs/parts/touches.tsindex 0c52cf856..a4e0e2b88 100644--- a/backend/src/superTabs/parts/touches.ts+++ b/backend/src/superTabs/parts/touches.ts@@ -184,6 +184,7 @@ export function touchesFor(command: Command, actor: Actor, before: SuperTabStategroup(command.after ?? undefined)breakcase 'message.send': {+ if (command.handoff) leadCheck(projectOfGroup(command.conversationId)?.id)// Every start a post makes, a thread session's or the one Buddy's in an older project chat (commands.ts// startOldChatBuddy), counts its machine's slots, as buddy.create's does, and meets a concurrent removal of the Buddy it// runs beside: a Remove racing it can never leave it running (security review 2 of #2435).diff --git a/backend/src/superTabs/pulse.ts b/backend/src/superTabs/pulse.tsindex 2c1e33fb7..10b643a8d 100644--- a/backend/src/superTabs/pulse.ts+++ b/backend/src/superTabs/pulse.ts@@ -5,19 +5,20 @@** An owed ask is a person's message that reached the PM, kept on its conversation (`Conversation.owed`) until the PM answers* it in its place (a reply in its thread, or an answer right below it), explicitly reacts, or opens a task from it.+ * A project agent explicitly entrusted with an ask by the PM may also settle that ask by replying in its thread.* Nothing here refuses anything: a settle that finds nothing does nothing.*/import { isBuddy, isBuddyChat } from './buddies.js'import { heldView, type HeldReason } from './heldReason.js'-import { isLeads, type Author, type Conversation, type SuperTabState } from './model.js'+import { fail, isLeads, type Author, type Conversation, type SuperTabState } from './model.js'import { agentProjectId, groupProject, type SwarmProject } from './projects.js'import { unconfirmedNote } from './processNotes.js'import { noteTaskLines, type LinesBefore } from './statusCard.js'import { switched } from './boardRights.js'/** One person's message to the PM not settled yet: its id, who wrote it, when, and the root of the thread it is in (its own- * id for a top-level message). */-export interface OwedAsk { id: string; personId: string; at: number; thread: string }+ * id for a top-level message). `delegatedTo` is the one project agent the PM entrusted with answering this ask. */+export interface OwedAsk { id: string; personId: string; at: number; thread: string; delegatedTo?: string }/** At most this many asks are kept per conversation, the newest: a growth bound, far above what a PM leaves unanswered. */export const MAX_OWED = 50@@ -62,11 +63,33 @@ const byPm = (state: SuperTabState, group: Conversation, agentId: string): boolereturn !!project && pmOf(state, project) === agentId}+/** A PM's post in the Guide's task explicitly names the project-chat ask and one recipient. Free text and role names never+ * confer this authority: membership routing remains the PM's judgment. Kept with the bounded ask until it is settled. */+export function handoffAsk(state: SuperTabState, group: Conversation, agentId: string | null, messageId: string, recipients: readonly string[]): void {+ const project = projectOfGroup(state, group)+ if (!project || !agentId || pmOf(state, project) !== agentId) fail('ASK_HANDOFF_PM', 'Only the project PM can hand off an owed ask.', 403)+ const target = recipients.length === 1 ? state.agents.find(a => a.id === recipients[0]) : undefined+ if (!target || target.id === agentId || isBuddy(target) || agentProjectId(state, target) !== project.id) {+ fail('ASK_HANDOFF_AGENT', 'Name exactly one project agent for the handoff.', 400)+ }+ const chat = state.conversations.find(c => c.id === project.leadConversationId)+ const ask = chat?.owed?.find(a => a.id === messageId)+ if (!ask) fail('ASK_NOT_OWED', 'This ask is no longer owed in the project chat.', 409)+ ask.delegatedTo = target.id+}+/** The PM's post in [group]: a reply in a thread ([thread], its root) settles every ask in that thread; an answer right below a- * message ([answers]) settles that message. */+ * message ([answers]) settles that message. An entrusted project agent settles only its named ask, in that ask's thread. */export function settleReply(state: SuperTabState, group: Conversation, agentId: string, place: { answers: string | null; thread: string | null }): void {- if (!group.owed || !byPm(state, group, agentId)) return- settle(group, ask => ask.id === place.answers || (!!place.thread && ask.thread === place.thread))+ if (!group.owed) return+ if (byPm(state, group, agentId)) {+ settle(group, ask => ask.id === place.answers || (!!place.thread && ask.thread === place.thread))+ } else if (place.thread && group.owed.some(ask => ask.delegatedTo === agentId && ask.thread === place.thread)) {+ const target = state.agents.find(a => a.id === agentId)+ if (target && !isBuddy(target) && agentProjectId(state, target) === projectOfGroup(state, group)?.id) {+ settle(group, ask => ask.delegatedTo === agentId && ask.thread === place.thread)+ }+ }}/** The PM's explicit reaction on [messageId] settles it. Automatic receipt eyes never call this command path (#3663). */diff --git a/docs/plans/2026-11-06-guide-answered-asks-plan.md b/docs/plans/2026-11-06-guide-answered-asks-plan.mdnew file mode 100644index 000000000..7ebc76ba1--- /dev/null+++ b/docs/plans/2026-11-06-guide-answered-asks-plan.md@@ -0,0 +1,73 @@+# Guide-answered asks implementation plan++> **For agentic workers:** Implement this plan task by task in this Engineer session, using test-driven development. Commit the failing tests before the implementation; use one independent review of the finished pull request.++**Goal:** Remove an ask from the PM's owed list and the Board count when the project agent entrusted with it answers in its thread.++**Architecture:** Keep `Conversation.owed` as the shared source for the inbox and stored Board pulse. Record an explicit PM handoff on its existing bounded ask record, then settle that ask only when the named project agent answers in that thread. A Guide's role name or unsolicited reply grants no settlement authority. Membership routing remains the PM's decision under the project instructions, rather than being inferred from public-project access or parsed usernames.++**Tech Stack:** TypeScript, existing Super Tab command reducer and conversation parts, Vitest.++**Spec:** Swarm task #3871, conversation `32e69d0f90b212ede93249de`: delegated non-member asks leave both displays after the Guide answers; members' asks answered only by a Guide remain owed; the PM can close a greeting without replying; posting permissions stay unchanged. River confirmed explicit handoff in the task thread on 2026-11-06: only the agent named in the PM handoff settles it; unsolicited replies leave it owed.++## Global Constraints++- Backend only, within `backend/src/superTabs/`.+- No hardcoded people or Guide names; no change to who may post or read.+- An agent reply outside the entrusted ask's thread cannot close it. A handoff needs the PM, a live owed ask, and one explicitly addressed agent of the same project.+- Keep the 50-ask bound, operation idempotency, and existing PM reply/reaction/task settlement.+- Run affected unit tests locally; automatic PR CI supplies the full backend unit and Super Tab integration evidence.++## Design++- Growth: one optional entrusted agent ID belongs to an existing owed ask. The ask disappears on settlement, deletion, departure, or eviction from the newest 50. No new collection or index.+- Concurrency: handoff, answer, answer receipt and pulse update use the existing command transaction and conversation part; duplicate operation receipts keep retries idempotent.+- Read cost: inspect only the loaded conversation's bounded asks and existing project/agent state; no transcript reads or new database query.+- Scale: bounded work per post; measure the same 50-ask command workload before and after. Existing message latency and part size measures warn first.+- Compatibility: backend-only additive optional ask metadata. Old records still await the PM unless explicitly handed off; old clients keep using existing post/reply operations and pulse fields. A new optional `message.send.handoff` names an owed message in the PM's project chat, on its post to exactly one project agent in that agent's task. Existing posts never infer handoff from prose.+- Migration/rollback: no history scan or destructive migration. A rollback ignores optional delegation metadata and resumes PM-only settlement. Already-settled asks stay settled.+- Audience: existing conversation/project checks run before settlement. Delegation cannot grant posting rights or cross project boundaries.+- Identity: compare server-known agent IDs, never names, model roles or machine logins.+- Failure: unmatched or unsolicited replies leave the ask visible as owed; the PM can still answer or give a verdict reaction. No new external call or wait.+- Platforms: backend on Linux; developer checks on macOS; all clients consume unchanged fields.++## Review Focus++- An unsolicited Guide reply to a member's ask must leave both the owed list and Board count unchanged.+- A PM handoff must not itself count as the answer or prevent the entrusted agent's eventual answer.+- A different project agent, another thread, or a private agent-only note must not settle the entrusted ask.+- A follow-up ask or a later PM answer must retain the existing thread and answer-once semantics.+- A greeting can close through a PM verdict reaction; eyes and another agent's reaction cannot close it.++## Task 1: Settle explicitly entrusted asks through the existing command path++**Files:**+- Modify: `backend/src/superTabs/pulse.ts`, `backend/src/superTabs/commands.ts`, `backend/src/superTabs/parts/touches.ts`.+- Test: `backend/src/superTabs/delegatedAsks.test.ts`; use `owedLines` and `storedPulse` to check both consumers and `touchesFor` for concurrency.++**Interfaces:**+- Extend `OwedAsk` with optional `delegatedTo?: string`, the project agent explicitly named by its PM.+- Add `handoffAsk(state, group, agentId, messageId, recipients): void` to validate and record the PM's handoff of its project-chat ask. Add the optional `handoff` message ID to `message.send`; only a public post to one explicitly named recipient may carry it.+- Keep the `settleReply`, `owedLines`, `storedPulse`, and existing command request/response fields unchanged. The delivered handoff post names the ask and project chat so its recipient can answer without guessing.+- Guard the PM authority check against a concurrent PM replacement by touching the project chat.++- [x] Add command-level tests: handoff retains the ask; entrusted thread answer removes it from both consumers; member's unsolicited Guide answer remains owed; wrong agent/thread and agent-only replies do not settle; PM can answer later; greeting closes by PM verdict without a message.+- [x] Commit tests and run `npm test -- src/superTabs/delegatedAsks.test.ts`; capture the expected failures in handoff/settlement behavior.+- [x] Implement bounded handoff recording and settlement in `pulse.ts`, passing the explicit handoff and validated named recipient from `commands.ts`. Preserve normal PM settlement and answer receipts.+- [x] Run `delegatedAsks.test.ts`, `parts/touches.test.ts`, `pulse.test.ts`, `inbox.test.ts`, `answers.test.ts`, `chatLimits.test.ts`, `commands.test.ts`, `liveness.test.ts`, and `processNotes.test.ts`, plus backend typecheck. Compare message-path timings with the baseline.+- [x] Commit and push the implementation; reconcile the membership ruling; add red/green evidence to the PR, mark Ready, and hand it to independent review and testing through task status.+++## Validation and operation++At the final test-only revision, the new spec fails 10 tests and passes 4; the restored handoff still reports one owed ask. With the fix, 590 tests pass across the nine affected specs and backend typecheck passes on macOS. Full backend and Super Tab integration runs are left to automatic PR CI.++A PM sends the handoff in the Guide's task through the existing generic command API:++```json+{"type":"message.send","conversationId":"GUIDE_TASK","text":"Please answer this support ask.","replyTo":null,"recipientIds":["GUIDE_AGENT"],"handoff":"PROJECT_CHAT_ASK"}+```++Plain prose posts do not create a handoff. No historical transcript is backfilled: already-answered old asks can be closed by the PM's existing verdict reaction. A greeting uses that same reaction without a response message.++Serial same-workload timings on this Mac, 10,000 command reductions per author with 50 owed asks: PM median 0.068024 → 0.068116 ms, p95 batch mean 0.081393 → 0.081166 ms; project agent median 0.064630 → 0.064356 ms, p95 batch mean 0.071624 → 0.071184 ms. These measure the command reducer, not database or delivery latency. No query or index changes.