Skip to content

docs: safeguard references omit the summary-timeout exception - #167640

Merged
obviyus merged 1 commit into
mainfrom
docs/compaction-timeout-guarantee
Oct 9, 2026
Merged

obviyus merged 1 commit into
mainfrom
docs/compaction-timeout-guarantee

Conversation

@obviyus

@obviyus obviyus commented Oct 9, 2026

Copy link
Copy Markdown
Collaborator

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 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

#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 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

Merge danger: two-way door. Docs only; a revert restores the previous text. Blast radius: documentation readers only.

@clawsweeper

clawsweeper Bot commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime size: XS labels Oct 9, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 9, 2026
@clawsweeper

clawsweeper Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Clarifies the automatic summary-timeout exception in two compaction references, including its context-retention cost and corrective-attempt behavior.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A useful, accurate documentation correction supported by source inspection and reported docs validation.
Proof confidence 🐚 platinum hermit (4/6) Every changed file is under docs/; the wording was checked against the production timeout owner and merged design rationale.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Docs · Worth it: Yes · Fix scope: Complete
User problem: Operators reading the safeguard references are told that failed summaries always preserve model context, despite an automatic timeout exception.
Reason: The text corrects a consequential mismatch with existing behavior and explains the retention cost without expanding scope.

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
Reviewed head: a225d31c009bd5cd73ed7737c8b7487c8bd61a25

Before merge

None.

Findings

None.

Agent review details

How this fits together

Compaction 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]
Loading

Technical review

Best 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

  • docs/gateway/config-agents/heartbeat-compaction-and-streaming.md: qualityGuard reference keeps the original intent (29ba80f: The page split preserved existing prose while separating configuration domains; earlier policy introduction could not be established because an older blob was unavailable.)
  • docs/reference/session-management-compaction/compaction.md: safeguard quality audits keeps the original intent (873a52f: The deep-dive split preserved existing content byte-for-byte and organized it by reader job; the clarification reflects the subsequently merged timeout exception.)

Testing

Proof path: none.

Security

None.

Evidence

What I checked:

PR surface

Docs 0. Total 0 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 2 2 2 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 2 2 0

Labels

Label changes:

  • add P3: This is a focused documentation accuracy correction with no runtime or settings change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is a focused documentation accuracy correction with no runtime or settings change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only; repair and merge need explicit maintainer commands such as @clawsweeper autofix or @clawsweeper automerge.

Reviewed October 9, 2026, 2:01 AM ET / 06:01 UTC.

@obviyus
obviyus merged commit 50dd07c into main Oct 9, 2026
73 of 74 checks passed
@obviyus
obviyus deleted the docs/compaction-timeout-guarantee branch October 9, 2026 06:02
@obviyus

obviyus commented Oct 9, 2026

Copy link
Copy Markdown
Collaborator Author

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.

amittell added a commit to amittell/openclaw that referenced this pull request Oct 9, 2026
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.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 10, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation gateway Gateway runtime P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant