You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
memory_export has no repo-visibility filter — any session can export every repository's rows #143
store-securityStore boundary: path containment, exposure docs, redaction, trust tiers, durable rejectionverified-on-mainReviewed against current main and the described break no longer exists - nothing to build, close it
memory_export is a model-facing tool. A session in repo A can call memory_export and receive repo B's private rows (content, tags, kw, repo stamps) in the written JSONL — the exact breadth that #127's fix made a property of the entry point (ADMIN_READER) for every other read path.
This is repo-visibility scoping of the export contents — neither covers it.
Suggested fix
Filter exportMemories by the caller's Reader (threaded from the tool entry like every other #127 path): a plugin session exports its repo + global rows. Keep full breadth for out-of-plugin/admin callers (ADMIN_READER), and consider an explicit allRepos: true option gated to the admin reader for the cross-machine-hop use case. Regression test: seed private rows in repos A and B, export from A, assert B's marker is absent.
Found during the adversarial review of #133/#135 (2026-10-26).
Taking this one — working on branch fix/security-143-153 off 91f7a56 (0.14.13), covering #143 and #153 together since they are the same defect principle: the last two model-facing surfaces that bypass the entry-point reader — export (read side) and undo (write side).
Export: thread readerFromSid/isVisibleTo exactly as the other eight entry points already do; admin/ambient callers keep full breadth — all-repository access stays a property of the entry point, never of a missing session. The tool description will be updated to match (a session export is repo+global, not a full-store backup).
@abogartz This is verified fixed by #156, merged in 1bd2123 and included in v0.14.15. Independent verification of final head 834ccba confirmed session-scoped export, fail-closed unresolved-session behavior, and collision-safe default export names. Verification: #156 (comment) . The separate explicit-filename replacement decision remains tracked in #159. Please close this issue as completed; GitHub denied this account permission to close it.
The tool entry threads it (src/index.ts:1118-1119: exportMemories({ scope, file, sessionID: sid })), so a plugin session exports its own repo plus global rows, while an absent/"?" sid resolves the ambient reader and keeps full-store breadth for viewer/CLI maintenance — exactly the ADMIN_READER split every other #127 path uses.
The regression test this ticket asked for exists as test/export-visibility.test.ts, and it covers the shape you specified plus two more:
an export run by repo A's session omits repo B's private rows (the cross-repo marker assertion)
session-less (viewer/CLI-shaped) callers keep full breadth — the entry-point property
an unbound session's export carries no foreign rows (fail-closed)
two sessions exporting in the same second keep separate artifacts
Both contradictions you cited are therefore now true as written: #133's "breadth is a property of the entry point, never of a missing session", and the README's "project A's facts never surface in project B".
Unaffected: #159 stays open as the decision record for the explicit-file: replace case in the shared exports/ namespace. That is a substitution question, not a content-visibility question, and this fix does not touch it.
Severity triage 2026-10-30 — reviewed against main @ 525ed89 (v0.14.24). Labeled verified-on-main: the behavior this ticket describes no longer exists, so there is nothing to build. Full-suite baseline at that commit: 722 pass / 12 skip / 0 fail. Closing is your call; the evidence is here so the claim is checkable rather than asserted.
Closing on the verified-on-main call. Fixed by PR #156 (merged 2026-10-28): memory_export filters by repo visibility, and default export destinations are now unique per call (stamp + randomUUID, O_EXCL when no file is named).
store-securityStore boundary: path containment, exposure docs, redaction, trust tiers, durable rejectionverified-on-mainReviewed against current main and the described break no longer exists - nothing to build, close it
Activity
WhollyMindless commentedon Oct 28, 2026
Taking this one — working on branch
fix/security-143-153off91f7a56(0.14.13), covering #143 and #153 together since they are the same defect principle: the last two model-facing surfaces that bypass the entry-point reader — export (read side) and undo (write side).Approach, regression-first in the house style:
readerFromSid/isVisibleToexactly as the other eight entry points already do; admin/ambient callers keep full breadth — all-repository access stays a property of the entry point, never of a missing session. The tool description will be updated to match (a session export is repo+global, not a full-store backup).Not touching #74 (content scrubbing is a separate contract from visibility) or #24 (already fixed by #145).
Merge main (v0.14.14, abogartz#157) into fix/security-143-153
test(security): default export destinations collide within a second (a…
fix(security): unique, exclusively-created default export destinations (
test(security): probes for export breadth and undo ownership (#143 #153)
fix(security): export and undo carry the caller's reader (#143 #153)
Merge pull request #156 from WhollyMindless/fix/security-143-153
chore(release): 0.14.15 [skip ci]
WhollyMindless commentedon Oct 28, 2026
@abogartz This is verified fixed by #156, merged in 1bd2123 and included in v0.14.15. Independent verification of final head 834ccba confirmed session-scoped export, fail-closed unresolved-session behavior, and collision-safe default export names. Verification: #156 (comment) . The separate explicit-filename replacement decision remains tracked in #159. Please close this issue as completed; GitHub denied this account permission to close it.
abogartz commentedon Oct 30, 2026
Fixed — export breadth is now a property of the reader
src/portable.ts:150-151:The tool entry threads it (
src/index.ts:1118-1119:exportMemories({ scope, file, sessionID: sid })), so a plugin session exports its own repo plus global rows, while an absent/"?"sid resolves the ambient reader and keeps full-store breadth for viewer/CLI maintenance — exactly theADMIN_READERsplit every other #127 path uses.The regression test this ticket asked for exists as
test/export-visibility.test.ts, and it covers the shape you specified plus two more:an export run by repo A's session omits repo B's private rows(the cross-repo marker assertion)session-less (viewer/CLI-shaped) callers keep full breadth — the entry-point propertyan unbound session's export carries no foreign rows (fail-closed)two sessions exporting in the same second keep separate artifactsBoth contradictions you cited are therefore now true as written: #133's "breadth is a property of the entry point, never of a missing session", and the README's "project A's facts never surface in project B".
Unaffected: #159 stays open as the decision record for the explicit-
file:replace case in the sharedexports/namespace. That is a substitution question, not a content-visibility question, and this fix does not touch it.Severity triage 2026-10-30 — reviewed against
main@525ed89(v0.14.24). Labeledverified-on-main: the behavior this ticket describes no longer exists, so there is nothing to build. Full-suite baseline at that commit: 722 pass / 12 skip / 0 fail. Closing is your call; the evidence is here so the claim is checkable rather than asserted.abogartz commentedon Nov 2, 2026
Closing on the verified-on-main call. Fixed by PR #156 (merged 2026-10-28): memory_export filters by repo visibility, and default export destinations are now unique per call (stamp + randomUUID, O_EXCL when no file is named).