Repository navigation
test(memory): consolidate visibility fixtures without policy defaults - #139569
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 5, 2026, 8:51 PM ET / September 6, 2026, 00:51 UTC. ClawSweeper reviewWhat this changesShares session-entry and search-result constructors across three Memory Core visibility test suites while preserving each scenario’s explicit privacy settings and metadata. Merge readiness✅ Ready for maintainer review Keep open: this is a useful, bounded contribution to the maintainer-requested test audit. The fixture replacements preserve scenario inputs and assertions, and the consolidation is absent from fetched main. No actionable defect was found. Priority: P3 Review scores
Verification
How this fits togetherMemory Core filters search results using the requesting session, agent scope, and recall policy before returning remembered context. These tests exercise that filtering with synthetic session records and search hits. flowchart TD
A[Explicit scenario data] --> B[Shared fixture constructors]
B --> C[Session records and search hits]
D[Requester and visibility policy] --> E[Memory visibility filter]
C --> E
E --> F[Allowed search results]
F --> G[Existing test assertions]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests -289. Total -289 across 4 files. View PR surface stats
Review metricsNone. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Retain the shared data constructors while keeping privacy decisions, exceptional metadata, and expected outcomes explicit in each test. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR consolidates existing test fixtures rather than repairing a reported runtime defect. Is this the best way to solve the issue? Yes: the small plugin-local constructors remove repeated data construction while preserving scenario-specific metadata, policy inputs, and assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 78234c177d19. 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.
|
* origin/main: (302 commits) test(gateway): preserve held-work close failures (#139593) refactor(exec): share package argument scanning (#139560) fix(audit): preserve sequence range validation before numeric decoding (#139587) fix(transcripts): retain capture ownership through failed cleanup (#139572) refactor(models): share selector reference traversal (#139571) perf(agents): classify allowlists without intermediate sets (#138392) chore(release): update appcast for 2026.9.2 (#139575) fix(ci): synchronize cloud retries and board widget input (#139506) fix(plugins): explain SDK incompatibilities after core updates (#139458) fix(voice-call): retain installed WebSocket behavior under Bun (#139567) test(text): consolidate literal sanitizer cases (#139579) test(gateway): observe native drain without a lint exception (#139576) test(memory): consolidate visibility fixtures without policy defaults (#139569) fix(ui): show shimmer skeletons while loading Control UI (#139525) test(qa): make cleanup child logging deterministic (#139566) test(cli): keep Unix socket fixtures within path limits (#139565) fix: avoid slow incognito key checks in large session stores (#139528) feat(macos): open Gateway windows from the Gateways menu (#139522) test(workshop): isolate marker casing fixture identities (#139554) fix(process): require cleanup evidence before releasing owned work (#139517) ... # Conflicts: # scripts/release-check.ts
* commit '047587a542ce205ee78354fbd88ba8ec05c07844': (45 commits) chore(ui): refresh control ui locales (#139481) fix(slack): keep prototype-named emoji shortcodes intact (#136374) fix(gateway): deliver upgrade rejection responses under Bun (#139516) refactor(test): simplify catalog guards and fix native report fixture (#139496) fix(macos): prevent dashboard fixture loopback timeouts (#139556) fix(matrix): preserve selected reply targets inside threads (#139479) test(gateway): preserve held-work close failures (#139593) refactor(exec): share package argument scanning (#139560) fix(audit): preserve sequence range validation before numeric decoding (#139587) fix(transcripts): retain capture ownership through failed cleanup (#139572) refactor(models): share selector reference traversal (#139571) perf(agents): classify allowlists without intermediate sets (#138392) chore(release): update appcast for 2026.9.2 (#139575) fix(ci): synchronize cloud retries and board widget input (#139506) fix(plugins): explain SDK incompatibilities after core updates (#139458) fix(voice-call): retain installed WebSocket behavior under Bun (#139567) test(text): consolidate literal sanitizer cases (#139579) test(gateway): observe native drain without a lint exception (#139576) test(memory): consolidate visibility fixtures without policy defaults (#139569) fix(ui): show shimmer skeletons while loading Control UI (#139525) ...
Related: #139428
What Problem This Solves
Three Memory Core visibility suites repeat session-entry and search-hit construction across otherwise distinct privacy and recall scenarios, adding fixture maintenance without independent behavioral proof.
Why This Change Was Made
Use two neutral plugin-local constructors for 50 session entries and 46 search hits. Keep identity, timestamp, locator, path, source and snippet explicit. Preserve optional metadata exactly as supplied and retain score/range overrides. Visibility, authorization, requester, sandbox and recall configuration stay in each case.
User Impact
No production behavior changes or scenarios removed. Sparse legacy metadata, conflicting aliases, SQLite/archive locators, non-default scores and reset-cutoff ranges remain covered. Net 289 test/support lines removed: tests -318, support +29.
Evidence
All 58 fully expanded test identities match baseline and pass. A structural verifier expands the actual helper definitions back into the tests and confirms all 96 migrated fixture expressions and the remaining test program match the originals, ignoring only imports and the moved type declarations.
The final changed gate, formatting/diff checks, deslop and independent P2 review pass. An initial redundant-spread lint finding was fixed and all proof refreshed. Recorded wrapper times were 27.92s before and 7.57s after; transform/import warming dominates, so no attributable runtime reduction is claimed.