fix(hermes): repair sonar/ananke/go:S3776/AZ-IckhO1fRfbdzqD-5r #7

Open
bstein wants to merge 1 commits from hermes-repair/sonar-AZ-IckhO1fRfbdzqD-5r into main
Owner

Hermes repair proposal for incident sonar/ananke/go:S3776/AZ-IckhO1fRfbdzqD-5r

Incident: sonar/ananke/go:S3776/AZ-IckhO1fRfbdzqD-5r
File: cmd/ananke/main_dispatch.go
SonarQube finding: https://quality.bstein.dev/project/issues?resolved=false&id=ananke&open=AZ-IckhO1fRfbdzqD-5r
Analysis: Extracting the intent command's error handling reduces runMain's cognitive complexity while preserving its command routing, logging, return codes, and argument handling exactly.
Rationale: This moves one existing conditional out of runMain, reducing its cognitive complexity below the threshold. The helper receives the identical args[2:] slice, calls the same command, logs the same error text, and returns the same status codes.
Hermes run: run_59697a920db94103b77d3c407c95af2d
That link opens the run itself: the prompt Hermes was given, the evidence bundle it read, the tools it called, and the JSON it returned.

Proposed by Hermes; validated and pushed by Ariadne; requires human review — no automatic merge.

## Hermes repair proposal for incident sonar/ananke/go:S3776/AZ-IckhO1fRfbdzqD-5r **Incident:** sonar/ananke/go:S3776/AZ-IckhO1fRfbdzqD-5r **File:** `cmd/ananke/main_dispatch.go` **SonarQube finding:** https://quality.bstein.dev/project/issues?resolved=false&id=ananke&open=AZ-IckhO1fRfbdzqD-5r **Analysis:** Extracting the intent command's error handling reduces runMain's cognitive complexity while preserving its command routing, logging, return codes, and argument handling exactly. **Rationale:** This moves one existing conditional out of runMain, reducing its cognitive complexity below the threshold. The helper receives the identical args[2:] slice, calls the same command, logs the same error text, and returns the same status codes. **Hermes run:** [run_59697a920db94103b77d3c407c95af2d](https://agent.bstein.dev/chat?resume=run_59697a920db94103b77d3c407c95af2d) That link opens the run itself: the prompt Hermes was given, the evidence bundle it read, the tools it called, and the JSON it returned. Proposed by Hermes; validated and pushed by Ariadne; requires human review — no automatic merge.
bstein added 1 commit 2026-08-07 08:17:37 +00:00
This pull request can be merged automatically.
You are not authorized to merge this pull request.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin hermes-repair/sonar-AZ-IckhO1fRfbdzqD-5r:hermes-repair/sonar-AZ-IckhO1fRfbdzqD-5r
git checkout hermes-repair/sonar-AZ-IckhO1fRfbdzqD-5r
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bstein/ananke#7
No description provided.