Skip to content

improve(matrix): generate executable QA route and state evidence - #100039

Merged
RomneyDa merged 1 commit into
mainfrom
dallin/wave1-matrix-inventory
Jul 4, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
dallin/wave1-matrix-inventory

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Jul 4, 2026 •

Copy link
Copy Markdown
Member

Closes #100038
Related: #99707

What Problem This Solves

Matrix QA scenarios exercised real Tuwunel client/server behavior but did not produce a redacted, executable description of the ordered route and state contract observed during each run. Maintainers had to interpret logs manually to diagnose drift across retries, errors, sync tokens, devices, keys, media, and room-key backups.

Why This Change Was Made

This change places Tuwunel traffic behind a bounded redacting request/response recorder and derives the versioned matrix-qa-v1 manifest from completed scenario traffic. It adds a substrate-neutral Matrix protocol probe plus independently callable Matrix runtime, harness, recorder, and probe functions, without adding a second adapter registry/host or importing QA Lab private modules.

The Matrix protocol fixture proves the generic probe contract in this PR. #99707 owns canonical QaTransportAdapterFactory construction, the shared host, and real Crabline target execution.

This PR was developed with AI assistance. No agent transcript is included.

User Impact

Matrix QA maintainers can inspect per-scenario ordered routes, redacted request/response shapes, adjacent retry and terminal error sequences, principal-scoped sync-token progression, and device/key/media/backup expectations. Probe mismatches remain visible as failed checks while partial route/state evidence is still written. There is no change to the user-facing Matrix plugin runtime.

Evidence

  • Focused runtime and recorder proof: 2 files, 38 tests passed.
  • Full Matrix extension proof: 24 files, 233 tests passed with one worker.
  • Fresh structured autoreview on head dc974b08083678577d46dccc165561e448f986b3: no accepted/actionable findings (thread 019f2e5c-9342-7d33-b435-3f08b4b7c766).
  • Exact-content check:changed passed on Blacksmith Testbox-through-Crabbox: tbx_01kwq5x3md445ggxskawa3w04k, Actions run 28715487999.
  • Dependency Guard concern resolved by removing the direct @openclaw/crabline dependency and lockfile changes; the final diff adds no dependency surface.
  • Live Tuwunel profile collection completed for fast, transport, media, E2EE smoke, E2EE deep, and E2EE CLI profiles. Generated manifests validated for all specialized profiles.
  • Existing scenario timeouts remained in three tool-progress transport scenarios and two generated-media/voice-preflight scenarios; all E2EE profiles passed completely.

Current-head CI repair

  • Replaced the broad openclaw/plugin-sdk/testing test import with the focused public openclaw/plugin-sdk/test-env owner of withTempDir.
  • Exact extension boundary guard passed: node --import tsx scripts/check-no-extension-test-core-imports.ts.
  • Focused harness proof passed: 1 file, 8 tests.
  • Fresh structured autoreview on head aaa870f8c095b74d4b40b37bc0f0683b98026933: no accepted/actionable findings (thread 019f2e66-3ca8-7180-be77-e3193b94fbf0).
  • Exact-content check:changed passed on Blacksmith Testbox-through-Crabbox: tbx_01kwq6hec7c53srx7xm1kvprp3, Actions run 28715784474.

@RomneyDa
RomneyDa requested a review from a team as a code owner July 4, 2026 17:49
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: XL maintainer Maintainer-authored PR labels Jul 4, 2026
@github-actions github-actions Bot added the dependencies-changed PR changes dependency-related files label Jul 4, 2026
@github-actions

github-actions Bot commented Jul 4, 2026 •

Copy link
Copy Markdown
Contributor

Dependency graph guard cleared

This PR no longer has blocked dependency graph changes. A future dependency graph change requires a fresh /allow-dependencies-change comment after the guard blocks that new head SHA.

  • Current SHA: aaa870f8c095b74d4b40b37bc0f0683b98026933

@clawsweeper

clawsweeper Bot commented Jul 4, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 4, 2026, 2:46 PM ET / 18:46 UTC.

