Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
d3b9ecd
TD-5428: follow through on a reply that says it will continue
captcrock Dec 1, 2026
3bbf63f
TD-5428: mark a reply that stopped after saying it would continue
captcrock Dec 1, 2026
0b6ac4f
TD-5428: follow through with approvals off too
captcrock Dec 1, 2026
4918aa2
TD-5428: follow through only on a real announcement, never a hand-back
captcrock Dec 1, 2026
c28b12e
TD-5428: one bubble when the check answers, Continue past a notice, docs
captcrock Dec 1, 2026
65ab3ff
TD-5428: a hand-back loop test; Continue as a new turn approved, same…
captcrock Dec 1, 2026
be0d2ef
TD-5428: drop the time cue, acknowledgement habits, truncated and str…
captcrock Dec 1, 2026
a55c74a
TD-5428: acknowledgement plus a habit verb, never an unlabelled answer
captcrock Dec 1, 2026
c799ba1
TD-5428: keep nudging while the model says there is more to do
captcrock Dec 1, 2026
6f64953
Merge remote-tracking branch 'origin/main' into td/5428-follow-through
captcrock Dec 1, 2026
9b09827
TD-5437: a reply that ends on "Next: <step>" is followed through
captcrock Dec 2, 2026
80033cb
TD-5437: review round 1: a "Next" line counts only for the model's ow…
captcrock Dec 2, 2026
ec5b26c
TD-5437: review round 2: the deny check reads the raw tail, in every …
captcrock Dec 2, 2026
aa5f603
TD-5437: review round 3: a "Next" line counts only for a read-only step
captcrock Dec 2, 2026
6d8a821
TD-5437: review round 4: one action, read-only code everywhere, conte…
captcrock Dec 2, 2026
d31972b
TD-5437: review round 5: last sentence only, any separator or purpose…
captcrock Dec 2, 2026
7afc2af
TD-5437: review round 6: a page to read is a look; contacting someone…
captcrock Dec 2, 2026
bccf4df
TD-5437: review round 7: anyone after "with" is contact; changes read…
captcrock Dec 2, 2026
7dc781b
TD-5437: confirmation review: a group named with a data word is people
captcrock Dec 2, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
115 changes: 115 additions & 0 deletions DECISIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -22347,6 +22347,121 @@ fault; showing both runs on their own, in both views, says what is known.

---

## 2026-12-01 — TD-5428: following through on a reply that says it will continue (Class B)

**One protocol, one parser.** The nudge asks with the progress check's
label lines (`FOLLOW_THROUGH_INSTRUCTION` and `PROGRESS_CHECK_INSTRUCTION`
share them) and `interpret_check` reads the answer. The step itself is in
`follow_through_turn.py`; detection is `follow_through.py`, text in and
phrase or `None` out.

**The nudge is a user-role message from TST Desk,** as the progress check
is, not a second system message: strict local chat templates accept one
system message, first (TD-5142), and a request must end on a user turn
(TD-5177). It is kept in the conversation only with an answer to it, marked
`check`, so it is not one of the window's user turns and roles still
alternate.

**No per-turn limit (the owner, 2026-12-01).** "Why can't it just
automatically continue? If there is work still to do then it should not stop
and just do it." So every stop that announces a step is nudged, and the nudge
does not spend the guard's `MAX_AUTO_CONTINUES` (`note_follow_through` only
records the step). What still stops it: a `CONTINUE` that repeats the last
step (pauses, marked), and the model-call, spend, time and iteration caps.
This replaces the earlier "once a turn, shared with the guard's three".

**What counts as still stopping.** An empty or step-less answer, a
`CONTINUE` repeating the guard's last step, a failed call (the reply stays,
marked), or an answer whose text, shown in place of the reply or under it,
still announces a step. A second announcement later in the turn is nudged
again.

**Marked without a nudge** when the three windows are spent, the nudge was
already used, or the iteration, clock or spend cap is reached: the reply
still says it will continue, and a nudge past a cap would be a call the cap
forbids. Autonomy and delegate children are not looked at at all, so they
get no nudge, log or marker: they have their own breakers. Skip-all is
checked like any interactive turn (the manager's correction to the first
spec: the owner runs with approvals off, and the nudge asks the model to
keep its word, which is not a cap, so the progress guard's skip-all
precedent does not apply).

**A tool call in the nudge's answer is not run.** The request offered no
tools; the turn goes on and the next request offers them.

**Before the done-check.** The follow-through runs when the model ends the
turn, then the done-check and stop hooks (TD-5124) judge the reply the turn
really ends on, once. A progress check's answer with no label is a final
reply too and is followed through; a labelled one is taken as it is.

**Continue is TD-5417's:** an ordinary "Continue" message. The marked turn
has ended (the story ends it), so the work resumes in the same chat as a new
turn on the wire, with fresh per-turn counters. Reopening a sealed turn
would need a new client message and daemon state that nothing else uses.

**The mark rides on `turn_complete`** (`stopped_after_continue`, additive),
logged and replayed with the turn; the window puts it on the turn's last
reply. It is part of the persisted `turn_complete` event (events.jsonl), so it
survives a daemon restart with no schema change (test in
`test_follow_through_loop.py`); a reply rebuilt from saved history after the
log was trimmed has no mark.

**Detection reads only the end of the reply, and is narrower than the
first spec (review round 1 of 3bbf63f0).** The manager's rule was "the last
sentence is future tense with no tool call". That fired on ordinary replies
("Understood. I'll use tabs.", "I'll answer any follow-up questions.",
drafted emails) and on hand-backs ("Reply \"yes\" and I'll run it." was
nudged, answered CONTINUE, and the tool ran with no yes). The manager asked
for "on no other reply", so precision wins and the rule is cut to two
triggers: a still-working or next-step phrase in the last two sentences of
the last paragraph, or a last sentence that is first-person future or says
the work is under way ("Running the tests now."). **The time cue was
dropped again (product owner):** requiring one un-triggered genuine stops
("The test hangs. I'll fix the call that is waiting on the lock.", "Encontré
el error. Voy a corregirlo en el paginador."), and a false nudge costs one
tool-free call that answers DONE while a missed stop costs the owner's turn.
The narrowing comes from the exclusions instead, including one for an
acknowledgement opener ("Understood", "Got it", "Sure", "Perfecto", ...)
followed by a habit or preference verb (use, keep, skip, avoid, stick to,
remember, do that; usaré, así lo haré, tendré en cuenta, ...), as the product
owner asked ("an acknowledgement opener and a habit verb rather than a blanket
time-cue gate"): "Understood. I'll use tabs." does not count, "Understood.
I'll fix the paginator." does. A heading line is not
a sentence of the reply.

Never matched: a question; a request, permission ask or condition on the
person in the last four sentences (reply, send, pick, tell me, let me know,
once you, if you, after your, with your permission, go-ahead, say so,
approve; Spanish pásame, dime, avísame, cuando me, si me…), with "when
you're offline" kept as a description; bare acknowledgements; offers and
sign-offs; standing habits and other days; talk the reply delivers itself;
text in quotes, inline code or code blocks; and drafted messages. "...and
let you know the results" / "y te aviso" does not cancel a step. A miss ends the turn as before and a false match costs a call, so the
exclusions lean to missing. The table in `tests/test_follow_through.py` is
the source of truth; Known limit: a first-person future that is the
content itself (the last line of a poem) matches.

**One bubble.** A `DONE` answer replaces the reply (one that only repeats the
reply leaves it alone). A text answer with no label never replaces the reply
or sits under it: the check was not answered, so the reply stays, marked, and
Continue is one click away (review round 2 found "I'll use tabs." replaced by
"Nothing else to do."; a length threshold was tried and dropped as an
invented number). A check cut off at the
token limit (`finish_reason: length`) never replaces or joins the reply: it
stays and the marker shows.
the loop sends `assistant_retract` for the reply's response id with reason
`follow_through_replaced`, then the answer as the next `assistant_delta`,
and puts it in the saved conversation in the reply's place (the nudge is not
kept). The window drops the reply's text but keeps its thinking and shows no
Working line (the reason is a free string; no schema field is added). A
`BLOCKED` answer is a question, not the reply, so it is added under it, unless
it says the reply again, when it replaces it. The turn is marked only when the text now shown still announces a step.

**Continue stays on the marked reply** while only notices follow it: the
button is offered on the last row that is somebody's message.

- **The manager confirmed both** (2026-12-01): the narrowed rule ("Yes, narrow it exactly as you propose. A hand-back or permission ask must never trigger, in either language, and the future-tense rule needs a time cue or a still-working phrase"), and Continue as a new turn for 0.5.14; the same-turn resume is TD-5430. A loop test proves "Reply 'yes' and I'll run it" ends the turn with no nudge and no tool run.

### TD-5427: a web view that cannot draw

**The whole app is replaced, not the web view.** WebKitGTK reads
Expand Down
1 change: 1 addition & 0 deletions core/scripts/generate_protocol_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -1070,6 +1070,7 @@
cost=0.03,
tier="worker",
duration=2.5,
stopped_after_continue=True,
seq=12,
),
"turn_complete_failed": TurnComplete(
Expand Down
Loading
Loading