Skip to content

plan-executor: message the dispatcher when it holds something it needs; auto-compact at 450k (7.189.0) - #273

Merged
SSFSKIM merged 1 commit into
mainfrom
plan-executor-checkpoints-compact
Oct 19, 2026
Merged

SSFSKIM merged 1 commit into
mainfrom
plan-executor-checkpoints-compact

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 19, 2026

Copy link
Copy Markdown
Owner

What

  • Checkpoints, need-driven. The plan-executor messages its dispatching session when it holds something that session needs: a decision to check against the design, an input it will need (as early as it can foresee it), or something the dispatcher should know with nothing to act on (a surprise, a slip, an interface fact). A milestone that landed as the spec foresaw needs no message, and no reply means proceed. execspec step 4 replies only with a correction, an answer or news. The Codex port is updated in step.
  • autoCompactWindow: 483000 (was 750000). The engine's threshold is the window less min(max output, 20k) less 13k, so compaction fires at 450k.
  • CLAUDE.md: the repo map's plan-executor entry is updated. The claim that subagent compactions do not receive compact-instructions.md is corrected: they do.

Why (this machine's transcripts)

  • 1,177 checkpoints over 113 plan-executor runs. In a classified sample of 268: 20% carried progress alone (59% of those got no reply), 51% carried decisions to vet (17% corrected), 28% asked for something. 3% of replies were bare confirmations. Each checkpoint costs the dispatcher a turn over a median 246k context.
  • Plan-executor peak context: median 387k; 28 of 113 runs passed 500k. The four auto-compactions observed each rebuilt from the ledger and git log.
  • Of the subagent compaction summaries written since compact-instructions.md landed, 60 of 62 carry its [verified] marks; none of the 84 written before do.

Validation Evidence

  • Micro-test of the agent body, old vs new, on opus with 5 reps per cell. A synthetic SDE run was resumed at a milestone boundary, with simulated tool results.
    • Decision to vet: 3/5 → 4/5 messaged.
    • Surprise: 5/5 → 5/5.
    • Input foreseeable at pre-flight: 1/5 → 3/5.
    • Clean milestone: 0/5 → 0/5. The old text did not produce a progress-only ping in this scenario, so the drop in such pings is shown by the field data alone.
    • Messages asking for confirmation: 6/8 → 0/10.
  • bash tests/issue-tracker/test-protocol-content.sh → all tests passed
  • python3 tests/codex/test-native-agents.py → OK
  • scripts/bump-version.sh 7.189.0 → All declared files are in sync at 7.189.0, audit clear
  • Independent review (reviewer-low, run on opus because sol is at its usage limit): no material findings.

Sminos-Session: doperpowers-82#3a41a102 (doperpowers on macbook)

…s, not at every checkpoint; auto-compact at 450k (7.189.0)

Checkpoints were "at the checkpoints you judge meaningful ... ask it to
confirm". Across 1,177 checkpoints on this machine, 20% carried progress
alone and 59% of those drew no reply, while 3% of replies were bare
confirmations; each one is a turn of the dispatching session over ~250k.
The plan-executor now messages for a decision to check against the
design, an input it will need (as early as it can foresee it), or what
the dispatcher should know with nothing to act on (a surprise, a slip,
an interface fact); a milestone that landed as foreseen needs none, and
no reply means proceed. execspec step 4 replies only with a correction,
an answer or news. Micro-test (opus, 5 reps per cell, old vs new body):
decision messaged 3/5 -> 4/5, surprise 5/5 -> 5/5, an input foreseen at
pre-flight 1/5 -> 3/5, clean milestone 0/5 -> 0/5; messages asking to
confirm 6/8 -> 0/10.

autoCompactWindow 750000 -> 483000: the engine compacts at the window
less min(max output, 20k) and 13k, so at 450k. Median peak was 387k,
28 of 113 runs passed 500k; the four auto-compactions observed rebuilt
from the ledger and git log.

CLAUDE.md: subagent compactions do receive compact-instructions.md
(60 of 62 subagent summaries since it landed carry its marks).

Sminos-Session: doperpowers-82#3a41a102 (doperpowers on macbook)
@SSFSKIM
SSFSKIM merged commit 0176e09 into main Oct 19, 2026
6 checks passed
@SSFSKIM
SSFSKIM deleted the plan-executor-checkpoints-compact branch October 19, 2026 16:13
SSFSKIM added a commit that referenced this pull request Oct 19, 2026
…; bump to 7.189.1

Conflicts only in the version manifests: main's side taken (devcloud 0.4.2
with it), then bump-version.sh to 7.189.1, the next patch above main.

Sminos-Session: smns-erb-71#b4948247 (doperpowers on macbook)
SSFSKIM added a commit that referenced this pull request Oct 19, 2026
…e-roster; bump to 7.189.2

Conflicts resolved:
- cmd_guide: #269's guide_text(session, launch, source, session_title) call,
  with the roster's launch variable and its append around it.
- test-guide.sh: #269's fork and engine-record cases and this branch's
  roster cases both kept, the roster's first.
- The spec's Decisions: #269's, then the roster's, its follow-on.
- CLAUDE.md's hooks/ row: main's line with the roster clause.
- The version manifests: main's side, then bump-version.sh to 7.189.2.

Sminos-Session: smns-erb-71#b4948247 (doperpowers on macbook)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant