gunk-dev/the-valley

ida-b037dc9-consumers-read-the-mirror.md

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