Make /ci/tofu functional: encode infra cascade grammar #5

Open
opened 2026-04-17 20:23:11 -07:00 by nelsong6 · 0 comments
nelsong6 commented 2026-04-17 20:23:11 -07:00 (Migrated from github.com)

Problem

/ci/tofu currently uses the generic CIView with tofuRepos and an empty tofuEdges array (ci-views.ts:29-34). It shows 6 repo nodes as disconnected islands with no edges, no cascade semantics, and no grammar check — so the view doesn't answer any real question about infra health.

Compare to /ci/fzt and /ci/api, which both:

  • Encode a verification grammar (edges from producer→consumer with a field to match).
  • Run that grammar against live pipeline/release/deploy state.
  • Surface a page-level 'cascade ok / running / broken' badge.
  • Color per-edge and per-node by health (issue #17's work).

/ci/tofu has none of that.

Requested

Define what 'tofu cascade healthy' means and encode it. Candidates for the grammar:

  1. Bootstrap → consumer: infra-bootstrap's output (e.g. shared Key Vault name, DNS zone, Cosmos account) must match what each consumer's tofu expects. Probably too ambitious — the outputs aren't versioned releases, they're live state.
  2. Tofu apply freshness: each repo's `tofu apply` (tofu.yml workflow) ran successfully on `main` since the last push to its `tofu/` dir. Detects drift-by-neglect — 'you changed infra but didn't apply it'.
  3. Provider version alignment: all repos pin the same azurerm/azuread/github provider versions. Cheap to check, catches divergence that would surface as subtle bugs.

Option 2 is probably the most useful visualization: a list of infra repos, each colored by whether its last tofu apply is caught up with the last push to its tofu/ dir. The check-ci skill family could mirror it.

Where

  • frontend/src/data/ci-views.ts — define tofuEdges and/or a new view-specific data shape.
  • frontend/src/components/CITofuView.tsx — likely wants its own view component like CIFztView/CIApiContainerView once grammar is defined, rather than the generic CIView.
  • Consider adding a check-ci-tofu skill to mirror the API-side verification, consistent with the pattern for fzt/api.
## Problem `/ci/tofu` currently uses the generic `CIView` with `tofuRepos` and an empty `tofuEdges` array ([ci-views.ts:29-34](frontend/src/data/ci-views.ts#L29-L34)). It shows 6 repo nodes as disconnected islands with no edges, no cascade semantics, and no grammar check — so the view doesn't answer any real question about infra health. Compare to `/ci/fzt` and `/ci/api`, which both: - Encode a verification grammar (edges from producer→consumer with a field to match). - Run that grammar against live pipeline/release/deploy state. - Surface a page-level 'cascade ok / running / broken' badge. - Color per-edge and per-node by health (issue #17's work). `/ci/tofu` has none of that. ## Requested Define what 'tofu cascade healthy' means and encode it. Candidates for the grammar: 1. **Bootstrap → consumer**: infra-bootstrap's output (e.g. shared Key Vault name, DNS zone, Cosmos account) must match what each consumer's tofu expects. Probably too ambitious — the outputs aren't versioned releases, they're live state. 2. **Tofu apply freshness**: each repo's \`tofu apply\` (tofu.yml workflow) ran successfully on \`main\` since the last push to its \`tofu/\` dir. Detects drift-by-neglect — 'you changed infra but didn't apply it'. 3. **Provider version alignment**: all repos pin the same azurerm/azuread/github provider versions. Cheap to check, catches divergence that would surface as subtle bugs. Option 2 is probably the most useful visualization: a list of infra repos, each colored by whether its last tofu apply is caught up with the last push to its tofu/ dir. The check-ci skill family could mirror it. ## Where - [frontend/src/data/ci-views.ts](frontend/src/data/ci-views.ts#L29) — define `tofuEdges` and/or a new view-specific data shape. - [frontend/src/components/CITofuView.tsx](frontend/src/components/CITofuView.tsx) — likely wants its own view component like CIFztView/CIApiContainerView once grammar is defined, rather than the generic CIView. - Consider adding a `check-ci-tofu` skill to mirror the API-side verification, consistent with the pattern for fzt/api.
Commenting is not possible because the repository is archived.
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
romaine-life/diagrams#5
No description provided.