fix(hermes): repair sonar/metis/go:S3776/AZ2z_XbbKy9i4pkIqvM9 #1

Open
bstein wants to merge 1 commits from hermes-repair/sonar-AZ2z_XbbKy9i4pkIqvM9 into master
Owner

Hermes repair proposal for incident sonar/metis/go:S3776/AZ2z_XbbKy9i4pkIqvM9

Incident: sonar/metis/go:S3776/AZ2z_XbbKy9i4pkIqvM9
File: pkg/sentinel/collector.go
SonarQube finding: https://quality.bstein.dev/project/issues?resolved=false&id=metis&open=AZ2z_XbbKy9i4pkIqvM9
Analysis: Replace the two conditional CutPrefix assignments with direct assignments. CutPrefix returns an empty string when its prefix is absent, which preserves the zero-value fields while removing two cognitive-complexity branches.
Rationale: This localized change reduces parseUSBScratchFstab's cognitive complexity by two, from 17 to the allowed 15, without changing source parsing behavior.
Hermes run: run_f137e7292f184f4589e953777c3ff4af
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/metis/go:S3776/AZ2z_XbbKy9i4pkIqvM9 **Incident:** sonar/metis/go:S3776/AZ2z_XbbKy9i4pkIqvM9 **File:** `pkg/sentinel/collector.go` **SonarQube finding:** https://quality.bstein.dev/project/issues?resolved=false&id=metis&open=AZ2z_XbbKy9i4pkIqvM9 **Analysis:** Replace the two conditional CutPrefix assignments with direct assignments. CutPrefix returns an empty string when its prefix is absent, which preserves the zero-value fields while removing two cognitive-complexity branches. **Rationale:** This localized change reduces parseUSBScratchFstab's cognitive complexity by two, from 17 to the allowed 15, without changing source parsing behavior. **Hermes run:** [run_f137e7292f184f4589e953777c3ff4af](https://agent.bstein.dev/chat?resume=run_f137e7292f184f4589e953777c3ff4af) 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 04:17:54 +00:00
This pull request doesn't have enough required approvals yet. 0 of 1 approvals granted from users or teams on the allowlist.
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-AZ2z_XbbKy9i4pkIqvM9:hermes-repair/sonar-AZ2z_XbbKy9i4pkIqvM9
git checkout hermes-repair/sonar-AZ2z_XbbKy9i4pkIqvM9
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: titan/metis#1
No description provided.