Repository navigation
Conversation
OpenClaw-Publication: 2133f785-f5ca-4e6c-a7ef-2406a1856db6
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
RomneyDa
marked this pull request as ready for review
November 10, 2026 00:33
RomneyDa
added a commit
to aniruddhaadak80/openclaw
that referenced
this pull request
Nov 10, 2026
Carry the reviewed compaction-only delta from openclaw#196347 onto the original contributor commit. Preserve contributor ancestry without merging unrelated working-branch history. The patch is byte-identical to bd63497..efe7b6d; all affected base files are also identical.
RomneyDa
added a commit
that referenced
this pull request
Nov 10, 2026
…axSummaryChars (#196207) * feat(compaction): make compaction summary char cap configurable via maxSummaryChars Adds agents.defaults.compaction.maxSummaryChars (default 16000, range 1000-200000) so long-context deployments can raise the persisted compaction summary budget instead of truncating two-thirds of compactions. The preserved-turn/split-turn budgets derive from the resolved cap and the foreground token-budget check remains the safety net against overflow. Closes #194408 * fix(compaction): add per-agent limits and foreground-window proof Carry the reviewed compaction-only delta from #196347 onto the original contributor commit. Preserve contributor ancestry without merging unrelated working-branch history. The patch is byte-identical to bd63497..efe7b6d; all affected base files are also identical. * test(compaction): use real settings in shared runner fixture --------- Co-authored-by: Aniruddha Adak <[email protected]> Co-authored-by: Dallin Romney <[email protected]>
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Nov 10, 2026
…axSummaryChars (openclaw#196207) * feat(compaction): make compaction summary char cap configurable via maxSummaryChars Adds agents.defaults.compaction.maxSummaryChars (default 16000, range 1000-200000) so long-context deployments can raise the persisted compaction summary budget instead of truncating two-thirds of compactions. The preserved-turn/split-turn budgets derive from the resolved cap and the foreground token-budget check remains the safety net against overflow. Closes openclaw#194408 * fix(compaction): add per-agent limits and foreground-window proof Carry the reviewed compaction-only delta from openclaw#196347 onto the original contributor commit. Preserve contributor ancestry without merging unrelated working-branch history. The patch is byte-identical to 331af21..efe7b6d; all affected base files are also identical. * test(compaction): use real settings in shared runner fixture --------- Co-authored-by: Aniruddha Adak <[email protected]> Co-authored-by: Dallin Romney <[email protected]>
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.
Closes #194408
Related: #195028, #194719, #196207
What Problem This Solves
Long-context agents still lose generated summary content at the fixed 16,000-character ceiling, even after the summary-priority fix in #195028.
User Impact
Operators can set
agents.defaults.compaction.maxSummaryCharsor override it throughagents.entries.<id>.compaction.maxSummaryChars(1,000–200,000). Omission preserves today's 16,000-character default. Larger summaries increase replay cost; this is a ceiling, not a target or a guarantee that previously lost facts return. No automatic default scaling, state-format change, or provider-native compaction change.Why This Change Was Made
Carry one resolved setting through the existing compaction settings, safeguard sections, token fitting, and persistence owner. Derived section budgets retain the merged summary-priority behavior. Raised limits remain bounded by the foreground request window, including manual RPC compaction with a separately configured larger summarizer and high fixed instruction/tool pressure.
The core cap/fitting helpers are extracted without changing their public exports; existing split-turn formatting and quality-retry helpers move into the existing quality module to satisfy file-size constraints. No new config/runtime manager or cache is introduced.
Evidence
8595de2bc73e6799461a52a85ccd1e895bae12ccpassed archive inventory and import-graph integrity; SHA-256766b30bfed23b2403335b0a05fc01abeddb52983bec7a210e3d7a477820d6252. The publication commitefe7b6dc099c6f9af098c2ed78dec54ead4a22behas an identical source tree. This is runtime/install proof, not release qualification.git diff --checkpass. Fresh independent review and local AutoReview found no remaining P0–P2 issues after repairing both manual-budget findings. A second AutoReview was clean after the helper relocation; affected safeguard/quality tests passed (41 cases), and the final unchanged retry-helper move passed 34/34 safeguard cases plus lint and the line-cap ratchet. Local ClawSweeper could not start because its Git preparation timed out; hosted ClawSweeper acknowledged the PR.published-upgrade-survivor/sqlite-volume, stable[email protected]→ the exact candidate tarball, with 8 synthetic sessions, 5 events per session, and 2 scheduled jobs. The updater returnedok, candidate Doctor/config/plugin/recovery/Gateway checks passed, installed-package identity matched, and the migration assertions verified session records and transcript events. The suite then failed withmain volume legacy session-store archive changed; later assertions, including the remaining scheduled-job proof, did not run. This is not a passing upgrade suite.The 207-line regression allocation covers the new 184-line session boundary suite, 21 schema lines, and 2 Gateway budget-handoff assertions; existing core/safeguard tests are reused.
Upgrade failure investigation
Run
20261110T002138Zcompleted the update in 450 seconds and passed installed-package identity verification. It failed atscripts/e2e/lib/upgrade-survivor/sqlite-volume.mjs:540, which requires exactly one retained legacysessions.jsonarchive.The captured migration manifest records the main store as
classification: imported,reason: verified-index-import, thendisposal.state: disposedat2026-11-10T00:30:24.667Z. The ops store, which includes an intentionally missing-transcript fixture, isclassification: protected,reason: incomplete-index-import, and remains retained. The existing Doctor retirement owner (src/commands/doctor-session-sqlite-retirement.ts:643–665) removes verified recovery originals and records this disposal. Both that owner and the failing fixture are unchanged from the PR base; the archive-presence assertion conflicts with that cleanup behavior. No assertion was weakened, no failure was suppressed, and the suite was not rerun merely for green. Remaining uncertainty: assertions after the archive check were not reached; this run is not full upgrade-survivor qualification.Reproduce the focused boundary proof
The Gateway cases exercise the actual RPC, summarization pipeline, database persistence, and replay; only model responses are synthetic. The two summary-limit/default cases passed together, and the corrected window fixture passed in its targeted rerun.