remove c0re.operatorPronouns and c0re.contextWindowTokens
Both options are now ignored with a warning (the swarm-peers-removed.nix shape), so a host that still sets one keeps evaluating. - operatorPronouns: the agents' system prompt names the pronouns as she/her, the value the harness fell back to and the option's default. The --operator-pronouns flag, HiveEnv field, meta-flake let binding and HIVE_OPERATOR_PRONOUNS env var are gone. - contextWindowTokens: the per-family defaults (haiku 200000, sonnet 1000000, opus 1000000) move into hive-agent's harness_state as a table; the window the API reports after a turn still wins. The --context-window-tokens flag, HiveEnv field and the rendered HIVE_CONTEXT_WINDOW_TOKENS_<KEY> env vars are gone.
This commit is contained in:
parent
5cd1f16405
commit
4b5707768c
18 changed files with 151 additions and 258 deletions
|
|
@ -90,17 +90,6 @@ enum Cmd {
|
|||
/// Override: dashboard HTTP port.
|
||||
#[arg(long)]
|
||||
dashboard_port: Option<u16>,
|
||||
/// Override: operator pronouns (free text). Threaded into each
|
||||
/// container's harness via `HIVE_OPERATOR_PRONOUNS`.
|
||||
#[arg(long)]
|
||||
operator_pronouns: Option<String>,
|
||||
/// Override: per-model context-window sizes, as a JSON object
|
||||
/// mapping model-family short name to token count. Threaded into
|
||||
/// each container as `HIVE_CONTEXT_WINDOW_TOKENS_<KEY_UPPER>` env
|
||||
/// vars. Set via the `services.hive-c0re.contextWindowTokens`
|
||||
/// NixOS option.
|
||||
#[arg(long)]
|
||||
context_window_tokens: Option<String>,
|
||||
/// Override: systemd `CPUQuota=` applied to every agent container
|
||||
/// via a drop-in (e.g. `"200%"` = 2 cores). Set via
|
||||
/// `services.hyperhive.agentCpuQuota`.
|
||||
|
|
@ -150,8 +139,6 @@ async fn main() -> Result<()> {
|
|||
hyperhive_flake,
|
||||
nixpkgs_flake,
|
||||
dashboard_port,
|
||||
operator_pronouns,
|
||||
context_window_tokens,
|
||||
agent_cpu_quota,
|
||||
agent_memory_max,
|
||||
agent_cpu_weight,
|
||||
|
|
@ -180,13 +167,6 @@ async fn main() -> Result<()> {
|
|||
if let Some(v) = dashboard_port {
|
||||
sc.env.dashboard_port = v;
|
||||
}
|
||||
if let Some(v) = operator_pronouns {
|
||||
sc.env.operator_pronouns = v;
|
||||
}
|
||||
if let Some(v) = context_window_tokens {
|
||||
sc.env.context_window_tokens =
|
||||
serde_json::from_str(&v).context("--context-window-tokens: invalid JSON")?;
|
||||
}
|
||||
if let Some(v) = agent_cpu_quota {
|
||||
sc.env.agent_cpu_quota = v;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue