Skip to content

feat: resource-rollup component status (substrate-neutral) #98

Closed

Description

@lex00

Tracked under #74 (non-AWS parity) · foundation for chant CC (chant epic #1197) · Depends on: chant#1201 (native-observer harness) · Blocks: the three lane B slots

component-status.ts derives each component's live status from its CloudFormation stack (chant components status --live), which only exists on AWS. floci-az / floci-gcp have no deployment object to read. Move the status source to a rollup of each component's resources' observed states, keyed by the component-DAG node (already substrate-neutral).

Tasks

  • Compute per-component status by aggregating declared resources' observed states, not a stack/deployment read.
  • Keep AWS CFN-stack status as optional enrichment where present.
  • Preserve the component-DAG join (one row per node).

Acceptance criteria

  • Status renders for a component whose substrate has no deployment object (GCP/Azure per-resource).
  • AWS output unchanged for an existing AWS estate.
  • Viewer status colours/vocabulary unchanged.

Non-goals: per-cloud logical topology (lane B); reconcile/apply changes.


Correction (2026-08-01): this opens with a chant change, not a behold one

Filed as behold-only work. It cannot be: behold gets component status from
chant components status <env> --live --json, and ComponentStatusRow carries
live (a boolean), unobserved, and stack — CloudFormation-only. There is no
per-resource rollup in the payload, so behold has nothing to aggregate.

Two ways to close that, and the first is the one being taken:

  1. chant reports the rollup and behold renders it. chant already performs
    the component-to-entity join in liveEvidenceFromChangeSet/mergeEvidence,
    and it owns feat: estate-read batch 1, readGraph, graph document, contract kinds, cuts, plugins, Pages template (#1057 and more) #1089's tri-state, so this surfaces counts it already computes.
  2. behold re-derives the rollup from graph --live and joins it to components
    itself — duplicating chant's join and re-implementing the observed / absent /
    not-observed distinction on the far side of a CLI boundary, where a
    misreading turns a hole into "gone".

chant side: INTENTIUS/chant#1300 (open). Adds to ComponentStatusRow:

resources?: { total: number; present: number; absent: number; unobserved: number }

Present for every component with live evidence, including the identity join
(a rollup of one), so this consumer never branches on whether a live-name
mapping was configured. unobserved counts resources nobody could read and is
never folded into absent.

Revised behold scope, once that lands

  • component-status.ts derives status from row.resources rather than
    branching on row.stack.
  • Keep stack as optional enrichment where present — unchanged behaviour on
    AWS, which is the regression risk worth guarding.
  • Colour from the rollup: all present → good; any absent → the existing
    "recorded but not live" treatment; any unobserved → the hole treatment,
    never green and never red.
  • Preserve the component-DAG join (one row per node) — unchanged.

The acceptance criterion stays as filed: status renders for a component whose
substrate has no deployment object. It is now reachable, because the payload
carries what that requires.

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