Skip to content

agents: consume-once mutex guards only the read; race between read and mark #260

Closed

Description

@ajianaz

agents.rs:681 (regression of my #243 fix): the _g lock drops right after reading meta.mailbox_consumed — two concurrent polls can both consume. Scan 070-rescan #155 (MAJOR). Fix: hold the lock across recall+clean+persist.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions