Repository navigation
Closed
6 / 66 of 6 issues completedClosed
6 / 66 of 6 issues completed
Copy link
Labels
severity:highReal defect on a boundary or documented claim; MVP-relevant, bounded blast radiusstore-securityStore boundary: path containment, exposure docs, redaction, trust tiers, durable rejection
Description
Why
Everything this plugin persists can be read three ways: injected into future prompts, written to a file by memory_export, or served by the viewer over HTTP. The open tickets are one failure family with three faces:
- It can leak — export/import accept arbitrary paths (memory_export/memory_import accept arbitrary paths outside the memory root #24); a non-loopback viewer bind is unauthenticated full-store exposure nobody documents loudly (viewer: startup warning when OPENCODE_VIEWER_ALLOWED_HOSTS exposes the store beyond loopback #13); secrets already in the store ride snapshots and exports forever (Secrets already in the store are never scrubbed, and memory_export writes them verbatim #74).
- It can't tell who said it — a user-stated preference and a model guess mined from a transcript are the same object at read time (P1: Persist trust/provenance state on memory rows (src=) and surface it in injection #37).
- It forgets its own rejections — nothing is keyed on a rejected value, so re-ingesting the source resurrects it (P0: Value-keyed rejection tombstone — rejected content must stay rejected across re-ingestion #35); poisoned rows arriving through untrusted write paths ride the epoch-frozen block forever (P1: Write-side threat scan for capture/import paths — quarantine tag instead of injection #38).
Children, with dependencies
- memory_export/memory_import accept arbitrary paths outside the memory root #24 — export/import path containment. Small, is the fix direction already written; a steered model needs only a path today.
- viewer: startup warning when OPENCODE_VIEWER_ALLOWED_HOSTS exposes the store beyond loopback #13 — document the non-loopback viewer exposure loudly (+ startup warning). Zero-code risk, stops the self-inflicted variant while memory_export/memory_import accept arbitrary paths outside the memory root #24 lands.
- P0: Value-keyed rejection tombstone — rejected content must stay rejected across re-ingestion #35 — value-keyed rejection tombstone (P0). The durable-rejection gap everything else in the field fails; its red-first acceptance test is P3: Negative-eval stress suite — forbidden hits, abstention, no-memory floor, re-ingestion, metric controls #43 item 4 (retrieval epic), so the two epics meet there.
- P1: Persist trust/provenance state on memory rows (src=) and surface it in injection #37 — persist trust/provenance on rows (
src=tier + the session-pointer scope merged in from P1: Turn pointers on auto-captured memories (session provenance) #39). - P1: Write-side threat scan for capture/import paths — quarantine tag instead of injection #38 — write-side threat scan →
quarantinetag. After P1: Persist trust/provenance state on memory rows (src=) and surface it in injection #37: quarantine is an additional read-path withhold on top of the row tags P1: Persist trust/provenance state on memory rows (src=) and surface it in injection #37 introduces, not a parallel mechanism. - Secrets already in the store are never scrubbed, and memory_export writes them verbatim #74 — scrub pre-existing secrets across day files and snapshots. Sharpest after memory_export/memory_import accept arbitrary paths outside the memory root #24 (containment defines what an export leak is); must not be cosmetic while
memory_undo --forcecan restore a redacted secret from a snapshot.
Done already (context, not scope)
Forward-only redaction ships with PR #67; request guards ship with #10/#11/#12; ts shape validation with #15. This epic is the residue those PRs deliberately left out.
Sub-issues
Collapse Sub-issuesSub-issues
Loading 6 sub-issues
Metadata
Metadata
Assignees
Labels
severity:highReal defect on a boundary or documented claim; MVP-relevant, bounded blast radiusstore-securityStore boundary: path containment, exposure docs, redaction, trust tiers, durable rejection
Activity
abogartz commentedon Nov 1, 2026
The architecture review synthesis (2026-11-01) adds four members to this failure family:
src/portable.tsalready carries the correct pattern andtest/containment.test.tsthe test shape./api/restore: no reason, no audit record, andforceis the default mode.Positive verification from the same review: redaction at the write choke point (
src/memory.ts:289via:253), snapshot-name containment, the Host/Origin/CSRF layer, CSP, and the secret-check script all still hold.ocsi-triager commentedon Nov 3, 2026
All 6 sub-issues closed as completed: #24, #13, #35, #37, #38, #74. Closing the epic.