Skip to content
quarry Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 06c1e095179f678fc4427e8b525b25b586fd14b8b6fff85475c0a26547446f18
Ticket: e77c25ca019758ded8d836a2cf1d12a9e6d24ce6
host release artifacts: upload and serve them from quarry
User & Date: dmestas on 2026-08-18 17:26:15
Changes

  1. comment changed to:
    Moved from zit#90 on the GitHub mirror, closed there in favour of this tracker.
    
    ## Why now
    
    The recurring worry is repository bloat that can never be undone: a large binary — a build artifact, a vendored asset, a dependency tree — enters the versioned DAG and every revision of it is kept forever, in every clone, recoverable only by shunning (#87).
    
    Git's answer is LFS, which zit cannot copy without breaking compatibility: a pointer file means a stock fossil client checks out the pointer instead of the content.
    
    **Fossil already has the right answer, and it is in the protocol zit speaks.** Unversioned files sync between repositories but carry no history — latest-wins by mtime, one copy, no accumulation. That is exactly the tier a 200 MB asset belongs in, and building on it keeps full compatibility because fossil understands it natively.
    
    ## Current state
    
    #58 examined this and chose **tolerate-and-report** (option b), deliberately, and that decision still stands as the right one for its moment: the sync layer fully parses and validates all three card families — `uvfile` (six-slot grammar, hash validation, deletion rules, content verified against the hash), `uvigot`, `uvgimme` — then counts them into `Client.uv_skipped` and reports "N unversioned file(s) not transferred (unsupported)" rather than failing. Nothing is silent, nothing aborts.
    
    So zit already pays the **entire wire-grammar maintenance cost** and gets none of the capability. There is no storage tier, no `zit uv` verb, and no way to create, list, fetch, or delete one. This issue is completing a path that is already half-built and already validated, not opening a new one.
    
    ## Shape
    
    - A storage tier **outside** the artifact DAG: content-addressed for dedup if convenient, but explicitly *not* history — one current copy per name, superseded in place. That non-accumulation is the whole point and is what distinguishes this from "just commit it".
    - `zit uv add | list | cat | rm`, matching `fossil uv`'s surface where it exists rather than inventing a second spelling — the same principle that settled the `zit tag` surface in #80.
    - The sync exchange: honour `uvgimme`/`uvigot`/`uvfile` for real instead of counting and skipping, gated on the pragma conforming fossil already uses (which, per #58's investigation, is the reason zit's non-support never aborted a session).
    
    ## What this does NOT solve
    
    An unversioned file is not a versioned one: no history, no diff across time, no annotate. It is the right home for assets, not for source. Worth stating in the help, because "put it in uv to keep the repo small" is a foot-gun if someone reaches for it with source.
    
    It also does not retroactively fix a repository that already committed the cruft — that is #87.
    
    ## Acceptance
    
    - `zit uv add` stores a file, `list` shows it with size and mtime, `cat` returns the bytes, `rm` removes it — none of it appearing in `timeline`, `log`, or any check-in's F cards.
    - Replacing an unversioned file supersedes it: the store does **not** grow by a second full copy, which is the property that makes this worth building.
    - A stock fossil 2.28 client syncs unversioned files with zit in both directions, byte-for-byte, pinned in `smoke` — nothing in the Zig suite can assert what a real fossil accepts.
    - The `uv_skipped` counting path and its report retire only when the real path replaces them, so there is never a window where files are silently dropped.
    
  2. resolution changed to: ""
  3. status changed to: "open"
  4. title changed to:
    unversioned files: fossil's own answer to large assets that must sync but must not accumulate history
    
  5. type changed to: "feature"