Repository navigation
Conversation
A model could end its turn on a reply with no tool call that said it was still working and what it would do next, and the turn was shown as finished. An interactive turn's final reply that announces a next step (a short English and Spanish phrase list, or a last sentence in the first person and future tense; offers, sign-offs and questions never count) now gets one tool-free nudge with the progress guard's CONTINUE/DONE/BLOCKED labels and parser. A CONTINUE or a tool call carries the same turn on. At most once a turn, on the guard's three continues, never for skip-all, autonomy or delegate children. A turn that still stops sets the new turn_complete.stopped_after_continue. Class B choices are in DECISIONS.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
turn_complete.stopped_after_continue now shows on the turn's last reply as "Stopped after saying it would continue", with a Continue button that sends the same ordinary message a stopped turn does (TD-5417). The button is offered only while that reply is the last row and no turn is running. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The manager corrected the spec: skip-all must not be excluded, because the owner runs with approvals off, so as specced the check never fired for the person who asked for it. The nudge asks the model to keep its word; it is not a cap, so the progress guard's skip-all precedent does not apply. Autonomy and delegate children stay excluded (their own breakers). follow_through no longer takes skip_all; the parametrized never-checked test is now test_skip_all_is_still_checked (an announcing reply with skip-all makes at least two brain calls) and the autonomy/delegate never-checked cases. Backlog criterion and DECISIONS updated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The review of 3bbf63f found the detector firing on replies that hand the turn back ("Reply yes and I'll run it." ran a tool with no yes) and on ordinary ones (acknowledgements, offers, drafted emails, quoted text). "On no other reply" wins, so the rule is narrower than "the last sentence is future tense": a still-working or next-step phrase, or a first-person future with a time cue, or work under way ("Running the tests now."). Hand-backs and permission asks, bare acknowledgements, offers, standing habits, talk the reply delivers itself, quotes, code and drafted messages never match; a trailing "and let you know" no longer cancels a real step. The table in test_follow_through.py is the source of truth (69 trigger, 186 no-trigger, 11 left out on purpose). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A DONE answer, or one with no label, replaces the reply (assistant_retract with reason follow_through_replaced, then the answer; the saved conversation holds the answer in its place) instead of being appended, so a reply is never shown twice. BLOCKED stays under the reply unless it repeats it. The turn is marked only when the text now shown still announces a step. The window keeps the reply's thinking, shows no Working line, and the terminal and timeline say the reply was replaced. Dead skip_all parameters left by the skip-all correction are removed. Continue stays on the marked reply while only notices follow it. docs/configuration.md, the backlog and DECISIONS state the rules as built, including that skip-all turns are checked. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-turn resume is TD-5430 The manager confirmed the narrowed rule and accepted Continue as a new turn in the same chat for 0.5.14. Added the loop test they asked for: "Reply 'yes' and I'll run it" ends the turn with no nudge and no tool run. The same-turn resume is recorded as TD-5430 (Ready). The marker already says "Continue" and promises nothing about the turn. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ay checks
- Detection: a first-person future ("I'll", "Voy a", "Déjame", -ré) at the
end triggers without a time cue; the four genuine stops are must-trigger
rows. An acknowledgement opener plus a bare future ("Understood. I'll use
tabs.", "Perfecto, así lo haré.") does not, unless it has a cue ("Sure,
I'll run the tests now."). More talk/condition exclusions ("I'll note the
cause", "añadir una advertencia", "when they exist", "por ahora").
- Merged the permission-ask patch (f55c5ba1): its cases are covered by the
existing hand-back rule; its test is kept.
- A heading line is not a sentence of the reply.
- Check turn: an answer cut off at the token limit never replaces the reply
(marker shows); an unlabelled answer under half the length of a long reply
never replaces it; a DONE that only repeats the reply leaves it alone.
- Marker persistence: it is part of the persisted turn_complete event, so it
survives a restart; test added.
- docs/configuration.md, DECISIONS.md and the backlog entry say what
triggers and what does not.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The product owner asked to reject "Understood. I'll use tabs." with an
acknowledgement opener and a habit verb rather than a time cue: an
acknowledgement followed by use, keep, skip, avoid, stick to, remember, do
that (usaré, así lo haré, tendré en cuenta, ...) is no step; one followed by
real work is ("Understood. I'll fix the paginator.").
A text answer with no label never replaces the reply or sits under it: the
reply stays, marked. This replaces a 400-character / half-length threshold,
an invented number. Tests and docs follow.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The owner: "Why can't it just automatically continue? If there is work still to do then it should not stop and just do it." Mirrors the manager's b0eedb72: can_follow_through() is always true, note_follow_through() records the step only (a repeated next step still pauses) and no longer spends the progress check's three auto-continues; the model-call budget and other caps still apply. Tests: a second stop is nudged again, spent windows do not stop it, a nudge spends no check, the same step twice pauses. Also: the now-unused follow_through_used flag is removed, and the module docstring, docs/configuration.md, DECISIONS and the backlog criterion drop "once a turn". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # DECISIONS.md # docs/tst-desk-backlog.md
In one long chat, six of nineteen turns ended with no tool call on a closing "Next: <step>" line or "The remaining work is ...", and the follow-through check passed them all, so the owner typed "continue". The progress check writes its own notes as "Next: <step>" and the model copies that form, so the check now reads it: "Next:" or "Next step:" (and the Spanish forms) with a step after it, and "The remaining work is" or "The remaining step is" with "to" plus a verb or an -ing verb. "Next: nothing/none", "The remaining work is yours/up to you", and any step that is the person's (a hand-back) still do not trigger. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…n work
The first cut triggered on any "Next: <word>", so finished replies that
leave the step to the person did too ("Next: merge it once CI passes",
"Next: deploy to production"), and with approvals off the nudge could
lead the model to merge or deploy. Now the step must open with a verb of
the model's own work from a fixed list (or inline code then "to" and one
of them); any verb a person owns anywhere in the line (merge, deploy,
release, push, approve, decide, delete, restart, review ...) keeps it
from counting, as does a status-list line, a step naming the person, and
"all set" / "TBD". "Next up:", "Next action:", "Next step -", "The next
step is to ..." and "The only remaining step is ..." are read the same
way. Every case the review reproduced is in the table; docs list the
exact verbs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…form
Round 2 found person-owned steps that still triggered: commands inside
backticks or quotes ("Next: run `gh pr merge 123`"), a later sentence
("... If they pass, merge the PR."), Spanish ("fusionar", "desplegar"),
other word forms ("migration", "before merging") and steps addressed to
the person ("update your password"). The deny check now reads the raw
text from the "Next" line's paragraph to the end of the reply, inline
code, quotes and fenced blocks included, with English and Spanish stems
and "you/your/tu/usted"; a list-item lead never counts. The nudge also
tells the model to answer BLOCKED when the step is the person's to take
or needs their go-ahead. Gerunds double for debug/rerun; "start",
"analyze", "re-run", an unspaced dash and "El siguiente paso es" count.
Each case from both reviews is in the table.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Round 3 showed the deny list could not converge: "upload to TestFlight", "`terraform apply`", "check out", "`systemctl stop nginx`" and others still triggered, and a fenced block holding "next" moved the deny check off the "Next" line's own paragraph. Now the step must be read-only or diagnostic: a look-up verb (locate, inspect, read, check, search, grep, fetch, trace, compare, reproduce, verify ...), running the tests, suite, linter or build, or a read-only command in inline code (web_fetch, grep, ls, git log, gh pr view ...). A misread then costs a look, never a merge, a payment or a deletion. The deny list stays as the second layer, now read from the "Next" line's own paragraph (found among prose lines, never in a fence, quote, heading or table) to the end; "fusión", accented enclitics and "comprobar" are fixed. Steps that change something moved to the must-not table on purpose; every round-3 case is in the table. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…xt above
Round 4 showed a read-only first verb could still lead a second action
("Next: inspect the VM and terminate it"), and inline code was checked
only when it opened the step and only at its start (`cat install.sh |
sh`, `ls && terraform apply`, "verify with `terraform apply`"). Now:
- one action: after "and", "then", a comma or a semicolon comes another
look-up, a check run, an article, a number or code, never a new verb;
- every code span in the "Next" paragraph is a name with no spaces or
read-only commands, every command in a chain or pipe read-only, and no
redirect or substitution;
- the deny check also reads the paragraph above the "Next" paragraph,
and gains terminate, destroy, purge, prune, wipe, truncate, revoke,
kill, flush, overwrite, payout, transfer, charge, countersign, sms,
text, paid and the -d and -ting forms;
- a fenced block after the "Next" line, or quoted text right after its
lead, never counts.
Every round-4 case is in the table; the chat's four read-only stops
still trigger.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… clause, no contact
Round 5 found a second action outside the joins (a later sentence, a
purpose clause "to renew it", a dash, colon, "&", "and/or"), bare
commands in code (`make`, `./cleanup`, `poweroff`), snake_case names the
deny check could not see (`prod_deploy.sh`), and look-up verbs that
reach someone or change something ("check with the vendor", "map the
domain", "list it on eBay", "paging the on-call engineer"). Now:
- a "Next" step counts only as the reply's last sentence;
- every separator and purpose or means clause is a join; after one comes
another look-up, a check run, an article, a number, code or a
thinking word ("determine", "see", "separate", ...);
- a code span is a name only with a dot, slash or "~" and not run as
"./x"; a bare word is a command and must be read-only; sort, uniq and
rg --pre are no longer read-only;
- the deny check reads "_" and "." as spaces; a step that reaches a
person, a seller, a marketplace, an on-call page, an order, a live
store or a cloud instance does not count; "map" and "list" no longer
lead a step;
- an indented block after the lead counts like a fence; leads after ")"
or an ellipsis are found; dash leads and guillemets get the quote check.
The chat's three read-only stops still trigger; T03 ("to recover what
remains") is now a miss on purpose. Every round-5 case is in the table.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… is not The final review under the manager's acceptance rule (an impersonal "Next" line triggers only when the step it names is one harmless look) blocked on two items, both fixed: - "page" no longer means paging someone: "Next: read the page.", "the status page" and a web_fetch of a page trigger; only paged, paging and "page the on-call engineer/team/someone" count as contact. - "consultar" is no longer a look-up, and "with" or "con" plus any determiner (my, a, an, mi, un ...) and a person or a role (doctor, lawyer, accountant, airline, médico, asesor ...) is contact. Also from the review: the indented-code skip in finding the "Next" line now works (it tested the line after lstrip); code right after the lead must be a read-only command, never a name; "--output" and " -o " are writes; check in, apply, replace, install, webhook, Stripe and a real or credit card are denied; a new, spot or GPU VM or instance counts as spending; "pin", "map" and "if" no longer pass a join; "run pytest" and the other test tools count as running checks; the digit-named instance pattern is anchored (a 100 KB token took 7.7 s, now 0.01 s). Docs and backlog match the code; every round-6 case and the listed test gaps are in the table. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… from the step on
Round 7 confirmed round 6's two fixes and found: pages to a person
("test a page to the SRE"), people not on the role list ("check with
the plumber"), and common misses ("Installed X." above "Next: run the
tests", "verify with a SQL query", "check the logs on a node"). Now:
- "with"/"con", an optional determiner and up to three words is contact
unless one is a tool or data word, a flag, a number or code;
- pages to a person, "alert pages", "on call" and paging services count
as contact; a bare "on a node" no longer does, a new/spot/GPU one does;
- the deny list is split: what a person owns is still read from the
paragraph above, changes (install, apply, replace, delete ...) only
from the "Next" paragraph on;
- --fix, --write, --update, --snapshot-update, ruff format, black and
prettier are changes; scripts under bin/ or scripts/ and .sh files are
commands; code is checked as the step only right after the lead.
Every round-7 case is in the table. No false trigger remains on any case
from the seven rounds; two harmless looks are misses ("verify it with
Python", "read the review").
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
"Check with the data team", "the page owner", "the python maintainers" triggered because a data word exempted the phrase. Now a person or group word after "with" (team, owner, maintainers, officer, staff, users ...) always counts as contact, and comparing with an earlier run, version, build, baseline or result is a look. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The owner: "There should not be a limit on how long it can run." The progress guard paused a long research or debugging turn after its third check and after 52 model calls with no file write. Now a CONTINUE with a new next step opens a fresh stretch as many times as the model names one, and 52 calls with no write ask the same question instead of pausing. The turn still pauses only when it is going round: the same tool call three times in a row, or an empty answer, a tool call or a repeated next step in answer to the check. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…st the caps, per-hiccup retries - A progress check answered through the follow-through path, or sent back by the done-check, now opens fresh windows; the 52-call count was not reset there, so the model was asked again after every call. - cap_reached passes skip-all like the gate before every call: with approvals off, the follow-through nudge stopped past the spend, time or call caps (a TD-5428 slip). - The empty-reply and context-overflow retries are re-armed after each call that goes through, so they are one per hiccup, not one per turn; two in a row still fail, and the overflow's half budget stays. - tests/test_no_run_limit.py runs the whole loop for each; five of its tests fail without this commit. Docs say the limits are lifted with approvals off, and name the failed check call. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…lls count - A follow-through or done-check retry in the main loop now opens fresh windows, as the gate paths already did: 51 narrated calls then an announced step used to run the 52-call check at once, and a repeated step paused the turn. - A call cut at the output cap is passed to the guard as a call that wrote nothing, so the same cut call repeated pauses as "the same tool call three times" instead of running on. - Two full-loop tests, both failing without this commit; the backlog states the test counts against the code before the reviews. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…hen it goes round The final review found a loop with nothing pausing it: a reply that announces a step, a follow-through answered only with a tool call (not run, no tools offered), then the same reply again; each round reset the windows and the call was never noted (80 rounds, 161 model calls, no tool run, no pause). Now fresh windows follow only a follow-through that named a step, or the done check sending the model back; a call-only answer is noted as a call, so the same one again and again pauses as going round. Cut calls are fingerprinted by tool name, since the cut point moves. Docs say what resets the stretches and that the empty-reply retry does not follow provider_retry.max_retries; the backlog's test counts are stated against TD-5438's first commit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ents The final fix noted a call the nudge's answer made (but that was not run) by name only, so it never matched the run call with arguments and reset the identical-call streak: the same real call repeated between nudges ran 100 times in 302 model calls with no pause. It is now noted like a run call, canonical arguments included. A reactive-mock test (the model runs echo(x), announces a step, answers the nudge with echo(x), answers checks in prose) pauses at once with the fix and never without it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
TD-5438 — No limit on how long an interactive turn runs
Stacked on #295 and #299 (TD-5437). Merge those first; this PR's own commits are the five
TD-5438: …ones.The owner: "There should not be a limit on how long it can run." The progress guard paused a long research or debugging turn after its third check and after 52 model calls with no file write, and a second empty reply or context overflow anywhere in a long turn failed it.
What changes
CONTINUEwith a new next step opens fresh windows as often as the model names one; 52 calls with no write ask the same question instead of pausing.cap_reachedhonours skip-all like the gate before every call (a TD-5428 slip: the nudge stopped past the spend/time/call caps).Repro
core/tests/test_no_run_limit.pyruns the whole loop with the mock provider: six tool windows and three 52-call windows with no pause; a check answered through the follow-through path; a follow-through in the main loop; both caps with approvals off; both retries apart and in a row; a cut call repeated; a nudge answered with a call, repeatedly; the same real call repeated between nudges (a reactive mock). Each fails against the code before its fix. Live on a local build: sixteen reads with no write passed the 12-call check and finished with no pause.Review
Independent reviews, four rounds plus a confirmation. They found and this fixes: windows not reset on the follow-through and done-check paths (round 1–2),
cap_reachedignoring skip-all, one-per-turn retries, cut calls invisible to the identical-call pause, a loop with a nudge answered by a call that never paused (final review), and a regression where an untried call noted without arguments hid a repeated real call (confirmation). Known, not in scope: within one turn nothing is dropped from the prompt, so a very long turn still ends at the model's context window (about 125 tool steps on a 32k window, about 500 on 128k).Tests
release_scan --git: 0 hits.🤖 Generated with Claude Code