Skip to content

Commit f241a71

Browse files
committed
docs(adr): ADR-017 — record that the agent-session toggle is not a no-op
Live finding on ABCA-310: with 'Agent session events' left ON after the UX.24 spike, every @bgagent mention also spawns a native agent session. Our deployed comment path replies (👀 + reply) but emits no session activity, so the session goes stale and Linear shows a misleading 'bgagent did not respond' banner despite the comment posting fine. Consequence: adoption is not additive-for-free — the toggle must stay OFF until the flag-gated adapter ships in the same change that flips it. Interim: turn the toggle off (app owner).
1 parent 3a2456b commit f241a71

2 files changed

Lines changed: 30 additions & 0 deletions

File tree

docs/decisions/ADR-017-linear-agent-session-interaction.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,21 @@ it's the per-issue-session vs. cross-issue-epic-rollup gap (engine stays ours)
126126
plus the Preview→GA stability wait, NOT any technical blocker we found. The
127127
spike issues were created + deleted; no migration code written.
128128

129+
> **⚠️ The enablement toggle is NOT a side-effect-free no-op (2026-06-17).**
130+
> Leaving "Agent session events" ON after the spike means **every `@bgagent`
131+
> mention now also spawns a native agent session** that Linear expects answered
132+
> via `agentActivityCreate` within 10s. Our deployed code answers on the
133+
> **comment** path (👀 + reply) and emits no session activity, so the session
134+
> gets zero activities, goes `stale`, and Linear surfaces a misleading
135+
> **"bgagent did not respond"** banner — even though the comment reply posted
136+
> fine (observed live on ABCA-310: reply at t+2s, session `stale`, activities
137+
> `[]`). **Consequence for phasing:** adoption is *not* "additive alongside the
138+
> comment path for free" — once the toggle is on, mentions route to sessions
139+
> and the adapter MUST emit activities or every mention looks dead. So the
140+
> toggle stays **OFF** until the flag-gated adapter (Phase 2 below) ships in the
141+
> same change that flips it. Interim action after the spike: **turn the toggle
142+
> off** (app owner, Settings → API → Applications).
143+
129144
### Why a channel, not a rewrite
130145

131146
- The win is **real but partial**: agent sessions retire the brittle

docs/src/content/docs/decisions/Adr-017-linear-agent-session-interaction.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,21 @@ it's the per-issue-session vs. cross-issue-epic-rollup gap (engine stays ours)
130130
plus the Preview→GA stability wait, NOT any technical blocker we found. The
131131
spike issues were created + deleted; no migration code written.
132132

133+
> **⚠️ The enablement toggle is NOT a side-effect-free no-op (2026-06-17).**
134+
> Leaving "Agent session events" ON after the spike means **every `@bgagent`
135+
> mention now also spawns a native agent session** that Linear expects answered
136+
> via `agentActivityCreate` within 10s. Our deployed code answers on the
137+
> **comment** path (👀 + reply) and emits no session activity, so the session
138+
> gets zero activities, goes `stale`, and Linear surfaces a misleading
139+
> **"bgagent did not respond"** banner — even though the comment reply posted
140+
> fine (observed live on ABCA-310: reply at t+2s, session `stale`, activities
141+
> `[]`). **Consequence for phasing:** adoption is *not* "additive alongside the
142+
> comment path for free" — once the toggle is on, mentions route to sessions
143+
> and the adapter MUST emit activities or every mention looks dead. So the
144+
> toggle stays **OFF** until the flag-gated adapter (Phase 2 below) ships in the
145+
> same change that flips it. Interim action after the spike: **turn the toggle
146+
> off** (app owner, Settings → API → Applications).
147+
133148
### Why a channel, not a rewrite
134149

135150
- The win is **real but partial**: agent sessions retire the brittle

0 commit comments

Comments
 (0)