Skip to content
quarry View Ticket
Login

View Ticket

2026-09-24
00:53 • Ticket [a9bec14d0c] Repository posture (native / mirror) belongs on the repo model, not only in the mirror table status still Fixed with 1 other change artifact: 957ffa19a9 user: zeitgeist
2026-08-21
19:52 • Fixed ticket [a9bec14d0c]. artifact: f55558a099 user: ai-local
18:35 • Review ticket [a9bec14d0c]. artifact: 8f2d899079 user: ai-local
18:09 • New ticket [a9bec14d0c]. artifact: 8b6d3499ab user: ai-local

Repository posture (native / mirror) belongs on the repo model, not only in the mirror table

Fixeda9bec14d0c031b0f1d6dbf9e33fc6a2af7bd694dCreated 101.2 days agoUpdated 68.0 days ago
Description2026-08-21 18:09:51
Today the only thing that distinguishes a mirrored store from a native one is a row in the `mirror` table. `repo.get`, the page data and the xfer gate know nothing about it, so every surface that should behave differently has to join against mirrors itself — and none do.

Fold posture into the repo model:

- `repo.get` / `repo.list` return `mirror: {url, every, enabled, lastOk, lastAt, failures, acceptLocalWrites} | null`, plus `detachedFrom` when a former mirror was detached. - Web `pageData` carries the same on every repo page; one lookup, cached with the repo list. - Derive a freshness state from it: `current` (lastOk within 2×every), `lagging` (older, no errors), `failing` (failures > 0). - The `about` page and API expose `{kind, upstream, detachedFrom, mirroredSince, lastOk}` — page and API share one capability (0001 Principle 5).

Prerequisite for the badge, enforcement, staleness and admin tickets that follow.

2026-08-21 18:35:00

Implemented on branch mirror-posture (d980bf4d, 9689ddd0, 074cb807). Checklist on wiki page 'Audit after change' §5.

2026-08-21 19:52:42

Merged to trunk in e61bc36d (mirror-posture).