Repository navigation
refactor: share Memory Wiki visibility test callbacks - #143181
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 real behavior proof before merge. Reviewed September 9, 2026, 10:39 AM ET / 14:39 UTC. ClawSweeper reviewWhat this changesShares the callback for two Memory Wiki visibility tests while preserving their names, sandbox settings, assertions, and isolated fixtures. Merge readiness⛔ Blocked before merge - 1 item remains Keep open: this is a bounded, behavior-preserving contribution to the requested test-audit campaign. Current main still contains the duplicated callbacks, and no actionable patch defect was found. Priority: P3 Review scores
Verification
How this fits togetherMemory Wiki combines wiki search with results from the active memory plugin. These tests verify that session visibility excludes sibling transcripts while retaining the caller’s transcript and durable memory. flowchart TD
A[Two named sandbox cases] --> B[Fresh fixtures per test]
B --> C[Memory Wiki search]
D[Caller session and visibility policy] --> C
C --> E[Filter memory search hits]
E --> F[Assert caller transcript and durable memory]
Before merge
Agent review detailsSecurityNone. PR surfaceTests -45. Total -45 across 1 file. 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 both independently named visibility scenarios with fresh fixtures and one shared callback. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR consolidates existing tests rather than reporting a product defect; source inspection confirms the duplicated bodies and retained cases. Is this the best way to solve the issue? Yes. A primitive case table removes callback duplication without sharing mutable fixtures, deriving expectations from production code, or reducing scenario coverage. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ae65c403d032. 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.
|
…er-ownership-20260909 * origin/main: (147 commits) fix(cli): reject blank account selectors before command startup (#143088) fix(update): repair young runs after recorded drivers exit (#143136) test(telegram): close model callback fixture connections (#143197) improve(test): reduce Telegram policy fixture startup overhead (#143192) test(ci): stabilize systemd manager shim timing (#143134) fix(test): retire chat preview Escape listeners during teardown (#143191) test(memory-wiki): share visibility test callbacks (#143181) fix(ci): accept native iOS keychain filenames (#142968) fix(ci): show publication observations in FRV status (#143171) fix(github): point the stuck-FAQ auto-response at a live anchor (#143194) docs: correct verified accuracy defects in CLI, tools, and automation pages (#143179) refactor(tests): remove duplicate Mistral cache-cost test (#143172) fix(doctor): complete canonical model-reference migration (#142284) fix(ci): reject stale and empty timing sample cohorts (#143182) fix(ui): remove first-reply confetti from chat (#143167) docs: split help/faq into 13 topic pages (#143150) refactor(docs): require caller-owned route indexes (#143164) fix(android): distinguish connection status from chat readiness (#143128) refactor: share agent-turn execution test defaults (#143166) fix(cli): print immutable-config refusals without crash framing (#143140) ...
Related: #139428
What Problem This Solves
Two adjacent Memory Wiki visibility tests repeat the same full callback while differing only in whether the caller is sandboxed.
Why This Change Was Made
Register the two original named cases from a typed table of primitive names and sandbox flags. Keep all vault, manager, search-hit, expected-result and nested callback allocations inside each test. The independent expected paths, assertions, cleanup and registration order remain unchanged. This removes 45 net test lines; the earlier session-input cleanup is not part of this change.
User Impact
No product behavior changes. Both sandboxed and session-bound non-sandboxed visibility paths retain their existing coverage with less duplicated test code.
Evidence
The full query and query-read suites passed all 74 cases before and after, with no skips and identical ordered names within each file. Substituting each row into the shared callback reproduces its original body; all outside-table tokens and per-test mutable allocations are preserved.
The mapped changed gate passed, and fresh P2 review found no actionable issues. No runtime speedup is claimed.