Repository navigation
test(qa): prove overflow compaction retry and pruning - #119033
Conversation
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed August 3, 2026, 11:24 PM ET / August 4, 2026, 03:24 UTC. ClawSweeper reviewWhat this changesThe PR adds a QA Lab gateway scenario and mock-provider assertions proving one overflow compaction, compacted retry, history pruning, and exactly-once mutation behavior. Merge readinessKeep open for human review. The OpenClaw QA path is well covered and no actionable patch defect was found, but the early Codex skip depends on a native-runtime claim that could not receive the repository-required direct Codex source check; the maintainer-authored, protected PR should not be auto-closed. Priority: P3 Review scores
Verification
How this fits togetherQA Lab runs an isolated gateway and agent session against a mock provider, then inspects provider requests, stored session state, and compaction checkpoints. The scenario exercises OpenClaw’s overflow recovery path and reports parity results for OpenClaw and Codex runtimes. flowchart LR
Transcript[Seeded session transcript] --> Gateway[QA gateway]
Gateway --> Provider[Mock provider]
Provider --> Overflow[One coded overflow]
Overflow --> Recovery[OpenClaw compaction recovery]
Recovery --> Retry[Compacted retry]
Retry --> Evidence[Requests, transcript, checkpoint assertions]
Decision needed
Why: The repository requires direct sibling Codex inspection for this dependency-specific claim, and that source was unavailable to this review. Before merge
Agent review detailsSecurityNone. PR surfaceSource +158, Tests +489, Other +130. Total +777 across 9 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Verify the Codex native compaction contract from the required sibling source; retain the explicit early skip only if that contract confirms this provider-error scenario cannot exercise native threshold compaction. Do we have a high-confidence way to reproduce the issue? Not applicable as a user-bug reproduction: this PR addresses a QA coverage gap, and its supplied exact-head run reports the intended OpenClaw boundary scenario. Is this the best way to solve the issue? Unclear for the cross-runtime claim: the OpenClaw test boundary is the right layer, but the Codex exclusion cannot be called the best solution until its native contract is directly checked. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 12beeb7b2947. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Maintainer disposition for the ClawSweeper decision, before-merge items, and rank-up move: Verified current
Verdict: the scenario's single coded provider overflow cannot exercise Codex native threshold compaction and same-run mutation recovery. A truthful Codex proof needs a separate multi-turn/token-usage scenario. The existing early Decision accepted; merge-risk check, maintainer validation, and the Rank-up move are resolved. |
|
Merged via squash.
|
* origin/main: fix: preserve live updater failure diagnostics (#119096) fix: recover new-session models through Gateway startup (#119120) test(qa): cover instruction profile artifacts (#119078) fix(telegram): record automatic delivery message ids test(qa): cover memory promotion safety (#119093) test(qa): prove overflow compaction pruning (#119033) fix(tool-search): preserve deferred MCP failures (#118363)
* 'main' of https://github.com/openclaw/openclaw: test(qa): cover sandboxed exec behavior (#119053) test(qa): prove shared-channel memory recall (#119111) fix(telegram): keep request deadlines through response bodies test(qa): cover gateway plugin approvals (#119128) fix(ai): keep OpenAI tool call id truncation UTF-16 safe (#110471) fix: preserve live updater failure diagnostics (#119096) fix: recover new-session models through Gateway startup (#119120) test(qa): cover instruction profile artifacts (#119078) fix(telegram): record automatic delivery message ids test(qa): cover memory promotion safety (#119093) test(qa): prove overflow compaction pruning (#119033) fix(tool-search): preserve deferred MCP failures (#118363) fix(macos): keep setup activation within app checks test(setup): type provider kind fixture fix(setup): complete prepared model activation fix(protocol): regenerate Swift wizard models fix(ollama): activate the model selected during setup fix(setup): preserve the prepared model handoff
* origin/main: fix: preserve live updater failure diagnostics (openclaw#119096) fix: recover new-session models through Gateway startup (openclaw#119120) test(qa): cover instruction profile artifacts (openclaw#119078) fix(telegram): record automatic delivery message ids test(qa): cover memory promotion safety (openclaw#119093) test(qa): prove overflow compaction pruning (openclaw#119033) fix(tool-search): preserve deferred MCP failures (openclaw#118363)
* 'main' of https://github.com/openclaw/openclaw: test(qa): cover sandboxed exec behavior (openclaw#119053) test(qa): prove shared-channel memory recall (openclaw#119111) fix(telegram): keep request deadlines through response bodies test(qa): cover gateway plugin approvals (openclaw#119128) fix(ai): keep OpenAI tool call id truncation UTF-16 safe (openclaw#110471) fix: preserve live updater failure diagnostics (openclaw#119096) fix: recover new-session models through Gateway startup (openclaw#119120) test(qa): cover instruction profile artifacts (openclaw#119078) fix(telegram): record automatic delivery message ids test(qa): cover memory promotion safety (openclaw#119093) test(qa): prove overflow compaction pruning (openclaw#119033) fix(tool-search): preserve deferred MCP failures (openclaw#118363) fix(macos): keep setup activation within app checks test(setup): type provider kind fixture fix(setup): complete prepared model activation fix(protocol): regenerate Swift wizard models fix(ollama): activate the model selected during setup fix(setup): preserve the prepared model handoff
What Problem This Solves
The existing compaction-retry QA scenario did not prove that one coded provider overflow causes exactly one OpenClaw compaction and retry, preserves durable current context, prunes older history, and avoids replaying a mutating tool. Its paired Codex cell could also look successful without exercising Codex native compaction.
Why This Change Was Made
This strengthens the mock provider contract and scenario evidence around request kind, coded overflow outcome, raw request size, retry ordering, transcript checkpoints, one successful write, one causal continuation, and exact pruning boundaries. The Codex cell now exits before gateway or provider work with an explicit known-harness-gap because provider-error recovery does not invoke Codex native token-threshold compaction.
User Impact
No production runtime behavior changes. Maintainers gain deterministic regression coverage for overflow compaction retry safety and pruning, without overstating cross-runtime parity.
Evidence
dc41d697799007dd907a8054f5b4d82f00a3dce1write, exact final textProtocol note: replay unsafe after write.,totalTokens=168session-memory.compactionsession-memory.compaction-retry-policysession-memory.pruninggit diff --checkand privacy scan: cleanCodex contract checked directly at
openai/codex@bb1af235ea2822d7a40f75ef52e4d6a2cde84da2:codex-rs/codex-api/src/sse/responses.rs:625-627codex-rs/core/src/compact.rs:240-385codex-rs/core/src/compact.rs:525-547codex-rs/core/src/compact.rs:630-654codex-rs/core/src/compact_remote_v2.rs:201-321codex-rs/core/src/compact_remote_v2.rs:330-378codex-rs/core/src/compact_remote_v2_attempt.rs:30-134codex-rs/core/src/session/turn.rs:330-545codex-rs/core/src/session/turn.rs:983-1010codex-rs/core/src/session/turn.rs:1369-1373AI-assisted
I understand the changed QA behavior and proof boundary