Repository navigation
fix(openclaw): preserve compaction evidence - #6058
Closed
giuliolovisotto wants to merge 3 commits into
Closed
giuliolovisotto wants to merge 3 commits into
giuliolovisotto wants to merge 3 commits into
Conversation
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
giuliolovisotto
marked this pull request as ready for review
November 12, 2026 16:31
giuliolovisotto
force-pushed
the
glovisotto/openclaw-compaction
branch
from
November 12, 2026 16:42
8725c21 to
7d11266
Compare
giuliolovisotto
force-pushed
the
glovisotto/conformance-unsupported-compaction
branch
from
November 12, 2026 16:42
6689064 to
24ed6e6
Compare
giuliolovisotto
force-pushed
the
glovisotto/conformance-unsupported-compaction
branch
from
November 12, 2026 17:02
24ed6e6 to
6a9b89c
Compare
giuliolovisotto
force-pushed
the
glovisotto/openclaw-compaction
branch
from
November 12, 2026 17:02
7d11266 to
86ee7e5
Compare
Signed-off-by: Giulio Lovisotto <[email protected]>
Signed-off-by: Giulio Lovisotto <[email protected]>
Signed-off-by: Giulio Lovisotto <[email protected]>
giuliolovisotto
force-pushed
the
glovisotto/conformance-unsupported-compaction
branch
from
November 13, 2026 10:15
6a9b89c to
19daf3f
Compare
giuliolovisotto
force-pushed
the
glovisotto/openclaw-compaction
branch
from
November 13, 2026 10:15
86ee7e5 to
0e83f1c
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.
OpenClaw's saved compaction event did not identify its helper model call, so the helper could become a policy turn and its usage was omitted from the response. Reconcile session-owned captured calls with the saved summary, and derive the automatic trigger from completed runtime evidence. Ambiguous matches retain an explicit gap.
Add a deterministic compaction schedule: fourteen shell steps create eligible history, a scripted context-overflow error triggers recovery, and the agent summarizes and resumes. Pi and OpenClaw reuse the same overflow-response probe. This exercises overflow recovery rather than claiming to measure a natural context threshold.
The compaction checker now handles recovered HTTP errors without requiring a provider response ID. The existing shared P0 checks enforce complete failed exchanges and preserve unknown token counts, and the P1 scenario also requires those P0 checks to pass; aggregate usage is the measured subtotal with an explicit gap. Successful-response, summary-reuse, ownership and policy-turn requirements remain enforced.
Stacked on #6053. No separate issue: this continues that conformance-scenario stack. Production generation settings are unchanged; reported compaction ownership, policy-turn counts and aggregate usage are corrected when capture is enabled.
Validation on Linux arm64 with OpenClaw 2026.6.11 and Node 22.19.0:
python -m scripts.run_harness_conformance --harness openclaw --gate-tier P1 --timeout 300 --output /tmp/conformance-results/openclaw-all-final: all eight P0 scenarios and the P1 compaction scenario fulfilled, with no issues.python -m pytest responses_api_agents/openclaw_agent/tests scripts/harness_conformance/tests tests/unit_tests/rollouts/harness_capabilities/test_compaction.py -q -o log_cli=false: 782 passed, 11 skipped.pre-commit run --all-files: passed.Follow-up validation after removing the duplicate error comparison:
test_auxiliary_calls_are_required_in_canonical_exchange_comparison, reproduced using the unchanged test from the previous head. That test still expects the removed auxiliary-call mechanism.pre-commit run --all-files: passed.