agent-dispatcher: openrouter harness runtime (GLM/Kimi), private /tmp per resident #236

Merged
founder merged 5 commits from openrouter-runtime into main 2026-09-06 21:46:55 +00:00
Owner

Third resident runtime: the key.store harness on an OpenAI-compatible router (OpenRouter now for GLM/Kimi, the key.store router later). Dispatch PRs #11 (harness), #12 (Redmine api_key redaction), #13 (per-identity private /tmp + hardening from the deploy review).

  • module: services."key.store".agentDispatcher.router.{apiKeyFile,baseUrl,profile,stateDir,sandbox,title,contextWindow} → AGENT_DISPATCHER_ROUTER_*, bubblewrap on the supervisor PATH, state dir + ReadWritePaths/ReadOnlyPaths;
  • forge: router block keyed on the openrouterApiKey secret; the OpenBao entry openrouter/api-key and the backup path sit behind openrouterEnabled = false (the materializer exits on a declared-but-missing KV) — flip after bao kv put age/openrouter/api-key value_base64=…;
  • org: tiers openrouter-glm (z-ai/glm-5.3, 1M, 32k out, z-ai pinned) and openrouter-kimi (moonshotai/kimi-k2.7-code, 262k, 32k out); no role moved yet;
  • docs: runtime table row + "The OpenRouter harness" section (sandbox, sessions, steers, private /tmp incident, failure semantics, streaming follow-up);
  • flake: dispatch_src → 629678c5 — this also ships the per-identity private /tmp for the Codex and Claude residents (the 2026-09-06 attribution incident) and the Redmine api_key redaction in key-store-redmine whoami.

Built on the forge from this branch: nix build .#nixosConfigurations.keystore-forge.config.system.build.toplevel and the agent-dispatcher / key-store-mcp-hub packages; the private-/tmp wrapper was validated inside the supervisor mount namespace.

Third resident runtime: the key.store harness on an OpenAI-compatible router (OpenRouter now for GLM/Kimi, the key.store router later). Dispatch PRs #11 (harness), #12 (Redmine api_key redaction), #13 (per-identity private /tmp + hardening from the deploy review). - module: `services."key.store".agentDispatcher.router.{apiKeyFile,baseUrl,profile,stateDir,sandbox,title,contextWindow}` → `AGENT_DISPATCHER_ROUTER_*`, bubblewrap on the supervisor PATH, state dir + ReadWritePaths/ReadOnlyPaths; - forge: router block keyed on the `openrouterApiKey` secret; the OpenBao entry `openrouter/api-key` and the backup path sit behind `openrouterEnabled = false` (the materializer exits on a declared-but-missing KV) — flip after `bao kv put age/openrouter/api-key value_base64=…`; - org: tiers `openrouter-glm` (z-ai/glm-5.3, 1M, 32k out, z-ai pinned) and `openrouter-kimi` (moonshotai/kimi-k2.7-code, 262k, 32k out); no role moved yet; - docs: runtime table row + "The OpenRouter harness" section (sandbox, sessions, steers, private /tmp incident, failure semantics, streaming follow-up); - flake: dispatch_src → 629678c5 — this also ships the per-identity private /tmp for the Codex and Claude residents (the 2026-09-06 attribution incident) and the Redmine api_key redaction in `key-store-redmine whoami`. Built on the forge from this branch: `nix build .#nixosConfigurations.keystore-forge.config.system.build.toplevel` and the `agent-dispatcher` / `key-store-mcp-hub` packages; the private-/tmp wrapper was validated inside the supervisor mount namespace.
Module options agentDispatcher.router.{apiKeyFile,baseUrl,profile,stateDir,
sandbox,title,contextWindow} -> AGENT_DISPATCHER_ROUTER_* on the supervisor,
bubblewrap on its PATH, state dir + ReadWritePaths/ReadOnlyPaths. Forge host:
router block keyed on the openrouterApiKey secret; the OpenBao entry
openrouter/api-key and the backup path sit behind openrouterEnabled = false
because the materializer exits on a declared-but-missing KV. Org tiers
openrouter-glm (z-ai/glm-5.3, 1M, z-ai pinned) and openrouter-kimi
(moonshotai/kimi-k2.7-code, 262k). Docs: runtime table row + harness section.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
flake.lock: dispatch_src 629678c5ff57b385e316e3580473eb3edf519e4f
Some checks failed
Build: Web / Build (Web) (pull_request) Successful in 40s
Build: KaiOS / Build (KaiOS) (pull_request) Failing after 1m31s
Build: Apple / Build (macOS) (pull_request) Has been cancelled
Build: Apple / Build (iOS) (pull_request) Has been cancelled
Build: Apple / Build (visionOS) (pull_request) Has been cancelled
Build: Linux / Build (keystore-forge x86_64) (pull_request) Has been cancelled
Build: Apple / Check (SwiftLint) (pull_request) Has been cancelled
Build: Linux / Build (Linux x86_64) (pull_request) Has been cancelled
a18ead3d63
founder force-pushed openrouter-runtime from a18ead3d63
Some checks failed
Build: Web / Build (Web) (pull_request) Successful in 40s
Build: KaiOS / Build (KaiOS) (pull_request) Failing after 1m31s
Build: Apple / Build (macOS) (pull_request) Has been cancelled
Build: Apple / Build (iOS) (pull_request) Has been cancelled
Build: Apple / Build (visionOS) (pull_request) Has been cancelled
Build: Linux / Build (keystore-forge x86_64) (pull_request) Has been cancelled
Build: Apple / Check (SwiftLint) (pull_request) Has been cancelled
Build: Linux / Build (Linux x86_64) (pull_request) Has been cancelled
to 9d91017b17
Some checks failed
Namespace: Build Images / Refresh macOS runner lane (push) Successful in 4s
Deploy: API / Deploy (API) (push) Failing after 4s
Release: If Needed / Check (Release Needed) (push) Successful in 8s
Build: Web / Build (Web) (pull_request) Successful in 41s
Build: KaiOS / Build (KaiOS) (pull_request) Failing after 1m4s
Namespace: Build Images / Refresh Linux runner image (push) Successful in 48s
Deploy: Web / Deploy (Web) (push) Failing after 55s
Release: Signing Preflight / Release (Signing Preflight) (push) Successful in 55s
Build: KaiOS / Build (KaiOS) (push) Failing after 2m29s
Build: Web / Build (Web) (push) Successful in 2m57s
Build: Apple / Check (SwiftLint) (pull_request) Failing after 4m9s
Build: Apple / Build (macOS) (pull_request) Has been skipped
Build: Apple / Build (iOS) (pull_request) Has been skipped
Build: Apple / Build (visionOS) (pull_request) Has been skipped
Build: Linux / Build (Linux x86_64) (push) Successful in 3m24s
Build: Linux / Build (keystore-forge x86_64) (push) Has been skipped
Build: Linux / Build (Linux x86_64) (pull_request) Successful in 4m41s
Build: Linux / Build (keystore-forge x86_64) (pull_request) Has been skipped
Namespace: Build Images / Refresh macOS Nix snapshot application (push) Successful in 3m51s
Build: Apple / Check (SwiftLint) (push) Failing after 4m40s
Build: Apple / Build (macOS) (push) Has been skipped
Build: Apple / Build (iOS) (push) Has been skipped
Build: Apple / Build (visionOS) (push) Has been skipped
2026-09-06 21:46:35 +00:00
Compare
founder deleted branch openrouter-runtime 2026-09-06 21:46:56 +00:00
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
key-store/key.store!236
No description provided.