gunk-dev/the-valley

dcr-24d62f7-publication-mirror-not-review-queue.md

sourcea0911fc82b8emain's published tip history
1.8 KiB · Rendered
1---
2type: decision
3id: dcr-24d62f7
4status: decided
5title: "Publication mirrors receive main and tags"
6created: 2026-07-25
7---
8
9# Publication mirrors receive main and tags
10
11A declared publication mirror receives `main` and tags. Topic branches stay on the primary while
12they await integration. The next mirror push attempts to remove any other branches found on the
13mirror.
14
15Consumers use a publication mirror to fetch integrated work. This also supports consumers whose
16tooling fetches from GitHub. A pending contribution becomes public through this mirror when it is
17integrated.
18
19## Durability
20
21Restic provides the independent backup described in
22[[dcr-d7952bc]](dcr-d7952bc-phase0-replication-github-transitional.md). The publication mirror also
23provides a live offsite copy of integrated history.
24
25Pending topic branches have a different recovery window. Before integration, their offsite
26protection comes from the nightly restic snapshot. The requirement for two independent copies within
27minutes therefore holds for integrated work, but does not hold for every pending branch. This
28limitation is accepted for the publication mirror.
29
30## Mechanism
31
32The push refspec names `main` explicitly. Because Git's `--prune` only prunes heads covered by a
33glob refspec, a separate sweep lists the mirror's heads and attempts to delete every head except
34`main`.
35
36The sweep is best-effort and independent of the replication push. A refused deletion is logged
37without changing the reported result of that push. The sweep only reads `refs/heads`; it does not
38touch mirror-owned namespaces such as GitHub's read-only `refs/pull/*`.
39
40## Revisit condition
41
42A consumer may eventually need mirrored access to work before integration. That would justify a
43separately declared mirror with a different publication scope.