Skip to content

rust: reject foreign and invalid DAG upstream handles #974

Closed

Description

@athvin

Evidence

Handle and NodeId carry only a node index. DagBuilder::then and epilogue accept a handle from a different builder; assembly does not check ownership or topological bounds. A foreign out-of-range index can produce a DAG that later panics in readiness evaluation, while a same-index foreign handle silently binds to an unrelated node. Source.

Change

Make upstream handles builder-specific or reject foreign and invalid upstream references during construction. Preserve valid DAG fingerprints and execution order.

Done when

  • A handle from a different builder is rejected even when its index exists locally.
  • An out-of-range or non-topological upstream reference fails before a DAG reaches readiness evaluation.
  • Existing er-server DAGs assemble with unchanged fingerprints.

Activity

  1. added
    code-cleanup
    on Nov 9, 2026
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

    code-cleanup

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions