Skip to content

Stop grading /version on the status dashboard - #188

Merged
aterga merged 3 commits into
mainfrom
claude/remove-version-health-checks-1nskcv
Sep 3, 2026
Merged

aterga merged 3 commits into
mainfrom
claude/remove-version-health-checks-1nskcv

Conversation

@aterga

@aterga aterga commented Sep 3, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

The status dashboard's "Deployment version" check probed GET /version and warned whenever it wasn't served. Production's fronting edge answers that path with a 308 to the landing site rather than serving it, so the check warned on every run — a permanent amber badge on the production column (and on the whole dashboard's overall verdict) while the MCP surface served everything an MCP client depends on, correctly.

/version is an operator convenience, not part of the MCP contract, and a build stamp nobody exposes says nothing about whether the server is up. So it is no longer graded.

The probe itself stays, ungraded: /version is the server's own account of which build is running and which II instances it serves, and it still feeds the report's deployment banner and the II discovery in checkLinkage. Only the banner is purely informational — with no /version it is simply omitted. The advertised II list goes with it, and an II the dashboard cannot discover is one it cannot monitor, so ii-target and ii-unresolved fail unless the II is pinned; that behaviour is unchanged by this PR, and pinning is how the deployed dashboard configures production (--target-ii production=https://id.ai). Staging advertises its list as before, so it keeps its Running deployment: v0.4.0 @ eb5c31f line and both of its monitored IIs.

Related issues

None.

Changes

  • checks.js: drop the version check from the endpoints section; keep the GET /version read that populates facts.deployment and facts.advertised, with a comment explaining why it is read but not graded, and what a missing /version does and does not cost.
  • checks.test.js: new checkMcpEndpoints does not grade /version regression test — a server whose /version redirects (production's shape) yields the same check ids and the same section status as one that serves it, with the deployment facts and advertised instance list simply empty.
  • statuspage.js / statuspage.test.js: version no longer exists, so drop it from the "auxiliary checks excluded from the major-outage test" note and from the total-outage fixture.
  • README.md: /version removed from the question-1 probe list, a paragraph on why it is read without being checked (and on the II pin a target needs when it isn't served), and the production findings snapshot updated — that edge redirect is no longer what stands between production and an all-green column.

Testing

  • cargo build --locked --all-targets
  • cargo test --locked --all-targets
  • cargo fmt --all / cargo clippy --all-targets (tree is warning-free)
  • npm test --prefix monitoring/mcp-status (if the dashboard changed)

The cargo boxes are unchecked because no Rust code changed — this is dashboard-only. npm test --prefix monitoring/mcp-status passes (71 tests).

Also verified against both live deployments with the registration probes disabled (runDashboard({ mutating: false }), read-only):

staging:    overall=pass  deployment={"version":"0.4.0","commit":"eb5c31f…"}
production: overall=pass  deployment={}

Every section reports pass on both, and staging's deployment banner is intact.

Checklist

  • I have read the Contributing guidelines.
  • Docs (README / comments) updated for any user-visible change.
  • No secrets, credentials, or internal-only information are included.

🤖 Generated with Claude Code

https://claude.ai/code/session_01B94J3aqjbMhUKph1Rx3Zxz

Production's fronting edge answers `GET /version` with a redirect to the
landing site rather than serving it, so the "Deployment version" check
warned on every run — a permanent amber badge on a column where the MCP
surface served everything a client depends on, correctly.

The endpoint is an operator convenience, not part of the MCP contract, and
a build stamp nobody exposes says nothing about whether the server is up.
So drop the check. The probe itself stays: `/version` is the server's own
account of which build is running and which II instances it serves, and it
still feeds the deployment banner and the II discovery in checkLinkage —
those are informational and degrade to absent (as they already did on
production, whose II is pinned with --target-ii). Staging keeps its
"Running deployment: v0.4.0 @ eb5c31f" line and both of its monitored IIs.

Verified against both live deployments with the registration probes off:
staging and production now report pass across every section.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01B94J3aqjbMhUKph1Rx3Zxz
@aterga
aterga requested a balanced review from Copilot September 3, 2026 10:12
@aterga
aterga marked this pull request as ready for review September 3, 2026 10:12
@aterga
aterga requested a review from a team September 3, 2026 10:12

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The README incorrectly states that missing II discovery is merely unreported when it causes failing linkage and health checks without a configured pin.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Removes /version from dashboard health grading while retaining its deployment metadata and II discovery data.

Changes:

  • Removes the version check and updates outage classification fixtures.
  • Adds regression coverage for redirected /version responses.
  • Updates monitoring documentation.
File summaries
File Description
checks.js Makes /version informational only.
checks.test.js Tests ungraded /version behavior.
statuspage.js Updates availability-check documentation.
statuspage.test.js Removes version from outage fixtures.
README.md Documents the revised behavior.
Review details
  • Files reviewed: 5/5 changed files
  • Comments generated: 1
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread monitoring/mcp-status/README.md Resolved
The previous wording said the deployment banner and the advertised II list
"simply go unreported" when /version is not served. Only the banner is that
harmless. The advertised list feeds checkLinkage and checkIiHealth, and with
nothing advertised and no pin those emit a failing ii-target and
ii-unresolved — a dashboard that cannot discover the II cannot monitor it.
That behaviour predates this change, but the sentence read as though nothing
degraded at all, which would mislead an operator standing up a new target.

Say it plainly in the README and in the comment on the probe, and name the
fix: pin the II with --ii / II_ORIGIN (or --target-ii per instance), which is
how the deployed dashboard configures production.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01B94J3aqjbMhUKph1Rx3Zxz
Copilot AI review requested due to automatic review settings September 3, 2026 10:15

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The functional change is sound and tested; remaining feedback concerns minor documentation inconsistencies.

Review details

Suppressed comments (1)

Previously missed (1) — in code that hasn't changed since the last review.

monitoring/mcp-status/statuspage.test.js:54

  • The matching comment on the componentStatusFor: a realistic total outage test (line 105) still lists version as an auxiliary check. Since this PR removes that check entirely, update that second note as well so the test documentation matches the fixture and production code.
  • Files reviewed: 5/5 changed files
  • Comments generated: 1
  • Review effort level: Balanced

Comment thread monitoring/mcp-status/README.md Resolved
Two leftovers from removing the check:

The statuspage total-outage test still named `version` among the auxiliary
checks that survive an unreachable server — it no longer exists, and the
fixture next to that comment had already dropped it.

The production findings snapshot said "neither is graded any more" of the
blank deployment banner and the unreadable linked II. Only `/version` is
ungraded; an II the dashboard cannot resolve still fails, which is precisely
why the deployed dashboard pins production's with --target-ii. Say which is
which.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01B94J3aqjbMhUKph1Rx3Zxz
Copilot AI review requested due to automatic review settings September 3, 2026 10:18

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The implementation, tests, fixtures, and documentation consistently remove /version from health grading while preserving its informational use.

Review details
  • Files reviewed: 5/5 changed files
  • Comments generated: 0 new
  • Review effort level: Balanced

@aterga
aterga merged commit 1284a77 into main Sep 3, 2026
14 checks passed
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.

4 participants