Repository navigation
Closed as not planned
Closed as not planned
Feature
Copy link
Description
Refs: #16427
Problem
#16943 bounded the hot file's fixed part and made carried decisions tamper-evident. The owner's Q46 A (decision) left two of #16427's four proposals for later: "The budget printout and the overflow command are not in this slice." Both gaps are still on main at d46efa97:
- A session learns its byte budget only from a
validateFAIL afterfill, althoughnewalready knows the core and carried sizes when it writes the skeleton (session-flow handoff: the hot-file size cap forces lossy trimming of carried decisions on long chains #16427, cause 3). - The written-content FAIL says "move written non-core content into before validating" (save_point.py:1822). No subcommand does that before
validatepasses, becauseamendworks only after emit. In practice the remedy is to hand-edit until the number fits (session-flow handoff: the hot-file size cap forces lossy trimming of carried decisions on long chains #16427, cause 4).
Open question (owner): which of the two to build
- A (recommended): build both in one change.
newprints the bytes left for the written sections (HOT_FILE_MAX_BYTESminus core and carried).fillrefuses an over-budget object before it writes, listing each slot's size.- A new subcommand moves a named written section's overflow into the hop file and leaves one pointer line in the hot file.
- The 24,600-byte cap stays fixed.
- B: build only the budget printout and the
fillrefusal. Keep the FAIL text as it is, but have it name the section to shorten. - C: build neither. Close session-flow handoff: the hot-file size cap forces lossy trimming of carried decisions on long chains #16427's leftover as not planned, since feat(session-flow): carry handoff decisions off disk and fold old direction changes #16943's fold already keeps the fixed part from growing.
Recommendation: A. Basis:
- session-flow handoff: the hot-file size cap forces lossy trimming of carried decisions on long chains #16427's evidence: 11
validateruns and about 25Editcalls to fit one hop-7 handoff. - The FAIL message at save_point.py:1822 names a remedy that no command performs.
fillrefusing before it writes removes the retry loop instead of reporting it afterwards.
Unblocks: the rest of #16427's proposed direction.
Done when (for option A)
-
save_point.py newprints the byte budget left for the written sections, computed from the skeleton's core and carried sizes. A test inplugins/session-flow/scripts/tests/test_save_point.pychecks the printed number againstHOT_FILE_MAX_BYTESminus_size_parts' core plus carried. -
fillrefuses a slots object that would put the hot file overHOT_FILE_MAX_BYTESand writes nothing. The refusal lists each written slot's byte size. A test covers the refusal and an in-budget pass. - A subcommand moves a named written section's overflow into the hop file under that section's heading and leaves one pointer line in the hot file.
validatethen passes, and a test shows it. - The FAIL at save_point.py:1822 names that subcommand.
-
plugins/session-flow/skills/handoff/SKILL.mdandplugins/session-flow/reference/structure.mddescribe the budget line, thefillrefusal and the overflow command. -
HOT_FILE_MAX_BYTESstays 24,600, and the existing carry, fold and over-cap tests still pass.
Metadata
Metadata
Assignees
Labels
No labels
Type
Fields
Work status
needs-human
Priority
medium
Activity
github-actions commentedon Nov 21, 2026
Size: Medium
Complexity: Medium
Uncertainty: Known
Flags: none
Blocked by: none
Blast radius: session-flow
save_point.py(new, fill, a new overflow subcommand, the over-cap FAIL text), its tests, and the handoff SKILL.md and structure.md docs; read by anyone running the handoff skill.Reversible: yes; revert the change. The 24,600-byte cap stays as it is.
Open questions: none
#17735 (comment)
This decision settles the open question (option A, build both), and the done-when items are exact. I found no duplicate among the open issues and no merged fix.
Automated triage. A maintainer reviews it.
melodic-automation-lanes commentedon Nov 21, 2026
The latest triage verdict holds nothing: the issue is at
status: ready.melodic-automation-lanes commentedon Nov 21, 2026
Refinement. A read-only run explored this repository, searched its issues and pull requests, and read the allowed docs to draft what follows. On an issue a listed human filed, it counts as the issue's spec once posted, while unedited; it is still model text, so check it.
Intended outcome: Option A: new prints the written-section byte budget, fill refuses over-budget slots before writing, and a new overflow subcommand moves a section's overflow into the hop file, with the cap unchanged at 24,600.
Related work
Open questions
RECOMMENDED: A Basis: plugins/session-flow/scripts/save_point.py:1822 names a remedy (move written content into the hop file) that no command performs before validate passes; the issue cites 11 validate runs and about 25 Edit calls on one handoff.
RECOMMENDED: Name it overflow, take a section name, and move whole trailing lines until the hot file fits, leaving one pointer line. Basis: judgment
Sources read
To answer, post a comment that starts with this line:
Automated refinement by the lanes App. Answer with a comment whose first line is
**Decision recorded.**.kyle-sexton commentedon Nov 21, 2026
Decision recorded. Owner, 2026-11-21, typed in the owning session (verbatim): "Go with recommendations." This answers Q133, option A.
Q133 (A)
Build both handoff fixes in one change.
newprints the bytes left for the written sections (HOT_FILE_MAX_BYTESminus core and carried).fillrefuses an over-budget slots object before it writes anything, listing each slot's size. A new subcommandoverflowtakes a section name, moves that section's trailing whole lines into the hop file until the hot file fits, and leaves one pointer line (the refinement's recommendation on naming). The 24,600-byte cap stays fixed. Options B and C are not built.Basis
HOT_FILE_MAX_BYTES = 24_600)validateruns and about 25Editcalls to fit one handoffDone when
save_point.py newprints the byte budget left for the written sections, computed from the skeleton's core and carried sizes, and a test inplugins/session-flow/scripts/tests/test_save_point.pychecks the number againstHOT_FILE_MAX_BYTESminus_size_parts' core plus carried.fillrefuses a slots object that would put the hot file overHOT_FILE_MAX_BYTES, writes nothing, and lists each written slot's byte size; a test covers the refusal and an in-budget pass.overflowtakes a section name, moves that section's trailing whole lines into the hop file under the section's heading, and leaves one pointer line in the hot file;validatethen passes, and a test shows it.save_point.pynames theoverflowsubcommand.plugins/session-flow/skills/handoff/SKILL.mdandplugins/session-flow/reference/structure.mddescribe the budget line, thefillrefusal and theoverflowcommand.HOT_FILE_MAX_BYTESis still 24,600, and the existing carry, fold and over-cap tests pass.github-actions commentedon Nov 21, 2026
The triage sweep dispatched intake triage for this issue (dispatch 1; 2 runs that reach intake, or 6 dispatches, hand it to a maintainer).
melodic-automation-lanes commentedon Nov 21, 2026
{"v":1,"actor_id":337595936,"title_sha256":"8a0faea91332fe863d28a45ad6f91c723989c5bd209713978c67e215c5e0a892","body_sha256":"d1659b81a4508e715df3f29d6ac16423ffa123cc78aeda64c6bfb72d0b54e784"}
melodic-automation-lanes commentedon Nov 21, 2026
This records a re-fire of an earlier stop, not a new one. The start gate stopped run 44877078449, the work-resolve-issue run that
agent-readystarted, before any model turn, because the GITHUB_TOKEN budget was under its start-gate share, or the window was projected to have under its start-project share of the header's limit left by the run's expected end (github-token start-gate, start-project and start-run-minutes in rate-limits.json; the run's start-gate notice names which); that run ended at 2026-11-21T06:47:20Z. work-unblock has now removed and addedagent-readyback to start a fresh run. A budget stop is the lanes' load, not a fault in this issue: it never counts toward limits.limit-stops-per-issue or thekill-switchwait.github-actions commentedon Nov 21, 2026
melodic-automation-lanes commentedon Nov 21, 2026
The work-resolve-issue lane stopped partway through this issue and needs a person.
Reason:
intentWhy, in the run's own words:
What the run says it did not do:
reason.Run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44911764424
To retry, set Work status to agent-ready again (clearing the
needs-humanhold).kyle-sexton commentedon Nov 21, 2026
Closed as superseded by the shape-4 handoff, on the owner's choice of option (1) from the lane's intent stop (run 44911764424). The owner was asked in the hub session ~16:4xZ and answered at ~16:5xZ, verbatim: "go w/ recommendations". Shape 4's
newalready prints abudget:line (save_point.py:4618-4631), and itsfillalready fits an over-cap file by moving whole sections behind a pointer (save_point.py:3118-3128). So option A of Q133 would reverse shipped behavior, and it adds something new only on shape 3, whichnewnow writes only with--shape 3.