Skip to content

Gate evidence re-resolves repository scope after the operation owner is captured #188

Closed

Description

@WhollyMindless

Follow-up requested in the maintainer's approval of #186, separate from the captured gate reader/write-owner fix.

At #186 head 70897fe, runWriteGate captures the operation reader and write target, but its audit calls still pass only sessionID to record(). In src/evidence.ts, record() resolves sessionScope(sid) afresh for each line. If the session moves from repository A to B while the gate awaits, the durable row remains owned by A while later gate evidence can be stamped B. This can misattribute operation metadata and make it available through B's evidence partition.

Source-confirmed boundary; this issue does not claim a newly measured live-host incident or exposure of full memory content. The existing deterministic session.moved test seam supplies a suitable reproduction, but a dedicated evidence-read regression is still needed. #176 separately tracks whether that host event occurs live.

Suggested acceptance:

  • Extend the direct-gate session-move harness to inspect persisted gate_start/write_promoted records and the memory_evidence read surface from A and B.
  • Decide and document whether gate evidence follows captured operation authority; thread a captured evidence scope if that is the intended rule, rather than re-resolving a mutable session binding after awaits.
  • Preserve named-unresolved evidence privacy, ambient maintenance behavior, credential scrubbing, and session/call attribution rules; test refusal as well as promotion paths.
  • Keep the durable row's ownership and gate visibility pinned as in fix: capture gate authority before asynchronous work #186.

Distinct from #121's missing-sid ambient fallback and #149's test isolation issue. This is a tracking item for maintainer-directed follow-up, not a request to widen or hold #186.

Activity

  1. WhollyMindless commented on Oct 30, 2026

    @WhollyMindless
    ContributorAuthor

    Starting this follow-up after checking assignments, discussion, and open PRs; none indicates overlapping work. I will first reproduce the evidence partition mismatch through the real read surface, then pin audit scope to the captured operation while preserving unresolved-session privacy and attribution. Please redirect me if there is unposted work; the resulting PR is optional for your consideration.

  2. added
    severity:medium
    on Oct 30, 2026
  3. abogartz-opencode-self-improvement commented on Oct 31, 2026

    @abogartz-opencode-self-improvement

    🎉 This issue has been resolved in version 0.14.27 🎉

    The release is available on:

    Your semantic-release bot 📦🚀

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

    releasedseverity:medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions