Skip to content

test(qa): prove shared-channel memory recall - #119111

Merged
vincentkoc merged 1 commit into
mainfrom
qa-b3-shared-channel-memory-20260804
Aug 4, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
qa-b3-shared-channel-memory-20260804

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Aug 4, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

The existing shared-channel memory scenario only checked that some mock request planned memory_search, seeded root MEMORY.md, and accepted any matching outbound. It did not prove that a QA-channel group turn consumed the matched nested-memory result before one visible in-room reply.

Why This Change Was Made

This strengthens the existing memory-tools-channel-context scenario without changing production or QA Lab runtime code. It seeds memory/qa-shared-channel.md, captures the mock request cursor before inbound delivery, verifies that the matched memory_search result plans memory_get with a distinct call ID for the seeded path, binds the final request to that exact call ID and current successful output, waits through the established four-second post-final duplicate window, and then requires the complete visible qa-memory-room outbound list to contain only the final reply.

The scenario is the sole primary owner for:

  • session-memory.group-memory
  • session-memory.qa-channel-memory

The previous generic memory-tools and room-session claims remain secondary.

User Impact

No production behavior changes. QA now catches regressions where shared-channel memory lookup leaks the answer into initial context, reuses a tool-call ID, loses either tool-call correlation, returns the wrong memory path, finalizes from aggregate transcript text instead of the current memory_get result, or emits any early/late extra visible room reply during the bounded observation window regardless of its text.

AI-assisted: yes.

Evidence

  • Signed exact head: 54eab19cea268c26f0770e515d2aaa9307e79ef2
  • Production LOC: 0
  • QA scenario delta: +72/-10
  • Focused catalog/coverage tests: 81/81 passed.
  • Exact-head QA suite: memory-tools-channel-context passed 1/1.
  • Exact-head artifacts:
    • .artifacts/qa-e2e/b3-shared-channel-memory/54eab19cea26-quiet-window-exact/qa-suite-report.md
    • .artifacts/qa-e2e/b3-shared-channel-memory/54eab19cea26-quiet-window-exact/qa-suite-summary.json
    • .artifacts/qa-e2e/b3-shared-channel-memory/54eab19cea26-quiet-window-exact/qa-evidence.json
    • .artifacts/qa-e2e/b3-shared-channel-memory/54eab19cea26-quiet-window-exact/quiet-window-mutations.json
  • qa-evidence.json records the exact head and exactly the two primary IDs above.
  • Reviewer-style source/mutation proof requires first-final wait → four-second quiet window → scoped room snapshot → exact-list assertion; removing the quiet window or injecting a late nonmatching outbound fails while all prior correlation mutations remain rejected.
  • Changed gate: Daytona was selected but failed before execution during the local Actions environment handoff with SSH exit 255. The permitted trusted-source local fallback passed all guards, full tsgo, lint, and zero runtime import cycles.
  • YAML parse, oxfmt, git diff --check, privacy scan, and role-aware sole-primary checks passed.
  • Fresh Sol/high branch autoreview: clean, confidence 0.99.

@vincentkoc vincentkoc self-assigned this Aug 4, 2026
@vincentkoc
vincentkoc force-pushed the qa-b3-shared-channel-memory-20260804 branch from 054b7fb to f8f094b Compare August 4, 2026 05:12
@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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Aug 4, 2026
@clawsweeper

clawsweeper Bot commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

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

ClawSweeper review

What this changes

The PR strengthens the QA Lab shared-channel memory scenario to correlate memory search and retrieval with exactly one settled in-room reply.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep open for maintainer review. Current main still has the weaker scenario, while this protected maintainer PR adds source-consistent causal and duplicate-delivery coverage with no actionable patch finding.

