Watch
0
0
Fork
You've already forked hyperhive
0

module-eval: pin a claude agent's subagent store identity

The subagent daemon gets the agent's store identity on every agent with a
store, whatever its runtime. The case pinned only the two ACP arms; it now
covers the claude runtime too, and checks BAO_CLIENT_CERT/KEY as well.
This commit is contained in:
atlas 2026-10-02 23:34:27 +02:00 • committed by mara
commit f9feb93ced

View file

@ -54,6 +54,12 @@ let
}; };
opencode = opencodeWith { }; opencode = opencodeWith { };
opencodeBao = opencodeWith { bao.addr = "https://bao.t.local:8200"; }; opencodeBao = opencodeWith { bao.addr = "https://bao.t.local:8200"; };
claudeBao = agentWith {
services.hyperhive.agent = {
runtime = "claude";
bao.addr = "https://bao.t.local:8200";
};
};
acpBao = agentWith { acpBao = agentWith {
services.hyperhive.agent = { services.hyperhive.agent = {
runtime = "acp"; runtime = "acp";
@ -107,8 +113,11 @@ let
] ]
&& u.environment.HIVE_AGENT_NAME == "a1" && u.environment.HIVE_AGENT_NAME == "a1"
&& u.environment.BAO_ADDR == "https://bao.t.local:8200" && u.environment.BAO_ADDR == "https://bao.t.local:8200"
&& u.environment.BAO_CLIENT_CERT == "%d/hive-agent-bao-cert"
&& u.environment.BAO_CLIENT_KEY == "%d/hive-agent-bao-key"
) )
[ [
(subagent claudeBao)
(subagent acpBao) (subagent acpBao)
(subagent opencodeBao) (subagent opencodeBao)
]; ];