Skip to content

feat(aws): monitoring stack composite (#1139) - #1920

Merged
lex00 merged 1 commit into
mainfrom
feat/1139-monitoring-stack
Aug 25, 2026
Merged

lex00 merged 1 commit into
mainfrom
feat/1139-monitoring-stack

Conversation

@lex00

@lex00 lex00 commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds MonitoringStack — a CwDashboard wired to up to three named metrics (metric1..metric3), with an optional Alarm per metric — the composite gap #1139 names: "Monitoring stack (dashboard + metrics + alarms) — x44 combined, nothing shipped".
  • Fixed metric slots, not a metrics[] array: an Alarm-array loop is the control-flow-over-resources shape EVL002/EVL003 rule out for reference composites (same reasoning as EksCluster's addon1..addon3).
  • Deliberately excludes notification wiring (SNS topic creation), math-expression/composite alarms, and dynamic values inside the dashboard body (DashboardBody is one flat JSON string CloudFormation does not template) — documented in the file header as scope boundaries, same style as EksCluster's.
  • Re-verified the premise: no Dashboard/Alarm composite existed in lexicons/aws/src/composites before this change.

Relates to #1139 (epic stays open — other composite gaps from the corpus are separate child issues, two more in flight from sibling PRs).

Test plan

  • lexicons/aws/src/composites/monitoring-stack.test.ts — 8 unit tests (dashboard-only metric, alarmed metric, three-slot mix, dimensionValue Ref/GetAtt escape hatch, no-dimension metrics, alarm-action/comparison/eval-period wiring, defaults escape hatch, expandComposite logical names)
  • barrel.test.ts — confirms MonitoringStack reaches the root package export
  • Full aws lexicon suite: npx vitest run lexicons/aws — 122 files, 1596 passed
  • chant dev check-lexicon lexicons/aws — all 23 tier-1 checks pass, including "every shipped example builds"
  • tsc build of the aws lexicon package — clean
  • Floci emulator: synthesized a scratch app using MonitoringStack, cfn-deployd to a local Floci container, confirmed both AWS::CloudWatch::Dashboard and AWS::CloudWatch::Alarm reach CREATE_COMPLETE, and describe-alarms round-trips every alarm property exactly
  • Two emulator gaps found in that run, logged in test/floci-gaps.md (entries 11-12): list-dashboards/get-dashboard are UnsupportedOperation despite CFN reporting the dashboard created, and the dashboard's physical id ignores the declared DashboardName

Co-Authored-By: Claude Fable 5 noreply@anthropic.com

https://claude.ai/code/session_013GoZx3iYpaQxKNCNxguYvT

…#1139)

The recurring hand-rolled shape the aws-bench corpus surfaced: a dashboard,
a metric per resource, and a near-identical alarm next to each one — 44
combined dashboard+alarm+metric instantiations across the corpus, nothing
equivalent shipped. Fixed metric1..metric3 slots (an Alarm-array loop is
the control-flow-over-resources shape EVL002/EVL003 rule out for reference
composites, same reasoning as EksCluster's addon1..addon3).

Verified against Floci: a CwDashboard + Alarm pair from this composite
deploys via cfn-deploy to CREATE_COMPLETE, and describe-alarms round-trips
every property. Two emulator gaps found along the way (CloudWatch's
list/get-dashboard both UnsupportedOperation despite CFN reporting the
Dashboard created; its physical id ignores the declared DashboardName) —
logged in test/floci-gaps.md, entries 11-12, not filed upstream yet.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013GoZx3iYpaQxKNCNxguYvT
@lex00
lex00 merged commit 4b221ff into main Aug 25, 2026
3 of 4 checks passed
@lex00
lex00 deleted the feat/1139-monitoring-stack branch August 25, 2026 05:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant