add a per-agent nix builds mode, host or none, carried like privateUsers
This commit is contained in:
parent
b9484e62a0
commit
5485151ba6
1 changed files with 618 additions and 58 deletions
|
|
@ -10,6 +10,10 @@ Foundational shared **newtypes** for the hyperhive workspace. A zero-dependency
|
|||
|
||||
- **`Permission`** — the set of named permissions an agent may hold, with its
|
||||
stored `snake_case` names and the MCP and built-in tools each grants.
|
||||
- **`NixBuilds`** — where an agent's nix builds run (`host` or `none`), as
|
||||
`services.hyperhive.agent.nixBuilds` sets it. It rides the swarm closure record,
|
||||
the builder's reply and the `hive-priv` wire; a spelling it doesn't know reads
|
||||
as `none`.
|
||||
- **`Ident`** — a validated agent-name newtype. Typing agent-name fields as
|
||||
`Ident` (rather than bare `String`) gets serde-validated parsing **at the
|
||||
socket boundary for free**: a malformed name is rejected at deserialize time
|
||||
|
|
|
|||
Loading…
Reference in a new issue