| 1 | --- |
| 2 | type: idea |
| 3 | id: ida-7638082 |
| 4 | status: raw |
| 5 | title: "Preserve pre-integration verification when migrating a project" |
| 6 | created: 2026-07-31 |
| 7 | source: cosmo readiness analysis, 2026-07-31 |
| 8 | --- |
| 9 | |
| 10 | # Preserve pre-integration verification when migrating a project |
| 11 | |
| 12 | Moving a repository off GitHub must preserve the checks required before its protected branch |
| 13 | changes. Hosting Git refs and running checks after a mirror push do not provide that guarantee. |
| 14 | |
| 15 | The-valley now has attestation and integration mechanisms. Each migrating project still needs the |
| 16 | right policy, trusted check definitions, execution capacity, and verified enforcement. |
| 17 | [[oc-87deec8]](../outcomes/oc-87deec8-valley-can-host-cosmo.md) tracks this work for cosmo. |
| 18 | |
| 19 | ## Cosmo's existing checks |
| 20 | |
| 21 | Cosmo's GitHub CI runs formatting, `nix flake check`, dry-run evaluation of three NixOS |
| 22 | configurations, and dry-run evaluation of four Home Manager configurations. A separate workflow runs |
| 23 | zizmor against workflow definitions. |
| 24 | |
| 25 | The NixOS matrix covers classic-laddie, makers-nix, and johnny-walker. Weller and klaus-worker-0 are |
| 26 | outside that matrix. A dry run establishes that derivations can be evaluated and dependencies |
| 27 | resolved; it does not establish that the configurations build successfully. |
| 28 | |
| 29 | Migration planning must distinguish this existing gate from the stronger requirement to build all |
| 30 | five machines. |
| 31 | |
| 32 | Cosmo also defines local pre-commit checks for formatting, private-key detection, and zizmor. Local |
| 33 | execution is useful, but integration needs evidence that the required checks ran on the relevant |
| 34 | tree. |
| 35 | |
| 36 | ## Timing matters |
| 37 | |
| 38 | GitHub Actions may still run after the primary publishes to its mirror. Such checks see history that |
| 39 | has already landed and may already be deployed by convergence. |
| 40 | |
| 41 | They can report a problem, but cannot prevent that landing. The migration must put the required |
| 42 | checks before the protected-ref update. |
| 43 | |
| 44 | ## Required integration path |
| 45 | |
| 46 | [[dcr-f41f718]](../decisions/dcr-f41f718-declared-verification-policy.md) defines how policy selects |
| 47 | the required checks. [[dcr-0de694f]](../decisions/dcr-0de694f-phase2-attestation-shape.md) defines |
| 48 | signed evidence of their execution. The integrator must validate that evidence and refuse the target |
| 49 | update when it is missing or invalid. |
| 50 | |
| 51 | The receive boundary must also prevent another writer from bypassing the integrator. All parts are |
| 52 | needed for the policy to hold in practice. |
| 53 | |
| 54 | [[ida-1ec03b1]](ida-1ec03b1-path-scoped-verification-policy.md) explains path-based selection, and |
| 55 | [[bd-eaefe82]](../bugs/bd-eaefe82-check-definitions-come-from-the-branch.md) addresses which check |
| 56 | definitions can be trusted. |
| 57 | |
| 58 | ## Open question |
| 59 | |
| 60 | Can a particular project tolerate a deliberately ungated migration interval? That requires an |
| 61 | explicit decision based on what its changes can affect. The answer for a small documentation project |
| 62 | does not establish an acceptable answer for a repository that configures and deploys several |
| 63 | machines. |