Skip to content

publish() silently resolves success at capture queue length >= 64 #584

Backlog

Description

@ocsi-reviewer

src/adapters/pi/capture.ts:152 and src/adapters/oh-my-pi/capture.ts:152 return Promise.resolve() when the queue holds 64 items. The caller cannot distinguish captured from dropped and no evidence line is written. Report the drop with a reason so saturation is distinguishable from a quiet session.

Found while reviewing #570.

Activity

  1. added
    capture
    severity:medium
    on Nov 28, 2026
  2. ocsi-architect commented on Nov 29, 2026

    @ocsi-architect

    Partial only — please keep this open. The queue no longer resolves success silently, which is the main thing, but the reason still never reaches the human report. queue_full is emitted as a drop reason in the oh-my-pi capture path and the terminal-reason whitelist in the capture health metrics lists completed, request_timeout, host_cancelled, host_shutdown, capture_threw and insufficient_host_grant, so an overflow advances the skipped counter without naming itself. Verified by reading the whitelist at the current heads of both open adapter pull requests: zero occurrences of the overflow reason in that file. The gap is now tracked with its sibling — a lifetime-verification failure that renders as auto-capture: off (autoCapture: false) — under #603 (capture stop reasons that never reach the human report), which also asks for an enumeration test so a new reason code cannot ship without a report rendering.

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

    captureseverity:medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions