fix(routes): error handling, health endpoint, request validation, rate limiting #32

Merged
will.anderson merged 2 commits from improve/soul-routes-api into main 2026-06-22 17:14:15 +00:00
Owner

Standardize error responses, improve /health diagnostics, add input validation, add basic rate limiting.

Standardize error responses, improve /health diagnostics, add input validation, add basic rate limiting.
will.anderson added 1 commit 2026-06-22 16:21:58 +00:00
- Add per-IP in-memory rate limiter (60 req/min default, configurable via
  soul_rate_limit state key; /health exempt; loopback callers skipped)
- Extend /health with uptime_secs (from soul_boot_ts) and live LLM probe
- Add missing_param 400 guard on POST /api/chat before passing to LLM
- Standardise error envelopes: add "code" field to err_404/err_405 and all
  missing-param returns; route_synthesize now errors clearly instead of
  returning the misleading {"mechanism":"did not engage"} on bad input
- Document streaming gap in /api/chat (SSE not implemented, note added)
- handle_request gains ip param; rate_limit_check wired at entry point
will.anderson added 1 commit 2026-06-22 16:53:25 +00:00
fix(routes): fix handle_request ABI, 429 status code, soul_boot_ts write
Neuron Soul CI / build (pull_request) Has been cancelled
b7fd8901d4
will.anderson merged commit 360c15d7fe into main 2026-06-22 17:14:15 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: neuron-technologies/neuron#32