gunk-dev/the-valley

ida-7638082-host-has-no-check-runner.md

source270729b15042main's published tip history
4.1 KiB · Rendered
1---
2type: idea
3id: ida-7638082
4status: raw
5title: Migration removes a project's verification gate — nothing on the host runs a check
6created: 2026-07-31
7source: cosmo readiness analysis, 2026-07-31
8---
9
10# Migration removes a project's verification gate
11
12A valley host stores refs, mirrors them, and publishes `ref-updated` events. It runs no checks, and
13it has no notion of a change that is blocked on one. A project whose only gate is a pull-request
14check therefore arrives on the host with no gate at all. The gate does not degrade at migration; it
15disappears, because the pull request it was attached to no longer exists.
16
17This is not a defect in what the host serves today. Phase 0 is hosting only, and the pilot repo's
18gate is a human reading a diff, which migrates unchanged. The gap only becomes visible when a
19project arrives whose gate is a machine.
20
21## What this looks like for cosmo
22
23cosmo's gate is `.github/workflows/ci.yml`, triggered on `pull_request` against `main`. It runs four
24jobs: `nixfmt --check` over the tree, `nix flake check`, `nix build --dry-run` over the
25`classic-laddie`, `makers-nix`, and `johnny-walker` NixOS configurations, and `nix build --dry-run`
26over four home-manager configurations. `.github/workflows/zizmor.yml` adds a workflow-security lint
27on the same trigger.
28
29Two things are worth stating precisely, because they change what is actually lost. The NixOS jobs
30are `--dry-run`: what is checked is that the derivation evaluates and its dependencies resolve, not
31that the system builds. And the matrix names three of cosmo's five machine configurations — `weller`
32and `klaus-worker-0` are already outside it. The gate that vanishes is narrower than "cosmo builds
33five machines", and it was already incomplete.
34
35The `push` trigger on `main` survives migration in a misleading way. Mirror pushes do trigger
36Actions — the-valley's own `notify-cosmo.yml` relies on exactly that — so cosmo's CI would keep
37running on the GitHub mirror after every replicated push. It would run against history that has
38already landed on the primary and that the converge loop may already have deployed. A check that
39runs after the fact and cannot refuse is a notification.
40
41The checks themselves are not the missing piece. cosmo already runs them where the work is written:
42`checks.x86_64-linux.pre-commit-check` in its flake wires `nixfmt`, `detect-private-keys`, and
43`zizmor` into the dev shell. What is absent is anything that records that they ran, and anything
44that requires them before a ref moves.
45
46## What would close it
47
48The policy design is already held by [[ida-1ec03b1]]
49([ida-1ec03b1-path-scoped-verification-policy.md](./ida-1ec03b1-path-scoped-verification-policy.md)):
50required attestations are a function of the tree diff, and the policy is data, so it is a CUE
51document. That policy as a schema is settled in [[dcr-f41f718]]
52([dcr-f41f718-declared-verification-policy.md](../decisions/dcr-f41f718-declared-verification-policy.md))
53and is not restated here.
54
55What the policy needs in order to bind is two mechanisms the host does not have:
56
57- A signed attestation that a named check ran on a named tree with a named result, pushed alongside
58 the commit — [roadmap Phase 2](../../design/roadmap.md#phase-2--attestations-verification-mvp).
59- An integrator that derives the required set from the diff and will not write `main` without it,
60 behind the `pre-receive` invariant that makes refusal possible at all —
61 [roadmap Phase 3](../../design/roadmap.md#phase-3--the-integrator).
62
63Policy without either is a document. An attestation without an integrator is a receipt nobody
64checks. Both phases are therefore load-bearing for a migrated cosmo, which is the sequencing point
65made in [[oc-87deec8]]
66([oc-87deec8-valley-can-host-cosmo.md](../outcomes/oc-87deec8-valley-can-host-cosmo.md)).
67
68## Open
69
70- Whether a project can migrate with its gate deliberately absent for a period, and what makes that
71 acceptable for one project and not another. The pilot repo answered yes implicitly; cosmo's stakes
72 — an unchecked change to the configuration of five machines, deployed within the hour by a timer —
73 are the reason the same answer does not obviously carry.