desk: Grok long-session runtime — session-id mint, land-loop, caffeinate, wall timeout, abort rows (#5706 PR-C) - #3
Open
chasehuh wants to merge 1 commit into
Conversation
chasehuh
force-pushed
the
desk/5706-c-long-session
branch
from
September 2, 2026 00:31
77ac9ae to
aa41b0b
Compare
chasehuh
force-pushed
the
desk/5706-a-steer-kill
branch
from
September 2, 2026 00:31
17d2b39 to
020a884
Compare
…ate, wall timeout, abort rows (#5706 PR-C) - Fresh grok runs mint --session-id up front: live log is <stamp>-<name>-<uuid8>.log and the registry start row carries the uuid before Grok prints anything. - Grok reads --prompt-file natively (prompt out of ps / tokenmaxxing.log). - --until-landed <PR#> / --until-regex: after each model turn, re-prompt the same session (--resume) until origin/main --grep='(#PR)' hits (or the regex matches the last final); LANDED: yes|no is always appended; bound via --max-cycles (default 12) → exit 4. Land jobs deny monitor/scheduler_* tools unless --allow-monitor (the -p turn ends on a monitor hand-off: #5697). - caffeinate -i for the wrapper lifetime on darwin (idle sleep froze #5697 polls for 48 min); --no-caffeinate to opt out. - --wall-timeout 6h|90m|3600: TERM the session group, abort row. - INT/TERM trap kills the pipeline, the tokenmaxxing supervisor and the raw child (agent-holders), writes an abort row; EXIT trap writes exit rows with exit_code, child_pid, landed, cycles, plus a Grok harvest (context %, compaction count, tool calls, errors, git/PR counts) via agent-registry.py. - Grok/supervisor stderr is teed to <live>.stderr; LATEST-<name>.log per job. - sume-bg-launch passes the new wrapper flags through. Refs sumelabs/sume#5706
chasehuh
force-pushed
the
desk/5706-c-long-session
branch
from
September 2, 2026 00:33
aa41b0b to
c833868
Compare
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.
Implements sumelabs/sume#5706 (desk Grok Build harness at Codex-class long-session resolution). Stacked: A → C → B → D → E; merge in that order (each PR bases on the previous branch). After landing on main:
cd ~/.cstack/src && git stash && git pull && git stash drop && ./install.sh --sume-com ~/sume/sume-com(the desk tree has the same Fable 5.1 edits uncommitted; PR-A carries them as its first commit).What
--session-id(live log<stamp>-<name>-<uuid8>.log, registry start row has the uuid at t=0); native--prompt-file.--until-landed <PR#>/--until-regex: re-prompt the same session untilorigin/main --grep='(#N)'hits;LANDED: yes|noalways appended;--max-cyclesbound → exit 4; land jobs denymonitor,scheduler_*(the-pturn ends on a monitor hand-off: #5697/#5702).caffeinate -ion darwin (48-min sleep gap on #5697);--wall-timeout; INT/TERM trap kills the wrapper's own tree and writes an abort row; EXIT trap writes exit rows with exit code, child pid, landed, cycles + Grok harvest (context %, compaction count, tool calls) viaagent-registry.py; stderr teed to<live>.stderr;LATEST-<name>.log.Tests
Self-test covers minted session id, native prompt-file, land-loop proof on cycle 1 and bound exit 4.
🤖 Generated with Claude Code