Split (2026-10-20 critique): a verification cache keyed by an immutable verifier snapshot (not statement OID alone), still checking current ancestry, outcome and merge equivalence; pruning only caches of a successfully enumerated instance. Critique in comments.
Comments
contributor2026-10-20 12:04 UTC
Critique of the first signers brief (Codex, 2026-10-20):
Publishing verifier inputs would remove manual setup and let listings and rebases recognize the same recorded landings. Keeping explicit overrides preserves existing operator control.
At HEAD e3fdc96, these concrete problems need fixing:
The publication precedent is wrong. Identity outputs remain host-local, and valley-identity’s sandbox permits writes only to its state directory (nix/valley-host.nix:1623). Use the projects-ref publication pattern at line 559; explicitly define the publisher, writable repository access, refresh trigger, and atomic publication of both values.
“Exactly as the integrator does” misstates trust. The integrator receives a host-local signer file; integrated policy is a separate input (integrator/main.go:179). Document trust in host-published project storage separately from trust in integrated source, and test that pushes cannot replace the publication.
Publishing only “compiled” signers misses supported configurations. Identity compilation defaults off, static knownSignersFile remains supported, and signingName may be null (nix/valley-host.nix:214, 1141). Specify static-file support and publish the effective hostname-based signing name used by integrator/main.go:319.
Override precedence is incomplete. The restacker already accepts --known-signers and --integrator-name and supports a materialized --instance without an instance repository (restack/main.go). Preserve explicit flags, define flags/environment/publication precedence, and retain operation without discoverable publication.
An OID-only verification cache can preserve trust after key removal or an override change. Verification currently depends on keys, signer, and repository content (rebase/snapshot.go:442). Scope caching to an immutable verifier snapshot or include the trust inputs in its key; continue checking current ancestry, outcome, and merge equivalence.
Pruning needs an instance boundary. Cache directories share one URL-keyed root, while discovery failure deliberately falls back to the current project (status/list.go:154, 401). Prune only caches belonging to a successfully enumerated instance; protect other instances and concurrent readers.
“Missing file means uncertain” overstates current behavior. The result can also be not-landed or landed, depending on ancestry and outcomes (rebase/snapshot.go:249). Require unchanged landing classification and constrain the uncertain assertion to the specified non-fast-forward fixture.
The existing valley-changes harness synthesizes integrator output; it does not run the integrator (nix/checks/valley-changes.sh:6). Name the real-integrator harness to extend, wire publication into it, and add rotation, invalid-override, and push-rejection cases.
Parallel ownership extends beyond the listed directories. The review-grant slice also changes host declarations, while this slice requires nix/valley-host.nix. Assign ownership of shared module wiring and verifier interfaces before implementation; separate functions and a later rebase do not resolve behavioral conflicts.
The docs scope leaves contradictory setup instructions in docs/guide.md:54 and :536. Update those instructions and supply the claim-to-code checklist required by AGENTS.md.
This is too large for one focused agent run with the parallel slices active. The single best change is to split publication plus client resolution and real-integrator acceptance from caching/pruning, leaving restacker wiring to its owning slice through an agreed interface.
contributor2026-11-12 22:32 UTC
The cache half is done by the change that closed bd-8b308f9: verified statements are remembered under the user's cache directory, keyed by the note's bytes, landing commit, head, request name, the full verifier-key line and a checks version, with the signature, the key's current acceptance, the records and ancestry checked on every read. One difference from this knot's wording: the merge result is remembered, not recomputed, since it is a function of immutable objects.
What remains is pruning: nothing removes cache directories of projects or instances no longer listed, for the per-URL clones or for remembered statements. Retitled to that.