Skip to content

Follow-up: init/capture lifecycle evidence can split from gate evidence after a session move #199

Closed

Description

@WhollyMindless

Follow-up requested in the approval review of #189. This records a deliberate scope boundary, not a blocker for that PR.

At #189 head 80b0aaa, gate-authored evidence uses a frozen entry-time attribution context. Caller-level lifecycle events do not: runInit captures a context for its gates, but init_start / init_complete call record without it; auto-capture similarly captures its gate context before asynchronous work, then emits auto_capture_* / auto_capture_compaction_* records without that snapshot. After a session moves from repository A to B, gate lines can remain in A while later lifecycle lines resolve into B. Some lifecycle calls also rely on ambient context, so the follow-up should inspect session/call ownership as well as repository scope.

This is source-confirmed routing at the reviewed head, not a newly demonstrated live-host incident. #176 separately tracks live session-move fidelity. Durable row ownership is unchanged by #189. #121 concerns tool identity / its remaining regression coverage; this is about consistency across gate and lifecycle evidence for one operation. #188 remains the narrower gate-attribution issue closed by #189.

Suggested follow-up, subject to maintainer priority:

  • Decide whether lifecycle records should follow operation-entry attribution too, or whether a documented cross-partition correlation scheme is preferable.
  • Add deterministic init/capture interleavings that move the session during asynchronous work and inspect both persisted records and memory_evidence reads from A and B.
  • Preserve named-unresolved privacy, ambient maintenance behavior, credential scrubbing, and intentional suppression of session fields. Do not borrow another operation's call ID.
  • Document where users can find the complete operation trail under the chosen policy.

No implementation is claimed or started here. Please feel free to defer, combine with another issue, or close this if the existing split is the intended policy.

Activity

  1. WhollyMindless commented on Oct 31, 2026

    @WhollyMindless
    ContributorAuthor

    Claiming this follow-up after checking the issue and open PRs; no overlapping claim or PR is visible. Proposed policy: init/capture lifecycle evidence uses the same entry-time attribution as that operation's gate records, so a session move cannot split the trail across repositories. I will pin the move with deterministic tests, preserve named-unresolved privacy and suppressed fields, and keep durable row ownership unchanged.

    The new review also flagged viewer audit attribution and capture disposal as adjacent concerns. Those will be tracked separately rather than silently folded into this change. Please redirect or decline the proposed policy if per-event attribution is intentional.

  2. abogartz-opencode-self-improvement commented on Oct 31, 2026

    @abogartz-opencode-self-improvement

    🎉 This issue has been resolved in version 0.15.2 🎉

    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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions