| 1 | --- |
| 2 | type: idea |
| 3 | id: ida-b037dc9 |
| 4 | status: raw |
| 5 | title: "Move consumer fetches as well as repository writes off GitHub" |
| 6 | created: 2026-07-31 |
| 7 | source: cosmo readiness analysis, 2026-07-31 |
| 8 | --- |
| 9 | |
| 10 | # Move consumer fetches as well as repository writes off GitHub |
| 11 | |
| 12 | Changing a repository's canonical origin does not change where its consumers fetch code. A consumer |
| 13 | still reading the GitHub mirror remains dependent on GitHub's availability and on successful mirror |
| 14 | publication. |
| 15 | |
| 16 | Migration therefore needs an inventory of deployment and dependency reads as well as writes. |
| 17 | |
| 18 | ## Cosmo examples |
| 19 | |
| 20 | The common system module configures automatic upgrades from `github:patflynn/cosmo`. The |
| 21 | classic-laddie convergence configuration also names cosmo on GitHub, using its SSH Git URL. These |
| 22 | paths must be considered separately when moving deployment reads. |
| 23 | |
| 24 | Cosmo's flake also consumes the-valley through `github:gunk-dev/the-valley`, even though |
| 25 | the-valley's canonical origin is already hosted independently. |
| 26 | |
| 27 | A publication mirror can legitimately serve consumers, as decided in |
| 28 | [[dcr-24d62f7]](../decisions/dcr-24d62f7-publication-mirror-not-review-queue.md). Continuing to use |
| 29 | it may be a deliberate choice. It must not be mistaken for having removed that dependency. |
| 30 | |
| 31 | ## Ownership of convergence |
| 32 | |
| 33 | Two approaches remain possible. |
| 34 | |
| 35 | Cosmo can own the migration of its upgrade, convergence, and dependency URLs. The-valley would |
| 36 | provide hosting and integration without adding a deployment controller for this purpose. |
| 37 | |
| 38 | Alternatively, deployment after integration can become a reaction managed through the-valley's event |
| 39 | and controller model. Cosmo would provide an early use of the |
| 40 | [Phase 5 work](../../design/roadmap.md#phase-5--effectful-reactions). |
| 41 | |
| 42 | This is a scope decision to make before building the replacement. |
| 43 | |
| 44 | ## Reachability |
| 45 | |
| 46 | Every machine or runner evaluating a flake input must be able to fetch it. A tailnet-only canonical |
| 47 | host does not serve outside consumers automatically. |
| 48 | |
| 49 | Possible arrangements include placing all relevant consumers on the tailnet, providing another |
| 50 | reachable remote under the project's control, or intentionally retaining mirror reads for selected |
| 51 | consumers. |
| 52 | |
| 53 | [[oc-87deec8]](../outcomes/oc-87deec8-valley-can-host-cosmo.md) tracks the migration outcome. The |
| 54 | chosen arrangement must cover both revision discovery and fetching the selected revision. |