Repository navigation
test(qa): add Active Memory recall coverage - #118963
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 3, 2026, 5:08 PM ET / 21:08 UTC. ClawSweeper reviewWhat this changesThis PR adds a QA Lab scenario for trigger-tagged Active Memory on a fresh QA-channel turn, tightens the existing preprompt recall trace, and moves overlapping coverage IDs to secondary ownership. Merge readinessKeep this draft PR open for maintainer review. It is a member-authored, Priority: P3 Review scores
Verification
How this fits togetherQA Lab scenario files start an isolated mock Gateway, feed it QA-channel messages, and assert the model requests, agent history, and coverage IDs produced by Active Memory. Their results feed the QA scorecard, where passing primary coverage fulfills product-taxonomy evidence and secondary coverage remains diagnostic. flowchart LR
Scenario[QA memory scenarios] --> Harness[QA Lab flow harness]
Harness --> Gateway[Isolated mock Gateway]
Gateway --> Channel[QA channel inbound turn]
Gateway --> Memory[Active Memory plugin]
Memory --> Provider[Mock OpenAI requests]
Provider --> Assertions[Trace and reply assertions]
Assertions --> Scorecard[Coverage evidence scorecard]
Decision needed
Why: The patch is structurally sound but intentionally defines durable, implementation-specific QA ownership and trace expectations; the protected maintainer workflow requires the responsible reviewer to confirm that contract. Before merge
Agent review detailsSecurityNone. PR surfaceOther +163. Total +163 across 3 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Retain one primary QA owner for each Active Memory behavior, then land the focused scenario coverage after the responsible reviewer confirms the exact mock-provider trace remains the desired long-term contract. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR adds deterministic QA coverage rather than reporting a new user-facing failure. The supplied mock-Gateway verdict describes three selected scenarios passing after the change. Is this the best way to solve the issue? Yes, subject to maintainer confirmation of the exact trace contract: the change places trigger-only recall and deep helper-chain recall in separate primary scenarios, matching the current runtime split. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 76cc60a452dc. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Maintainer acceptance: the focused request-count/helper-order contract is accepted as canonical for these two mock scenarios. Exact head |
|
Merged via squash.
|
* origin/main: (90 commits) fix(googlechat): recover durable lanes after oversized attachments (#118986) test(qa): cover runtime telemetry evidence (#118950) fix(gateway): resolve SQLite usage details (#118918) test(cron): cover durable scheduler state (#118981) test(gateway): cover node exec approval relay (#118825) test(qa): add Active Memory recall coverage (#118963) test(qa): promote package-backed Docker artifact proof (#118826) test(qa): cover diagnostic event boundary (#118844) test(gateway): cover WebSocket runtime contracts (#118797) fix(signal): drain accepted websocket messages before shutdown (#118975) fix(plugins): remove stale load paths during uninstall (#118930) test(qa): cover bundled runtime discovery (#118922) chore(clawhub): cover plugin release policy contracts (#118971) test(qa): cover support export and stability (#118956) fix(feishu): enforce exact signed webhook request boundaries (#118758) feat(sms): add Twilio MMS support (#118664) test(gateway): prove TLS certificate pinning (#118812) test(qa): cover tool policy and sandbox gates (#118925) fix(cli): keep update dry-run state immutable (#118856) fix(scripts): honor last repeated CLI flag value (#118710) ... # Conflicts: # pnpm-workspace.yaml
…r-admin-20260803 * origin/main: (89 commits) fix(googlechat): align doctor policy ownership with canonical account configuration (#118972) test(tui): prove editor input through PTY (#118982) fix(memory): persist trusted owner provenance at canonical transcript boundary (#118987) test(qa): cover health monitor and cache boundaries (#118961) fix(macos): restore dashboard frame double-click zoom (#118976) fix(googlechat): recover durable lanes after oversized attachments (#118986) test(qa): cover runtime telemetry evidence (#118950) fix(gateway): resolve SQLite usage details (#118918) test(cron): cover durable scheduler state (#118981) test(gateway): cover node exec approval relay (#118825) test(qa): add Active Memory recall coverage (#118963) test(qa): promote package-backed Docker artifact proof (#118826) test(qa): cover diagnostic event boundary (#118844) test(gateway): cover WebSocket runtime contracts (#118797) fix(signal): drain accepted websocket messages before shutdown (#118975) fix(plugins): remove stale load paths during uninstall (#118930) test(qa): cover bundled runtime discovery (#118922) chore(clawhub): cover plugin release policy contracts (#118971) test(qa): cover support export and stability (#118956) fix(feishu): enforce exact signed webhook request boundaries (#118758) ...
Additional instructions
MUST: Keep Allow edits from maintainers enabled for this PR so maintainers
can help update the branch when needed.
What Problem This Solves
Active Memory coverage lacked deterministic, single-owner proof for five accepted
session-memory behaviors. The existing scenarios mixed visible channel behavior
with helper-chain behavior and used loose request matching that could not prove
the exact recall sequence.
Why This Change Was Made
This test-only change splits the proof into two focused surfaces:
Memory enabled, sends one QA-channel direct message, and proves the first
visible reply and sole main-model request contain the injected memory without
a helper search.
four-request active trace: three causally linked
memory_search/memory_gethelper requests followed by one main request. It verifies the matching call
IDs, memory path and text, injected envelope, recorded agent-history reply,
debug evidence, and transient-session cleanup.
The existing cross-conversation scenario retains its negative controls while
moving overlapping ownership to secondary coverage.
User Impact
There is no production or runtime behavior change. Maintainers gain deterministic
QA coverage with exactly one primary owner for each accepted Active Memory
behavior.
Production LOC delta: 0.
Evidence
test files.
git diff --check: passed.run_9bb2144792d4: preprompt history/helper-chain scenario, 1 passed, 0 failed, 0 skipped.run_ab910d1c29bf: remember-across-conversations scenario, 1 passed, 0 failed, 0 skipped.run_43c936392bc2: combined selected scenarios, 3 passed, 0 failed, 0 skipped.fce7714002d8d92a231784080e0d53b0f626be40:run_1bda0f411abe: fresh remote checkout SHA/status gate passed.run_5d0cf14ab1f3: focused catalog/coverage tests passed 68/68 and the combined mock suite passed 3/3.{ "providerMode": "mock-openai", "runId": "run_43c936392bc2", "counts": { "total": 3, "passed": 3, "failed": 0, "skipped": 0 }, "primaryOwners": { "session-memory.active-memory-active-recall": "active-memory-cold-first-turn-trigger-recall", "session-memory.active-memory-qa-channel": "active-memory-cold-first-turn-trigger-recall", "session-memory.memory-tools-active-recall": "active-memory-preprompt-recall", "session-memory.active-memory-recall": "active-memory-preprompt-recall", "session-memory.active-memory-memory-recall": "active-memory-preprompt-recall" } }Expected secondary coverage remains in place:
remember-across-conversations:active-memory-active-recall,active-memory-qa-channel, andactive-memory-recall.active-memory-preprompt-recall:memory-recall.No changelog entry is required for this test-only change.