Priority: P3
Reviewed head: 54eab19cea268c26f0770e515d2aaa9307e79ef2

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-consistent QA coverage improvement with no blocking defect found.
Proof confidence 🌊 off-meta tidepool Not applicable: This is a maintainer-authored QA-only PR, so the external-contributor proof gate does not apply; the supplied context reports exact-head mock-gateway evidence, though its artifact contents were not independently available.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This is a maintainer-authored QA-only PR, so the external-contributor proof gate does not apply; the supplied context reports exact-head mock-gateway evidence, though its artifact contents were not independently available.
Evidence reviewed 6 items Current main remains weaker: Current main only waits for an outbound containing the needle and checks that some request planned memory_search; it does not correlate the retrieval call or assert the bounded room outbound list.
Exact-head causal coverage: The PR snapshots the request cursor before ingress, requires the three-request memory_search → memory_get → final chain with distinct call IDs, waits four seconds, and asserts exactly one visible room outbound.
Mock-provider contract: The QA mock records planned tool IDs and consumed tool-output IDs, and its memory fixture plans memory_get from the returned search path, matching the assertions added here.
Findings None None.
Security None None.

How this fits together

QA Lab sends a message through the internal QA channel and a mock OpenAI provider, then records provider tool requests and room outbounds. The scenario verifies that a nested-memory result is consumed before the agent sends its visible channel reply.

flowchart LR
A[QA channel message] --> B[Mock provider request log]
B --> C[Memory search]
C --> D[Memory retrieval]
D --> E[Final room reply]
E --> F[Quiet-window assertion]
Loading

Before merge

  • Resolve merge risk (P1) - GitHub reports the branch as mergeable but behind main, with some exact-head checks still in progress; final merge gates should be refreshed if the branch is rebased.
  • Complete next step (P2) - The PR is maintainer-authored and carries the protected maintainer label, so it needs explicit maintainer review rather than automated repair or cleanup.
Agent review details

Security

None.

PR surface

Other +62. Total +62 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 72 10 +62
Total 1 72 10 +62

Review metrics

Metric Value Why it matters
Production versus QA coverage LOC production +0; QA scenario +72/-10 The added lines strengthen one existing test scenario without changing runtime behavior or public contracts.

Stored data model

Persistent data-model change detected: unknown-data-model-change: qa/scenarios/memory/memory-tools-channel-context.yaml, vector/embedding metadata: qa/scenarios/memory/memory-tools-channel-context.yaml. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Retain this focused scenario hardening and land it once the exact head has completed required checks and maintainer review.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Retain this focused scenario hardening and land it once the exact head has completed required checks and maintainer review.

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

Not applicable; this PR adds regression coverage rather than reporting a standalone user-facing failure. The changed scenario is source-traceable through the mock provider, QA channel, and outbound transport contracts.

Is this the best way to solve the issue?

Yes. Extending the existing shared-channel scenario is the narrowest maintainable solution; it follows the sibling tool-consumption correlation pattern without changing production or harness behavior.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P3: This is a focused QA coverage 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 is a maintainer-authored QA-only PR, so the external-contributor proof gate does not apply; the supplied context reports exact-head mock-gateway evidence, though its artifact contents were not independently available.

Evidence

What I checked:

Likely related people:

  • vincentkoc: Introduced the current-main scenario in 3bbc4ad and authored the exact-head correlation and quiet-window coverage. (role: current QA-memory scenario owner; confidence: high; commits: 3bbc4ad085e2, 54eab19cea26; files: qa/scenarios/memory/memory-tools-channel-context.yaml)
  • Dallin Romney: Earlier commit bf32414 refined this same memory-context proof to remain on the QA channel. (role: adjacent QA-channel-memory contributor; confidence: medium; commits: bf32414a4a26; files: qa/scenarios/memory/memory-tools-channel-context.yaml)

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 (3 earlier review cycles)
  • reviewed 2026-08-04T05:17:48.559Z sha f8f094bc478ce12d3bbe25a225b978d42e384f2d :: found issues before merge. :: [P2] Require distinct tool-call identifiers | [P2] Reject every extra room outbound
  • reviewed 2026-08-04T05:42:50.867Z sha 571a990ec037499cacd08cbbaa3b5215ac13e4b2 :: found issues before merge. :: [P2] Wait through a duplicate window before asserting the sole reply
  • reviewed 2026-08-04T06:07:11.849Z sha 54eab19 :: needs maintainer review before merge. :: none

