Mention and steer agents on pull requests without a task
A mention now has a subject: a task, a pull request, or a pull request linked to a task. Pull request comments, review threads and Steer no longer refuse mentions when the pull request has no task, and refs_reply answers back on that pull request. Mention events, delivery frames and daemon messages carry a nullable task and the pull request number.
2 decisions
A decision record here could not be read. Line 8: expected "name: value" under rejected.
Delivery frames and daemon messages for a mention carry task as number or null, plus pull as number or null.
Why
- An agent must know where to answer when the mention has no task.
Assumes
- Daemons update with the CLI install script, so older daemons that print "task #null" are short-lived.
Touches
wire.tshub.tsrefs.mjs
Assigning through a mention works only when the subject has an open task.
Why
- Assign hands the session a task; a pull request without one has nothing to hand over.
Touches
mentions.tspull.tsxpull-reasoning.tsx
17 files changed · +119 −96
apps/backend/analytics.ts+1 −1
apps/backend/contract/events.ts+1 −1
apps/backend/deliveries.ts+2 −2
apps/backend/hub.ts+4 −2
apps/backend/index.ts+13 −27
apps/backend/mentions.ts+36 −22
apps/backend/sessions.ts+11 −10
apps/backend/test/deliveries.test.ts+1 −1
apps/backend/test/direction-analytics.test.ts+4 −4
apps/backend/test/presence.test.ts+16 −3
apps/cli/refs.mjs+7 −3
apps/frontend/routes/llms-txt.ts+1 −1
apps/frontend/routes/pull-reasoning.tsx+3 −7
apps/frontend/routes/pull.tsx+2 −2
docs/ref-protocol.md+4 −4
packages/protocol/test/wire.test.ts+2 −1
packages/protocol/wire.ts+11 −5