Repository navigation
test(memory): verify structured consolidation requests - #138671
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Verified the memory consolidation release-proof repair at The unchanged E2E reproduced the original explicit-owner timeout from Full Release Validation 33895007102, even though the Gateway had invoked consolidation and promoted the candidate. The final test observes the structured candidate/source/provenance request and verifies it has no tools. Both real-Gateway scenarios pass, including the restricted-memory sibling. Production LOC: +0/-0; tests: +18/-12. Proof commands: # Before: one expected failure, one pass.
node scripts/run-vitest.mjs run --config test/vitest/vitest.e2e.config.ts test/e2e/qa-lab/runtime/memory-dreaming-provenance.e2e.test.ts
# After: two passes against the same built runtime.
OPENCLAW_E2E_USE_PREBUILT_DIST=1 node scripts/run-vitest.mjs run --config test/vitest/vitest.e2e.config.ts test/e2e/qa-lab/runtime/memory-dreaming-provenance.e2e.test.ts
# Passed on the final patch.
node scripts/check-changed.mjs -- test/e2e/qa-lab/runtime/memory-dreaming-provenance.e2e.test.ts
git diff --checkThe final independent P0–P2 review found no actionable issues. The E2E uses an isolated real Gateway and a local mock provider; it does not claim authenticated provider inference. Exact-head CI 33925630714 passed with 78 successful jobs and 17 intentional skips. Latest ClawSweeper status says review is running; no findings or rank-up moves have been posted yet. Native review artifacts are validated. |
|
@clawsweeper re-review The prior review lease expired at 23:10 UTC without a completed review. The head remains |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed September 4, 2026, 7:50 PM ET / 23:50 UTC. ClawSweeper reviewWhat this changesUpdates the memory-consolidation end-to-end test to verify structured candidate content, source references, provenance and absent tools, and binds Gateway callbacks to their receiver. Merge readiness✅ Ready for maintainer review No blocking findings. This maintainer-requested repair remains necessary: fetched main still uses the obsolete prompt-sentence matcher, while the proposed assertions match the current consolidation payload and preserve the restricted-memory scenario. Priority: P2 Review scores
Verification
How this fits togetherMemory Core's dreaming process evaluates short-term memories for promotion into long-term memory. This end-to-end test drives an isolated Gateway and checks the consolidation request captured by QA Lab's local mock provider. flowchart TD
A[Memory fixture and recall] --> B[Isolated Gateway]
B --> C[Scheduled dreaming sweep]
C --> D[Qualified memory candidates]
D --> E[Structured consolidation request]
E --> F[Local mock provider]
F --> G[Content provenance and no-tools assertions]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +6. Total +6 across 1 file. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep consolidation verification at the provider boundary, checking candidate content, source provenance and absent tools without changing runtime behavior or extending waits. Do we have a high-confidence way to reproduce the issue? Yes, from source: fetched main waits for prose absent from the current consolidation owner. The supplied before/after E2E report corroborates the timeout; this read-only review did not execute tests. Is this the best way to solve the issue? Yes. Checking the captured structured payload removes the obsolete wording dependency while preserving meaningful provenance and tool-free guarantees; restoring the old production sentence would repair the test in the wrong layer. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 66fa0bd2be4f. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
Related: #137967
What Problem This Solves
Resolves a problem where full release verification times out waiting for an explicit-owner memory consolidation request that already reached the provider. This is maintainer-requested release validation maintenance for the failed Gateway E2E job in Full Release Validation 33895007102.
Why This Change Was Made
The E2E identified consolidation using a system-prompt sentence removed by #137967. It now checks the structured candidate payload received by the mock provider: the expected memory text, source reference, agent provenance, and an empty tool list. This keeps the proof tied to the consolidation contract while retaining the restricted-memory sibling and explicit-owner failure checks. Gateway methods passed as callbacks are bound to their receiver.
Provenance: the raw parent comparison from
84bb01c6bea20635b4f98b70714b6e758e2e4d7dtoa72ff7a93fb1bcb025f689fd97872e5b6e17ff60confirms that #137967 replaced the prose instruction in the consolidation owner; this E2E retained the old sentence.User Impact
Release operators get accurate evidence that deep consolidation reaches the provider through the explicit workspace owner. Product runtime, configuration, and persistence behavior are unchanged.
Evidence
The unchanged E2E reproduced the original failure at
2329399cf6a9a2ca0c19d6c620b713a2768f9125: one test passed and the explicit-owner test timed out after its existing 30-second observation window. Gateway logs showed that consolidation ran and the candidate was promoted. The final test-only repair passed both real-Gateway scenarios with a local mock provider in 41.85 seconds total (29 seconds in tests), using the same built runtime.The final changed-surface gate passed, including root test typecheck, scripts lint, and lint for the changed E2E. Formatting and diff checks passed. The final independent P0–P2 review reported no actionable findings. Production LOC: +0/-0. Tests: +18/-12 (net +6).