Skip to content
quarry Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 8b6d3499ab5137a6192769e1a646df0a905344f2f3e0f1ed65b564b8f71b25af
Ticket: a9bec14d0c031b0f1d6dbf9e33fc6a2af7bd694d
Repository posture (native / mirror) belongs on the repo model, not only in the mirror table
User & Date: ai-local on 2026-08-21 18:09:51
Changes

  1. Untracked field cmimetype: "text/x-markdown"
  2. comment changed to:
    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.
    
  3. priority changed to: "High"
  4. severity changed to: "Important"
  5. status changed to: "Open"
  6. subsystem changed to: "api"
  7. title changed to:
    Repository posture (native / mirror) belongs on the repo model, not only in the mirror table
    
  8. type changed to: "Feature_Request"