Repository navigation
Conversation
…gth cannot skip compaction The pre-prompt compaction steering test used the session's default system prompt, which embeds absolute checkout paths. In a 4k context window, short checkout paths (e.g. ~/oc on a Linux box) leave a small positive headroom that rejects compaction preparation, so the only provider request was foreground inference and requests[0].compacting was false. Longer paths (macOS, GitHub runners) made headroom negative and fell back to the retained-history budget, so the test passed there. Pin a short base system prompt so the test exercises compaction regardless of where the checkout lives.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 29, 2026, 12:18 AM ET / 04:18 UTC. ClawSweeper reviewWhat this changesThe branch gives an agent steering compaction test a fixed session prompt so its result does not depend on checkout path length. Merge readiness⛔ Blocked before merge - 2 items remain Keep open: the checkout-path-dependent test remains on the fetched main revision and release base. The focused repair is still useful for release validation. Priority: P2 Review scores
Verification
How this fits togetherThe embedded agent session turns prompts and conversation history into model requests. This test checks that compaction preserves validation of a queued child result before the foreground request is sent. flowchart LR
A[Checkout path] --> B[Test session prompt]
C[Session history] --> D[Token budget]
B --> D
D --> E{Compact history?}
E --> F[Validate queued child result]
F --> G[Test assertion]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +3. Total +3 across 1 file. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Use the session's exact-prompt API for this fixture, then carry the validated release-branch repair to main. Do we have a high-confidence way to reproduce the issue? Yes. The existing test can be run from a short absolute checkout path; the PR reports repeated baseline failures, and current source shows why prompt length changes the compaction budget. This read-only review did not execute it. Is this the best way to solve the issue? Yes. Setting the session's exact base prompt removes the checkout-dependent input while retaining the test's compaction and source-validation assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against ddd8fc96ee71. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
What Problem This Solves
Fixes: the steering test "keeps source validation until foreground delivery after pre-prompt compaction" fails deterministically when the checkout lives at a short absolute path (found by the local full-suite run of release/2026.9.7 on a Linux Crabbox box, checkout
~/oc).User Impact
No user-visible change. The release candidate's unit suite no longer depends on where the checkout lives.
Why This Change Was Made
The test used the session's default system prompt, which embeds absolute checkout paths. With the test's 4k context window, a short path left a small positive headroom, so compaction preparation was rejected and the only provider request was foreground inference (
compacting: false). Longer paths (macOS, GitHub runners) made headroom negative, which falls back to the retained-history budget, so the test passed there. Pinning a short base system prompt through the supported session API makes the test exercise compaction on every host.Evidence
pnpm test src/agents/embedded-agent-runner/run/attempt-prompt-submit.steering.test.ts, 4/4 tests).Lands on release/2026.9.7 first, then comes back to main.