Ideas: Should ASI:BUILD expose a CognitiveCycle health dashboard via MCP or REST? #143
web3guru888
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Context
With the three-layer fault tolerance system (#137, #139) in place, the CognitiveCycle generates rich health data every tick:
This data is currently only accessible by consuming
cycle.fault_summaryevents from the EventBus. For operators running ASI:BUILD in production, that's not enough — they need a real-time health view.The question
How should operators observe the health of a running CognitiveCycle?
Option A: MCP tool endpoint
Expose health as a read-only MCP tool alongside the existing Kenny Graph server:
Pro: Composable with existing MCP client tooling; works with Claude Desktop
Con: Polling-based (MCP doesn't push events); latency depends on poll interval
Option B: SSE stream on the FastAPI server
Add a
/cycle/health/streamServer-Sent Events endpoint that pushes a health delta after each tick:Pro: Real-time push; easy to consume with
curlor a browser dashboardCon: Adds another server dependency; SSE doesn't work well behind some proxies
Option C: Prometheus metrics
Expose health as Prometheus metrics, readable by Grafana:
Pro: Industry standard; works with any Grafana/AlertManager setup; handles history
Con: Requires running a Prometheus scrape target; more infra to set up
Option D: Blackboard-native — query the Blackboard directly
The
CycleFaultSummaryis already written to the Blackboard every tick. An operator could just read it:Pro: Zero additional infra; uses the existing Blackboard subscription model
Con: Requires understanding the Blackboard API; not accessible from outside the process
My current thinking
Option B (SSE) makes the most sense for the first iteration because:
curlQuestions for the community
Tagging this as part of the Phase 4 production deployment story (Discussion #123, Phase 4.4).
All reactions