swarm-controller: validate create_agent's name via hive_types::Ident

This commit is contained in:
damocles 2026-08-16 23:18:33 +02:00 committed by mara
commit 7577d149cf
3 changed files with 19 additions and 2 deletions

View file

@ -34,6 +34,10 @@ futures-util.workspace = true
# same shape `hive-c0re/src/job_queue/scheduler.rs` uses over its own graph.
hive-jobq.workspace = true
hive-jobq-wire.workspace = true
# Validates `POST /api/agents`' `name` before it becomes `agent`/`repo`
# everywhere downstream — see `create_agent`'s doc comment for why this is
# defense-in-depth, not the only gate (per an argus review finding).
hive-types.workspace = true
# `auth`'s bridge client — same crate the bridge itself uses to define the
# request/response shape, so the two ends cannot drift. `forge.rs` also
# uses this directly for `StatusCode` in its error-classification helpers.