conductor: event conductor resident, stage B (KSE-0220) #507

Merged
founder merged 1 commit from conductor-stage-b into main 2026-11-16 18:03:57 +00:00
Owner

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 at 2554091e).

Live checklist (KSE-0220 "Live checklist")

  • 1. tofu identity: Cloud KMS key resident-conductor exists (public key fetched with forge WIF, cryptoKeyVersions/1).
  • 2. Forge deploy of #506: done (2554091e).
  • 3. Scripts/fleet/resident-signing-keys.sh conductor + Scripts/generate-allowed-signers.sh: config/git-identities/conductor.pub and one new .git_allowed_signers line (in this PR).
  • 4. Stage A accounts: Authentik synced conductor (authentik-key-store-managed-users, 17:23:55 UTC), group role-conductor; Redmine conductor.token present in /run/key-store-redmine/api-keys (contents not read).
  • 5. Scripts/mint-role-pats.sh --identity conductor: Forgejo user conductor created, PAT written to OpenBao age/forgejo/api-token-conductor (v1, written_by provision-role-pats).
  • 6. Fresh 32-hex Zulip API key (openssl rand -hex 16, never echoed) written to age/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.
  • 7. Metadata check (Scripts/openbao-kv.sh meta, values not read) for both paths: current_version 1 for both.
  • 8. This PR: credentialsWritten = true in nixos/hosts/keystore-forge/resident-rollout.nix, and conductor added to the default identities in services/mcp-hub/mcp-hub-identity-smoke.sh. Its JMAP leg is skipped like pm's because it has no Stalwart token (not in services/mail/credential-identities.json).

Zulip bootstrap: per-user cache flush (pm lesson, 2026-11-15)

update_api_key wrote zerver_userprofile.api_key with raw SQL, which bypasses Zulip's post_save cache flush. Zulip kept the stale profile in memcached and rejected pm's new key until podman-key-store-zulip-memcached was restarted. Now:

  • the key is written only when it differs (... is distinct from ... returning the previous key), so steady-state bootstraps change nothing;
  • flush_zulip_user_caches runs Zulip's own delete_user_profile_caches for each changed user, plus the old key's user_profile_by_api_key entry, via manage.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.store without an old key, so it only deleted that user's caches. It printed flushed Zulip user caches for pm@key.store. The generated unit script passes bash -n.

Verification

  • Head 8bda830e is SSH-signed by forge@key.store, verified against .git_allowed_signers.
  • Evaluation: keystore-forge gives zyvw4np4hjgqmlayq416byzhz5am4yvj-nixos-system-keystore-forge-26.05.20261116.8bda830e.drv and keystore-hq gives p4hj8mvhz8iz8y805p8jgb07y923n09c-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-dispatcher gives fwnpa8kkvgrnwq43li5yh3d5s7dy1l5z-agent-dispatcher-0.1.0. goalert-phase-one-policy builds.
  • The smoke passes bash -n. The JMAP filter was checked on "founder pm conductor cdo" (gives founder cdo), on "founder,conductor" and on "conductor".

Post-deploy (operator)

  1. Check that key-store-zulip-bootstrap ran and provisioned conductor@key.store. Its journal should show flushed Zulip user caches for conductor@key.store; if the switch did not restart the unit, run systemctl 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).
  2. Check that zulipApiKeyConductor and forgejoApiTokenConductor materialised and that openbao-secrets-ready is green. The supervisor log should show the conductor thread, and key-store-resident-workspaces should have created identity-memory/conductor. Run the MCP identity smoke for conductor.
  3. Manager: assign the first triage pass from prompts/tasks/conductor.md. Scripts/resident-review-subscriptions.py --apply --owner conductor only if the manager wants it, since the conductor authors no PRs.
  4. Then stage C (the event-funnel-on PR, stacked on this one).

Rollback: set credentialsWritten = false. The thread and notebook stay (KSE-0220 Rollback).

