fix(autoobserve): register the AutoObserve routes with the OpenAPI coverage guard

The OpenAPI coverage guard from main panics on a router function it does
not know and pins the set of enabled MCP tools. The enterprise AutoObserve
routes mount under /api, so autoobserve_routes joins ROUTER_PREFIXES, and
their seven operations, MCP tools by design, are listed as enterprise tools.
This commit is contained in:
Ashish Kolhe
2026-11-03 12:13:35 +05:30
parent 441f3c43c5
commit 66a8aef842
2 changed files with 8 additions and 0 deletions
@@ -6,6 +6,13 @@ ent ActivateRemoteTaskSigningCandidate
all AddPanel
oss AddUserToOrg
all AssumeServiceAccount
ent AutoObserveCoverage
ent AutoObserveCoverageHistory
ent AutoObserveDeleteMark
ent AutoObserveEntityTypes
ent AutoObserveListMarks
ent AutoObservePutMark
ent AutoObserveSuggestions
all CancelAlertMute
ent CancelAnomalyTraining
all CancelDowntime
@@ -59,6 +59,7 @@ const ROUTER_PREFIXES: &[(&str, &str)] = &[
("public_dashboard_admin_routes", "/api"),
("ai_chat_routes", "/api"),
("alert_calibration_routes", "/api"),
("autoobserve_routes", "/api"),
("downtime_routes", "/api"),
("report_routes", "/api"),
("oncall_routes", "/api"),