Skip to content

feat(cresettings): add FeatureTriggerConsensusEnabledActivePeriod - #2573

Merged
MStreet3 merged 1 commit into
mainfrom
CRE-7468-trigger-consensus-flag
Nov 24, 2026
Merged

MStreet3 merged 1 commit into
mainfrom
CRE-7468-trigger-consensus-flag

Conversation

@MStreet3

@MStreet3 MStreet3 commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

CRE-7468 (part of CRE-7462)

Summary

Adds PerWorkflow.FeatureTriggerConsensusEnabledActivePeriod. It is tagged featureflag:"true" and is off by default, like the other Feature*ActivePeriod flags. This is the third trigger mode, after legacy and shadow.

While a workflow's consensus window contains an event's ObservedAt, the node routes the event only to the central trigger queue, and only the consensus-queue plugin starts it (through StartExecution). When both windows contain an event, this window takes precedence over FeatureShadowTriggerModeActivePeriod, so the two may overlap during a rollout.

The doc comment covers:

  • precedence over the shadow window;
  • the rule that window boundaries only move to future times, later than settings propagation plus the trigger event queue timeout;
  • that the mode needs the consensus-queue plugin and the coordinated engine.

Changes

  • New per-workflow setting in settings.go.
  • Regenerated defaults.json and defaults.toml.
  • Added the gate to the CentralTriggerQueue.Put subgraph in the README diagram.
  • Tests:
    • a key-init test checks the key, that the setting is per workflow, and that it is off by default;
    • TestFeatureFlagKeys asserts the scope is ScopeWorkflow.

Requires

Supports

  • CRE-7469: the chainlink change that routes trigger events by mode. It bumps chainlink-common to this commit.

Add PerWorkflow.FeatureTriggerConsensusEnabledActivePeriod, the third
trigger mode after legacy and shadow. While an event's ObservedAt falls
in this window, the node routes it only to the central trigger queue
and only the consensus-queue plugin starts it. It takes precedence over
FeatureShadowTriggerModeActivePeriod, so the windows may overlap.

The flag is off by default. The chainlink change that reads it follows
in CRE-7469.

Refs: CRE-7468
@MStreet3
MStreet3 requested a review from a team as a code owner November 24, 2026 16:52
@github-actions

Copy link
Copy Markdown
Contributor

👋 MStreet3, thanks for creating this pull request!

To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team.

Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks!

@github-actions

Copy link
Copy Markdown
Contributor

✅ API Diff Results - github.com/smartcontractkit/chainlink-common

✅ Compatible Changes (1)

pkg/settings/cresettings.Workflows (1)
  • FeatureTriggerConsensusEnabledActivePeriod — ➕ Added

📄 View full apidiff report

@jmank88
jmank88 requested a review from bolekk November 24, 2026 17:09
@MStreet3
MStreet3 added this pull request to the merge queue Nov 24, 2026
Merged via the queue into main with commit 5ca55cf Nov 24, 2026
31 of 33 checks passed
@MStreet3
MStreet3 deleted the CRE-7468-trigger-consensus-flag branch November 24, 2026 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants