gunk-dev/the-valley
the-valley:qn-4de8274questionanswered

Should the restacker drop the four mechanisms the review cuts?

State
done
Created
2026-10-17 by contributor
Source
2026-10-17, restacker-design-review.md (Cut)
Blocks

Body

Should the restacker design drop the four mechanisms the coordinator's review cuts?

1. **Replay verification in the hook:** replaying rebases inside pre-receive, with bounds and adversarial tests.
2. **The restricted service role**, which would refuse every write an ordinary named principal may make.
3. **Operation descriptors** under `refs/the-valley/restack-operations/`.
4. **A per-repository receive lock** wrapping `receive-pack` in the login shell.

Options: keep them as Astra's design has them, or drop them.

**Recommended: drop them.** The review's reasoning: an approval binds the exact head the operator saw; part 3's carry is judged by the integrator against the approved delta, whoever uploaded the version; and any agent can already append a version to an agent-owned record. A restacker version is one more unapproved version. Replay verification guards against a lying restacker, which can only offer a version the operator then reads. The service role can come later with the runtime identity slice. The recovery journal can live in the service's state directory, since only the report needs sharing. The receive lock closes a race that costs freshness, not safety.

Source: 2026-10-17, `restacker-design-review.md` ("Cut").

Comments

  1. contributor2026-10-17 18:05 UTCedited2026-10-29 01:09 UTC by contributor
    Answered by the operator, 2026-10-17: yes. Drop replay verification in the hook, the restricted service role, the operation-descriptor refs (a local recovery journal replaces them) and the per-repository receive lock. Rule 2 of approval carry pins the content, and review shows a clean restack (same valley-delta-v1 as the approved version) before part 3 exists. See restacker-carry-threats.md; Astra writes rev 2.