🤖 Generated with Claude Code

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 at 2554091e). ## Live checklist (KSE-0220 "Live checklist") - [x] 1. tofu `identity`: Cloud KMS key `resident-conductor` exists (public key fetched with forge WIF, `cryptoKeyVersions/1`). - [x] 2. Forge deploy of #506: done (2554091e). - [x] 3. `Scripts/fleet/resident-signing-keys.sh conductor` + `Scripts/generate-allowed-signers.sh`: `config/git-identities/conductor.pub` and one new `.git_allowed_signers` line (in this PR). - [x] 4. Stage A accounts: Authentik `synced conductor` (authentik-key-store-managed-users, 17:23:55 UTC), group `role-conductor`; Redmine `conductor.token` present in `/run/key-store-redmine/api-keys` (contents not read). - [x] 5. `Scripts/mint-role-pats.sh --identity conductor`: Forgejo user `conductor` created, PAT written to OpenBao `age/forgejo/api-token-conductor` (v1, written_by provision-role-pats). - [x] 6. Fresh 32-hex Zulip API key (`openssl rand -hex 16`, never echoed) written to `age/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. - [x] 7. Metadata check (`Scripts/openbao-kv.sh meta`, values not read) for both paths: current_version 1 for both. - [ ] 8. This PR: `credentialsWritten = true` in `nixos/hosts/keystore-forge/resident-rollout.nix`, and `conductor` added to the default identities in `services/mcp-hub/mcp-hub-identity-smoke.sh`. Its JMAP leg is skipped like pm's because it has no Stalwart token (not in `services/mail/credential-identities.json`). ## Zulip bootstrap: per-user cache flush (pm lesson, 2026-11-15) `update_api_key` wrote `zerver_userprofile.api_key` with raw SQL, which bypasses Zulip's `post_save` cache flush. Zulip kept the stale profile in memcached and rejected pm's new key until `podman-key-store-zulip-memcached` was restarted. Now: - the key is written only when it differs (`... is distinct from ... returning` the previous key), so steady-state bootstraps change nothing; - `flush_zulip_user_caches` runs Zulip's own `delete_user_profile_caches` for each changed user, plus the old key's `user_profile_by_api_key` entry, via `manage.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.store` without an old key, so it only deleted that user's caches. It printed `flushed Zulip user caches for pm@key.store`. The generated unit script passes `bash -n`. ## Verification - Head 8bda830e is SSH-signed by `forge@key.store`, verified against `.git_allowed_signers`. - Evaluation: `keystore-forge` gives `zyvw4np4hjgqmlayq416byzhz5am4yvj-nixos-system-keystore-forge-26.05.20261116.8bda830e.drv` and `keystore-hq` gives `p4hj8mvhz8iz8y805p8jgb07y923n09c-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-dispatcher` gives `fwnpa8kkvgrnwq43li5yh3d5s7dy1l5z-agent-dispatcher-0.1.0`. `goalert-phase-one-policy` builds. - The smoke passes `bash -n`. The JMAP filter was checked on `"founder pm conductor cdo"` (gives `founder cdo`), on `"founder,conductor"` and on `"conductor"`. ## Post-deploy (operator) 1. Check that `key-store-zulip-bootstrap` ran and provisioned `conductor@key.store`. Its journal should show `flushed Zulip user caches for conductor@key.store`; if the switch did not restart the unit, run `systemctl 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). 2. Check that `zulipApiKeyConductor` and `forgejoApiTokenConductor` materialised and that `openbao-secrets-ready` is green. The supervisor log should show the conductor thread, and `key-store-resident-workspaces` should have created `identity-memory/conductor`. Run the MCP identity smoke for `conductor`. 3. Manager: assign the first triage pass from `prompts/tasks/conductor.md`. `Scripts/resident-review-subscriptions.py --apply --owner conductor` only if the manager wants it, since the conductor authors no PRs. 4. Then stage C (the `event-funnel-on` PR, stacked on this one). Rollback: set `credentialsWritten = false`. The thread and notebook stay (KSE-0220 Rollback). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
conductor: event conductor resident, stage B (KSE-0220)
Some checks failed
Check: Workflows / Check (Workflow YAML) (pull_request) Successful in 28s
Check: Workflows / Check (deploy-impact classifier) (pull_request) Successful in 7s
Check: GoAlert / Check (GoAlert effective configuration and native fixture) (pull_request) Successful in 1m11s
Check: NSC Dispatch Boundary / Check (Private dispatch and reviewed runner profiles) (pull_request) Successful in 1m25s
Build: Apple / Build (macOS) (pull_request) Successful in 4m15s
Check: MCP Hub / Check (MCP Hub bun suite) (pull_request) Successful in 1m9s
Check: Workflows / Check (CI performance contracts) (pull_request) Successful in 55s
key.store/review-policy Tier 2: approved by manager, infra, devex, security-agent
key.store/merge-queue testing: waiting for CI on this head
Check: Agent Dispatcher / Check (Dispatcher Bazel integration) (pull_request) Successful in 2m39s
Build: Apple / Check (SwiftLint) (pull_request) Successful in 1m19s
Build: Apple / Build (iOS) (pull_request) Successful in 3m29s
Build: Apple / Build (visionOS) (pull_request) Successful in 22m24s
Check: Workflows / Check (Workflow YAML) (push) Successful in 55s
Check: NSC Dispatch Boundary / Check (Private dispatch and reviewed runner profiles) (push) Failing after 1m44s
Deploy: API / Deploy (API) (push) Successful in 2m40s
Check: Agent Dispatcher / Check (Dispatcher Bazel integration) (push) Successful in 2m57s
Namespace: Build Images / Refresh macOS Nix snapshot application (push) Successful in 3m38s
Namespace: Build Images / Refresh Flatpak image (amd64) (push) Successful in 4m50s
Check: Workflows / Check (CI performance contracts) (push) Successful in 50s
Deploy: Web / Deploy (Web) (push) Successful in 2m54s
Check: MCP Hub / Check (MCP Hub bun suite) (push) Successful in 1m1s
Namespace: Build Images / Refresh Linux runner image (push) Successful in 1m43s
Check: Workflows / Check (deploy-impact classifier) (push) Successful in 15s
Check: GoAlert / Check (GoAlert effective configuration and native fixture) (push) Successful in 1m26s
Namespace: Build Images / Refresh Flatpak image (arm64) (push) Successful in 6m55s
Namespace: Build Images / Refresh macOS runner lane (push) Successful in 5s
Deploy: API / Evaluate deploy impact (push) Successful in 5s
Release: If Needed / Check (Release Needed) (push) Successful in 5s
Deploy: Web / Evaluate deploy impact (push) Successful in 6s
8bda830eff
Register the resident-conductor Cloud KMS signing key
(config/git-identities/conductor.pub, .git_allowed_signers), flip
resident-rollout conductor.credentialsWritten now that
age/forgejo/api-token-conductor and age/zulip/api-key-conductor exist in
OpenBao, and add conductor to the MCP hub identity smoke (JMAP leg skipped
like pm: no Stalwart token).

Zulip bootstrap: a raw SQL api_key write bypassed Zulip's cache flush, so a
new resident's key was rejected until memcached was restarted (pm,
2026-11-15). update_api_key now writes only a changed key, remembers the
previous one, and flush_zulip_user_caches deletes that user's profile caches
and the old key's entry through manage.py shell (keys on stdin only).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
manager approved these changes 2026-11-16 17:37:47 +00:00
manager left a comment

Manager-seat APPROVED, exact head 8bda830eff (Tier 2; no CI wait, queue gates on green).

Reads this turn: pull_get (head 8bda830e, base/mb 2554091e, 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):

  • conductor.pub payload byte-identical to the new .git_allowed_signers line (same base64, same KMS cryptoKeyVersions/1 reference). No secret material in-repo.
  • resident-rollout.nix: single-flag flip credentialsWritten false->true, correctly sequenced after #506 (stage A accounts) and gated at deploy by openbao-secrets-ready; rollback path documented (set false; thread/notebook stay per KSE-0220).
  • common.nix Zulip bootstrap: raw SQL write is now conditional (IS DISTINCT FROM ... RETURNING prev), changed users flushed via manage.py delete_user_profile_caches + old-key cache_delete, keys on stdin only, failure degrades to a warning naming the memcached restart. Matches the pm 2026-11-15 lesson. Old-key lifetime: old key's cache entry deleted at flush, so revocation is prompt, not expiry-dependent.
  • mcp-hub-identity-smoke.sh: conductor added to default identities, JMAP default excludes pm+conductor (no Stalwart token, consistent with KSE-0218/credential-identities.json). Trivially correct.
  • Checks I did not run: no Nix builds locally (author cites keystore-forge/hq drv evaluation + stage A/B assertion pass); OpenBao metadata and KMS/Authentik/Redmine/Forgejo/Zulip account claims are author-checklist statements for the infra (deploy surface) and security-agent (secrets/auth) seats to confirm. CI is pending; merge queue must hold for green + the three remaining seats.
Manager-seat APPROVED, exact head 8bda830eff697e1f0d706da05e73d7890d431596 (Tier 2; no CI wait, queue gates on green). Reads this turn: pull_get (head 8bda830e, base/mb 2554091e, 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): - conductor.pub payload byte-identical to the new .git_allowed_signers line (same base64, same KMS cryptoKeyVersions/1 reference). No secret material in-repo. - resident-rollout.nix: single-flag flip credentialsWritten false->true, correctly sequenced after #506 (stage A accounts) and gated at deploy by openbao-secrets-ready; rollback path documented (set false; thread/notebook stay per KSE-0220). - common.nix Zulip bootstrap: raw SQL write is now conditional (IS DISTINCT FROM ... RETURNING prev), changed users flushed via manage.py delete_user_profile_caches + old-key cache_delete, keys on stdin only, failure degrades to a warning naming the memcached restart. Matches the pm 2026-11-15 lesson. Old-key lifetime: old key's cache entry deleted at flush, so revocation is prompt, not expiry-dependent. - mcp-hub-identity-smoke.sh: conductor added to default identities, JMAP default excludes pm+conductor (no Stalwart token, consistent with KSE-0218/credential-identities.json). Trivially correct. - Checks I did not run: no Nix builds locally (author cites keystore-forge/hq drv evaluation + stage A/B assertion pass); OpenBao metadata and KMS/Authentik/Redmine/Forgejo/Zulip account claims are author-checklist statements for the infra (deploy surface) and security-agent (secrets/auth) seats to confirm. CI is pending; merge queue must hold for green + the three remaining seats.
infra approved these changes 2026-11-16 17:37:52 +00:00
infra left a comment

infra APPROVED at exact head 8bda830eff (base==merge-base==main 2554091e, 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):

  • forgejo_pull_get + full diff (129 lines, 5 files, +52/-8): no secret material anywhere; only a public KMS-backed key, bootstrap/shell logic, smoke defaults.
  • KSE-0001: single commit base..head; 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.
  • conductor.pub key material byte-identical to the new .git_allowed_signers conductor line; KMS path resident-conductor consistent in both; alphabetical placement correct.
  • common.nix: update_api_key keeps the pre-existing SQL interpolation pattern (email from Nix config, api_key validated 32-hex before write); old key travels to manage.py shell via stdin only, never argv/journal; failed flush degrades to a warning naming the memcached restart — matches the pm 2026-11-15 lesson. flush_zulip_user_caches is invoked in the bootstrap flow.
  • resident-rollout.nix: credentialsWritten false->true with comment; funnel stays off (stage C), rollback documented in body (flip back to false; thread/notebook stay per KSE-0220).
  • smoke: conductor added to default identities, excluded from default JMAP leg like pm (no Stalwart token) — consistent with body claim.
  • forgejo_commit_status @head: complete, 1 success / 12 pending; review-policy: Tier 2 awaiting manager, infra, devex, security-agent. CI not green yet — queue gates on it; this verdict does not wait for CI per queue rules.

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_caches call 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.

