Skip to content

Make external webhook trigger creation atomic #299

@marccampbell

Description

@marccampbell

Follow-up from PR #297 clawpatch review.

External webhook duplicate suppression checks for an existing claw before insert, but concurrent deliveries can race and create duplicate claws for the same factory/external_trigger_id.

Scope:

  • Use the factory_triggers claim/complete mechanism or a DB uniqueness/claim row for external events.
  • Treat duplicate claims as idempotent success.
  • Add a concurrent delivery regression test.

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-needs-reviewThe agent is asking a human for review

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions