Skip to content

feat(health): add advisor as a repairable clusterSys module - #660

Draft
traviswu-bigstack wants to merge 1 commit into
developfrom
travis.wu/advisor-health-module
Draft

traviswu-bigstack wants to merge 1 commit into
developfrom
travis.wu/advisor-health-module

Conversation

@traviswu-bigstack

Copy link
Copy Markdown
Collaborator

What type of PR is this?

/kind feature

What this PR does / why we need it

Declares advisor as a health module so CubeCOS's new Advisor check reaches the UI. The component list here is hardcoded and an unknown name returns 400, so without this the check exists in cubecos and is invisible everywhere else.

It is marked repairable because cubecos provides health_advisor_repair, which starts the agent's unit — so cluster check_repair can fix it manually or automatically. It is placed last in clusterSys; OrderSensitiveServices is named for its order, which is the display order, so appending avoids moving anything that exists.

Which issue(s) this PR fixes

Fixes #659

Special notes for your reviewer

Merge order matters. api/cube-cos-openapi is a submodule and this commit bumps its pointer. Merge bigstack-oss/cube-cos-openapi's PR first, then repoint this at the merged sha.

api/docs.json is git-ignored — a build artifact, regenerated by CI's pinned yq -o=json -I=4, so there is nothing to commit for it here.

Verified with a throwaway test (deleted before committing) that Modules["advisor"] exists, IsRepairable is true, and clusterSys/advisor resolves as a valid pair — Modules is built from OrderSensitiveServices at the bottom of the file, so that is the thing worth proving rather than reading.

Additional documentation


🤖 Generated with Claude Code

https://claude.ai/code/session_01PZ5umjjCedZwWtbAbiMjfj

Cube AI Advisor agent health/repair is landing in cubecos (#1485).
Add advisor to OrderSensitiveServices' clusterSys, after license, so
it appears in the health view and cluster check_repair can restart
its agent. Bumps the cube-cos-openapi submodule for the matching
moduleType enum additions.

Signed-off-by: Travis Wu <travis.wu@bigstack.co>
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PZ5umjjCedZwWtbAbiMjfj
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.

[Task] Declare the advisor health module

1 participant