Repository navigation
Conversation
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.
Fixes two compaction-safeguard quality-guard failure modes (dogfood tickets openclaw#721 + openclaw#722), observed 2026-08-23 on a ~413k-token session:
Compaction safeguard finalized summary failed quality checks.-> cancel, leaving the session permanently uncompactionable at 100% context.1. Corrective feedback was truncated at 4000 chars
On audit failure the reasons string (incl.
missing_identifiers:<full list>, up to 12 extracted identifiers) was fed back viawrapUntrustedInstructionBlock, which hard-caps at 4000 chars. Identifier-dense sessions got an incomplete defect list; retries failed the same audit; run cancelled.2. No fallback on final failure
Final-attempt audit failure now falls back to
buildStructuredFallbackSummary(re-distilled from the previous summary) and proceeds with a degradedproducerLossesmarker + warn log, instead ofcancel: true. The genuinely unrecoverable path (LLM call throws on retry) still cancels.Tests