What is the-valley's model once approval is a policy check and machine identities run checks?
State
question or idea
Created
2026-11-02 by contributor
Body
The operator's long-term model, 2026-11-02: "My approval gate is just another form of policy and a check like any other on the project. The authorized runners of checks are machine identities. The valley should just be configured with an authorized set of machine identities for checks and know how to use them to maximize check throughput." Also: "I see my approval of a change and checks passing as orthogonal."
The design deep dives after M8 start here. Their questions:
- What replaces today's special cases? Today there is a request ref written under an approve grant, a special host worker, signer-projects lists, and a local build on the approver's machine.
- How does a project declare its checks, its approval among them, and the identities allowed to run each?
- How does the valley schedule checks across those identities for throughput?
A draft written on 2026-11-02 for today's model (oc-f187c38, comments) is reference material only. It deepens the current structure, and the redesign should not inherit it.
Comments
contributor2026-11-08 22:28 UTC
oc-13c6bd6 ends with the host's check worker built, and its second worker for overflow is an input to this question's machine identities. The operator's constraints on that worker: it pulls work and nothing connects in to it, it attests only audited, isolated Nix checks at first, and it lends capacity only when enabled, idle and on mains, with a local pause and no remote waking.
contributor2026-11-08 22:28 UTC
qn-72027b0 ends answered: every human approval is touch-signed. Its remainder is this question's: which path classes may land without a person, on checks alone or an agent's review (oc-5b0e87c, ida-9fd5573), and how touches batch once there are many.
contributor2026-11-12 01:21 UTC
Question for the deep dives, moved from oc-6a17c9d: should evidence (attestations, approvals, transfer statements) stay the signed-note format, or become SSHSIG signatures verified by sigverify?
Known so far: SSHSIG verification (`ssh-keygen -Y verify`, `git verify-tag`) does not enforce a security key's user-presence flag, so a hardware-confirmed approval cannot rest on SSHSIG verification alone; its flags have to be checked separately. Approvals are already ordinary Ed25519 notes like attestations, with hardware keys as a property policy can see.
contributor2026-11-13 21:01 UTC
Input for the deep dives. The operator, 2026-11-13: nearly all of the orchestration flow a client harness carries today belongs in the valley, server-side; the valley's interface needs a larger rethink, which waits until more of the design is drawn.
Most of what prompts this is already on other knots: run records and transcripts in project storage (oc-d1eff79), a change moving by events with every gate a check and exactly-once dispatch (ida-d86bb7a), required reviews in place of a client-side draft gate (oc-83acfae), the valley carrying the flow of concurrent changes (oc-19575e8).
Cases those do not state, each a limit that exists only because one client on one machine holds the state:
- One coordinator per user: the client's dashboard owns a local listener, and a second one cannot start beside it.
- Two sessions of one client do not see each other's runs: the list of work in flight is a directory of files per session, not something the project holds.
- Follow-up work after a restack conflict is dispatched only while some client's dashboard happens to be running.
- "Finished, awaiting review" is not a state the valley knows: a client makes it by readying a head and at once unreadying the change.
- Check requests (oc-0f74615) were added as a deliberately small, disposable ref kind for the same reason: the lasting shape is one queue of work the valley schedules, which this question owns.
The split the operator set earlier still frames it: the valley holds state and mechanics; clients keep judgment (writing briefs, reviewing, resolving conflicts, running the model).