A project whose main has no policy/valley cannot land its first change, though the floor exists
State
free to start
Created
2026-11-18 by contributor
Body
The verification policy decision says an absent project layer composes the floor alone, so that a project's first policy commit lands through the gate and not around it, and that only an absent floor is refused.
A newly seeded project does not behave that way. Its floor exists in the instance repository, and the integrator is configured with that repository. The client and the check worker find the floor another way: they read `policy/valley` at the project's `main`. A seeded `main` has no such file, so:
- `valley pending` prints "main names no owning valley at policy/valley" and shows no checks;
- `valley review` offers approve, and approve declines with "nothing derived";
- `valley checks` refuses even with `--project` given;
- the worker builds no evidence for the change.
The change that adds `policy/valley` is therefore unlandable, and the only way through is a privileged write on the host that moves `main` onto it: the first statement of who reads the project and what its changes require arrives with no approval, no evidence and no landing record.
The host already holds the fact: the instance repository lists its projects at `refs/the-valley/projects`. The in-tree file is a pointer for clients.
Fixed when a project seeded without `policy/valley` lands its first change by ordinary approval, judged under the floor alone, with an end-to-end test that seeds a bare project and lands its policy commit. Open: how a client gets from a project's origin to its instance when the tree does not say.
Comments
contributor2026-11-18 23:24 UTC
A critic of another model family read the code at 88a5a48. Findings:
- The reading holds, with one addition: the integrator does judge a project with no `policy/valley` under the floor alone (integrator/policy.go, openProject supplies an empty additive layer), so a valid request would land. Only the client and the worker stop, both through resolveLayers and owningFloor (status/approve.go derive, status/worker.go project). `valley checks` works when given `--instance`.
- `policy/valley` selects more than the floor: signer discovery follows it too (status/signers.go readSigners). Reading it from main means a candidate change cannot redirect its own judge. It does not defend against a hostile origin, which can already serve any main.
- `refs/the-valley/projects` in the instance repository lists projects; it gives no way from a project to its instance.
- Three ways for a client to find the instance without the tree: infer a sibling repository from the origin URL (cheap, tied to a hosting layout); configure it per clone (no layout assumption, needs provisioning); a host-written ref in the project's own repository, such as `refs/the-valley/instance`, holding a reachable URL and generated from the same declaration the integrator is configured from (works by itself; the push hook already closes that namespace to pushes).
- Recommended: the host-written ref, with one ownership resolver shared by floor and signer discovery, its result pinned for a command or a worker pass. Where the ref exists it is the authority and a differing `policy/valley` is reported as inconsistent ownership; where it does not, the in-tree pointer keeps working.
- Tests: a project seeded with no `policy/` lands its first policy by signed approval with worker evidence; a missing floor still refuses; a push to the new ref is refused. nix/checks/valley-request.sh scenario 9 extends; status/walk_test.go's pointer-based ownership cases change; the unhosted fallback in valley-changes.sh and the floor-alone case in integrator/e2e/run.sh stay.
Not decided: whether ownership moves from the reviewed tree to host-written storage. That changes where a statement of authority lives and is the operator's call.