Skip to content

Stitching Rules

Cross-domain dependency stitching.

Refactored to use the Collect-then-Apply pattern. Phase 1: Read-only analysis creates a StitchingPlan. Phase 2: Write-only application mutates the graph.

Classes

StitchingRule

Bases: ABC

Abstract base class for all stitching rules.

Functions

plan(graph) abstractmethod

Analyze the graph and return a plan of edges to add. MUST NOT mutate the graph.

EnvVarToInfraRule

Bases: StitchingRule

Stitching rule that links environment variables to infrastructure resources.

InfraToInfraRule

Bases: StitchingRule

Stitching rule that links infrastructure resources to other resources.