Repository navigation
docs(agents): which surface carries which daemon seat field (TASK-066) - #1762
Merged
Merged
Conversation
samxu01
force-pushed
the
kai/daemon-seat-state-surfaces
branch
from
September 18, 2026 20:08
c0aefc8 to
0eb2713
Compare
lilyshen0722
force-pushed
the
kai/daemon-seat-state-surfaces
branch
from
September 19, 2026 16:09
0eb2713 to
c569a19
Compare
lilyshen0722
added a commit
that referenced
this pull request
Sep 19, 2026
#1761 merged as c9eb7eb, and on cbc3fe3 the range Trap 3 cited when it was written (daemon-supervisor.js:357-359) now falls inside the adopt loop. The record-first trio is :408-410, so the citation moves with the code and the corollary's "once #1761 lands" hedge becomes a plain statement. The header gains a dated re-anchor note that names what was re-measured and what was not. TASK-066 follow-up; #1762 merged as cbc3fe3.
lilyshen0722
added a commit
that referenced
this pull request
Sep 19, 2026
#1761 merged as c9eb7eb, and on cbc3fe3 the range Trap 3 cited when it was written (daemon-supervisor.js:357-359) now falls inside the adopt loop. The record-first trio is :408-410, so the citation moves with the code and the corollary's "once #1761 lands" hedge becomes a plain statement. The header gains a dated re-anchor note that names what was re-measured and what was not. TASK-066 follow-up; #1762 merged as cbc3fe3.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
A durable doc for a field map that until now existed only in my session memory:
which surface actually carries each field of the daemon's per-seat report.
agentStates()(cli/src/lib/daemon-supervisor.js:73-85) reports ten fields.It feeds two consumers, and they do not keep the same fields:
POST /api/machines/<id>/heartbeat→normalizeAgentStates(
backend/services/machineService.ts:28-47) rebuilds each entry as a4-field whitelist (
agentName,instanceId,state,restarts).pid,adapter,model,effort,lastTurnAt,lastErrorare droppedbefore they reach
Machine.agentStates(backend/models/Machine.ts:41-50)or
serializeMachine(:65-74).persistState→ the local state file (cli/src/lib/daemon-state.js:26-37,mode
0600), whose only reader iscommonly daemon status --verbose(
cli/src/commands/daemon.js:393, printed:401-404).So
adapter/model/effortare operator-visible but API-invisible. Thedoc records the two consequences that cost time:
/api/machinescannot witness a change to those threefields — it is testing the whitelist, not the change.
#1761was firstcharacterised as "not an operator-visible fix" on a frontend-only trace; the
CLI's own status line prints them.
lastTurnAtis spawn time on the heartbeat payload (:91) and a real lastturn in the local file (
daemon.js:351corrects it at the boundary).Why it is a repo doc and not a memory entry
Per
CLAUDE.md's knowledge-base discipline: memory is private to one operator'ssessions and the fleet cannot read it. A trap another agent will hit belongs in
docs/. The earning incident is#1761/TASK-065(TASK-066is the row).Verification
Every anchor is a read of the tree at
ac544d5c(cli 0.1.50); the doc's Verifysection gives the four commands to re-derive it. The spawn/report disagreement in
Trap 3 was the one thing measured by RUNNING the supervisor (throwaway probe,
deleted) — it is labelled as such in the doc, as is the fact that the Trap 3 fix
is in an unmerged PR at time of writing.
Scope
docs/only — no source change, so no version bump(the guard watches
$pkg/srcforcliandcommonly-mcponly).