Skip to content

feat(graph): add env and stages render granularities - #356

Merged
joshua-temple merged 1 commit into
mainfrom
feat/visualizer-granularities
Jun 25, 2026
Merged

joshua-temple merged 1 commit into
mainfrom
feat/visualizer-granularities

Conversation

@joshua-temple

Copy link
Copy Markdown
Collaborator

Adds the env and stages projections to cascade graph, completing the three --granularity values from #303. env renders the promotion ladder as a stateDiagram-v2 with hotfix divergence and rejoin states, built from the environment and state model. stages renders the coarse trunk, build, deploy, promote, release lifecycle as a flowchart that collapses callbacks. jobs is unchanged.

The emitter selects the diagram family from a new view-model Kind, so the builders stay render-agnostic and the emitter does no granularity special-casing. The Kind zero value renders as a flowchart, so the original jobs projection stays byte-identical. Golden and determinism tests cover both new projections; the graph command and CLI tests now assert env and stages render instead of rejecting. A compiled-binary cmd-level test runs cascade graph --granularity env against a diverged-state manifest and asserts the state machine output, matching the test precedent set by the graph command in #354.

No generator output, schema, or cascade verify behavior change.

Closes #303.

Signed-off-by: Joshua Temple <joshua.temple@stablekernel.com>
@joshua-temple
joshua-temple enabled auto-merge (squash) June 25, 2026 17:36
@joshua-temple
joshua-temple merged commit 08d8bf7 into main Jun 25, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

visualizer: three rendering granularities (env / stages / jobs)

1 participant