Repository navigation
docs(agora): explainer article for PR 92 / 93 / 94 - #95
Conversation
…ats to the topology TUI A static, self-contained HTML article (Korean) that walks from the problem agora solves to the seat model, the registry, live state, the three message paths, the verbs, the safety model, the board pipeline, the chart engine, the TUI's structure and keymap, the tmux windows, headless testing, the timezone defect the live proof found, the review findings, and the retrospective lesson. Every number and terminal capture comes from the execplans and real runs.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 99df56af59
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| <div class="tile"><div class="big" style="color:var(--busy)">●</div><b>busy</b><span>턴을 돌리고 있다</span></div> | ||
| <div class="tile"><div class="big" style="color:var(--idle)">○</div><b>idle</b><span>프로세스와 소켓은 살아 있고, 턴은 끝났다. 메시지가 오면 깨어난다</span></div> | ||
| <div class="tile"><div class="big" style="color:var(--blocked)">◐</div><b>blocked</b><span>질문이나 권한 프롬프트에 걸려 있다</span></div> | ||
| <div class="tile"><div class="big" style="color:var(--stopped)">■</div><b>stopped</b><span>프로세스가 내려갔다. 트랜스크립트는 있어서 attach 하면 깨어난다</span></div> |
There was a problem hiding this comment.
Qualify attach support for stopped seats
A seat can be classified as stopped even when it stopped before producing a saved transcript, because live_state() does not check transcript existence. In that case claude attach fails rather than waking it; the recorded probe in docs/doperpowers/execplans/2026-09-02-agora-tui.md explicitly encountered Couldn't wake … no saved transcript. Describing every stopped seat as having a transcript therefore misleads readers about the primary Enter/attach flow; this should distinguish resumable stopped seats from those that require a fresh fill.
Useful? React with 👍 / 👎.
| <section class="chapter" id="c5"> | ||
| <div class="num">05</div> | ||
| <h2>레지스트리는 폴더 하나다. 좌석 하나 = JSON 파일 하나.</h2> | ||
| <p class="lead"><code>~/.claude/agora/</code>. 좌석 id는 첫 세션의 uuid. 옆에 마지막 답장, 그룹 폴더 아래에 게시판.</p> |
There was a problem hiding this comment.
Account for vacant seats when defining seat IDs
The seat ID is not always the first session's UUID. agora seat add <group> <alias> without --session creates a vacant seat with a fresh UUID4, and a later fresh fill preserves that seat ID while assigning a different session UUID to current. This sentence collapses the stable seat identity and occupant identity precisely in the pre-created-seat case, so it should include the vacant-seat exception documented in the seats execplan.
Useful? React with 👍 / 👎.
| <tr><td rowspan="4">좌석 만들기·채우기</td><td><code>spawn <alias> "<task>"</code></td><td><code>claude --bg</code>로 세션을 띄우고 좌석에 앉힌다. 세션 id가 생기는 즉시 등록하고 반환(<code>--wait</code>면 턴 끝까지). 은퇴/빈/죽은 좌석의 alias로 스폰하면 그 좌석을 다시 채운다; 살아 있는 좌석은 거부.</td></tr> | ||
| <tr><td><code>seat add <group> <alias></code> (= <code>join</code>)</td><td>대화형 세션이 좌석에 앉거나, 빈 좌석을 미리 만든다. <code>--addr</code>로 하네스 세션 이름을 알려야 도달 가능.</td></tr> | ||
| <tr><td><code>fill <seat> "<task>" [--resume]</code></td><td>빈/멈춘/죽은 좌석을 채운다 — 새 세션으로, 또는 옛 세션을 같은 id로 이어서.</td></tr> | ||
| <tr><td><code>retire [--purge]</code> · <code>remove</code></td><td>세션을 멈춘다. 좌석은 역사로 남고(purge 하면 삭제), remove는 레코드째 지운다. 워크트리나 브랜치는 절대 지우지 않는다.</td></tr> |
There was a problem hiding this comment.
Include the required seat operands in lifecycle syntax
Both displayed lifecycle signatures omit their mandatory <seat> positional argument. The parser registers retire and remove with a required seat, so a reader following retire [--purge] or remove as shown gets a usage error and does not stop or delete anything. Show these as retire <seat> [--purge] and remove <seat>.
Useful? React with 👍 / 👎.
| <thead><tr><th>묶음</th><th>동사</th><th>하는 일</th></tr></thead> | ||
| <tbody> | ||
| <tr><td rowspan="4">좌석 만들기·채우기</td><td><code>spawn <alias> "<task>"</code></td><td><code>claude --bg</code>로 세션을 띄우고 좌석에 앉힌다. 세션 id가 생기는 즉시 등록하고 반환(<code>--wait</code>면 턴 끝까지). 은퇴/빈/죽은 좌석의 alias로 스폰하면 그 좌석을 다시 채운다; 살아 있는 좌석은 거부.</td></tr> | ||
| <tr><td><code>seat add <group> <alias></code> (= <code>join</code>)</td><td>대화형 세션이 좌석에 앉거나, 빈 좌석을 미리 만든다. <code>--addr</code>로 하네스 세션 이름을 알려야 도달 가능.</td></tr> |
There was a problem hiding this comment.
Show how an interactive session is actually registered
Running the displayed seat add <group> <alias> form does not make the current interactive session occupy the seat; without --session, cmd_seat_add() creates a vacant seat. The interactive-session scenario described here requires --session $CLAUDE_CODE_SESSION_ID as well as an appropriate --addr, so readers following this command currently register an empty seat and remain absent from the topology.
Useful? React with 👍 / 👎.
| </tbody> | ||
| </table> | ||
| <details class="deep"><summary>더 깊이 · 종료 코드, 한 가지 파싱 예외, 그리고 spawn 배너</summary> | ||
| <p>종료 코드: 0 ok, 1 하네스 실패, 2 usage, 4 모르는 좌석/그룹·대상이 live 아님·이미 쓰이는 이름.</p> |
There was a problem hiding this comment.
Broaden the documented meaning of exit code 1
Exit code 1 is not limited to a harness failure. The implementation also returns it for cases such as a wake --wait acknowledgement timeout, uncertain delivery after a frame was written, watcher timeouts, and a resume that starts a copy. Scripts using this table would misclassify these distinct operational failures as a harness outage, so code 1 should be described as a broader operational failure with these important cases called out.
Useful? React with 👍 / 👎.
A static, self-contained HTML article (Korean, 29 short chapters with inline SVG figures and terminal captures) explaining everything the seats release (#92), the topology TUI (#93) and its retrospective (#94) built — from the problem and the seat model through the registry, live state, message paths, verbs, safety model, chart engine, TUI structure, tmux windows, headless testing, the timezone defect the live proof found, the review findings, and the retrospective lesson.
Open
docs/doperpowers/articles/2026-09-03-agora-seats-and-tui.htmlin a browser. Every number and capture comes from the execplans and real runs; the page was render-checked in headless Chrome.