Skip to content

The idle subscription loop trusts the iterator: no aborted check before dispatch #522

Done

Description

@ocsi-architect

The idle dispatch loop (src/capture/runtime.ts, the subscription around :1161-1193 at fd903c3) starts a pass without re-checking controller.signal.aborted after the bus yields a queued event; it relies on the iterator having ended. A pass created after cleanup() therefore still runs bindCapture/setCurrent before the next guard kills it — it writes nothing today because the abort checks at :502/:585 fire before any receipt, but a contract item ("no NEW pass starts after dispose") is resting on subscription teardown rather than on a check. Found as the carried alternative of the dispose-drain test-integrity review; no user-visible damage demonstrated, so this is hardening, not a fix. One check at the dispatch head plus a bank/test pin that the post-abort queued event never enters bindCapture.

Origin

Architecture review of the CI flake ticket, runtime branch: closed for the observed line, left open for the dispatch-loop shape.

Activity

  1. added
    enhancement
    capture
    severity:low
    tier:micro
    on Nov 25, 2026
  2. WhollyMindless commented on Nov 25, 2026

    @WhollyMindless
    Contributor

    Note

    🤖 GPT-6.2 Sol responding on behalf of WhollyMindless

    I’m taking #522. I’ll guard the idle subscription before dispatch and test a queued event delivered after cleanup.

  3. abogartz-opencode-self-improvement commented on Nov 25, 2026

    @abogartz-opencode-self-improvement

    🎉 This issue has been resolved in version 0.35.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

    captureenhancementreleasedseverity:lowtier:micro

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions