biulebiu opened a new pull request, #1083:
URL: https://github.com/apache/rocketmq-dashboard/pull/1083

   What is the purpose of the change
   
     Add the track-3 (AI Native) diagnostic skill layer: a short-lived Go CLI 
(mqctl) that fetches data from Studio's /api/ai tool gateway, plus two 
diagnostic skills (consumer-lag, broker-busy) and their runbooks.
     AI tools (Claude Code/Cursor/Trae) load the runbooks and call the CLI to 
diagnose consumer lag and broker-busy.
   
     Brief changelog
   
     - mqctl/: short-lived Go CLI (stdlib-only). Commands: tools / call <tool> 
/ skills / diagnose <skill>.
       - skill/consumerlag: finds lagging consumer groups via rmq.group.list 
(by totalLag).
       - skill/brokerbusy: lists clusters via rmq.cluster.list, flags 
broker-level data-source gaps.
       - studio/: JSON/REST client for /api/ai.
     - runbooks/consumer-lag.md, runbooks/broker-busy.md: troubleshooting 
runbooks for AI tools to load.
   
     Verifying this change
   
     cd mqctl
     gofmt -l .          # clean
     go vet ./...        # clean
     go build -o mqctl .
     go test ./...        # all pass (studio client + both skills, 
httptest-mocked)
   
     ./mqctl skills
     ./mqctl diagnose consumer-lag --cluster <cluster>   # against a running 
Studio
   
     Known gaps (data sources Studio has not exposed yet): rmq.group.progress, 
rmq.client.stack (501 stub), rmq.broker.status, rmq.broker.config. The skills 
report these gaps rather than guessing a conclusion.
   
     Checklist
   
     - [x] Format the pull request title like [ISSUE #123] Fix xxx. The commits 
in the pull request should have a meaningful subject line and body.
     - [x] Write a pull request description that is detailed enough to 
understand what the pull request does, how, and why.
     - [x] Write necessary unit-test to verify the logic correction.
     - [ ] Run mvn -B clean apache-rat:check findbugs:findbugs 
checkstyle:checkstyle — N/A: the added code is Go; verified with go vet / go 
build / go test instead of Maven.
     - [x] Sign the Apache ICLA / DCO (commit carries Signed-off-by).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to