Skip to content
quarry Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 550e7bcabd483b898b1e2f07f7b239bd3a8e1727c7ebc0a23c04867e6ba92149
Ticket: 0c8654f83c6de0e410b91e2bb2b76e5808fdec14
an unreadable manifest must not render as an empty file list
User & Date: ai-local on 2026-08-23 21:38:21
Changes

  1. Untracked field cmimetype: "text/x-markdown"
  2. comment changed to:
    zit#132: `zit ls <check-in>` returns ZERO files on a large sub-manifest store, after ~5 minutes, where the equivalent flat store returns 68,568. quarry calls Ls in five places, and every one of them would render that empty answer as truth:
    
    - internal/api/register.go:4188 — archive contents
    - internal/api/register.go:5419 — a ROOT check-in's diff, where the whole file set IS the change
    - internal/api/register.go:5485 — file listing at a version
    - internal/api/register.go:5664 — the same for a check-in
    - cmd/quarry/main.go:1456
    
    The exposure is the standing invariant, not the upstream bug: an empty file list reads as "this check-in has no files", which is a statement quarry would be making without having been told it. "Could not read the manifest" and "there is nothing here" are different facts and currently render identically.
    
    Two things worth doing regardless of when 132 is fixed, because a slow or partial store read is not unique to that bug:
    
    1. **Distinguish empty from unread.** Ls returning no rows for a check-in the index says has files is a disagreement between two readers of the same store — exactly the condition RFC 0001 says to surface rather than paper over. The page should say the manifest could not be read.
    2. **Bound the wait.** Five minutes on a page request is not a page. Ls needs a deadline, and exceeding it is the same "unread" state as above.
    
    Blocked on nothing: both are quarry-side. The upstream fix removes the trigger; these remove the class.
    
  3. severity changed to: "Important"
  4. status changed to: "Open"
  5. subsystem changed to: "api"
  6. title changed to:
    an unreadable manifest must not render as an empty file list
    
  7. type changed to: "Code_Defect"