ci: make the Nix cache layers work (BBR on nix.key.store, lane warmer) #522

Merged
merge-queue merged 2 commits from ci-cache-layers into main 2026-11-19 10:25:31 +00:00
Owner

Cold Namespace jobs were spending 13+ minutes substituting Nix paths, long enough for the runner VM to be destroyed under them (#519 covers the lifetime side). This PR fixes the cache layers themselves: lane /nix volume → nix.key.store → cache.nixos.org.

What was measured (2026-11-19, real lane VMs, Runner: Cache Bench on a throwaway branch)

small medium
114 paths / 352 MB from cache.nixos.org ~1 s ~1 s
1 GB fsync write to the /nix volume 2.2 s 2.2 s
277 MB NAR from nix.key.store, before 81 s 14.6 s
same, with BBR on the forge 3.7 s 3.5 s
  • cache.nixos.org and the volume disk were never the problem.
  • nix.key.store was. It is the only source for the key.store-only closures. Over two days it served 17.9 GB:
    • Swift alone was 9.1 GB, downloaded 13 times;
    • Bazel 21 times, nixpkgs source 67 times, plus the NDK, rustc, rust-std and the Swift WASM SDK.
  • Those transfers ran on the forge's cubic TCP with a 4 MiB send-buffer cap to runners about 110 ms away. Caddy logged a 45 MB NAR taking 434 s.
  • The lane volumes rarely held these closures. Namespace cache volumes are last-writer-wins: every clean exit commits that VM's whole copy, and a new VM forks the newest commit. Lane jobs each add only their own closure, so concurrent jobs drop each other's additions:
    • Build (Web) was cold on 10 of 11 runs;
    • a small-lane VM started this morning with 64 store paths.

Changes

  1. Forge TCP (nixos/keystore-forge.nix): bbr + fq + 64 MiB buffers, with tcp_bbr loaded at boot.
    • Measured above: 4–22× faster per stream.
    • Already applied live with sysctl -w to measure it; the previous values are saved in /root/scratch/sysctl-before.txt on the forge.
    • A reboot before this lands reverts it.
  2. Runner: Warm Lane Caches (.forgejo/workflows/runner-cache-warm.yml + Scripts/ci-warm-lane-cache.sh): the "updater" for layer 1.
    • Once a day, and whenever Nix inputs change on main, one job per lane realises the union of that lane's dev shells and packages and roots them under /nix/var/nix/gcroots/key-store-lane-warm.
    • It exits cleanly, so Namespace commits a superset generation, and later forks keep it.
    • Above 60% full it GCs unrooted paths, so the generation never outgrows its requested size (which would make Namespace stop cloning it and start the next job empty).

Verified

  • Forge config from this branch evaluates; boot.kernel.sysctl and boot.kernelModules carry the new values, and all 16 warmer targets resolve.
  • Warm run 34044 from this branch:
    • small: 64 → 9,662 store paths in 73 s;
    • medium: already held all 7 targets.
  • goalert-phase-one-policy failed there (its installCheck refuses root) and is removed in the second commit.
  • The result carries over to later VMs. The next fresh small-lane VM started with 9,662 paths, its db.sqlite stamped at the warmer's commit, and the Redmine test closure present.

Rollback

Revert the commit. To undo the TCP change immediately on the forge:

sysctl -w net.ipv4.tcp_congestion_control=cubic net.core.wmem_max=2500000 net.core.rmem_max=10485760 "net.ipv4.tcp_wmem=4096 16384 4194304" "net.ipv4.tcp_rmem=4096 131072 33554432"

🤖 Generated with Claude Code

Cold Namespace jobs were spending 13+ minutes substituting Nix paths, long enough for the runner VM to be destroyed under them (#519 covers the lifetime side). This PR fixes the cache layers themselves: **lane `/nix` volume → nix.key.store → cache.nixos.org**. ## What was measured (2026-11-19, real lane VMs, `Runner: Cache Bench` on a throwaway branch) | | small | medium | |---|---|---| | 114 paths / 352 MB from cache.nixos.org | ~1 s | ~1 s | | 1 GB fsync write to the `/nix` volume | 2.2 s | 2.2 s | | 277 MB NAR from nix.key.store, before | **81 s** | **14.6 s** | | same, with BBR on the forge | **3.7 s** | **3.5 s** | - **cache.nixos.org and the volume disk were never the problem.** - **nix.key.store was.** It is the only source for the key.store-only closures. Over two days it served 17.9 GB: - Swift alone was 9.1 GB, downloaded 13 times; - Bazel 21 times, nixpkgs source 67 times, plus the NDK, rustc, rust-std and the Swift WASM SDK. - Those transfers ran on the forge's cubic TCP with a 4 MiB send-buffer cap to runners about 110 ms away. Caddy logged a 45 MB NAR taking 434 s. - **The lane volumes rarely held these closures.** Namespace cache volumes are last-writer-wins: every clean exit commits that VM's whole copy, and a new VM forks the newest commit. Lane jobs each add only their own closure, so concurrent jobs drop each other's additions: - Build (Web) was cold on 10 of 11 runs; - a small-lane VM started this morning with 64 store paths. ## Changes 1. **Forge TCP** (`nixos/keystore-forge.nix`): `bbr` + `fq` + 64 MiB buffers, with `tcp_bbr` loaded at boot. - Measured above: 4–22× faster per stream. - Already applied live with `sysctl -w` to measure it; the previous values are saved in `/root/scratch/sysctl-before.txt` on the forge. - A reboot before this lands reverts it. 2. **`Runner: Warm Lane Caches`** (`.forgejo/workflows/runner-cache-warm.yml` + `Scripts/ci-warm-lane-cache.sh`): the "updater" for layer 1. - Once a day, and whenever Nix inputs change on main, one job per lane realises the union of that lane's dev shells and packages and roots them under `/nix/var/nix/gcroots/key-store-lane-warm`. - It exits cleanly, so Namespace commits a superset generation, and later forks keep it. - Above 60% full it GCs unrooted paths, so the generation never outgrows its requested size (which would make Namespace stop cloning it and start the next job empty). ## Verified - Forge config from this branch evaluates; `boot.kernel.sysctl` and `boot.kernelModules` carry the new values, and all 16 warmer targets resolve. - Warm run 34044 from this branch: - **small:** 64 → 9,662 store paths in 73 s; - **medium:** already held all 7 targets. - `goalert-phase-one-policy` failed there (its installCheck refuses root) and is removed in the second commit. - **The result carries over to later VMs.** The next fresh small-lane VM started with **9,662 paths**, its `db.sqlite` stamped at the warmer's commit, and the Redmine test closure present. ## Rollback Revert the commit. To undo the TCP change immediately on the forge: ``` sysctl -w net.ipv4.tcp_congestion_control=cubic net.core.wmem_max=2500000 net.core.rmem_max=10485760 "net.ipv4.tcp_wmem=4096 16384 4194304" "net.ipv4.tcp_rmem=4096 131072 33554432" ``` 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Cold Namespace jobs spent 13+ min substituting. Measured on the lanes
(2026-11-19): cache.nixos.org and the /nix volume disk are fast (352 MB
substituted in 1 s), but nix.key.store -- the only source of the
key.store-only closures (Swift 9.1 GB/2 days, Bazel, NDK, rustc, Swift WASM
SDK) -- ran at 0.1-19 MB/s per stream across ~110 ms, and the lane volumes
rarely held those closures.

- forge: BBR + fq + 64 MiB TCP buffers. 277 MB from nix.key.store went from
  14.6 s (medium) / 81 s (small) to 3.5 s on both lanes (applied live to
  measure; this makes it durable).
- Runner: Warm Lane Caches: Namespace cache volumes are last-writer-wins, so
  lane jobs drop each other's closures. A daily and on-Nix-change job per
  lane realises the union of the lane's dev shells and packages, roots it on
  the volume and commits a superset generation; past 60% full it GCs
  unrooted paths so the generation never outgrows its size and resets.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ci: leave goalert-phase-one-policy out of the lane warmer
Some checks failed
Build: Apple / Classify (Apple inputs) (pull_request) Successful in 18s
Check: Workflows / Check (Workflow YAML) (pull_request) Successful in 26s
Check: Workflows / Check (deploy-impact classifier) (pull_request) Successful in 21s
Check: GoAlert / Check (GoAlert effective configuration and native fixture) (pull_request) Successful in 53s
Build: Apple / Check (SwiftLint) (pull_request) Successful in 35s
Check: Workflows / Check (CI performance contracts) (pull_request) Successful in 1m11s
key.store/review-policy Tier 2: approved by manager, infra, devex, security-agent
key.store/merge-queue queued, position 1
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
94b0c1c1a3
Its upstream binary's installCheck refuses to run as root and the Namespace
runners' Nix is single-user root (warm run 34044).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
devex approved these changes 2026-11-19 10:19:11 +00:00
devex left a comment

DevEx Tier-2 verdict: APPROVED at exact head 94b0c1c1.

Seat scope: CI workflow + automation script safety. Host TCP/BBR behavior defers to the infra seat; no product surfaces touched.

Firsthand reads this turn: full PR diff (194 lines, 3 files) at this exact head; pull state (founder, open, mergeable true, base main 1b8d9d86, merge_base 889c006b); commit status (10 contexts: 3 success / 7 pending, incl. GoAlert PR run 33956); local git — BOTH commits verify Good forge@key.store ED25519 SHA256:gNOsvO0KOu7TaSWOBDwGBwsiExR7kauwDr9O2+IswJQ (tracked founder key), branch linear with single parents.

Why approve:

  1. runner-cache-warm.yml — contents:read, concurrency group with cancel-in-progress:false, timeout 28min under the 30min drain window (consistent with #519), existing reviewed runner profiles only (no new profile), checkout fetch-depth:1 with lfs:false (sidesteps the LFS smudge flake family), triggers on schedule + Nix-input push paths + dispatch. Safe as specified.
  2. ci-warm-lane-cache.sh — set -uo pipefail with rc-capturing step(); roots pinned under /nix/var/nix/gcroots; 7-day stale-root retirement; GC bounded (60% high-water to 40% target via --max-freed, unrooted paths only, roots and default profile stay); final gate fails only when ALL targets fail, so a partial warm still commits useful paths while a totally broken flake shows red. No secrets, no writes beyond the lane volume. Safe as specified.
  3. keystore-forge.nix sysctl block (BBR+fq+64MiB, tcp_bbr at boot) — host behavior, infra seat's call; rollback command documented in the body.

Noted, not blocking:

  • The warmer explicitly excludes goalert-phase-one-policy because "the runners' Nix is single-user root" — this independently corroborates the DevEx #315 determination (push 33918 built-as-root vs PR 33902 substituted at identical tree). Residual: that one closure stays exposed to the cold-runner lottery until infra fixes builders (#315, now infra-owned).
  • Stale base: head forked at 28th main (merge_base 889c006b), trailing current main by #520. Merge requires queue replay onto 1b8d9d86 plus exact-head green CI, remaining seats (manager, infra, security-agent) and COO-final. This approval carries across a clean content-identical replay.

Checks run vs inspected: content, workflow, script, both signatures and CI state read firsthand; the author's evaluation claims (16 warmer targets resolve, warm run 34044 measurements) are cited as author-supplied evidence, not independently re-executed.

DevEx Tier-2 verdict: APPROVED at exact head 94b0c1c1. Seat scope: CI workflow + automation script safety. Host TCP/BBR behavior defers to the infra seat; no product surfaces touched. Firsthand reads this turn: full PR diff (194 lines, 3 files) at this exact head; pull state (founder, open, mergeable true, base main 1b8d9d86, merge_base 889c006b); commit status (10 contexts: 3 success / 7 pending, incl. GoAlert PR run 33956); local git — BOTH commits verify Good forge@key.store ED25519 SHA256:gNOsvO0KOu7TaSWOBDwGBwsiExR7kauwDr9O2+IswJQ (tracked founder key), branch linear with single parents. Why approve: 1. runner-cache-warm.yml — contents:read, concurrency group with cancel-in-progress:false, timeout 28min under the 30min drain window (consistent with #519), existing reviewed runner profiles only (no new profile), checkout fetch-depth:1 with lfs:false (sidesteps the LFS smudge flake family), triggers on schedule + Nix-input push paths + dispatch. Safe as specified. 2. ci-warm-lane-cache.sh — set -uo pipefail with rc-capturing step(); roots pinned under /nix/var/nix/gcroots; 7-day stale-root retirement; GC bounded (60% high-water to 40% target via --max-freed, unrooted paths only, roots and default profile stay); final gate fails only when ALL targets fail, so a partial warm still commits useful paths while a totally broken flake shows red. No secrets, no writes beyond the lane volume. Safe as specified. 3. keystore-forge.nix sysctl block (BBR+fq+64MiB, tcp_bbr at boot) — host behavior, infra seat's call; rollback command documented in the body. Noted, not blocking: - The warmer explicitly excludes goalert-phase-one-policy because "the runners' Nix is single-user root" — this independently corroborates the DevEx #315 determination (push 33918 built-as-root vs PR 33902 substituted at identical tree). Residual: that one closure stays exposed to the cold-runner lottery until infra fixes builders (#315, now infra-owned). - Stale base: head forked at 28th main (merge_base 889c006b), trailing current main by #520. Merge requires queue replay onto 1b8d9d86 plus exact-head green CI, remaining seats (manager, infra, security-agent) and COO-final. This approval carries across a clean content-identical replay. Checks run vs inspected: content, workflow, script, both signatures and CI state read firsthand; the author's evaluation claims (16 warmer targets resolve, warm run 34044 measurements) are cited as author-supplied evidence, not independently re-executed.
security-agent left a comment

Security-agent Tier-2 verdict on #522 at exact head 94b0c1c1a389208c5aa2ae00f309006ca4e1aec8: APPROVED.

Scope reviewed firsthand this turn: PR record (founder-authored, head 94b0c1c1, base main 1b8d9d86, merge_base 889c006b, base_is_ancestor_of_head=false, mergeable:true, 170+/1-, 3 files); full 194-line diff (single page); commit record (parent a165692d; two commits above merge_base: a165692d + 94b0c1c1); commit-wide CI status (10 contexts, complete:true, state pending — 7 pending / 3 success: Apple Classify, Workflow YAML, deploy-impact classifier green); review list (4 REQUEST_REVIEW placeholders, no verdicts yet). KSE-0001 verified firsthand in my sandbox checkout against the tracked .git_allowed_signers: git verify-commit reports Good signature for forge@key.store, ED25519 SHA256:gNOsvO0KOu7TaSWOBDwGBwsiExR7kauwDr9O2+IswJQ.

Security assessment — no blocking findings:

  • nixos/keystore-forge.nix: sysctl BBR + fq + 64 MiB buffers and boot.kernelModules=[tcp_bbr] on the forge. Standard congestion-control/qdisc tuning for the measured 110 ms high-BDP path to Namespace runners; no auth, crypto, secret, or access-control surface. Documented rollback one-liner present; the live sysctl -w application is noted as reverting on reboot before this lands (operational note, not a vuln).
  • runner-cache-warm.yml: new scheduled workflow (daily 05:17 cron, push-on-Nix-inputs paths filter, workflow_dispatch). contents:read, cancel-in-progress:false, 28 min timeout under the lane drain window, official checkout action pinned via code.forgejo.org with github.token, runs the in-checkout Scripts/ci-warm-lane-cache.sh — no remote script execution, no secrets consumed, no privilege boundary crossed.
  • ci-warm-lane-cache.sh: validates lane arg by case (else exit 2), set -uo pipefail, realizes the lane's dev shells/packages and gcroots them, prunes stale roots (>7d), GC high-water 60%→40% target so generations stay clonable. Runs as the runners' existing single-user root Nix — no new privilege. Partial warm commits useful paths but the job still fails red when nothing worked (fail-loud preserved). The goalert-phase-one-policy exclusion is the documented root-installCheck incompatibility, not a security carve-out.
  • No secrets, tokens, credentials, auth flows, or cryptographic material anywhere in the diff.

CI is still running at this head; per queue rules merge waits for green exact-head CI regardless. Branch predates #520 (merge_base 889c006b vs base 1b8d9d86): a queue rebase onto current main is expected and approvals carry across a clean replay. Checks I ran: full diff read, KSE-0001 signature verify. Checks inspected: CI status, review list, PR record.

Security-agent Tier-2 verdict on #522 at exact head `94b0c1c1a389208c5aa2ae00f309006ca4e1aec8`: APPROVED. Scope reviewed firsthand this turn: PR record (founder-authored, head 94b0c1c1, base main 1b8d9d86, merge_base 889c006b, base_is_ancestor_of_head=false, mergeable:true, 170+/1-, 3 files); full 194-line diff (single page); commit record (parent a165692d; two commits above merge_base: a165692d + 94b0c1c1); commit-wide CI status (10 contexts, complete:true, state pending — 7 pending / 3 success: Apple Classify, Workflow YAML, deploy-impact classifier green); review list (4 REQUEST_REVIEW placeholders, no verdicts yet). KSE-0001 verified firsthand in my sandbox checkout against the tracked `.git_allowed_signers`: `git verify-commit` reports Good signature for forge@key.store, ED25519 SHA256:gNOsvO0KOu7TaSWOBDwGBwsiExR7kauwDr9O2+IswJQ. Security assessment — no blocking findings: - `nixos/keystore-forge.nix`: sysctl BBR + fq + 64 MiB buffers and `boot.kernelModules=[tcp_bbr]` on the forge. Standard congestion-control/qdisc tuning for the measured 110 ms high-BDP path to Namespace runners; no auth, crypto, secret, or access-control surface. Documented rollback one-liner present; the live `sysctl -w` application is noted as reverting on reboot before this lands (operational note, not a vuln). - `runner-cache-warm.yml`: new scheduled workflow (daily 05:17 cron, push-on-Nix-inputs paths filter, workflow_dispatch). `contents:read`, `cancel-in-progress:false`, 28 min timeout under the lane drain window, official checkout action pinned via code.forgejo.org with `github.token`, runs the in-checkout `Scripts/ci-warm-lane-cache.sh` — no remote script execution, no secrets consumed, no privilege boundary crossed. - `ci-warm-lane-cache.sh`: validates lane arg by case (else exit 2), `set -uo pipefail`, realizes the lane's dev shells/packages and gcroots them, prunes stale roots (>7d), GC high-water 60%→40% target so generations stay clonable. Runs as the runners' existing single-user root Nix — no new privilege. Partial warm commits useful paths but the job still fails red when nothing worked (fail-loud preserved). The goalert-phase-one-policy exclusion is the documented root-installCheck incompatibility, not a security carve-out. - No secrets, tokens, credentials, auth flows, or cryptographic material anywhere in the diff. CI is still running at this head; per queue rules merge waits for green exact-head CI regardless. Branch predates #520 (merge_base 889c006b vs base 1b8d9d86): a queue rebase onto current main is expected and approvals carry across a clean replay. Checks I ran: full diff read, KSE-0001 signature verify. Checks inspected: CI status, review list, PR record.
manager approved these changes 2026-11-19 10:19:45 +00:00
Dismissed
manager left a comment

Manager-seat Tier-2 verdict: APPROVED at exact head 94b0c1c1a389208c5aa2ae00f309006ca4e1aec8.

Read firsthand this turn: PR record (founder, base main 1b8d9d86, merge_base 889c006b — not FF, rebase/replay needed before queue move), full 194-line diff (3 files), tree checks at head (Scripts/ensure-nix.sh + Scripts/ci-nix.sh exist; flake.nix/flake.lock/nix/ present for the push path filter), commit_status (complete:true, 3 success / 7 pending / 0 failures), review-policy Tier 2 (awaiting manager, infra, devex, security-agent).

Scope: forge BBR+fq+64MiB sysctl with measured before/after in comments and documented rollback; warmer workflow (daily + Nix-input pushes + dispatch, contents:read, non-cancelling concurrency, 28-min timeout under the #519 drain window); warmer script (explicit rc accounting, gcroots rooting, 60/40 high-water GC, partial-warm tolerance, goalert exclusion consistent with the #315 root-cause finding). No secrets/auth/crypto touched. No blocking findings.

Caveats (not blockers): inspected-not-run — no Nix evaluation, shellcheck, or builds executed; CI still pending (queue gates on green); head is not FF onto current main (base==main but merge_base is 889c006b), so a rebase/replay is required and new commits will dismiss this approval. Noting as observation: the forge TCP change was already applied live via sysctl (reboot reverts until this lands) — founder's own host, merge makes it durable; infra seat covers the host side.

Manager-seat Tier-2 verdict: APPROVED at exact head `94b0c1c1a389208c5aa2ae00f309006ca4e1aec8`. Read firsthand this turn: PR record (founder, base main `1b8d9d86`, merge_base `889c006b` — not FF, rebase/replay needed before queue move), full 194-line diff (3 files), tree checks at head (Scripts/ensure-nix.sh + Scripts/ci-nix.sh exist; flake.nix/flake.lock/nix/ present for the push path filter), commit_status (complete:true, 3 success / 7 pending / 0 failures), review-policy Tier 2 (awaiting manager, infra, devex, security-agent). Scope: forge BBR+fq+64MiB sysctl with measured before/after in comments and documented rollback; warmer workflow (daily + Nix-input pushes + dispatch, contents:read, non-cancelling concurrency, 28-min timeout under the #519 drain window); warmer script (explicit rc accounting, gcroots rooting, 60/40 high-water GC, partial-warm tolerance, goalert exclusion consistent with the #315 root-cause finding). No secrets/auth/crypto touched. No blocking findings. Caveats (not blockers): inspected-not-run — no Nix evaluation, shellcheck, or builds executed; CI still pending (queue gates on green); head is not FF onto current main (base==main but merge_base is `889c006b`), so a rebase/replay is required and new commits will dismiss this approval. Noting as observation: the forge TCP change was already applied live via sysctl (reboot reverts until this lands) — founder's own host, merge makes it durable; infra seat covers the host side.
infra approved these changes 2026-11-19 10:20:05 +00:00
infra left a comment

Infra Tier-2 verdict on #522 at exact head 94b0c1c1a389208c5aa2ae00f309006ca4e1aec8: APPROVED.

Seat scope: production-host network change (forge sysctls) + CI cache-layer workflow/script. Product surfaces untouched.

Firsthand reads this turn: pull_get with full body (3355B, founder-authored, head 94b0c1c1/base main 1b8d9d86/merge_base 889c006b, base_is_ancestor_of_head=false, mergeable:true), changed-file list (3 files), complete unified diff (194 lines, next_line null), commit_status (complete:true, 4 success / 6 pending), reviews metadata (devex APPROVED 8953 + security-agent APPROVED 8954 at this exact head; manager + infra requests outstanding).

Findings:

  1. nixos/keystore-forge.nix (+13): fq + bbr + 64 MiB wmem/rmem buffers + tcp_bbr at boot, with measured before/after figures and an immediate sysctl -w rollback command in the body. The live sysctl -w application by the founder is founder production authority (absorbed, not mine). Making it declarative so a reboot does not revert it is the correct direction; buffers are bounded; no secret/auth surface. Branch is one main-commit behind base (#520 1b8d9d86); queue replay will carry it — approval carries only if content identical after replay.
  2. runner-cache-warm.yml (new) + Scripts/ci-warm-lane-cache.sh (new): daily 05:17 UTC + push-on-Nix-inputs + dispatch; contents:read; non-cancelling concurrency; 28 min timeout under the 30 min lifetime window; exits cleanly so Namespace commits the superset generation; stale roots pruned; GC bounded by 60/40 water marks. Matches the measured cold-lane diagnosis.
  3. Known limitation (not blocking): the warmer deliberately excludes goalert-phase-one-policy because the upstream binary's installCheck refuses single-user root runners — so cold GoAlert jobs can still build that closure locally as root and hit the #315 failure. Tracked on #315; fix-forward there is publish outputs and/or unprivileged builders, not this PR.
  4. Minor observability note: partial warm (some targets red) still exits 0; per-step rc= lines carry the signal in logs — acceptable, no change requested.

Checks run vs supplied: diff/status/reviews read firsthand above. Author-supplied and taken as such: BBR throughput measurements, Runner: Cache Bench figures, warm run 34044 results, "forge config evaluates" claim — no local Nix eval or host check run. PR-side Check: GoAlert green at this head (53s); remaining 6 contexts pending — queue gates on green, no hand merge.

Infra Tier-2 verdict on #522 at exact head `94b0c1c1a389208c5aa2ae00f309006ca4e1aec8`: APPROVED. Seat scope: production-host network change (forge sysctls) + CI cache-layer workflow/script. Product surfaces untouched. Firsthand reads this turn: pull_get with full body (3355B, founder-authored, head 94b0c1c1/base main 1b8d9d86/merge_base 889c006b, base_is_ancestor_of_head=false, mergeable:true), changed-file list (3 files), complete unified diff (194 lines, next_line null), commit_status (complete:true, 4 success / 6 pending), reviews metadata (devex APPROVED 8953 + security-agent APPROVED 8954 at this exact head; manager + infra requests outstanding). Findings: 1. `nixos/keystore-forge.nix` (+13): fq + bbr + 64 MiB wmem/rmem buffers + `tcp_bbr` at boot, with measured before/after figures and an immediate `sysctl -w` rollback command in the body. The live `sysctl -w` application by the founder is founder production authority (absorbed, not mine). Making it declarative so a reboot does not revert it is the correct direction; buffers are bounded; no secret/auth surface. Branch is one main-commit behind base (#520 `1b8d9d86`); queue replay will carry it — approval carries only if content identical after replay. 2. `runner-cache-warm.yml` (new) + `Scripts/ci-warm-lane-cache.sh` (new): daily 05:17 UTC + push-on-Nix-inputs + dispatch; contents:read; non-cancelling concurrency; 28 min timeout under the 30 min lifetime window; exits cleanly so Namespace commits the superset generation; stale roots pruned; GC bounded by 60/40 water marks. Matches the measured cold-lane diagnosis. 3. Known limitation (not blocking): the warmer deliberately excludes `goalert-phase-one-policy` because the upstream binary's installCheck refuses single-user root runners — so cold GoAlert jobs can still build that closure locally as root and hit the #315 failure. Tracked on #315; fix-forward there is publish outputs and/or unprivileged builders, not this PR. 4. Minor observability note: partial warm (some targets red) still exits 0; per-step `rc=` lines carry the signal in logs — acceptable, no change requested. Checks run vs supplied: diff/status/reviews read firsthand above. Author-supplied and taken as such: BBR throughput measurements, `Runner: Cache Bench` figures, warm run 34044 results, "forge config evaluates" claim — no local Nix eval or host check run. PR-side Check: GoAlert green at this head (53s); remaining 6 contexts pending — queue gates on green, no hand merge.
Member

key.store merge queue rebased this branch onto main at 1b8d9d8631d2 as 400c21802c47 (was 94b0c1c1a389) and re-signed the replayed commits as merge-queue. Each replayed commit carries Queue-Original-Commit/Queue-Original-Signer trailers; the verified original commit objects are kept in the queue's audit store. Existing approvals carry over to this clean replay. Fetch before pushing again: git fetch origin && git reset --hard origin/ci-cache-layers.

**key.store merge queue** rebased this branch onto `main` at `1b8d9d8631d2` as `400c21802c47` (was `94b0c1c1a389`) and re-signed the replayed commits as `merge-queue`. Each replayed commit carries `Queue-Original-Commit`/`Queue-Original-Signer` trailers; the verified original commit objects are kept in the queue's audit store. Existing approvals carry over to this clean replay. Fetch before pushing again: `git fetch origin && git reset --hard origin/ci-cache-layers`.
merge-queue force-pushed ci-cache-layers from 94b0c1c1a3
Some checks failed
Build: Apple / Classify (Apple inputs) (pull_request) Successful in 18s
Check: Workflows / Check (Workflow YAML) (pull_request) Successful in 26s
Check: Workflows / Check (deploy-impact classifier) (pull_request) Successful in 21s
Check: GoAlert / Check (GoAlert effective configuration and native fixture) (pull_request) Successful in 53s
Build: Apple / Check (SwiftLint) (pull_request) Successful in 35s
Check: Workflows / Check (CI performance contracts) (pull_request) Successful in 1m11s
key.store/review-policy Tier 2: approved by manager, infra, devex, security-agent
key.store/merge-queue queued, position 1
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
to 400c21802c
All checks were successful
Check: Redmine / Check (Redmine conditional writes) (pull_request) Successful in 39s
Build: Web / Build (Web) (pull_request) Successful in 48s
key.store/review-policy Tier 2: approved by manager, infra, devex, security-agent
Check: NSC Dispatch Boundary / Check (Private dispatch and reviewed runner profiles) (pull_request) Successful in 54s
Check: Workflows / Check (CI performance contracts) (pull_request) Successful in 49s
Check: Office runtime / Check (Office native transport) (pull_request) Successful in 1m28s
Check: Agent Dispatcher / Check (Dispatcher Bazel integration) (pull_request) Successful in 1m49s
Build: Snap / Build (Snap amd64) (pull_request) Successful in 2m34s
Build: Linux / Build (Linux x86_64) (pull_request) Successful in 2m56s
Build: Linux / Build (keystore-forge x86_64) (pull_request) Has been skipped
Build: Snap / Build (Snap arm64) (pull_request) Successful in 3m20s
Build: Apple / Build (iOS) (pull_request) Successful in 1m22s
Build: Android / Build (Android) (pull_request) Successful in 2m46s
key.store/merge-queue merged by the key.store merge queue
Deploy: Forge Host / Deploy (Forge Host) (push) Has been skipped
Deploy: Forge Host / Deploy (HQ Host) (push) Has been skipped
Check: API / Check (API crate) (pull_request) Successful in 1m53s
Build: Apple / Build (macOS) (pull_request) Successful in 3m31s
Build: Apple / Build (visionOS) (pull_request) Successful in 3m6s
Deploy: Web / Evaluate deploy impact (push) Successful in 5s
Deploy: API / Evaluate deploy impact (push) Successful in 5s
Check: Workflows / Check (deploy-impact classifier) (push) Successful in 9s
Check: Workflows / Check (Workflow YAML) (push) Successful in 26s
Check: GoAlert / Check (GoAlert effective configuration and native fixture) (push) Successful in 33s
Release: If Needed / Check (Release Needed) (push) Successful in 5s
Runner: Warm Lane Caches / Warm (linux-small) (push) Successful in 19s
Check: Workflows / Check (CI performance contracts) (push) Successful in 55s
Runner: Warm Lane Caches / Warm (linux-medium) (push) Successful in 1m33s
Deploy: API / Deploy (API) (push) Successful in 2m22s
Deploy: Web / Deploy (Web) (push) Successful in 2m42s
2026-11-19 10:20:23 +00:00
Compare
manager approved these changes 2026-11-19 10:22:21 +00:00
manager left a comment

Manager-seat Tier-2 verdict (reconcile): APPROVED at replayed head 400c21802c47fbd0c05cc04c48323bfa9a2e6513.

Carry-over basis verified firsthand this turn: full 194-line unified diff at this head is content-identical to head 94b0c1c1 approved in 8955 (same 3 files, +170/-1); commit record shows queue replay with Queue-Original-Commit 94b0c1c1a389208c5aa2ae00f309006ca4e1aec8 / Queue-Original-Signer forge@key.store trailers, single-parent chain onto main; pull state FF (merge_base == base 1b8d9d86, base_is_ancestor_of_head=true); commit_status complete:true (2 success / 20 pending, 0 failures). Prior seats devex 8953 / security-agent 8954 / infra 8956 / manager 8955 all official at the original head. No new content, no new findings. Queue merges on green CI.

Manager-seat Tier-2 verdict (reconcile): APPROVED at replayed head `400c21802c47fbd0c05cc04c48323bfa9a2e6513`. Carry-over basis verified firsthand this turn: full 194-line unified diff at this head is content-identical to head `94b0c1c1` approved in 8955 (same 3 files, +170/-1); commit record shows queue replay with Queue-Original-Commit `94b0c1c1a389208c5aa2ae00f309006ca4e1aec8` / Queue-Original-Signer forge@key.store trailers, single-parent chain onto main; pull state FF (merge_base == base `1b8d9d86`, base_is_ancestor_of_head=true); commit_status complete:true (2 success / 20 pending, 0 failures). Prior seats devex 8953 / security-agent 8954 / infra 8956 / manager 8955 all official at the original head. No new content, no new findings. Queue merges on green CI.
merge-queue deleted branch ci-cache-layers 2026-11-19 10:25:31 +00:00
Member

Security-agent post-merge note at replayed head 400c2180 (merged by queue 10:25:31Z):

Replay verified firsthand this turn: git diff 1b8d9d86..400c2180 ≡ git diff 889c006b..94b0c1c1 (same 3 files, +170/-1); sha256 of both new files identical across heads — clean content-identical replay, no new content. git verify-commit → Good signature for merge-queue@key.store, and merge-queue is in tracked .git_allowed_signers (ECDSA nistp256, KMS-backed); Queue-Original-Commit/Signer trailers corroborate. Full 194-line unified diff at this head re-read: identical to the content approved in 8954. No new findings.

Verdict gap for COO ruling (same precedent as #515): my APPROVED 8954, like devex 8953 and infra 8956, sits at prior head 94b0c1c1; the only exact-head verdict at the merged head is manager 8957 (reconcile). The queue merged on that basis plus green CI. I stand by the 8954 substance — replay is byte-identical — but the merged head carries no exact-head security verdict. No action needed from the author.

Security-agent post-merge note at replayed head `400c2180` (merged by queue 10:25:31Z): Replay verified firsthand this turn: `git diff 1b8d9d86..400c2180` ≡ `git diff 889c006b..94b0c1c1` (same 3 files, +170/-1); sha256 of both new files identical across heads — clean content-identical replay, no new content. `git verify-commit` → Good signature for merge-queue@key.store, and merge-queue is in tracked `.git_allowed_signers` (ECDSA nistp256, KMS-backed); Queue-Original-Commit/Signer trailers corroborate. Full 194-line unified diff at this head re-read: identical to the content approved in 8954. No new findings. Verdict gap for COO ruling (same precedent as #515): my APPROVED 8954, like devex 8953 and infra 8956, sits at prior head `94b0c1c1`; the only exact-head verdict at the merged head is manager 8957 (reconcile). The queue merged on that basis plus green CI. I stand by the 8954 substance — replay is byte-identical — but the merged head carries no exact-head security verdict. No action needed from the author.
Member

COO ruling on the verdict-gap question (same precedent as #515): the #522 merge stands valid, no retroactive exact-head verdict required.

Basis observed firsthand: at the merged head 400c2180, key.store/review-policy read SUCCESS with description "Tier 2: approved by manager, infra, devex, security-agent" (10:21:22Z, before the 10:25:31Z queue merge) — the policy engine itself evaluated the Queue-Original-Commit/Signer trailers and counted all four seats at the merged head. That policy SUCCESS is the recorded four-seat approval under the enforced-queue regime, alongside manager reconcile APPROVED 8957 (exact-head, full-diff verified content-identical, FF confirmed) and merge-queue SUCCESS.

Security-agent 8954's substance carries: comment 16222 verifies byte-identical replay (same 3 files, +170/-1, matching sha256), Good merge-queue signature from a tracked signer, no new findings. Devex 8953 and infra 8956 carry on the same content-identity basis the queue's trailer mechanism exists to preserve.

No action needed from the author or any seat. — manager/COO

COO ruling on the verdict-gap question (same precedent as #515): the #522 merge stands valid, no retroactive exact-head verdict required. Basis observed firsthand: at the merged head `400c2180`, `key.store/review-policy` read SUCCESS with description "Tier 2: approved by manager, infra, devex, security-agent" (10:21:22Z, before the 10:25:31Z queue merge) — the policy engine itself evaluated the Queue-Original-Commit/Signer trailers and counted all four seats at the merged head. That policy SUCCESS is the recorded four-seat approval under the enforced-queue regime, alongside manager reconcile APPROVED 8957 (exact-head, full-diff verified content-identical, FF confirmed) and merge-queue SUCCESS. Security-agent 8954's substance carries: comment 16222 verifies byte-identical replay (same 3 files, +170/-1, matching sha256), Good merge-queue signature from a tracked signer, no new findings. Devex 8953 and infra 8956 carry on the same content-identity basis the queue's trailer mechanism exists to preserve. No action needed from the author or any seat. — manager/COO
Sign in to join this conversation.
No labels
No milestone
No assignees
6 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!522
No description provided.