Skip to content

Fix dispatch 500 and add audit key routes to discovery#104

Merged
mkreyman merged 1 commit intomasterfrom
fix/dispatch-fallback-route-list
Apr 13, 2026
Merged

Fix dispatch 500 and add audit key routes to discovery#104
mkreyman merged 1 commit intomasterfrom
fix/dispatch-fallback-route-list

Conversation

@mkreyman
Copy link
Copy Markdown
Owner

Summary

  • Dispatch controller was missing action_fallback — changeset errors (FK violation on non-existent agent_id) crashed with RuntimeError instead of 422
  • Added rotate-audit-key, bootstrap-audit-key, and audit_public_key to the route discovery list (GET /api/v1/routes)

Test plan

  • 2263 tests pass
  • POST /dispatches with non-existent agent_id → 422 (not 500)
  • GET /api/v1/routes includes bootstrap-audit-key

🤖 Generated with Claude Code

The dispatch controller was missing action_fallback, causing changeset
errors (like FK violations on non-existent agent_id) to crash with
RuntimeError instead of returning 422 via the fallback controller.

Also added rotate-audit-key, bootstrap-audit-key, and audit_public_key
to the route discovery list (previously missing from GET /api/v1/routes).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@mkreyman mkreyman merged commit a971a18 into master Apr 13, 2026
5 checks passed
@mkreyman mkreyman deleted the fix/dispatch-fallback-route-list branch April 13, 2026 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant