SWISwarm Intelligence
SWISwarm recipes

Evidence-threshold task gate

Open the next work stage when independent, valid inputs are ready.

TestSourceReviewGateNext stage
  1. Test, source and review signals
  2. Verify independence · check the threshold
  3. Advance when requirements are satisfied
Conceptual communication diagram · set the agent count in the task package
  1. Derive the threshold

    Specify prerequisites up front, such as one passing test and a separate source review. Agreement by three agents is not sufficient by itself.

  2. Track signal origin

    Attach evidence_id, origin_id and expires_at. Do not count agents copying one source as separate support.

  3. Combine valid inputs

    Check every required signal type. Do not override a failing test by collecting more positive votes.

  4. Record the transition

    Preserve the signal IDs used in a transition. If conditions fail, report an explicit waiting reason or timeout.

Role responsibilities

Signal producer
Run an acceptance check and produce a typed, sourced, timestamped signal.
Gate evaluator
Count independent, unexpired signals.
Executor
Run the unblocked stage within task boundaries.

Shared memory contract

signal_idsignal_typeorigin_idevidence_idissued_atexpires_atgate_decision
Stop condition
Perform one transition when prerequisites pass; on time or budget exhaustion report the closed gate and its reason.
Primary failure mode
Duplicate reports can create false sufficiency. An old passing test does not validate a new artifact version; bind signals to versions.