Skip to content

fix(qa): reserve Matrix no-reply cleanup budget - #127280

Merged
RomneyDa merged 11 commits into
mainfrom
codex/matrix-qa-29
Aug 29, 2026
Merged

RomneyDa merged 11 commits into
mainfrom
codex/matrix-qa-29

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Aug 21, 2026 •

Copy link
Copy Markdown
Member

Summary

  • remove three scenario-local whole-flow deadlines that undercut the provider-owned live-turn budget
  • remove the Matrix catalog assertion that incorrectly required every flow to declare a whole-flow deadline

Root cause

The three model-driven, multi-phase flows declared 45/60/75-second scenario deadlines. An explicit scenario timeoutMs has two effects: it installs a whole-flow watchdog and it replaces the provider-resolved timeout passed to Matrix preparation.

In live-frontier, openai/gpt-5* owns a 360-second turn budget. The shorter scenario deadlines could abort otherwise healthy isolated Matrix workers before that budget elapsed. Omitting them restores the existing phase-level contract: prepareFlow receives the provider timeout, Matrix waits remain bounded, and the flow runner does not reinterpret the preparation fallback as a whole-flow deadline.

Evidence

Validation

  • node scripts/run-vitest.mjs extensions/qa-lab/src/live-transports/matrix/matrix-scenario-flows.test.ts extensions/qa-lab/src/suite-runtime-flow.test.ts — 2 files, 20 tests passed
  • git diff --check
  • structured Codex autoreview — clean

Scope

Production LOC: +0/-0. Tests: +0/-1. Scenario configuration: +0/-3. No product runtime, retry, Matrix protocol, or transport behavior changed.

@clawsweeper

clawsweeper Bot commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@RomneyDa
RomneyDa force-pushed the codex/matrix-qa-29 branch 4 times, most recently from d7f0778 to 5c444db Compare August 21, 2026 17:16
@clawsweeper clawsweeper Bot added merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 21, 2026
@clawsweeper

clawsweeper Bot commented Aug 21, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 29, 2026, 2:49 AM ET / 06:49 UTC.

ClawSweeper review

What this changes

The PR removes three Matrix QA scenario whole-flow timeouts and adds a catalog regression test confirming that those scenarios leave the timeout unset.

Regression provenance

Possible regression — probable (reviewed change; failure trace). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

No blocking correctness finding: the PR removes the watchdog-triggering overrides while retaining the provider budget for Matrix preparation. It remains open for normal maintainer handling because the exact-head check rollup is still incomplete and the PR carries the protected maintainer label.

Priority: P2
Reviewed head: 133806135b64094e4205d7209bba119bb62a5188

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-consistent QA repair with no blocking finding; merge readiness still depends on completion of exact-head checks.
Proof confidence 🌊 off-meta tidepool Not applicable: The author is a repository member, so the external-contributor proof gate does not apply; the stated focused test evidence is consistent with the directly inspected runner and catalog contracts.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The author is a repository member, so the external-contributor proof gate does not apply; the stated focused test evidence is consistent with the directly inspected runner and catalog contracts.
Evidence reviewed 6 items Introduced change: The verified merge-base-to-head diff removes only the three explicit fixture timeouts and replaces the incompatible universal catalog assertion with coverage for those exact scenarios.
Canonical timeout owner: The runner creates a whole-flow deadline only from execution.timeoutMs, while an absent value passes the provider-resolved turn timeout to transport preparation.
Provider budget contract: The live-frontier provider resolves GPT-5-family turns to at least 360 seconds, which is longer than each removed 45/60/75-second fixture watchdog.
Findings None None.
Security None None.

How this fits together

Matrix QA scenarios are loaded into the QA Lab flow runner, which gives Matrix setup either a scenario timeout or a provider-resolved turn budget. A scenario timeout also creates a watchdog around every flow step, so its presence determines whether setup and later scenario actions are cut short together.

flowchart LR
  A[Matrix scenario YAML] --> B[Scenario catalog]
  B --> C[QA flow runner]
  C --> D[Provider turn budget]
  C --> E[Scenario watchdog]
  D --> F[Matrix flow preparation]
  E --> G[Flow-step cancellation]
  F --> H[Matrix scenario result]
  G --> H
Loading

Before merge

  • Resolve merge risk (P1) - The exact-head GitHub check rollup remains incomplete, so the patch is not yet ready for merge despite having no source-level blocking finding.
  • Complete next step (P2) - No repair lane is needed: the previous fixture-coverage finding is addressed, and the remaining action is normal exact-head CI completion plus maintainer review.
Agent review details

Security

None.

PR surface

Tests +17, Other -3. Total +14 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 18 1 +17
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 3 0 3 -3
Total 4 18 4 +14

Review metrics

Metric Value Why it matters
Production versus test delta production +0/-0; tests +18/-1; QA fixtures +0/-3 The change alters QA coverage and fixture timing only; it adds no product-runtime code.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Merge after the exact-head required checks complete successfully, preserving the runner’s separation between a provider preparation budget and an explicitly configured whole-flow deadline.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Merge after the exact-head required checks complete successfully, preserving the runner’s separation between a provider preparation budget and an explicitly configured whole-flow deadline.

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

Yes, source-reproducible: an explicit fixture timeout creates the watchdog at extensions/qa-lab/src/suite-runtime-flow.ts:351, while omission keeps the provider preparation timeout without installing that deadline. This read-only review did not execute the contributor branch.

Is this the best way to solve the issue?

Yes: removing only the three explicit overrides fixes the owner-boundary conflict without changing the generic runner, provider policy, or Matrix transport behavior.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against b89c80318eac.

Labels

Label justifications:

  • P2: This is a bounded Matrix QA reliability fix without a demonstrated released-runtime outage.
  • 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 author is a repository member, so the external-contributor proof gate does not apply; the stated focused test evidence is consistent with the directly inspected runner and catalog contracts.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Current blame attributes both the runner deadline path and the three pre-change scenario timeout lines to the available main-history boundary. (role: current-main timing-area contributor; confidence: medium; commits: 02a162b8bf2b; files: extensions/qa-lab/src/suite-runtime-flow.ts, qa/scenarios/channels/matrix-e2ee-thread-follow-up.yaml, qa/scenarios/channels/matrix-inbound-edit-no-duplicate-trigger.yaml)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Wait for the exact-head required check rollup to complete green.

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 (13 earlier review cycles; latest 8 shown)
  • reviewed 2026-08-24T23:11:27.479Z sha 2fd3db3 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-24T23:53:25.015Z sha 2fd3db3 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-25T17:46:12.840Z sha 04bdeeb :: needs maintainer review before merge. :: none
  • reviewed 2026-08-26T01:05:09.130Z sha 48deb07 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-26T02:34:09.467Z sha 9542fac :: needs maintainer review before merge. :: none
  • reviewed 2026-08-28T00:18:39.695Z sha 8944114 :: found issues before merge. :: [P2] Restore provider-owned Matrix flow deadlines
  • reviewed 2026-08-28T21:02:55.222Z sha be5e9cc :: found issues before merge. :: [P2] Restore fixture-specific deadline ownership coverage
  • reviewed 2026-08-28T21:35:55.895Z sha bed6270 :: needs maintainer review before merge. :: none

@RomneyDa

RomneyDa commented Aug 24, 2026 •

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Addressed the current feedback at the shared Matrix timing owner: configured no-reply windows now retain a 5-second preparation/cleanup reserve, and the existing resolver regression proves a 15-second override cannot equal a 15-second flow deadline. Diff formatting, git diff --check, deslop, and structured Codex autoreview are clean. Exact-head CI is running on 9366bf34ad303c05a772153c757b5d650dd549e7; the local worktree intentionally has no dependency install and the repository remote wrapper failed its binary sanity preflight.

Exact-head CI passed: https://github.com/openclaw/openclaw/actions/runs/32786680156/job/97622330412

@clawsweeper

clawsweeper Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper

