Repository navigation
Conversation
A daily read takes the commit production's /health names, the @x402/stellar range in the facilitator's package.json at that commit, and npm's latest, and publishes 1 when they differ. Both upstream alarms now read a day with no point as a breach, so upstream-silent goes. Co-Authored-By: Claude <209825114+claude[bot]@users.noreply.github.com>
Name the URL when a body is not JSON, keep one constant for this repo's raw URL, drop a test that only compared constants, and move 0026's criterion and 0147's decision 3 off upstream-silent. Co-Authored-By: Claude <209825114+claude[bot]@users.noreply.github.com>
A one-day, one-period alarm is evaluated every minute on a sliding window, which loses yesterday's 08:00 point before today's lands: both alarms would fire and clear every morning. Co-Authored-By: Claude <209825114+claude[bot]@users.noreply.github.com>
Co-Authored-By: Claude <209825114+claude[bot]@users.noreply.github.com>
…-library-behind-alarm # Conflicts: # docs/monitoring.md # infra/README.md # infra/src/lib/alarms/upstream.ts # lore/1-tasks/archive/0027_FEATURE_alerts-and-metrics/notes/G-metrics.md
…failure case The harness already answers 404 for a key that holds undefined, and "GitHub without the file" ran the same path as "npm down". Co-Authored-By: Claude <209825114+claude[bot]@users.noreply.github.com>
Co-Authored-By: Claude <209825114+claude[bot]@users.noreply.github.com>
…-library-behind-alarm # Conflicts: # docs/monitoring.md
…-library-behind-alarm # Conflicts: # docs/monitoring.md
…-library-behind-alarm # Conflicts: # docs/monitoring.md
This branch has not been deployed
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.
Summary
The facilitator verifies and settles through upstream's
@x402/stellar. No alarm says when production runs an older one than npm'slatest: on 2026-11-16 production ran 2.28.0, while npm anddevelophad 2.31.0.upstream-changed(#149) stays silent, because it reads spec files, not the library.The off-server check's 08:00 UTC run gets a library section, beside the upstream one:
Both upstream alarms now read a day with no point as a breach, so
upstream-silentgoes:Both read whole UTC days (
WallClockWindow): CloudWatch's default sliding 24 hours loses yesterday's 08:00 point before today's lands, and would fire and clear every morning. A day's result reaches the channel after 00:00 UTC.upstream-library-behindfires/healthhas no commit, a range not~X.Y.Z, GitHub, npm or/healthdownupstream-library-behindfires after 00:00 UTC, the log names the readupstream-silentafter 2 daysupstream-changedafter 00:00 UTC, the log names the fileUnchanged: the four spec files and the pin, 08:00 UTC, the 30 s deadline, the other alarms.
Evidence
runLibraryagainst production, GitHub and npm:{"msg":"watch_library","commit":"5d2e26ba…","production":"2.28.0","latest":"2.31.0"}andupstream_library_behind = 1.watch-library.test.ts: 1 when production asks for another version, 0 when equal; no point andwatch_section_failedfor a missing commit, a^range, npm 404 and GitHub 404.alarms.test.ts: both upstream alarms areFILL(m, 1),Maximum, one day, breaching, over whole UTC days; the group holdsupstream-changedandupstream-library-behind.watch-handler.test.ts: the 08:00 run publishes both points; the handler refuses to start withoutWATCH_HEALTH_URL.make check-series GROUP=upstream: lists both series, both missing until the Watch deploy.Considered and rejected
develop: it misses today's case, merged ondevelopand not deployed.upstream_files_changed: production is behind most of the time, which would hide spec changes behind one ALARM state.treatMissingData: breachingalone: a breaching-only alarm missed a 3-hour halt in the Prices API (0222); the factory'sFILLshape is used, withbreachingfor a series never written.Merge Danger
Door: two-way
The
upstreamgroup is off in production, so merging creates and removes no alarm there. A revert restoresupstream-silent.Blast Radius: Watch Lambda
The handler now needs
WATCH_HEALTH_URL, set by the Watch stack fromuptime.url; a Watch deploy without this stack change would fail every run. The library section adds three GETs to the 08:00 run only.🤖 Generated with Claude Code