Skip to content

feat(pipeline): flat context store needs per-node scoping #32

@harperreed

Description

@harperreed

Summary

PipelineContext is a flat, global map[string]string. Any node can read and overwrite any key set by any other node. No namespacing, no scoping, no read/write visibility constraints.

Impact

  • Node B can accidentally overwrite Node A's output via key collision
  • No way to express "this value is private to this subgraph"
  • The context. prefix in variable resolution is a naming convention, not enforcement
  • Works fine for well-authored small pipelines; becomes a hazard at scale

Recommendation

Sources

Found by: Grad Student AI Researcher, OpenAI Researcher (expert panel review)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1: highSignificant impact on correctness or usabilityarea/enginePipeline execution engineenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions