Repository navigation
Description
Problem
Chat run, 2026-09-01, dev 05b9953. A nested part (task 3, depth 2) landed needs your look. Its journal reads "no answer in 5m0s, so nothing was accepted". A 15-second screen capture of the entire run shows no [a] accept row for that node, ever — the gate expired without a person ever being able to see or answer it. Meanwhile the footer counted the node under done while its parent still ran.
Where it lives
- The 5-minute timer is the auditor model's call window (
internal/session/task_audit.goauditDeadline~:176; expiry at ~:782 returns "no answer in 5m0s, so nothing was accepted"). The sentence reads to a person as if they had 5 minutes and missed them. - The
[a] acceptcard exists only for root nodes:internal/tui3/task.go(~:5537)if node.parent == "" … a.landedCard(node). All three settle surfaces (conversation card, room foot, rail keys —internal/tui3/tasksettle.go) walk the entries list that onlylandedCardfeeds. There is no door for a nested gate anywhere in the TUI. - While the parent runs, the child is filed under
railDone(task.go~:2337taskParentDeciding), so it is missing from the attention count too. When the parent settles,bubbleUnverifiedChildren(internal/session/task_run.go~:2914) re-delivers the child's landing note as steering text to the model — a sentence, not a surface object. - The existing test
TestAChildThatNeedsALookWaitsForItsParentAndThenForYouasserts only the rail group flip; the "AndThenForYou" half asserts nothing — it pins the hole open.
The law
A question to a person is never on a timer; it waits, visibly, on every surface, until answered — or it is not a question. A timer may expire only into a state that says unanswered ("nobody could check it in 5m0s"), never into accepted or rejected. A parent's running is a fold, not a mute: the family head carries the demand, and the count never says done about an unverified node.
The fix — one registry, many renderers
internal/sessionownsPendingDecisions() []Decision: every unverified node with no resolution enters at finish, leaves only onResolveUnverified. Depth-independent.- Every surface renders the registry; none owns it.
landedCardbecomescardFor(decision);doneCardFor/railSettleCard/roomSettleCardread the registry, not the entries walk. A child's card may fold under the family rollup but exists and carries the answers row. bubbleUnverifiedChildrenre-addresses the registry row instead of re-delivering a sentence.- Expiry vocabulary split: auditor timeout writes a fact about the checker; "accepted / not right" is reserved for what a person (or auto-settle policy) actually said.
Replication and acceptance (functional, required)
internal/session(scripted nest, test clock): a part whose auditor answers nothing. Accept: the part lands unverified;PendingDecisions()contains it before and after the parent settles; the report says "nobody could check", never "accepted".internal/tui3(extend the existing settle test): afterchild(2,1,TaskUnverified)and before the parent lands,doneCardFor(2) != nil; after it lands, the rail and room settle cards for node 2 are non-nil and the render contains[a] accept;railGroupOf(child) != railDoneat every moment its state is unverified.- e2e (tmux): the child's
?glyph and[a] acceptare on screen within one frame; pressingaresolves the node. Literals into the tuiwords needle table.
Dependencies
Independent. The manual pages and needle table that spell the timeout sentence change with it (manual law applies).
Drafted with CodeAF · reviewed and owned by the author
Activity
santoshkumarradha commentedon Sep 1, 2026
The root-node gate in the same run was produced by the landing defect in #272 — one causal chain in the evidence; the fixes are independent.
tasks: a gate is a question on every surface, at every depth
tasks: a gate is a question on every surface, at every depth
tasks: a gate is a question on every surface, at every depth
tasks: a gate is a question on every surface, at every depth
tasks: a gate is a question on every surface, at every depth
tasks: a gate is a question on every surface, at every depth
tasks: a gate is a question on every surface, at every depth
tasks: a gate is a question on every surface, at every depth (#292)