Skip to content

test: cover reclamation and child-abort persistence - #149031

Merged
steipete merged 4 commits into
mainfrom
codex/swarm-original-composition-proof-20260915
Sep 17, 2026
Merged

steipete merged 4 commits into
mainfrom
codex/swarm-original-composition-proof-20260915

Conversation

@steipete

@steipete steipete commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Related: #130741

What Problem This Solves

Adds integration coverage for conversation writes and child cancellation while native database reclamation and terminal persistence overlap.

User Impact

No user-visible behavior change. This PR adds regression coverage only.

Why This Change Was Made

The tests exercise existing Gateway and storage owners together, checking durable results, direct-cancellation state after reopening storage, native Worker exit, and lease cleanup.

Evidence

All 29 tests passed across both edited suites and the worker-coordination sibling on the updated mainline base. The full selected check:changed gate also passed. The two reviewed test patches are unchanged, and their existing mutation controls remain valid sensitivity evidence. No live latency or production performance improvement is claimed.

Exercise conversation directory, synthetic send, and durable completion while
native reclamation awaits commit authorization. Cover admitted direct child
cancellation through successful and failed terminal persistence.

Mutation controls verify sensitivity to bypassed writer admission and restart
misclassification; they do not diagnose current main as defective.

Related: #130741
@clawsweeper

clawsweeper Bot commented Sep 15, 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 gateway Gateway runtime size: M maintainer Maintainer-authored PR labels Sep 15, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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 Sep 15, 2026
@clawsweeper

clawsweeper Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 17, 2026, 6:05 AM ET / 10:05 UTC (Revision 5).

ClawSweeper review

What this changes

Adds integration tests for conversation writes during native SQLite cleanup and strengthens child-cancellation tests to verify persisted outcomes.

Merge readiness

✅ Ready for maintainer review

Keep open: the coverage remains useful and distinct from the merged fixes. No actionable defect was found, and the previously reviewed test changes are unchanged.

Priority: P2
Reviewed head: 15ee487505031f54e6e318f0166d561ab8ab1f2e

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Focused integration coverage with meaningful durable-state and cleanup assertions, reported validation, and no actionable findings.
Proof confidence 🌊 off-meta tidepool Not applicable: The supplied maintainer classification exempts this test-only PR from external-contributor live proof; its reported passing suites exercise reclamation and cancellation persistence, without establishing live transport or performance results.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The supplied maintainer classification exempts this test-only PR from external-contributor live proof; its reported passing suites exercise reclamation and cancellation persistence, without establishing live transport or performance results.
Evidence reviewed 8 items Introduced scope and review continuity: The pinned base-to-head delta contains only the two test files. Comparing both files with the previous reviewed head produced no differences; the earlier planner change is outside the current introduced delta.
Native reclamation coverage: Three cases start directory discovery, Gateway send, or durable completion while a real reclamation Worker awaits commit authorization. Assertions cover ordering, stored results, Worker exit, and lease removal; channel transport is synthetic.
Cancellation persistence coverage: The existing success/failure table now acquires real session admission and interrupts it with the direct-abort reason. Successful persistence is checked after database reopening; failed persistence retains the existing recovery assertions.
Findings None None.
Security None None.

How this fits together

Gateway conversation operations and session lifecycle events write to OpenClaw’s SQLite storage. These tests check that background reclamation and child cancellation preserve write ordering, durable results, and resource cleanup.

flowchart TD
  A[Conversation operations] --> C[Database write admission]
  B[Native reclamation worker] --> C
  C --> D[SQLite storage]
  E[Child cancellation] --> F[Lifecycle persistence]
  F --> D
  D --> G[Reopened state and cleanup assertions]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +242. Total +242 across 2 files.

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

Review metrics

None.

Technical review

Best possible solution:

Retain focused integration coverage at the existing storage and lifecycle owners, with broader live-performance acceptance tracked in the linked campaign.

Do we have a high-confidence way to reproduce the issue?

Not applicable: this PR adds coverage for existing behavior and explicitly does not claim a current-main defect; tests were not executed during this read-only review.

Is this the best way to solve the issue?

Yes: extending existing suites with real storage and admission owners covers interactions that isolated writer tests do not, without adding production seams.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 9ee5c26f4080.

Labels

Label justifications:

  • P2: The tests protect meaningful session-persistence and concurrent-write behavior without changing runtime behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The supplied maintainer classification exempts this test-only PR from external-contributor live proof; its reported passing suites exercise reclamation and cancellation persistence, without establishing live transport or performance results.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (4 earlier review cycles)
  • reviewed 2026-09-15T11:29:50.803Z sha 8b53336 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-15T12:15:24.972Z sha 8b53336 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-17T09:17:49.222Z sha bcbf983 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-17T09:41:05.913Z sha 71b6239 :: needs maintainer review before merge. :: none

@steipete
steipete marked this pull request as ready for review September 15, 2026 11:37
Preserve the published two-file regression coverage and its ancestry while refreshing the mainline base for current checks.
@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Sep 17, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the scripts Repository scripts label Sep 17, 2026
@steipete
steipete merged commit d08c80a into main Sep 17, 2026
104 checks passed
@steipete
steipete deleted the codex/swarm-original-composition-proof-20260915 branch September 17, 2026 10:15
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 18, 2026
* test(gateway): cover native reclamation and abort admission

Exercise conversation directory, synthetic send, and durable completion while
native reclamation awaits commit authorization. Cover admitted direct child
cancellation through successful and failed terminal persistence.

Mutation controls verify sensitivity to bypassed writer admission and restart
misclassification; they do not diagnose current main as defective.

Related: openclaw#130741

* fix(ci): preserve shard planning without map spreads
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M 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