@vincentkoc
vincentkoc force-pushed the qa-b3-shared-channel-memory-20260804 branch from f8f094b to 571a990 Compare August 4, 2026 05:32
@vincentkoc
vincentkoc marked this pull request as ready for review August 4, 2026 05:37
@vincentkoc
vincentkoc marked this pull request as draft August 4, 2026 05:45
@vincentkoc
vincentkoc force-pushed the qa-b3-shared-channel-memory-20260804 branch from 571a990 to 54eab19 Compare August 4, 2026 06:01
@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 4, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review August 4, 2026 06:11
@vincentkoc
vincentkoc merged commit 52c9448 into main Aug 4, 2026
144 of 152 checks passed
@vincentkoc
vincentkoc deleted the qa-b3-shared-channel-memory-20260804 branch August 4, 2026 06:20
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

@vincentkoc

vincentkoc commented Aug 4, 2026 •

Copy link
Copy Markdown
Member Author

Maintainer landing acceptance recorded.

The explicit maintainer landing mandate accepted this protected maintainer PR at exact signed head 54eab19cea268c26f0770e515d2aaa9307e79ef2.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 4, 2026
vincentkoc added a commit that referenced this pull request Aug 4, 2026
* origin/main:
  test(qa): prove shared-channel memory recall (#119111)
vincentkoc added a commit that referenced this pull request Aug 4, 2026
* 'main' of https://github.com/openclaw/openclaw:
  test(qa): cover sandboxed exec behavior (#119053)
  test(qa): prove shared-channel memory recall (#119111)
  fix(telegram): keep request deadlines through response bodies
  test(qa): cover gateway plugin approvals (#119128)
  fix(ai): keep OpenAI tool call id truncation UTF-16 safe (#110471)
  fix: preserve live updater failure diagnostics (#119096)
  fix: recover new-session models through Gateway startup (#119120)
  test(qa): cover instruction profile artifacts (#119078)
  fix(telegram): record automatic delivery message ids
  test(qa): cover memory promotion safety (#119093)
  test(qa): prove overflow compaction pruning (#119033)
  fix(tool-search): preserve deferred MCP failures (#118363)
  fix(macos): keep setup activation within app checks
  test(setup): type provider kind fixture
  fix(setup): complete prepared model activation
  fix(protocol): regenerate Swift wizard models
  fix(ollama): activate the model selected during setup
  fix(setup): preserve the prepared model handoff
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 5, 2026
* 'main' of https://github.com/openclaw/openclaw:
  test(qa): cover sandboxed exec behavior (openclaw#119053)
  test(qa): prove shared-channel memory recall (openclaw#119111)
  fix(telegram): keep request deadlines through response bodies
  test(qa): cover gateway plugin approvals (openclaw#119128)
  fix(ai): keep OpenAI tool call id truncation UTF-16 safe (openclaw#110471)
  fix: preserve live updater failure diagnostics (openclaw#119096)
  fix: recover new-session models through Gateway startup (openclaw#119120)
  test(qa): cover instruction profile artifacts (openclaw#119078)
  fix(telegram): record automatic delivery message ids
  test(qa): cover memory promotion safety (openclaw#119093)
  test(qa): prove overflow compaction pruning (openclaw#119033)
  fix(tool-search): preserve deferred MCP failures (openclaw#118363)
  fix(macos): keep setup activation within app checks
  test(setup): type provider kind fixture
  fix(setup): complete prepared model activation
  fix(protocol): regenerate Swift wizard models
  fix(ollama): activate the model selected during setup
  fix(setup): preserve the prepared model handoff
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 5, 2026
* origin/main:
  test(qa): prove shared-channel memory recall (openclaw#119111)
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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S 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