Repository navigation
fix(qa): bound Matrix scenario preparation separately - #119996
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 7, 2026, 1:41 AM ET / 05:41 UTC. ClawSweeper reviewWhat this changesThis PR carries a separate 60-second absolute deadline through Matrix QA Gateway configuration, restart recovery, RPC queuing, and account readiness so setup does not consume the scenario behavior timeout. Merge readinessKeep open for maintainer review: the exact head appears to correctly separate Matrix QA preparation from behavior timing, but it adds an optional QA-runner plugin SDK call contract that needs explicit acceptance. Likely related people: RomneyDa (feature-history owner, high confidence) and steipete (recent adjacent QA readiness owner, medium confidence). Priority: P2 Review scores
Verification
How this fits togetherMatrix QA prepares a temporary Gateway configuration and waits for the selected Matrix account before running scenario assertions. Gateway RPC and restart readiness feed that preparation phase, which then hands control to the scenario’s independent behavior timeout. flowchart LR
A[Matrix QA scenario] --> B[Preparation deadline]
B --> C[Gateway config and RPC queue]
C --> D[Restart and revision checks]
D --> E[Matrix account readiness]
E --> F[Scenario behavior checks]
Decision needed
Why: Repository policy treats plugin SDK changes as compatibility-sensitive and requires visible maintainer approval even when the added option is source-compatible. Before merge
Agent review detailsSecurityNone. PR surfaceSource +119, Tests +420. Total +539 across 7 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Accept the additive QA-runner deadline contract only if maintainers want it as the canonical way for adapters to bound preparation, then retain this single deadline path and capture current-head Matrix proof. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main threads the short scenario timeout through Matrix preparation, while the exact head gives that phase its own absolute deadline. The read-only review did not execute a live Matrix scenario. Is this the best way to solve the issue? Yes, provided maintainers accept the SDK contract: a single absolute preparation deadline avoids the old behavior-budget coupling and avoids multiplying per-call budgets across retries and queued RPCs. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a0deb8edae1a. 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
HistoryReview history (4 earlier review cycles)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Exact-head current-main proofHead remained
Remote setup ran Results:
Captured evidence SHA-256:
Prior exact-head live Matrix proof remains green: run Punchcard-Session: cobalt-valley-meadow-mg |
Punchcard-Session: cobalt-valley-meadow-mg
Punchcard-Session: cobalt-valley-meadow-mg
e8565af to
375378e
Compare
|
@clawsweeper re-review Please review exact head |
|
🦞👀 Command router queued. I will update this comment with the next step. |
|
Exact-head evidence is now current in the PR body for @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
…cope * origin/main: fix(qa): bound Matrix scenario preparation separately (#119996) test(msteams): cover occupied webhook port (#120158) fix(agents): clear btw attribution reservations fix(agents): reserve execution attribution atomically fix(agents): reject attribution collisions before capture fix(agents): reject CLI attribution collisions fix(agents): reject private attribution recovery by run id fix(agents): restore runtime check cleanliness fix(agents): refresh rebound run admission time refactor(agents): propagate exact attribution across runtimes fix(release): provide prerelease plugin companions to package QA (#120107) test(macos): stabilize gateway session negotiation tests (#120141) refactor(test): replace logic-bearing vi.mock factories with boundary fakes, batch 2 (#120117) # Conflicts: # src/agents/command/attempt-execution.ts
* fix(qa): bound Matrix scenario preparation separately Punchcard-Session: cobalt-valley-meadow-mg * fix(qa): enforce Matrix preparation deadline Punchcard-Session: cobalt-valley-meadow-mg
What Problem This Solves
Fixes an issue where Matrix allowBots QA scenarios could exhaust their short behavior timeout while the Gateway was still applying scenario configuration and restarting the selected Matrix account.
Related history: #111073, #112065, #114112, #116454, and #119431. Live search found no exact open duplicate; #119920 is adjacent Matrix E2EE readiness work with no touched-file overlap.
Why This Change Was Made
Matrix preparation now owns one absolute deadline of at least 60 seconds. That deadline is carried through prerequisite config/status RPCs, queued and running RPC execution, restart retry recovery, applied-revision checks, and fresh-account readiness.
The scenario context keeps its original behavior timeout. This does not change scenario YAML, retry counts, or Matrix policy. It adds one optional
deadlineMsQA-runner Gateway-call option so adapters can carry an owner-defined preparation deadline through the plugin SDK boundary.User Impact
Maintainers can run the isolated Matrix allowBots scenarios without setup latency consuming the 8-second behavior window, while failed preparation still ends with bounded RPC, revision, or account-readiness diagnostics.
AI-assisted: yes. The implementation and publication path were independently reviewed.
Evidence
Exact head and current merge state
375378ecfeea98888a7b1c850cdd2e3ea5ba0850.f87d8bb72daaf9853b1f6c2e0dda7a1201d365b5.a0deb8edae1a72acc8d70d2b98298fc1de3376c0.c7380e2c2e86a10b9e4ac4bdc52c4e0522f493fb; merge-tree and diff checks are clean.deadlineMscontract as the canonical adapter-owned preparation-budget seam.Exact-head scheduled CI
pull_requestCI run31148893004completed successfully on exact head375378ecfeea98888a7b1c850cdd2e3ea5ba0850.Synthetic merge-tree proof
cbx_45e8dfaffed6(released).9aa24e8f2e822290a4c4f785d48031f93c3f9fbb/375378ecfeea98888a7b1c850cdd2e3ea5ba0850.eee3c27dc76e99532ecac62a9493d1cd421f771f.9aa24e8f2e822290a4c4f785d48031f93c3f9fbb; parent 2:375378ecfeea98888a7b1c850cdd2e3ea5ba0850; tree:d201903b7b72ec6958bc82a2a3d9a22ae588bbcb.pnpm check:max-lines-ratchet --base refs/remotes/origin/ci-max-lines-base: passed.node scripts/run-oxlint.mjs src ui/src packages extensions: passed with 0 warnings and 0 errors.Exact-head Matrix proof
cbx_45e8dfaffed6(released).OPENCLAW_BUILD_PRIVATE_QA=1build passed.matrix-allowbots-mentions-mentioned-roommatrix-allowbots-room-override-enables-account-offmatrix-allowbots-true-unmentioned-open-roommatrix.mention-gatescoverage.Artifacts:
.artifacts/qa-e2e/matrix-allowbots-preparation-375378ec/qa-suite-report.md.artifacts/qa-e2e/matrix-allowbots-preparation-375378ec/qa-suite-summary.json.artifacts/qa-e2e/matrix-allowbots-preparation-375378ec/qa-evidence.json.artifacts/qa-e2e/matrix-allowbots-preparation-375378ec/cleanup-summary.json.artifacts/qa-e2e/matrix-allowbots-preparation-375378ec/post-run-cleanup-verification.json.artifacts/qa-e2e/matrix-allowbots-preparation-375378ec/timing-summary.json.artifacts/qa-e2e/matrix-allowbots-preparation-375378ec/deadline-contract.log.artifacts/qa-e2e/matrix-allowbots-preparation-375378ec/private-qa-build.log.artifacts/qa-e2e/matrix-allowbots-preparation-375378ec/matrix-live.log.artifacts/qa-e2e/matrix-allowbots-preparation-375378ec/artifact-sha256.txtPunchcard-Session: cobalt-valley-meadow-mg