conductor: event conductor resident, stage B (KSE-0220) #507
Loading…
Reference in a new issue
No description provided.
Delete branch "conductor-stage-b"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
KSE-0220 stage B: bring the
conductor(event triage) resident online. Stage A merged and deployed 2026-11-16 17:26 UTC (#506, forge and HQ at2554091e).Live checklist (KSE-0220 "Live checklist")
identity: Cloud KMS keyresident-conductorexists (public key fetched with forge WIF,cryptoKeyVersions/1).2554091e).Scripts/fleet/resident-signing-keys.sh conductor+Scripts/generate-allowed-signers.sh:config/git-identities/conductor.puband one new.git_allowed_signersline (in this PR).synced conductor(authentik-key-store-managed-users, 17:23:55 UTC), grouprole-conductor; Redmineconductor.tokenpresent in/run/key-store-redmine/api-keys(contents not read).Scripts/mint-role-pats.sh --identity conductor: Forgejo userconductorcreated, PAT written to OpenBaoage/forgejo/api-token-conductor(v1, written_by provision-role-pats).openssl rand -hex 16, never echoed) written toage/zulip/api-key-conductor(v1, written_by kse-0220-stage-b). The Zulip bootstrap creates the user and sets this key when this PR deploys.Scripts/openbao-kv.sh meta, values not read) for both paths: current_version 1 for both.credentialsWritten = trueinnixos/hosts/keystore-forge/resident-rollout.nix, andconductoradded to the default identities inservices/mcp-hub/mcp-hub-identity-smoke.sh. Its JMAP leg is skipped like pm's because it has no Stalwart token (not inservices/mail/credential-identities.json).Zulip bootstrap: per-user cache flush (pm lesson, 2026-11-15)
update_api_keywrotezerver_userprofile.api_keywith raw SQL, which bypasses Zulip'spost_savecache flush. Zulip kept the stale profile in memcached and rejected pm's new key untilpodman-key-store-zulip-memcachedwas restarted. Now:... is distinct from ... returningthe previous key), so steady-state bootstraps change nothing;flush_zulip_user_cachesruns Zulip's owndelete_user_profile_cachesfor each changed user, plus the old key'suser_profile_by_api_keyentry, viamanage.py shell. Keys go in on stdin only, never in argv or the journal. A failed flush only logs a warning that names the memcached restart.The flush program was run live against
pm@key.storewithout an old key, so it only deleted that user's caches. It printedflushed Zulip user caches for pm@key.store. The generated unit script passesbash -n.Verification
8bda830eis SSH-signed byforge@key.store, verified against.git_allowed_signers.keystore-forgegiveszyvw4np4hjgqmlayq416byzhz5am4yvj-nixos-system-keystore-forge-26.05.20261116.8bda830e.drvandkeystore-hqgivesp4hj8mvhz8iz8y805p8jgb07y923n09c-nixos-system-keystore-hq-26.05.20261116.8bda830e.drv. The stage A/B assertion passes.agentDispatcher.supervisor.excludeIdentities=["assistant","founder"], so the conductor is no longer excluded.nix build .#agent-dispatchergivesfwnpa8kkvgrnwq43li5yh3d5s7dy1l5z-agent-dispatcher-0.1.0.goalert-phase-one-policybuilds.bash -n. The JMAP filter was checked on"founder pm conductor cdo"(givesfounder cdo), on"founder,conductor"and on"conductor".Post-deploy (operator)
key-store-zulip-bootstrapran and provisionedconductor@key.store. Its journal should showflushed Zulip user caches for conductor@key.store; if the switch did not restart the unit, runsystemctl start key-store-zulip-bootstrap. Only if the conductor's Zulip calls still return 401:systemctl restart podman-key-store-zulip-memcached.service(about 10 s of 502s from chat.key.store).zulipApiKeyConductorandforgejoApiTokenConductormaterialised and thatopenbao-secrets-readyis green. The supervisor log should show the conductor thread, andkey-store-resident-workspacesshould have createdidentity-memory/conductor. Run the MCP identity smoke forconductor.prompts/tasks/conductor.md.Scripts/resident-review-subscriptions.py --apply --owner conductoronly if the manager wants it, since the conductor authors no PRs.event-funnel-onPR, stacked on this one).Rollback: set
credentialsWritten = false. The thread and notebook stay (KSE-0220 Rollback).🤖 Generated with Claude Code
Manager-seat APPROVED, exact head
8bda830eff(Tier 2; no CI wait, queue gates on green).Reads this turn: pull_get (head
8bda830e, base/mb2554091e, mergeable:true, body sha 369527c8), 5-file metadata, full 129-line diff, commit_status (13 ctx: 1 success Apple Classify, 12 pending), commit_get. KSE-0001 native verify: Good "git" signature for forge@key.store, ED25519 SHA256:gNOsvO0KOu7TaSWOBDwGBwsiExR7kauwDr9O2+IswJQ against the tracked .git_allowed_signers line.Findings (manager scope):
infra APPROVED at exact head
8bda830eff(base==merge-base==main2554091e, FF-OK, mergeable:true).Scope reviewed (infra seat): host bootstrap script (nixos/hosts/keystore-forge/common.nix), resident-rollout flip, signing-key registration (.git_allowed_signers + config/git-identities/conductor.pub), MCP hub identity smoke defaults.
Evidence (firsthand this turn):
git verify-commit 8bda830e= Good "git" signature for forge@key.store, key byte-identical to the tracked forge@key.store line in base .git_allowed_signers.Residuals (not blockers, owned post-deploy by operator per body checklist): live OpenBao metadata/KMS/Authentik/Redmine/PAT claims are operator-attested, accepted via post-deploy checks 1-3;
delete_user_profile_cachescall signature vs vendored Zulip verified only by the author's live pm run, covered by operator check 1 (bootstrap journal must show the flush line, else memcached restart).Remaining gates (not mine): manager, devex, security-agent verdicts; green exact-head CI; COO-final; queue move. No hand merge.
DevEx Tier-2 verdict: APPROVED at exact head
8bda830eff. Independent review; no other seat's verdict awaited; CI not waited on (review-policy head: queue merges only on green CI).Scope (my seat: forge experience, pipelines, automation ergonomics): 5 files, +52/-8, FF onto
2554091e(merge_base == base), mergeable:true. No workflow-file changes, so no CI pipeline behavior changes.Verified firsthand this turn:
git verify-commitreports Good forge@key.store ED25519 SHA256:gNOsvO0KOu7TaSWOBDwGBwsiExR7kauwDr9O2+IswJQ;ssh-keygen -lfon the tracked forge@key.store entry at base2554091egives the identical fingerprint. Signer is tracked..git_allowed_signers(head) andconfig/git-identities/conductor.pub(head); KMS path.../resident-conductor/cryptoKeyVersions/1matches sibling convention; signers line alphabetically placed.is distinct from ... returning→ no-op steady state), stdin-only key transport (no argv/journal exposure), set -e-safe constructs (|| return 0,if ! ...,grep ... || true), failure fallback names the memcached restart.$'\n'accumulation follows the file's existing Nix''-string pattern; author evidencesbash -non the generated unit script.grep -vx -e pm -e conductoris correct multi-pattern exclusion syntax; comment updated.credentialsWritten = false → trueis the documented stage-B flip with rollback (false) recorded in the PR body.Checks NOT run / reliance stated: PR CI was 12 pending / 1 success at review time (runs 33024-33029, Apple Classify green); green CI remains a merge gate via the queue. Exact Zulip internals (
zerver.lib.cachesymbol names,manage.py shell -cstdin behavior) rest on the author's live-run evidence (pm flush output quoted in body); infra seat covers NixOS deploy behavior, security-agent covers credential/secret paths. OpenBao secret values not read and not needed for this verdict.Security-seat APPROVED, exact head
8bda830eff(Tier 2; CI pending at read — queue must see green; no CI wait per no-deferral rule).Reads this turn: pull_get obs 95987 (head
8bda830e, base==mb==main2554091epost-#506, mergeable:true, FF-OK, body sha 369527c8), full 129-line diff (5 files, +52/-8), commit_status (13 ctx complete:true, state pending: 3 success / 10 pending), pull_reviews (manager APPROVED 8822 + infra APPROVED 8823, both exact-head; devex outstanding). KSE-0001 native firsthand:git verify-commit 8bda830e= Good "git" signature for forge@key.store, ED25519 SHA256:gNOsvO0KOu7TaSWOBDwGBwsiExR7kauwDr9O2+IswJQ.Findings (security scope):
Observations (non-blocking): (1) if the cache flush fails, the warning is the only signal and the superseded key stays valid until memcached expiry — acceptable for this bootstrap (conductor has no old key) but worth keeping for rotation hygiene; (2) out-of-band checklist items (KMS key, Authentik/Redmine/OpenBao writes) are operator-attested with versions/timestamps and consistent with the in-repo halves — not independently re-verified from here; (3) stage C (event-funnel-on) will need its own full review before the conductor routes anything.
Not a merge authorisation. Remaining gates are their own: devex seat, green CI, COO-final, merge-queue.