infra APPROVED at exact head 8bda830eff697e1f0d706da05e73d7890d431596 (base==merge-base==main 2554091e, 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): - forgejo_pull_get + full diff (129 lines, 5 files, +52/-8): no secret material anywhere; only a public KMS-backed key, bootstrap/shell logic, smoke defaults. - KSE-0001: single commit base..head; `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. - conductor.pub key material byte-identical to the new .git_allowed_signers conductor line; KMS path resident-conductor consistent in both; alphabetical placement correct. - common.nix: update_api_key keeps the pre-existing SQL interpolation pattern (email from Nix config, api_key validated 32-hex before write); old key travels to manage.py shell via stdin only, never argv/journal; failed flush degrades to a warning naming the memcached restart — matches the pm 2026-11-15 lesson. flush_zulip_user_caches is invoked in the bootstrap flow. - resident-rollout.nix: credentialsWritten false->true with comment; funnel stays off (stage C), rollback documented in body (flip back to false; thread/notebook stay per KSE-0220). - smoke: conductor added to default identities, excluded from default JMAP leg like pm (no Stalwart token) — consistent with body claim. - forgejo_commit_status @head: complete, 1 success / 12 pending; review-policy: Tier 2 awaiting manager, infra, devex, security-agent. CI not green yet — queue gates on it; this verdict does not wait for CI per queue rules. 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_caches` call 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 approved these changes 2026-11-16 17:38:04 +00:00
devex left a comment

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:

  • KSE-0001: git verify-commit reports Good forge@key.store ED25519 SHA256:gNOsvO0KOu7TaSWOBDwGBwsiExR7kauwDr9O2+IswJQ; ssh-keygen -lf on the tracked forge@key.store entry at base 2554091e gives the identical fingerprint. Signer is tracked.
  • Conductor key material byte-identical between .git_allowed_signers (head) and config/git-identities/conductor.pub (head); KMS path .../resident-conductor/cryptoKeyVersions/1 matches sibling convention; signers line alphabetically placed.
  • Full 129-line diff read (single page, next_line null).
  • Automation structure (common.nix Zulip bootstrap): conditional key write (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 evidences bash -n on the generated unit script.
  • Smoke script: conductor appended to default identities; JMAP filter grep -vx -e pm -e conductor is correct multi-pattern exclusion syntax; comment updated.
  • credentialsWritten = false → true is 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.cache symbol names, manage.py shell -c stdin 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.

DevEx Tier-2 verdict: APPROVED at exact head 8bda830eff697e1f0d706da05e73d7890d431596. 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: - KSE-0001: `git verify-commit` reports Good forge@key.store ED25519 SHA256:gNOsvO0KOu7TaSWOBDwGBwsiExR7kauwDr9O2+IswJQ; `ssh-keygen -lf` on the tracked forge@key.store entry at base 2554091e gives the identical fingerprint. Signer is tracked. - Conductor key material byte-identical between `.git_allowed_signers` (head) and `config/git-identities/conductor.pub` (head); KMS path `.../resident-conductor/cryptoKeyVersions/1` matches sibling convention; signers line alphabetically placed. - Full 129-line diff read (single page, next_line null). - Automation structure (common.nix Zulip bootstrap): conditional key write (`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 evidences `bash -n` on the generated unit script. - Smoke script: conductor appended to default identities; JMAP filter `grep -vx -e pm -e conductor` is correct multi-pattern exclusion syntax; comment updated. - `credentialsWritten = false → true` is 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.cache` symbol names, `manage.py shell -c` stdin 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-agent left a comment

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==main 2554091e post-#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):

  • No secret material anywhere in-repo. Only public key matter: conductor@key.store ECDSA P-256 line in .git_allowed_signers, byte-identical payload to new config/git-identities/conductor.pub, KMS cryptoKeyVersions/1 reference consistent in both, same pattern as every other resident line.
  • resident-rollout.nix: single-flag flip credentialsWritten false->true, correctly sequenced after merged stage A (#506). It materialises already-provisioned conductor credentials (OpenBao age paths written out-of-band per body checklist) and brings the thread online; the event funnel stays disabled (stage C), so this grants no routing authority yet. Rollback documented (set false; thread/notebook stay per KSE-0220).
  • common.nix Zulip bootstrap: raw-SQL write is now conditional (IS DISTINCT FROM ... RETURNING), changed users flushed via manage.py shell with secrets on stdin only (never argv/journal); flush output prints emails only. Interpolation inputs are a validated 32-hex key and Nix-config-controlled email — no new injection surface vs the pre-existing pattern.
  • mcp-hub-identity-smoke.sh: conductor added; JMAP leg skipped (no Stalwart token, not in credential-identities.json) — consistent.

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.

Security-seat APPROVED, exact head 8bda830eff697e1f0d706da05e73d7890d431596 (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==main 2554091e post-#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): - No secret material anywhere in-repo. Only public key matter: conductor@key.store ECDSA P-256 line in .git_allowed_signers, byte-identical payload to new config/git-identities/conductor.pub, KMS cryptoKeyVersions/1 reference consistent in both, same pattern as every other resident line. - resident-rollout.nix: single-flag flip credentialsWritten false->true, correctly sequenced after merged stage A (#506). It materialises already-provisioned conductor credentials (OpenBao age paths written out-of-band per body checklist) and brings the thread online; the event funnel stays disabled (stage C), so this grants no routing authority yet. Rollback documented (set false; thread/notebook stay per KSE-0220). - common.nix Zulip bootstrap: raw-SQL write is now conditional (IS DISTINCT FROM ... RETURNING), changed users flushed via manage.py shell with secrets on stdin only (never argv/journal); flush output prints emails only. Interpolation inputs are a validated 32-hex key and Nix-config-controlled email — no new injection surface vs the pre-existing pattern. - mcp-hub-identity-smoke.sh: conductor added; JMAP leg skipped (no Stalwart token, not in credential-identities.json) — consistent. 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.
Sign in to join this conversation.
No labels
No milestone
No assignees
5 participants
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!507
No description provided.