Repository navigation
docs: safeguard references omit the summary-timeout exception - #167640
Conversation
|
🦞👀 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: needs maintainer review before merge. What this changesClarifies the automatic summary-timeout exception in two compaction references, including its context-retention cost and corrective-attempt behavior. Review scores
ProductKind: Docs · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR remains useful: current main still contains both overly broad preservation guarantees. The clarification matches the merged timeout behavior and introduces no actionable defect. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherCompaction reduces the conversation sent to the model while retaining transcript history. These references explain its safeguards and link operators to the canonical timeout behavior. flowchart TD
A[Operator reads compaction references] --> B[Summary quality safeguards]
B --> C[Automatic summary timeout]
B --> D[Quality failure or corrective HTTP 408]
C --> E[Reduction without a new summary]
D --> F[Original history remains authoritative]
E --> G[Canonical compaction explanation]
Technical reviewBest possible solution: Keep both references consistent with the existing timeout contract and its canonical explanation at https://docs.openclaw.ai/concepts/compaction#auto-compaction. Do we have a high-confidence way to reproduce the issue? Yes: current-main reference text promises preservation more broadly than the production timeout path and canonical compaction explanation support. Is this the best way to solve the issue? Yes: adding the exception at both misleading guarantees and linking the canonical explanation is a narrow, maintainable correction. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a2a9ff2d32c7. Provenance checked
TestingProof path: none. SecurityNone. EvidenceWhat I checked:
PR surfaceDocs 0. Total 0 across 2 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 9, 2026, 2:01 AM ET / 06:01 UTC. |
|
Landed as 50dd07c. Two compaction reference pages still promised that safeguard mode always keeps the original history. They now name the summary-timeout exception from #164246 and link to the canonical explanation. Proof: docs link audit (anchors) and MDX check pass, CI green, ClawSweeper ready on the exact head. |
Main moved again under this branch: 50dd07c (openclaw#167640) added the summary-timeout exception to the qualityGuard and safeguard reference lines this branch rewrites, which conflicted in both docs pages. Both keep the degraded-fallback text and take main's exception sentences. 0cf5e29 (openclaw#167757) merged cleanly: the terminal audit branch now keys on reconciliationMessages, and the shared safeguard test harness moved into compaction-safeguard.test-support.ts. The degraded-fallback suite drops its local harness for that shared one.
…aw#167640) Related: openclaw#164246 ## What Problem This Solves Fixes: two compaction reference pages still promise that safeguard mode always keeps the original history when a summary cannot be produced, but since openclaw#164246 an automatic compaction whose summary times out commits a reduction without a summary. ## User Impact User impact: operators who read the `qualityGuard` setting or the compaction reference now see the summary-timeout exception and its retention cost (older unsummarized facts leave the model context). No behavior change. ## Why This Change Was Made openclaw#164246 updated `docs/concepts/compaction.md` only. Two other pages kept the old guarantee: - `docs/reference/session-management-compaction/compaction.md`: "a corrective generation failure cancels before append and leaves the original transcript authoritative." A corrective attempt that goes silent past the timeout window now commits the reduction. A corrective attempt that gets HTTP 408 still cancels, as openclaw#164246 documents under "Decisions kept". - `docs/gateway/config-agents/heartbeat-compaction-and-streaming.md` (`qualityGuard`): "When no attempt passes, OpenClaw preserves the original history." A timed-out attempt also does not pass, and the reduction commits. Both pages now name the exception and link to the canonical explanation in [Auto-compaction](https://docs.openclaw.ai/concepts/compaction#auto-compaction). ## Evidence - `pnpm run docs:check-links:anchors`: `broken_links=0` (includes the new `#auto-compaction` anchors). - `pnpm run docs:check-mdx`: passed (1340 files). - `git diff --check`: clean. - Wording checked against the openclaw#164246 source: `isSummaryTimeoutFailure` in `src/agents/embedded-agent-runner/compact-reasons.ts` (automatic only, summary watchdog or HTTP 408/504) and the corrective-attempt decision in the openclaw#164246 body. Merge danger: two-way door. Docs only; a revert restores the previous text. Blast radius: documentation readers only. Co-authored-by: Ayaan Zaidi <[email protected]>
Related: #164246
What Problem This Solves
Fixes: two compaction reference pages still promise that safeguard mode always keeps the original history when a summary cannot be produced, but since #164246 an automatic compaction whose summary times out commits a reduction without a summary.
User Impact
User impact: operators who read the
qualityGuardsetting or the compaction reference now see the summary-timeout exception and its retention cost (older unsummarized facts leave the model context). No behavior change.Why This Change Was Made
#164246 updated
docs/concepts/compaction.mdonly. Two other pages kept the old guarantee:docs/reference/session-management-compaction/compaction.md: "a corrective generation failure cancels before append and leaves the original transcript authoritative." A corrective attempt that goes silent past the timeout window now commits the reduction. A corrective attempt that gets HTTP 408 still cancels, as fix(compaction): commit a deterministic reduction after a summary timeout #164246 documents under "Decisions kept".docs/gateway/config-agents/heartbeat-compaction-and-streaming.md(qualityGuard): "When no attempt passes, OpenClaw preserves the original history." A timed-out attempt also does not pass, and the reduction commits.Both pages now name the exception and link to the canonical explanation in Auto-compaction.
Evidence
pnpm run docs:check-links:anchors:broken_links=0(includes the new#auto-compactionanchors).pnpm run docs:check-mdx: passed (1340 files).git diff --check: clean.isSummaryTimeoutFailureinsrc/agents/embedded-agent-runner/compact-reasons.ts(automatic only, summary watchdog or HTTP 408/504) and the corrective-attempt decision in the fix(compaction): commit a deterministic reduction after a summary timeout #164246 body.Merge danger: two-way door. Docs only; a revert restores the previous text. Blast radius: documentation readers only.