Skip to content

Predicates don't gate link execution in linear chains #49

@JoshuaWink

Description

@JoshuaWink

We discovered that Chain.connect() predicates do NOT prevent link execution in linear pipelines.

Expected: When a predicate returns False, the target link should be skipped.

Actual: All links run regardless of predicate conditions.

Solution: Conditional logic must be implemented INSIDE Links using return statements.

Questions:

  1. Is this intentional design?
  2. Are predicates only for DAG routing?
  3. Should documentation clarify this?

Reference: https://github.com/JoshuaWink/random-research-journal/blob/main/implementations/calendar-workflow/FIX_AVAILABILITY_GATING.md

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