Summary
The branch adds a Matrix QA recording proxy, a matrix-qa-v1 differential probe and route/state manifest artifact, docs updates, and tests for redaction, proxying, and summary behavior.

PR surface: Source +1059, Tests +887, Docs +2. Total +1948 across 15 files.

Reproducibility: not applicable. as a user bug; this is a maintainer QA evidence feature. Source inspection shows current main emits report, summary, and observed-events artifacts only, while this PR adds the route/state manifest.

Review metrics: 1 noteworthy metric.

  • QA artifact surface: 1 added route/state manifest. A new generated artifact derived from Matrix traffic needs redaction, docs, and maintainer acceptance before merge.

Stored data model
Persistent data-model change detected: serialized state: extensions/qa-matrix/src/substrate/differential-probe.test.ts, serialized state: extensions/qa-matrix/src/substrate/fault-proxy.test.ts, serialized state: extensions/qa-matrix/src/substrate/fault-proxy.ts, serialized state: extensions/qa-matrix/src/substrate/recording-proxy.test.ts. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster
Relationship: fixed_by_candidate
Canonical: #100038
Summary: This PR is the implementation candidate for the Matrix QA route/state evidence issue; the related QA host PR is adjacent infrastructure, not a replacement.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge readiness
Overall: 🐚 platinum hermit
Proof: 🦞 diamond lobster
Patch quality: 🐚 platinum hermit
Result: ready for maintainer review.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • [P2] Have a maintainer/security reviewer accept the matrix-qa-v1 redaction and manifest scope before merge.

Risk before merge

  • [P1] The new route/state manifest is derived from sensitive Matrix traffic; reviewed tests cover major redaction classes, but a maintainer/security reviewer should accept the artifact boundary before landing.

Maintainer options:

  1. Review redaction boundary before landing (recommended)
    Have a maintainer/security reviewer check that the generated manifest cannot expose Matrix tokens, user/room/event IDs, message bodies, key material, backup sessions, or media identifiers beyond redacted shapes.
  2. Land with current proof
    Maintainers can accept the current unit coverage and live Tuwunel proof as sufficient for this QA-only artifact surface.
  3. Pause for narrower evidence
    If the manifest shape is considered too broad, pause this PR and narrow the recorded fields before exposing the artifact in Matrix QA output.

Next step before merge

  • [P2] The remaining action is maintainer/security judgment on a protected maintainer PR, not a narrow automated repair.

Security
Cleared: No concrete leak or supply-chain issue was found; the diff uses bounded proxy reads and tests broad redaction coverage, but the new QA artifact remains security-sensitive.

Review details

Best possible solution:

Land this PR after maintainer/security acceptance of the redacted matrix-qa-v1 manifest shape, while keeping the shared adapter-hosting work in #99707.

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

Not applicable as a user bug; this is a maintainer QA evidence feature. Source inspection shows current main emits report, summary, and observed-events artifacts only, while this PR adds the route/state manifest.

Is this the best way to solve the issue?

Yes, this is the best observed boundary: the recorder and probe stay inside the Matrix QA plugin while the shared QA adapter host remains in the related PR. The main safer alternative would be narrowing the manifest if maintainers reject the current redaction scope.

AGENTS.md: found and applied where relevant.

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

Label changes

Label changes:

  • add merge-risk: 🚨 security-boundary: The PR introduces a new artifact generated from Matrix request/response traffic, so redaction coverage and sensitive-data handling need explicit maintainer acceptance.
  • add proof: sufficient: Contributor real behavior proof is sufficient. The PR body reports live Tuwunel profile collection, generated-manifest validation, focused tests, and exact-content Testbox check:changed proof for the current head.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The PR body reports live Tuwunel profile collection, generated-manifest validation, focused tests, and exact-content Testbox check:changed proof for the current head.

