agent/php/Controllers/Api
Snider 83df8ad71a fix(agent): address CodeRabbit + SonarCloud findings on PR #6
20+ CHANGES_REQUESTED dispositions across PHP MCP services, Go pkg/agentic,
hermes_runner_mcp Python server, plugin shell scripts.

Highlights:
- DatabaseSchema.php: identifier quoting
- AwardCredits.php: task row locking order
- CreditTransaction.php: fail-fast row decoding
- OpenApiGenerator.php: YAML parse handling + uri query params
- CaptureDispatchResultJob.php: AgentProfile namespace fix
- CreditsController.php: missing workspace_id fail-closed
- QueryAuditService.php: prose query false positives + unbounded aggregation
- McpHealthService.php: proc_close after timeout + env var resolution
- CreditLedger.php + FleetOverview.php: workspace agent + dispatch target validation
- McpAgentServerCommand.php: quota burn on failed tool calls
- McpMetricsService.php: N-day window consistency
- hermes_runner_mcp: API key off command line + invalid method+id + run_id encoding
- CircuitBreaker.php: extracted CircuitOpenException class with autoload-correct placement
- pkg/agentic + brain + flow: SonarCloud sendMessage/fetchLoopRepoRefs/commitWorkspace/Connect annotations
- shell scripts: removed [[ usage for portability

43 files modified, 1 new (CircuitOpenException.php).

Verification: gofmt -w + php -l + python3 -m py_compile + bash -n all clean.
Touched-package go test passes (pkg/lib/flow, pkg/lib).
Full go test ./... blocked by pre-existing dappco.re module graph drift, out of scope.

Parked for separate work:
- Mantis #1062: go.mod local replace removal (cross-repo architectural)
- Mantis #1063: Sonar residual line-length / duplication quality-gate cluster

Closes findings on https://github.com/dAppCore/agent/pull/6

Co-authored-by: Codex <noreply@openai.com>
2026-04-27 13:39:24 +01:00
..
AgentAuth feat(api): implement §3 fleet+credits+subscription+sync+agent-auth routes (#848) 2026-04-25 05:43:51 +01:00
Credits fix(agent): address CodeRabbit + SonarCloud findings on PR #6 2026-04-27 13:39:24 +01:00
Fleet feat(api): implement §3 fleet+credits+subscription+sync+agent-auth routes (#848) 2026-04-25 05:43:51 +01:00
Subscription feat(api): implement §3 fleet+credits+subscription+sync+agent-auth routes (#848) 2026-04-25 05:43:51 +01:00
Sync feat(api): implement §3 fleet+credits+subscription+sync+agent-auth routes (#848) 2026-04-25 05:43:51 +01:00
AuthController.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
BrainController.php feat(brain): add GET /v1/brain/search — ES full-text endpoint 2026-04-23 13:54:11 +01:00
CheckinController.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
CreditsController.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
FleetController.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
GitHubWebhookController.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
IssueController.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
MessageController.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
PhaseController.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
PlanController.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
SessionController.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
SprintController.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
SubscriptionController.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
SyncController.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
TaskController.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00