Repository navigation
fix(status): let a component's resource rollup reach the consumer that paints it (behold#100) - #1308
Merged
Merged
Conversation
The branch existed only on one machine, which the entry did not say — and the image these lanes depend on was built from it. It is now on lex00/floci as `fix/cfn-security-group-rules-and-tags`, ready for a PR to floci-io/floci. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015RL2jfiURpWMntm9VFmeHk
…t paints it (behold#100) #1300 added `resources` to `ComponentStatusRow` — how many of a component's own resources came back, the substrate-neutral answer for a substrate with no deploy object to read. behold#98 shipped its consumer against floci-az/floci-gcp rows and the field was there. On AWS it never arrived, for three separate reasons, each of which alone was enough to lose it. `mergeLiveEvidence` rebuilds the evidence object field by field, and `rollup` was not one of the fields it named. The stack overlay runs wherever a lexicon implements `describeStackStatus`, which is AWS and only AWS, so the counts were computed and then discarded on exactly the substrate the rollup was meant to be verified against. `chant components status --json` projects the row field by field too, and carries `live`, `unobserved` and `stack` but not `resources`. That projection is the only surface a consumer sees, so even a surviving rollup stopped at the CLI boundary. The counts were also wrong. `describeResources` defaults to the single-stack convention — the stack named after the environment — which is not what a component project deploys: the stack is whatever its own `cfn-deploy` names. Every declared resource came back absent, so a healthy ten-resource estate reported `present: 0`. The change set now reads each component's own `cfn-deploy` stacks (the same ones `observeComponentStacks` already reads), with `config.stacks` as the declared override, merged via `mergeObservations`. Verified against Floci on the canonical example added here: `{ total: 10, present: 10, absent: 0, unobserved: 0 }` alongside a `CREATE_COMPLETE` stack. Worth stating, because the field invites more confidence than it has earned: on AWS these counts inherit `describe-stack-resources`, so they report CloudFormation's per-resource inventory, not independently observed existence. Terminating a stack's instance out of band leaves it listed `CREATE_COMPLETE` and the rollup still reports it present. Making it a live check is #1269/#1271's per-type reader registry applied to the thin path. `examples/cc-aws-canonical` is the estate all of this was proved on — VPC / subnet / EC2 / SG, one component owning all ten resources via `liveNames` — and is the vehicle #1208's round-trip needs. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FBkcXzqjyY1YKWdaDFuqKs
4 of 11 tasks
Adding examples/cc-aws-canonical grows the corpus 101 -> 102, and it lands in the run-fallback group: `output(vpc.VpcId, "VpcId")` passes a same-file resource reference to an authoring helper, which the folder does not represent yet and reports as such. A documented limitation, not a fault in the example, so the count moves rather than the source. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FBkcXzqjyY1YKWdaDFuqKs
This was referenced Aug 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Unblocks behold#100 (B·aws), the next slot in the CC AWS lane (#1198).
#1300 added
resourcestoComponentStatusRow. behold#98 shipped its consumer against floci-az / floci-gcp rows, where the field was present. On AWS it never arrived — three independent drops, each sufficient on its own.The three drops
1.
mergeLiveEvidencesilently dropped it. The merge rebuilds the evidence object field by field, androllupwas not named. The stack overlay runs wherever a lexicon implementsdescribeStackStatus— AWS and only AWS — so the counts were computed and then discarded on exactly the substrate the rollup was meant to be verified against.2. The
--jsonprojection never emitted it.StatusJsonRowcarrieslive,unobservedandstack, but notresources. That projection is the only surface a consumer sees, so even a surviving rollup stopped at the CLI boundary.3. The counts were wrong anyway.
describeResourcesdefaults to the single-stack convention — the stack named after the environment. A component project deploys whatever its owncfn-deploynames, so every declared resource came back absent and a healthy ten-resource estate reportedpresent: 0. The change set now reads each component's owncfn-deploystacks (the same onesobserveComponentStacksalready reads), withconfig.stacksas the declared override, merged throughmergeObservations.Verified
Against Floci on
examples/cc-aws-canonical, added here:{ "component": "cc-canonical", "live": true, "stack": { "name": "cc-canonical", "status": "CREATE_COMPLETE", "healthy": true }, "resources": { "total": 10, "present": 10, "absent": 0, "unobserved": 0 } }Before this branch: no
resourceskey at all. With only fixes 1 and 2:present: 0over a healthy estate.What this does not buy, stated so nobody reads more into it
On AWS the counts inherit
describe-stack-resources, so they report CloudFormation's per-resource inventory rather than independently observed existence. Terminating a stack's EC2 instance out of band leaves it listedCREATE_COMPLETEand the rollup still reports it present — checked on the emulator, not assumed. Making the rollup a live existence check is #1269/#1271's per-type reader registry applied to the thin path, which #1198 already records as carried.The example
examples/cc-aws-canonicalis the estate this was proved on and the vehicle #1208's round-trip needs: VPC / subnet / EC2 / SG across two source directories, one component owning all ten resources vialiveNames. Its README records whystacksandsourceDirare load-bearing rather than decorative, and the two limits above.🤖 Generated with Claude Code
https://claude.ai/code/session_01FBkcXzqjyY1YKWdaDFuqKs