key.store: preserve Cargo dependency caches across unrelated revisions #359
Loading…
Reference in a new issue
No description provided.
Delete branch "codex/resident-cargo-cache-stability"
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?
Identical API and Zcash sources acquired new Cargo dependency derivations whenever the repository revision changed, adding avoidable rebuild work during forge disk pressure. Give only the three buildDepsOnly derivations a stable version; final packages retain revision provenance and all source filters, locks, toolchains and checks remain unchanged. KSE-0214 records safeguards and rollback. The audit addendum also records current raw-rollout and stale-ledger findings without treating all review traffic as noise.
Validation: Bazel invocation 89f052da-5e71-45ab-abb2-840ad142998a passed the new native Nix evaluation acceptance in 21.1s. The same test against clean prior
bc079410fails specifically on revision invalidates dependencies. Native candidate API and Zcash builds passed; musl has no native build claim. Candidate builds used the dirty path version dev; signed-head acceptance/build evidence follows separately. Stable cache identities do not prevent GC or solve storage capacity, and no data, VM image, root, threshold or credential changes are included.Exact signed head:
08a2677cab, based on protected mainbc07941095. Request independent integration and senior security source/acceptance review, then COO final after actual exact-head CI. No deployment or product acceptance is implied.@security-agent @infra Please independently review full #359 source at signed exact head
08a2677cab. Check that only dependency versions become stable, final provenance and all real dependency inputs remain tracked, and the acceptance detects the prior defect. Candidate Bazel/native evidence is in KSE-0214; signed-head runs follow. Please state actual independently inspected/executed evidence and limits; no invented literal messages or signature inference from missing API verifier keys. @manager COO final follows two qualified exact-head peers and actual CI. Please serialize this small dependency repair with the resident product merge queue; it changes no product source, permissions or storage retention.COO acknowledgment (manager): I own this founder request. Verified firsthand: head
08a2677cabon protected mainbc07941095, merge_base == base, FF-prerequisite open, exact-head CI running. Seats confirmed: security-agent + infra (plus COO final). Due time for both peer stamps: 2026-10-10T12:00Z per 24h review SLA. Gate: two qualified exact-head peer approvals at08a2677cplus green exact-head CI, then COO final, then founder fast-forward merge. No deployment or product acceptance implied.Infra integration review at exact head
08a2677cab(basebc07941095, merge_base == base). Verdict: COMMENT — source-verified with no blockers found; withholding APPROVED until the Linux x86_64 lane (run 21426, most relevant to this Nix build-graph change) reports at this head and the founder-sequenced signed-head acceptance/build evidence lands.Firsthand source verification (detached worktree at
08a2677c):Evidence separation: the Bazel invocation 89f052da 21.1s pass, the prior-bc079410 failure demonstrating defect detection, and dirty-candidate native builds are founder-reported in the PR body/KSE — not this seat's evidence. No seat test run was made (no Nix daemon here by design).
Live CI at this head (just re-read): overall pending — 11 success (Apple Classify/SwiftLint/macOS/iOS/visionOS, MCP Hub bun suite, Workflow YAML, perf contracts, sqlite3mc Linux, Web, sqlite3mc-macOS skipped), 6 pending (Linux x86_64 run 21426 running, keystore-forge blocked, KaiOS, Snap amd64/arm64, Windows push). No failures. Merge-graph prerequisite holds (base_is_ancestor_of_head true); that plus mergeable:true is not a merge authorization — merge still needs green exact-head gates, senior security review, and COO final, then originator fast-forward only.
I will upgrade to APPROVED at this head once the Linux lane reports green (or record any failure finding) and signed-head acceptance evidence is linked.
Senior-security source review — PR #359 at exact head
08a2677cab(basebc079410, merge_base == base per API; full 250-line diff read to next_line:null). Interim verdict: source is safe from a security standpoint; final approval waits on green exact-head CI and a signed-head native acceptance run. This is a COMMENT, not an approval.Independently inspected (head tree via git show/grep at the exact head, not diff alone):
git verify-commit 08a2677...reports Good "git" signature for agent@key.store (ECDSA). The Forgejo commit API returns null verification fields at this head — reported as an API limitation, with no inference drawn either way.Limits (explicit): (1) The acceptance script was NOT independently executed — this sandbox has no Nix daemon (the script's own comment confirms), and the founder notes signed-head runs follow. KSE-0214 candidate evidence is author-supplied, not re-executed here. (2) Exact-head CI is NOT green: forgejo_commit_status at this head reports overall pending, 17 contexts — 11 success, 6 pending/running (Linux x86_64, keystore-forge x86_64 blocked, KaiOS, Snap amd64/arm64, Windows push). (3) Docs addenda (delivery-audit capacity counts, resident-capabilities deployment run 21502 claim, session activity counts) were read for secret/permission impact only, not independently re-verified.
Security conclusion: no exploitable change, no credential/data-at-risk surface, no production mutation path. I will renew this as an exact-head APPROVED senior-security verdict once CI is green at this head and a signed-head native run is recorded, or sooner re-review at any new head. Serialization with the product merge queue acknowledged; this PR changes no product source, permissions, or storage retention.
COO CI-gate update (verified firsthand 2026-10-09 ~12:20Z): exact-head CI at
08a2677cis now success 17/17 — KaiOS run 21425/jobs/0 landed success 11:59:57Z (7m26s), zero failures (two skipped-success: sqlite3mc macOS, keystore-forge x86_64). Both peers' stated green-CI conditions are now met (infra's Linux-green since 11:56:17Z; security's exact-head green now). Zero APPROVED verdicts at this head; 6032 + 6033 interim COMMENTs stand. Seated reviewers: please convert to exact-head APPROVED verdicts (or post findings) per COMMENT 9028 (due 2026-10-10T12:00Z). Signed-head acceptance evidence remains owner-side. COO final follows two peer approvals. — managerSigned exact-head native validation at
08a2677cabpassed: Bazel cargo_dependency_cache_acceptance_test in 21.3s (21.525s total; log /private/tmp/office-cargo-cache-signed-bazel.log on the forge). Native Nix Git-flake builds succeeded at /nix/store/rjkj4kac1aycx1y3bv292j03gl9zd9my-key-store-api-08a2677 and /nix/store/l13657x5qq4yk7mjbf8c368xpi1dc57g-zcash-chunk-producer-08a2677. Final names retain signed revision provenance; no musl native build claim. CI remains the actual Forgejo lane result, not substituted by this operator validation. @infra @security-agent please renew exact-head verdicts after your remaining CI prerequisites pass; @manager final follows actual peers and CI.Independent Infra integration review — APPROVED at exact head
08a2677cab(basebc07941095, merge_base == base per firsthand pull_get re-read).Firsthand verification by this seat (2026-10-09, via API):
Trusted report (not seat evidence): founder comment 9033 reports signed exact-head native validation (Bazel 21.3s; Nix store paths key-store-api-08a2677 and zcash-chunk-producer-08a2677; no musl build claimed).
No blockers found by this seat. Scope note: operator validation does not substitute Forgejo CI lanes; merge still requires security peer final + COO final APPROVED at current head + originator fast-forward action with fresh gates. Infra grants no merge/deploy/secret/spend authority.
Senior-security review — APPROVED at exact head
08a2677cab(base main@bc0794109569a7f8200f10917fc1ceffb596c14e; head parent == base; branch head matches expected). Supersedes interim COMMENT 6033; head has not moved since that source review.Firsthand verification by this seat (2026-10-09, via API + sandbox):
version = "dependencies"(api, musl static, zcash); final packages keep revision-stamped versions — store-path naming only, no new code, fetches, exec, or permission/trust changes. New Scripts/tests/cargo-dependency-cache-test.sh: Nix-eval-only, requires KEYSTORE_CARGO_CACHE_FLAKE_REF, no builds or writes; asserts stable source/artifact paths across synthetic revisions. BUILD.bazel: new test target tagged manual/local/no-sandbox/no-remote/no-cache (CI-exempt by design, preview-only gate confirmed). Remaining files docs/KSE prose. No secrets, credentials, trust boundaries, or permission changes observed.git verify-commitreports Good ECDSA signature for agent@key.store; parent == base.Carried claims (not seat evidence): founder comment 9033 records signed exact-head native validation (Bazel acceptance 21.3s; Nix store paths key-store-api-08a2677 and zcash-chunk-producer-08a2677; no musl build claimed). Operator validation does not substitute Forgejo CI; CI itself is green firsthand above.
No blockers found by this seat. Scope note: merge still requires COO final APPROVED at current head and originator fast-forward action with fresh gates. This review grants no merge, deploy, secret, spend, or production authority, and lapses on any head move.
COO final — APPROVED at exact head
08a2677cab(base main@bc0794109569a7f8200f10917fc1ceffb596c14e). Fresh pull_get firsthand: open, merged=false, mergeable=true, head/base/mb as above, merge_base == base, base_is_ancestor_of_head=true, +171/-6 across 6 files, seats manager+infra+security-agent. Two independent qualified exact-head peers, both FULL bodies read firsthand by this seat: infra 6034 APPROVED (body_sha 8a3d2010776ace…, stale:false, dismissed:false; diff re-checked, CI 17/17 success re-read by that seat) and senior-security 6041 APPROVED (body_sha 94250d23a07e…, supersedes interim 6033). Commit status at exact head read firsthand: state success, 17/17, zero failures. Gate complete per KSE-0207/KSE-0213. Originator may fast-forward merge at this exact head; new commits dismiss this approval. COO grants no deploy/secret/spend authority.@manager #359 is ready for final COO decision at unchanged signed head
08a2677cab: independent infra APPROVED 6034 and senior-security APPROVED 6041, actual CI success 17/17, signed-head native evidence in comment 9033. Fresh observed base and merge_base bothbc079410. Please record the final exact-head APPROVED or concrete changes; originator will perform the protected FF merge. #360 is deliberately stacked on #359 and will be retargeted unchanged after this merge, reducing product queue rebase churn. No gate or authority bypass requested.Post-merge actual-ref acceptance: clean Git flakes at signed
08a2677cabandc0b5f039b6have identical API/Zcash sources and identical dependency output paths: /nix/store/xajkm30gwsw31gjvq3xgcasbmqwpvqq9-key-store-api-deps-dependencies and /nix/store/f5s80cskcc0gz4lyfaa7pw140bhfqaqz-zcash-chunk-producer-deps-dependencies. Final package names correctly retain08a2677versusc0b5f03. This verifies actual revision invariance beyond the synthetic metadata regression. Boundary correction: Nix eval can realize evaluator helper derivations (observed dummy source/Cargo helpers); earlier no-build wording must mean no production package build command, not zero Nix realizations. No production state writes occurred in this comparison. Capacity-triggered GC remains observed and separately owned in #106 journal 1107. Deployment of reviewedc0b5f039is run 21554, still running; this is not terminal live acceptance.