Skip to content

session: the wall ends a run whose work is still out - #627

Merged
AbirAbbas merged 4 commits into
devfrom
fix/614-a-wall-ends-a-run-with-a-task-out
Sep 8, 2026
Merged

AbirAbbas merged 4 commits into
devfrom
fix/614-a-wall-ends-a-run-with-a-task-out

Conversation

@AbirAbbas

@AbirAbbas AbirAbbas commented Sep 4, 2026 •

Copy link
Copy Markdown
Collaborator

An unattended session's wall now has an independent timer, so outstanding task work is stopped even after the main turn becomes idle. It uses the existing budget ending, keeps completed files and task branches, emits one standing-lane notice, and suppresses autonomous wake turns after the wall. Tasks inherit the smaller remaining interval, subject to the existing task setup allowance floor.

Refreshed against current dev. The final focused wall/budget/manual set passes (session 10.323s, manual 0.728s). Ten repetitions of the mixed wall/control cases also passed. One initial speaking-turn test timed out waiting for task settlement under concurrent suite load; the immediate three repeats and subsequent mixed/final runs passed, but no root cause was established. This is reported as unresolved test reliability evidence, not a known flake.

No new real-model canary was run. Closes #614 in intended behavior; held for secondary review because the initial failure remains unexplained and the branch was refreshed.

AbirAbbas and others added 3 commits September 4, 2026 10:06
The only reader of the wall was the end of a turn, so a session that
handed its work to a task and went idle never asked whether its hours
were up. Three canary cells sat at `1 running` until the rig killed them
at 902 seconds inside an 840-second wall — no line, no row, no ending.

A steward with a wall now arms one reader off its own clock. Past the
wall, with work still moving and no turn speaking, the run ends through
the budget's own stopSpent: every unsettled node is stopped the way a
person's stop stops one, so its row settles and its branch and working
copy are kept; the ending is journaled and said on the standing lane
without a model call. A session with nothing out ends exactly where it
did — the reader is the floor, not a second policy — and a turn that is
speaking reaches its own ending rather than being sealed from outside.

Past the wall the session starts no turn nobody asked for and the graph
starts nothing more, and a task begun under a wall gets what is left of
it as its checkpoint interval, floored at the allowance a task needs to
be opened and checked.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
The budget section said four things change with a budget; the fifth is
that the hours end the run while the conversation is idle as well as at
the end of a reply, and what becomes of a task that was still running
when they ran out. The ceiling's own bullet said nothing is killed —
true of the money ceiling, and no longer true of the hours — so it now
tells the two apart and quotes both lines a person can read on screen.

And the task page's "one hour per checkpoint" says what a task started
under `--max-hours` actually gets: what is left of the run's wall, with
the setup-and-check allowance as its floor.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Fable 5.1 <[email protected]>
@AbirAbbas
AbirAbbas merged commit b7b3137 into dev Sep 8, 2026
3 checks passed
@AbirAbbas
AbirAbbas deleted the fix/614-a-wall-ends-a-run-with-a-task-out branch September 8, 2026 14:08
@santoshkumarradha santoshkumarradha added the area:session The engine — turns, tasks, the toolbelt, checkpoints label Oct 3, 2026
@santoshkumarradha santoshkumarradha added this to the Reliable agent milestone Oct 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:session The engine — turns, tasks, the toolbelt, checkpoints

Projects

None yet

Development

Successfully merging this pull request may close these issues.

session: a wall with a task out never ends the run, because the only reader of the clock is the end of a turn

2 participants