Skip to content

test(matrix): isolate released account repair proof - #163183

Merged
RomneyDa merged 1 commit into
release/2026.9.8from
fix/release-2026.9.8-matrix-doctor-drain
Oct 2, 2026
Merged

RomneyDa merged 1 commit into
release/2026.9.8from
fix/release-2026.9.8-matrix-doctor-drain

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Oct 2, 2026

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes: the Matrix released-account Doctor migration test spends 96–120 seconds booting the entire CLI and times out in the diagnostics drain before it reaches the migration proof.

User Impact

User impact: release validation still verifies the shipped Matrix account-state upgrade, archive exclusion, stale-writer rejection, row preservation, and repaired-store reopen behavior without a redundant full CLI boot.

Why This Change Was Made

Core Doctor tests already own CLI dispatch and plugin-contract loading. This suite now exercises the registered Matrix migration at its plugin-owned boundary, keeping the released SQLite fixture and all migration invariants local to Matrix.

Evidence

  • Source failure: Full Release Validation run 36926596622.
  • pnpm test extensions/matrix/doctor-contract-api.account-state.test.ts --maxWorkers=1: 1/1 passed in 16.97s; migration body completed in 1.34s.
  • The target test passed 20 repeated executions at roughly 1.4–1.7s each.
  • Matrix Doctor contract declarations: 2/2 passed.
  • Changed-scope checks and git diff --check passed except for the repository's pre-existing 11 expired plugin-boundary compatibility records.
  • Fresh AutoReview had no accepted P0/P1 finding; a request to retain CLI-level duplication was rejected because core owns that boundary and the declaration tests prove Matrix registration.

The additional full CLI supporting run was stopped during its unrelated 11-stage build; the existing core dispatch and focused contract proofs cover that boundary.

@clawsweeper

clawsweeper Bot commented Oct 2, 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 channel: matrix Channel integration: matrix size: M labels Oct 2, 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 Oct 2, 2026
@clawsweeper

clawsweeper Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge. Reviewed October 1, 2026, 10:46 PM ET / October 2, 2026, 02:46 UTC.

ClawSweeper review

What this changes

The PR replaces a full Doctor CLI subprocess in the Matrix upgrade test with direct calls to the registered plugin migration while retaining the released SQLite fixture and persistence checks.

Merge readiness

⛔ Needs changes before merge - 1 item remains

Keep open: this focused test improvement remains useful, preserves the migration invariants, and has no identified blocking defect. The author is a repository member, so automatic closure is also excluded.

Priority: P2
Reviewed head: d22c35b3ac00507eb382ad791a74746771b4dd20

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused coverage-preserving simplification with reported timing evidence and no identified correctness defect.
Proof confidence 🌊 off-meta tidepool Not applicable: This member-authored test-only PR is exempt from contributor runtime proof; its reported focused execution covers the real Matrix migration and released SQLite fixture, while this reviewer did not run it. No stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This member-authored test-only PR is exempt from contributor runtime proof; its reported focused execution covers the real Matrix migration and released SQLite fixture, while this reviewer did not run it. No stored-data contract changes.
Evidence reviewed 7 items Pinned introduced change: The introduced delta changes only the Matrix account-state test. It removes the CLI subprocess and loader stubs, selects the exported migration by its registered identity, and retains fixture hashes, stale-schema rejection, row preservation, archive bytes, and write/reopen assertions.
Production migration boundary: The real account-schema migration scans Matrix account layouts, detects pending schema work, and invokes the shared schema repair owner. It uses the supplied account state directory rather than the synthetic keyed-store context.
Remaining registration and loading coverage: The Matrix manifest declares matrix-account-sqlite-schema. Core declaration tests compare every declared migration identity and phase against its real artifact; separate contract loading tests exercise discovery and migration execution.
Findings None None.
Security None None.

How this fits together

Doctor loads plugin migration contracts to repair older OpenClaw state. Matrix owns its account databases; this test checks that repair preserves account data and lets the sync store resume writing.

flowchart TD
  A[Released SQLite fixture] --> B[Matrix migration detection]
  B --> C[Active account database]
  B --> D[Excluded archive]
  C --> E[Schema repair]
  E --> F[Preserved account rows]
  F --> G[Sync store write and reopen]
Loading

Before merge

  • Complete next step (P2) - Mark the draft ready for review when the author intends it to land.
Agent review details

Security

None.

PR surface

Tests -85. Total -85 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 128 213 -85
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 128 213 -85

Review metrics

Metric Value Why it matters
Reported test runtime 1.34-second migration body; 16.97-second focused run The PR reports materially cheaper upgrade coverage after removing the 96–120-second CLI startup path.

Technical review

Best possible solution:

Keep released-data repair coverage at the Matrix migration boundary, with Doctor dispatch and contract loading covered by their core owners.

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

No independently executed reproduction was established in this read-only review; the captured body identifies the failing release run, and source confirms the removed full-CLI path.

Is this the best way to solve the issue?

Yes: the registered Matrix migration exercises the retained upgrade invariants without duplicating core Doctor dispatch and loading coverage.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 949f3f52121b.

Labels

Label changes:

  • add P2: This is a bounded release-validation reliability improvement with no production behavior change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This member-authored test-only PR is exempt from contributor runtime proof; its reported focused execution covers the real Matrix migration and released SQLite fixture, while this reviewer did not run it. No stored-data contract changes.

Label justifications:

  • P2: This is a bounded release-validation reliability improvement with no production behavior change.
  • 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: This member-authored test-only PR is exempt from contributor runtime proof; its reported focused execution covers the real Matrix migration and released SQLite fixture, while this reviewer did not run it. No stored-data contract changes.

Evidence

What I checked:

Likely related people:

  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • 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.

@RomneyDa
RomneyDa marked this pull request as ready for review October 2, 2026 02:53
@RomneyDa
RomneyDa merged commit d8f221e into release/2026.9.8 Oct 2, 2026
95 checks passed
@RomneyDa
RomneyDa deleted the fix/release-2026.9.8-matrix-doctor-drain branch October 2, 2026 02:53
roboclaw-bot added a commit that referenced this pull request Oct 3, 2026
(cherry picked from commit d8f221e)

Co-authored-by: Dallin Romney <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 3, 2026
…w#163968)

(cherry picked from commit d8f221e)

Co-authored-by: Dallin Romney <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: matrix Channel integration: matrix 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