quarry serve --data defaults into the first repository
The default is silent and its choice is arbitrary — the first flag, not a designated repo. Options: require --data explicitly, default to a path under the working directory, or default to a per-user location. Any of the three is more predictable than the current rule.
0001 §11 says derived data is disposable; that only helps if you can tell which directory is derived.
Fixed, and the bug was worse than filed: "the first --repo" iterated a Go MAP, so the chosen directory was a coin flip per boot — two starts of the same command could derive into two different repositories.
The rule now lives in one function (dataDir, shared by serve and
reindex) with one decision: a SINGLE repository defaults to .quarry
beside it — deterministic and obviously derived — and a fleet without
--data is REFUSED at startup with an error naming the repositories and
the flag. No arbitrary default survives; the flag help says so at all
three sites.
Chose refusal over a per-user or cwd default deliberately: any silent default migrating existing fleets would strand their current data in the old location and boot with empty indexes — a surprise rebuild. The refusal costs one explicit flag, once, and tells the operator exactly what happened. Deployments that already pass --data (ours does) see no change.