clawsweeper Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@RomneyDa
RomneyDa force-pushed the codex/matrix-qa-29 branch from 9366bf3 to 2fd3db3 Compare August 24, 2026 23:07
@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Rebased onto current main and applied the current review’s canonical-owner correction. The branch now removes only the three provider-level scenario deadlines and retains focused catalog coverage; all Matrix-local no-reply clamps, deadline increases, and superseded tests were removed. git diff --check, diff-scoped deslop, and branch-wide structured Codex autoreview are clean on 2fd3db332a2. Exact-head CI is running.

@clawsweeper

clawsweeper Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added 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. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 24, 2026
@RomneyDa
RomneyDa force-pushed the codex/matrix-qa-29 branch from 2fd3db3 to 8eaa040 Compare August 25, 2026 17:28
@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Removed the deadline-ownership scenario-ID allowlist entirely. Head 8eaa0409291 now records the invariant structurally:

  • flow execution metadata declares deadlineOwner: provider at each affected scenario;
  • the catalog schema rejects combining provider ownership with a scenario timeoutMs;
  • Matrix catalog coverage discovers provider-owned flows from metadata rather than identifiers;
  • the shared flow-owner regression verifies an omitted timeout schedules no lifecycle watchdog.

Pre-fix reproduction: after removing the allowlist while retaining the old universal timeout assertion, matrix-scenario-flows.test.ts failed because timeoutMs was undefined. Post-fix: the focused Matrix catalog + suite runtime run passes 22/22. git diff --check, formatting, diff-scoped deslop, and branch autoreview are clean; independent re-review is running. The broad changed gate passed all guards through runtime-sidecar, then hit unrelated stale shared-install type errors in Google provider, markdown-it, and pi-tui surfaces; exact-head CI is authoritative.

@clawsweeper clawsweeper Bot added merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 28, 2026
@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Addressed the current P2 at the timeout owner boundary on be5e9cc1c11652f2e1088305728c069f4a8c79e8:

  • removed the three explicit whole-flow timeout overrides;
  • removed the Matrix catalog assertion that incorrectly required every flow to declare one;
  • retained the shared runtime regression proving the provider-resolved preparation budget does not become a whole-flow deadline.

Focused QA proof: 2 files / 20 tests passed. git diff --check and structured Codex autoreview are clean. Exact-head CI is running.

@clawsweeper

clawsweeper Bot commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot removed the merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. label Aug 28, 2026
@RomneyDa

Copy link
Copy Markdown
Member Author

Addressed the current ClawSweeper P2 on exact head bed62705b6adde57b1789b6de76b86cee8790807.

The Matrix catalog now pins the exact three provider-budgeted scenarios and asserts their execution definitions have no whole-flow timeoutMs. Restoring the old 75000 timeout reproduced the regression test failure; the repaired fixtures pass 14/14 focused tests. Extension test typecheck, focused oxlint, and git diff --check pass. Structured autoreview is clean (0.97). Production delta remains 0; test delta is +18. Exact-head CI is running.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added 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. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 28, 2026
@RomneyDa
RomneyDa force-pushed the codex/matrix-qa-29 branch from bed6270 to 1338061 Compare August 29, 2026 06:42
@RomneyDa

Copy link
Copy Markdown
Member Author

Refreshed onto current main at 0d6fc80a62b to absorb the unrelated lint-suppression baseline repair that failed the preceding exact-head rollup. The Matrix diff is unchanged; focused Matrix catalog proof remains 14/14 passing and git diff --check passes. Exact-head CI is restarting.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@RomneyDa
RomneyDa merged commit 280a0b7 into main Aug 29, 2026
241 checks passed
@RomneyDa
RomneyDa deleted the codex/matrix-qa-29 branch August 29, 2026 22:35
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 30, 2026
* fix(qa): reserve Matrix no-reply cleanup budget

* fix(qa): reserve Matrix no-reply deadline headroom

* fix(qa): use canonical scenario deadline grace

* test(qa): derive flow deadline ownership structurally

* test(qa): require one Matrix deadline owner

* fix(qa): keep Matrix flow deadlines explicit

* fix(qa): restore provider-owned Matrix timeouts

* test(qa): pin Matrix provider-owned deadlines

* fix(qa): keep Matrix deadline assertion typed

* fix(qa): satisfy Matrix catalog lint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions: qa-lab 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: 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