Repository lifecycle: edit, seed, list, settings, delete
Roughly in order of how often their absence will be noticed.
## 1. Editing a repository after it exists
`description` can be set at creation and never again. The column and `SetRepoDescription` exist; there is no op, no CLI verb and no settings page. A typo in a description currently requires a `sqlite3` prompt.
Wanted: `repo.update` (description, and later default branch), a `quarry repo describe`, and a repository settings page behind admin.
**Renaming** belongs here too and is harder than it looks: the name is in every URL, in the OLTP registry, in the derived-data directory name, in the mirror row, in sync-user rows, and in the event subjects (`zit.evt.<name>.*`). The last one is the interesting one — a rename either migrates the durable consumer or accepts a re-fold. Worth its own design note before anyone starts.
## 2. Seeding a new repository
GitHub offers README, .gitignore and a license at creation, and the reason is not convenience: a repository with a first check-in has a default branch, so everything downstream — the timeline, the file tree, the clone URL instructions — has something to show. Ours creates an unborn trunk and shows quick-start instructions instead, which is honest but is a step the user then has to perform by hand.
Wanted: optional `readme` (seeded from name + description), `license` from a short list, and `.zitignore` from a small template set. This needs quarry to make a check-in on the user's behalf, which it already does for wiki, ticket and forum writes, so the mechanism exists.
## 3. The repository list does not scale
`/` renders every repository with no pagination, sort or filter. At 23 that is fine. It is the same shape that made the timeline unusable — render everything, sort nothing — and it will be noticed the same way.
Wanted: sort (recently active, name, size), a name filter, and a limit with paging. Sorting by activity needs a per-repo "last event" which the new `event` table already answers cheaply.
## 4. An About panel on the repository page
The description is on the listing and nowhere else. A reader who lands on `/r/<name>` from a link sees nav and a file tree and no statement of what the project is. Forgejo and GitHub both put description, topics, license and size in a sidebar.
Wanted: description and repository size to start. Size is cheap — `zit stat` reports it — and answers "how big is this before I clone it", which nothing currently does.
## 5. Destroying a repository
`repo.remove` unregisters and deliberately leaves the store on disk, which is right as a default. There is no way to actually delete one, so an operator who wants the disk space goes to the shell — and does it without quarry knowing, which is worse than doing it for them.
Wanted: `repo.delete` with an explicit confirmation (name typed back, the standard pattern), removing the store, the derived index, the mirror row and the sync users. This is the most destructive op quarry would have and should be the most deliberate.
## 6. Topics and a homepage URL
Cheap, purely additive, and the main way a multi-repository forge stays navigable. Two more columns and a filter on the listing.
## 7. Releases
zit has tags and fossil surfaces them as a first-class page. quarry shows tags on check-ins but has no release view — no "here are the versions of this project, newest first, with their tarballs". The tarball endpoint now works, so this is mostly assembly.
## Explicitly not wanted
- **Stars, watching, forks.** Social graph, not forge mechanics. - **Line-anchored review comments.** 0002 §1 makes this a deliberate divergence: conversations anchor to artifacts and the UI says "discuss this check-in", not "review".
## Related
- Account management in the API — until an admin can grant access without a shell, most of the above is single-user convenience. - Private repositories — visibility belongs in the settings page from item 1, and in `repo.add` from the moment a repository exists.
Deletion policy decided — see 0c731b1408, which closes with the answer this ticket was waiting on. What lands here:
- repo.remove becomes the UI's default verb, and the surfaces say what it leaves on disk.
- repo.delete moves the store to a graveyard instead of unlinking it, with repo.graveyard (list), repo.restore and repo.obliterate. zit's three states, and two of its three words.
- No retention timer. /fleet reports what the graveyard holds, beside ingest health.
- obliterate: true available at the point of deletion, offered plainly, for the leaked-secret case.
- Restoring into a name something else now occupies requires an explicit new name; deletion never reserves a name.
- The confirmation says whether the deletion is recoverable, and that it does not unpublish what peers already hold.
Measured against the live op list on e53836294974, so this ticket says what is left rather than the whole original list:
DONE edit — repo.update (description, homepage, topics, chat, mirrorable), with the settings page and a per-field audit trail
DONE list — repo.list, with `mirrorable` as the effective answer
DONE settings page — under admin, with the recent-changes trail
DONE delete — repo.remove is the UI's verb; repo.delete exists
NOT graveyard — repo.graveyard / repo.restore / repo.obliterate are not in the op list; the deletion-policy comment above describes them and they were not built
NOT seeding — no readme / license / .zitignore at creation
NOT rename — its own design note, per the description; former-namespace redirect after a team move landed today (3e4dfb04), which is the hard half of the redirect
Leaving open on graveyard, seeding and rename. If you want to split it, those are the three tickets.
Every section is on trunk: 1 repo.update sets description, homepage, topics and switches; 2 repo.add seeds readme, license and an ignore file; 3 repo.list sorts (active, name, size), filters by name and kind, and pages; 4 the repository page has an About card; 5 repo.delete with the name typed back; 6 topics and homepage; 7 releases (RFC 0020). Renaming with a redirect is the one piece left, and it is tracked in ticket #133. Checked on trunk 5fcf6f49e58a.