gunk-dev/the-valley

ida-62a7a3b-reactions-have-no-home.md

source2cf7aa81b2ddmain's published tip history
2.4 KiB · Rendered
1---
2type: idea
3id: ida-62a7a3b
4status: raw
5title: "Move project automation before making GitHub a publication mirror"
6created: 2026-07-31
7source: cosmo readiness analysis, 2026-07-31
8---
9
10# Move project automation before making GitHub a publication mirror
11
12A migrating project needs replacements for automation triggered by upstream changes and by
13schedules. Automation that continues writing to a GitHub publication mirror can lose its output when
14the primary next republishes.
15
16This concern covers job execution and triggers. It is separate from the integrator's existing role
17as a consumer of integration requests.
18
19## Cosmo examples
20
21Cosmo's `update-klaus.yml` and `update-the-valley.yml` react to upstream notifications and update a
22flake input. Its `update-flake-lock.yml` runs nightly, updates dependencies, and opens a request for
23review.
24
25The reactive jobs need an event subscription and an executor. The scheduled job also needs a source
26of time-based demand.
27
28The-valley's current notification path uses a GitHub Action triggered by its mirror push to send a
29repository-dispatch event to cosmo. Moving cosmo's primary repository requires replacing or
30deliberately adapting this entire chain.
31
32## Writes to a publication mirror are temporary
33
34[[dcr-24d62f7]](../decisions/dcr-24d62f7-publication-mirror-not-review-queue.md) limits the mirror
35to `main` and tags. Its cleanup sweep attempts to delete other branches. A bot-created branch on the
36mirror can therefore disappear on the next successful sweep.
37
38The primary also force-updates the mirrored `main`. A change merged only on the mirror can be
39overwritten by the next publication push.
40
41The bot may report success before either happens. Workflows that author changes on the mirror must
42therefore be retired or redirected as part of migration.
43
44## Replacement work
45
46The dependency bots need a small set of actions: update `flake.lock`, preserve the result, and
47request integration. They are possible early uses of the actuator in
48[[ida-f1b39e8]](ida-f1b39e8-outbound-effects-pass-through-an-actuator.md) and the
49[effectful-reactions work](../../design/roadmap.md#phase-5--effectful-reactions).
50
51Two design questions remain. A scheduled dependency update might be expressed as a recurring outcome
52instead of a host-owned cron job, following [[ida-3145b7a]](ida-3145b7a-demand-pressure.md). A bot
53also needs a durable change identity for review and repeated attempts, as explored in
54[[ida-93e4f91]](ida-93e4f91-changes-not-branches.md).