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