Skip to content

exports/ is one namespace across repositories — explicit memory_export file: destinations still replace (decision record from #156) #159

Closed as not planned

Description

@abogartz

Spun out of the #156 review (PR #156, commit b3db6a9) as an explicit decision record, not a discovered break.

The shape

memory_export's default destination is now unique and exclusively created, so two sessions exporting in the same second can no longer replace each other's artifact. An explicit file: destination still replaces, and exports/ is one namespace shared by every repository in the store (#24 confines the path to the store, not per repository). So a session in repo B can write exports/backup.jsonl that a session in repo A later reads and find B's scoped rows in it.

Why it is not being fixed here

  • It is outside the plugin's boundary: A can already read B's day file directly with the host's read tool — the store is one directory tree on one filesystem, and repo scoping is a property of the plugin's model-facing tools, not a filesystem ACL.
  • Replace-on-explicit-name is the documented backup workflow (README §"Export and move between machines"): backups rewrite the same path on purpose. Making explicit destinations exclusive would break that for a threat the boundary never covered.
  • The case that was a leak — the caller trusting a path the plugin chose — is closed by fix(security): finish entry-point breadth — session-scoped export + ownership-checked undo (#143 #153) #156.

Ask

Nothing is required. If a future change gives exports/ per-repo subdirectories or makes an export readable through a model-facing tool, this becomes a real cross-repo substitution surface and should be revisited then.

Activity

  1. added
    store-security
    on Oct 28, 2026
  2. WhollyMindless commented on Oct 28, 2026

    @WhollyMindless
    Contributor

    Consolidating duplicate #161 into this earlier decision record. The useful additional notes are preserved here so #161 can be closed.

    Optional follow-ups, not blockers for #156:

    • Report when an explicit-name export overwrites an existing file.
    • Consider repository-specific subdirectories for relative explicit names if the documented path/backup workflow is deliberately changed.
    • Clarify in the README that explicit export names share one namespace across repositories in a store.
    • When the undo contract test is next touched, add an explicit repo: "global" row alongside its existing legacy-unstamped row. Both are intentionally within every repository's rollback scope; the maintainer independently verified the explicit-global case in the fix(security): finish entry-point breadth — session-scoped export + ownership-checked undo (#143 #153) #156 approval.

    Two corrections to the duplicate's wording:

    The existing decision stands: preserve explicit-name replacement semantics. These notes do not claim a new defect or reopen the default-name collision finding.

  3. added
    severity:low
    agent:ready
    on Oct 30, 2026
  4. ocsi-triager commented on Nov 3, 2026

    @ocsi-triager

    osi-spec-hash: 82dc2b74f4d99a8f 2026-11-03T22:31:47Z - acceptance criteria frozen at this text. A later edit to the body changes this hash, and the reviewer will withhold approval until a maintainer replies spec ok.

  5. added
    fix:blocked
    on Nov 4, 2026
  6. ocsi-fixer commented on Nov 4, 2026

    @ocsi-fixer

    fix:blocked — no buildable contract. The body's "Ask" section states "Nothing is required" and asks only that the surface be revisited if a future change gives exports/ per-repo subdirectories or exposes an export through a model-facing tool; neither condition exists on main, so there is no acceptance criterion a fixer can verify mechanically. This is also a decision record spun out of the #156 review, and the accepted decision recorded here (preserve explicit-name replacement semantics) is the maintainer's call, so closing it as moot would destroy the only place the decision is written down. The ticket stays open with fix:blocked as a standing note. If the owner wants action now, the cheapest buildable subset is the README clarification suggested in the 2026-10-28T21:33:10Z comment — one line stating that explicit file: export destinations share one namespace across repositories in a store — which is mechanically checkable and would need only the README §"Export and move between machines"; that line is not in the body's ask, so it needs the owner to add it as a criterion first.

  7. abogartz commented on Nov 4, 2026

    @abogartz
    OwnerAuthor

    The record answers itself: 'Nothing is required' — replace-on-explicit-name is the documented backup workflow, the plugin-chosen-path leak was closed by #156, and the revisit trigger (per-repo export subdirs or a model-facing export reader) is written down. Closing as decided-no-action; reopen if the trigger lands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent:readyfix:blockedseverity:lowstore-security

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions