Skip to content

Stop prompting for commit/dirty state; drop stale excerpts of changed files - #55

Open
jbwinters wants to merge 2 commits into
feat/hot-retention-by-usefrom
feat/checkpoint-token-fixes
Open

jbwinters wants to merge 2 commits into
feat/hot-retention-by-usefrom
feat/checkpoint-token-fixes

Conversation

@jbwinters

Copy link
Copy Markdown
Contributor

Stacked on #52. Follow-up from the headroom pilot's request forensics (onlybots !93, REPORT.md ablation section).

  • Capture contract: no longer asks the agent for the commit and dirty state. In the pilot, that sentence made candidate agents run git rev-parse HEAD/git status (192 rev-parse calls vs 0 for 0.5.12) and cite a SHA in 70/72 continuation finals. Crosshead records the tree itself in evidence.workspace (Checkpoints record git state and warn on drift (stacked on #50) #51), so the contract now asks for the command and working directory only. This narrows a task 165 deliverable; it relies on Checkpoints record git state and warn on drift (stacked on #50) #51 landing with it.
  • Changed excerpts: all 52 [changed on disk since observed; reread] marks in the pilot were files the agent itself had edited in an earlier session. A changed excerpt is now dropped and the file named once ("Changed on disk since observed (old excerpts omitted; the current files are authoritative)"). [not present here] and [ran at …] marks are unchanged.

Not measured yet: whether this lowers continuation tokens per turn. That needs a new candidate build and a paid rerun (Josh's approval).

Tests: full suite 83 files / 726 tests pass locally (Node 22.23.4, scrubbed env).

🤖 Generated with Claude Code

…of files changed on disk

The pilot's saved requests showed the capture contract's request for the commit and dirty state made
candidate agents run git rev-parse/status in most sessions (192 rev-parse calls vs 0) and cite a SHA in
70/72 continuation finals. Crosshead already records the tree in evidence.workspace, so the contract now
asks only for the command and working directory.

All 52 '[changed on disk since observed; reread]' marks in the pilot were files the agent itself had
edited in an earlier session. A changed excerpt is now dropped and the file named once, without a
reread instruction.
…e changed files first; no reconcile mark against a dropped version; no header-only block

Without source excerpts nothing captures evidence.workspace, so the contract still asks the agent for the
commit and tree state there.
@jbwinters

Copy link
Copy Markdown
Contributor Author

Review fixes in 77294d3 (fresh Opus review):

  • When source excerpts are off (scoped installs default, agy), nothing records evidence.workspace, so the contract keeps asking for the commit and tree state there.
  • Changed files are named before the excerpts, so a tight budget can't leave one unshown and unnamed.
  • A file whose newer version matches disk is shown without a reconcile mark; the dropped older version isn't mentioned.
  • No header-only evidence block.

Known and unchanged: on the Stop path the recorded tree state is the end-of-turn state, which can postdate a check if the agent committed afterwards (PostToolUse stamps command output at run time when installed).

Full suite: 83 files / 727 tests pass.

@jbwinters

Copy link
Copy Markdown
Contributor Author

Measured (exploratory rerun, onlybots !93 @ ca9cf71; candidate.3 = #50–#52 + #55 vs 0.5.12, 28 instances, Codex/OpenAI):

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