Label justifications:

  • P2: This is a bounded maintainer QA evidence improvement with medium diagnostic value and no production Matrix runtime change.
  • merge-risk: 🚨 security-boundary: The PR introduces a new artifact generated from Matrix request/response traffic, so redaction coverage and sensitive-data handling need explicit maintainer acceptance.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The PR body reports live Tuwunel profile collection, generated-manifest validation, focused tests, and exact-content Testbox check:changed proof for the current head.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body reports live Tuwunel profile collection, generated-manifest validation, focused tests, and exact-content Testbox check:changed proof for the current head.
Evidence reviewed

PR surface:

Source +1059, Tests +887, Docs +2. Total +1948 across 15 files.

View PR surface stats
Area Files Added Removed Net
Source 8 1114 55 +1059
Tests 6 893 6 +887
Docs 1 14 12 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 15 2021 73 +1948

What I checked:

Likely related people:

  • gumadeiras: History shows Gustavo Madeira Santana introduced the optional Matrix QA plugin split, transport substrate, and broad contract coverage in the central runtime/harness paths. (role: original Matrix QA plugin and substrate contributor; confidence: high; commits: 82a2db71e892, 5e77cbd9ec2b, 988447ca240c; files: extensions/qa-matrix/src/runners/contract/runtime.ts, extensions/qa-matrix/src/substrate/harness.runtime.ts, extensions/qa-matrix/src/substrate/client.ts)
  • vincentkoc: Recent commits touch Matrix QA artifact collision handling, gateway stderr surfacing, release stabilization, and bounded fault-proxy behavior. (role: recent Matrix QA runtime and fault-proxy contributor; confidence: high; commits: 932b58b94b19, 6be98022da41, e394e0f9b827; files: extensions/qa-matrix/src/runners/contract/runtime.ts, extensions/qa-matrix/src/substrate/fault-proxy.ts, docs/concepts/qa-matrix.md)
  • steipete: History shows recent work on Matrix QA helper exports, state-after E2EE QA coverage, timeout parsing, and the exported QA runner SDK seam used by this runtime path. (role: recent adjacent QA and Matrix QA contributor; confidence: medium; commits: bdfc0784870b, ccd188a8b7e5, 943cb472749f; files: extensions/qa-matrix/src/substrate/fault-proxy.ts, extensions/qa-matrix/src/runners/contract/runtime.ts, src/plugin-sdk/qa-runner-runtime.ts)
  • RomneyDa: Beyond this PR, GitHub history shows Dallin Romney previously contributed shared QA runtime helper work that this Matrix QA path consumes. (role: current PR author and adjacent QA runtime contributor; confidence: medium; commits: 8d21ac3f6e62; files: src/plugin-sdk/qa-runtime.ts, extensions/qa-matrix/src/runners/contract/runtime.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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.

How this review workflow works
  • 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.
Review history (3 earlier review cycles)
  • reviewed 2026-07-04T17:54:09.100Z sha 5b555319d74ae544f467809c1f9540cfabe3938f :: needs maintainer review before merge. :: none
  • reviewed 2026-07-04T18:03:30.626Z sha 5b555319d74ae544f467809c1f9540cfabe3938f :: needs maintainer review before merge. :: none
  • reviewed 2026-07-04T18:33:25.376Z sha dc974b0 :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added 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. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. labels Jul 4, 2026
@RomneyDa
RomneyDa force-pushed the dallin/wave1-matrix-inventory branch from 5b55531 to dc974b0 Compare July 4, 2026 18:26
@github-actions github-actions Bot removed the dependencies-changed PR changes dependency-related files label Jul 4, 2026
@RomneyDa

RomneyDa commented Jul 4, 2026

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 4, 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 repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

@RomneyDa
RomneyDa force-pushed the dallin/wave1-matrix-inventory branch from dc974b0 to aaa870f Compare July 4, 2026 18:38
@RomneyDa

RomneyDa commented Jul 4, 2026

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 4, 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 repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. 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. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Jul 4, 2026
@RomneyDa
RomneyDa merged commit 939f9ae into main Jul 4, 2026
127 of 140 checks passed
@RomneyDa
RomneyDa deleted the dallin/wave1-matrix-inventory branch July 4, 2026 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation maintainer Maintainer-authored PR merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL 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.

Matrix QA lacks executable route and state evidence

1 participant