Skip to content

graph --live: support multi-stack projects (iterate ChantConfig.stacks like lifecycle does) #1158

Closed

Description

@lex00

chant graph --format ir --live --env <e> --overlay assumes the single-stack convention (observe the stack named after the environment). A multi-stack project (ChantConfig.stacks: [{name, src}]) gets no live binding: the graph walks whatever discovery finds from the root and observes nothing, because no stack is named after the env.

Expected: when stacks is set, graph builds each stack's src scoped (matching the logical ids that stack deploys — same contract as resolveStackTargets gives snapshot/diff) and observes each against its own live stack name, merging the per-stack IRs into one graph (nodes tagged with their stack).

Repro: aws-bench chant-deployed estate (4 stacks, 3 regions) — graph --live --env floci --overlay returns only one subtree's 4 nodes with zero physicalIds, while all 4 stacks are live and green.

This is the binding that makes the estate's live overlay usable by agents (source-vs-live reconciliation in one artifact), so it's on the critical path for the agent-tooling work in #1139.

Activity

  1. lex00 commented on Aug 2, 2026

    @lex00
    ContributorAuthor

    Closing with #1162 — verified on a live two-stack project. graph --live --env local iterates ChantConfig.stacks and returns both stacks' resources in one graph, each node bound to the physical id from its own stack. lifecycle diff --live renders a section per stack and search --live binds across both. Evidence and the fixture are on #1162.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions