Skip to content

trigger: a composite without --correlate never starts a run (gate consumed as unidentifiable) #451

Done

Description

@sathish-mg

What happens

--correlate is optional on a composite trigger, and record_for_composites treats its absence as "one global match" (partial key \"\"). When that gate is satisfied, the composite's PollItem is built with id: \"\". dedup_value refuses a blank id, so the firing is counted unidentifiable and no run starts — and because the firing still reports no failures, the satisfied partial is settled (removed). The gate is consumed silently: no run, no error, nothing in trigger status beyond the counter.

A naive fix (a constant non-empty id) would start the first run and then return Duplicate forever, since every uncorrelated firing would share one run id.

The existing composite_resumed_after test worked around it by correlating on /at_ms ("so the gate's item has an identity of its own to mint a run id from").

Fix

The identity of an uncorrelated firing is the gate instance: uncorrelated@<partial.started_ms>. That is stable across a refused run's retries (the partial is kept) and new for every satisfaction after the last one settled. Correlated composites are unchanged (same id, same payload). The uncorrelated run input carries gate_started_ms.

Pinned by an_uncorrelated_composite_starts_a_run_each_time_its_gate_is_satisfied (two satisfactions → two runs, zero unidentifiable).

Activity

  1. added a commit that references this issue on Nov 24, 2026
  2. sathish-mg commented on Nov 24, 2026

    @sathish-mg
    ContributorAuthor

    Fixed in #452 (merged): an uncorrelated composite's firing is identified by its gate instance (uncorrelated@<partial.started_ms>), so each satisfaction starts one run and a refused run retries under the same id. Pinned by an_uncorrelated_composite_starts_a_run_each_time_its_gate_is_satisfied. Ships in the next patch release.

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