hyperhive/swarm-controller/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
atlas 58588a6866 fix(#3412): swarm-controller answers errors as RFC 9457 problem+json
Its three error paths returned a bare string with a status code, which forces
a caller to treat the whole body as prose. hive-c0re converted some time ago,
so swarm-controller was the last backend on the old shape -- and it is the one
behind the hive status page's 503, where the body is frequently the entire
diagnosis rather than a summary.

Adds the commitment to docs/conventions.md, since it was implied by the code
in one daemon and written down nowhere: an endpoint of ours answering with a
bare string is a bug to file, not something callers work around.

The test asserts the rendered response -- media type plus an addressable
detail -- rather than the problem_details value, because a handler that built
the value correctly and then returned it as a string would satisfy a test
written against the type alone.
2026-08-17 21:30:39 +02:00
..
auth.rs swarm-controller: CreateIdentity node, auth-bridge client, POST /api/agents 2026-08-16 22:38:40 +02:00
forge.rs fix(swarm-controller): repair broken rustdoc intra-link in forge.rs 2026-08-17 00:05:12 +02:00
main.rs fix(#3412): swarm-controller answers errors as RFC 9457 problem+json 2026-08-17 21:30:39 +02:00
status.rs refactor(swarm-queue-client): typed errors for the bucket and the guard 2026-08-16 13:14:03 +02:00