Repository navigation
A window that just acted is still watching: the unattended door stops lying about who had gone (#833) - #851
Conversation
… just acted Two reds and one guard, all deterministic and with no model behind them: a window that made a call and then lost its link is retired for want of a watcher, and every road that ends a conversation says nobody was left watching it — including one taken with a window still in the room. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
…me through WHAT WAS TRUE: every road that ended a hosted conversation cancelled the turn as `session retired`, so a person's own goodbye, a host stopped with `aforge engine --stop`, a signal, a stale build letting go and the idle sweep all read out the unattended door's one sentence — `nobody was left watching this conversation, so the reply stopped`. And a conversation with no surface attached was unwatched on the instant: a call that stalled past internal/remote's ten second `callDeadline` (#832) tore the pipe under a window nobody had left, and the room looked empty a fraction of a second after the person pressed a key in it. #833 is a reply that stopped on that sentence, with its bash cancelled, while its window was still on the screen. WHAT IS TRUE NOW: presence is renewed by the act itself. Every call a window makes records the act ([server.dispatch] is the one funnel), and [Session.watchedLocked] counts a window that acted inside `watchGrace` — twice `callDeadline`, the stalled call and the redial after it, derived and never retyped — as somebody in the room. The sweep and the stand-down reading both go through it, so a stalled road no longer empties a conversation somebody is sitting in. The door is not disabled: a room with no surface and no act inside the grace is still retired, closed and flushed. And every ending now names the door it actually came through. A goodbye is `conversation left`; a host stopped under a window still in the room is a new door, `engine stopped`; only the unattended door says nobody was left watching, and when it does the cause carries the window it believed had gone ([Agent.InterruptNamed], `stopAs`) so the sentence names it. The manual page carries all three, under a heading in the words somebody would ask. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Co-Authored-By: Cursor Agent (Grok 4.6 Fast) <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
EvidenceDeterministic reproduction — Laptop — Spark, isolated clone at The acceptance, end to end. 🤖 Generated with Claude Code |
Closes #833.
What was true
Every road that ended a hosted conversation went through one door,
session retired, and therefore said one sentence:nobody was left watching this conversation, so the reply stopped — ask again to pick it up. A person's own goodbye said it,aforge engine --stopsaid it, asignal said it, a stale build letting go said it, and the idle sweep said it.
And a conversation with no surface attached was unwatched on the instant. A call
that stalled past
internal/remote's ten-secondcallDeadline(#832) tears thewindow's pipe without the person going anywhere, so the room read as empty a
fraction of a second after they had pressed
1on a card in it. #833 is thatreply:
bash · cancelled, and the unattended sentence, on a screen the personwas sitting in front of.
What is true now
Presence is renewed by the act itself. Every call a window makes records the
act —
(*server).dispatchis the one funnel every keystroke takes — andSession.watchedLockedcounts a window that acted insidewatchGraceassomebody in the room. The grace is
2 * callDeadline, derived and neverretyped: one deadline for the call that did not come back, one for the link that
has not been dialled again yet. Both the sweep (
RetireIfIdle) and thestand-down reading (
enginehost.Host.idleLocked, throughIdleSince) gothrough it.
The door is not disabled. A room with no surface and no act inside the grace
is still retired, still closed, still flushed — pinned by
TestAConversationNobodyEverWatchedIsStillRetiredandTestAnActThatHasAgedOutStopsCountingAsPresence, and by every test already ininternal/remote/idle_test.goandinternal/enginehost.Every ending names the door it actually came through. A goodbye
(
MethodClose) isconversation left. A host stopped on somebody's word while awindow is still in the room is a new door,
engine stopped, with its ownsentence. Only the unattended door says nobody was left watching — and when it
does, the cause carries the window it believed had gone
(
Agent.InterruptNamed,stopAs), so the sentence names it:nobody was left watching this conversation from studio, so the reply stopped — ask again to pick it up.The manual page (
internal/manual/chat/models-and-cost.md) carries all threesentences and a heading in the words somebody would actually ask.
Reproduction
internal/remote/unattended_test.go, deterministic, no model and no wall clock.Two of its four tests were red on
devand are green here; the other two are theguards that the door still works.
Tests
go build ./...,go vet,gofmt,make test-quick,go test ./internal/remote/ ./internal/enginehost/ ./internal/manual/... -count=1,go test ./internal/session/ -run 'Stop|Resume|Manual|Door' -count=1internal/session,internal/remoteandinternal/enginehostsuites, and
TestQuestionsE2E/TheOrdinaryRoadCarriesAQuestionAndItsAnswersix copies in parallel — recorded in a comment below.
The first attempt at this fix was made by the Cursor CLI on Grok 4.6 Fast and
reviewed as a skeptic; what it got right and what was changed on top is in the
lane report.
🤖 Generated with Claude Code