Repository navigation
Stop grading /version on the status dashboard - #188
Conversation
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
There was a problem hiding this comment.
🟡 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
versioncheck and updates outage classification fixtures. - Adds regression coverage for redirected
/versionresponses. - 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.
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
There was a problem hiding this comment.
🟢 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 outagetest (line 105) still listsversionas 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
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
There was a problem hiding this comment.
🟢 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
Summary
The status dashboard's "Deployment version" check probed
GET /versionand warned whenever it wasn't served. Production's fronting edge answers that path with a308to 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./versionis 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:
/versionis 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 incheckLinkage. Only the banner is purely informational — with no/versionit is simply omitted. The advertised II list goes with it, and an II the dashboard cannot discover is one it cannot monitor, soii-targetandii-unresolvedfail 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 itsRunning deployment: v0.4.0 @ eb5c31fline and both of its monitored IIs.Related issues
None.
Changes
checks.js: drop theversioncheck from the endpoints section; keep theGET /versionread that populatesfacts.deploymentandfacts.advertised, with a comment explaining why it is read but not graded, and what a missing/versiondoes and does not cost.checks.test.js: newcheckMcpEndpoints does not grade /versionregression test — a server whose/versionredirects (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:versionno longer exists, so drop it from the "auxiliary checks excluded from the major-outage test" note and from the total-outage fixture.README.md:/versionremoved 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-targetscargo test --locked --all-targetscargo 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-statuspasses (71 tests).Also verified against both live deployments with the registration probes disabled (
runDashboard({ mutating: false }), read-only):Every section reports
passon both, and staging's deployment banner is intact.Checklist
🤖 Generated with Claude Code
https://claude.ai/code/session_01B94J3aqjbMhUKph1Rx3Zxz