hive-c0re: render the new agent option paths into generated agent flakes
meta.rs writes each agent's flake, and it still named the pre-move `hyperhive.*` paths — so every agent rebuild would print a rename deprecation warning about a line no human wrote and no operator could fix. A warning nobody can act on trains everyone to ignore the ones that matter, which is the whole value of the alias shims. Repoints the FORWARDED_VAR_OPTIONS table and every other emitted option assignment (otel.*, docs.source, claudeCodePath, github.enable, user.name, claudeMemoryMaxBytes) to `services.hyperhive.agent.*`, with the test expectations that pin the rendered text. The flake input named `hyperhive` (`hyperhive.url`, `hyperhive.inputs.nixpkgs.follows`, `hyperhive.nixosConfigurations.*`), hive-tier `services.hyperhive.*` paths, and the `@hyperhive.local` git identity share the word and are untouched. Also repoints the same option paths where they appear in comments, rustdoc and runtime message strings across the other crates — a refusal message naming `hyperhive.allowedRecipients` sends an operator to a path that will stop existing. Prose under docs/ is deliberately not in this commit. Refs #4473
This commit is contained in:
parent
3662eda440
commit
6ea81aae65
30 changed files with 138 additions and 121 deletions
|
|
@ -2812,7 +2812,7 @@ fn validate_name_chars(name: &str) -> Result<()> {
|
|||
/// [`validate_name_chars`] allows on purpose.
|
||||
///
|
||||
/// An agent name is an `Ident` and lowercase by design. An account name is an
|
||||
/// attribute name in `hyperhive.matrixAccounts`, typed `attrsOf` with no
|
||||
/// attribute name in `services.hyperhive.agent.matrixAccounts`, typed `attrsOf` with no
|
||||
/// charset constraint, so `Ops_Relay9` is a key an operator may already have
|
||||
/// written. `swarm_secret_client::path::checked_segment` accepts exactly this
|
||||
/// set for the same name in the secret store — the two must agree, or a
|
||||
|
|
@ -3502,7 +3502,7 @@ mod tests {
|
|||
|
||||
/// Ported from `hive-c0re`'s `credential.rs`, which used to build this path
|
||||
/// itself. The controls are the load-bearing half: an account name is an
|
||||
/// attrset key in `hyperhive.matrixAccounts`, so uppercase and underscore
|
||||
/// attrset key in `services.hyperhive.agent.matrixAccounts`, so uppercase and underscore
|
||||
/// are names an operator can already have written, and the secret store
|
||||
/// accepts exactly this set for the same name. A validator narrower than
|
||||
/// the store's reads a credential out and then refuses to land it.
|
||||
|
|
|
|||
Loading…
Reference in a new issue