adopt loomctl's guarantees, and generate the sidebar from the locks
The sidebar named its four sections by hand, so adopting from a new repository needed a config edit — a second place to update, which is exactly what the autogenerated directories were already avoiding one level down. It is written from the locks now and astro.config.mjs names nothing. guarantees.usages.md is the first usages facet here with a short real answer, because this site is built with the tool: check-reports-does-not-fix is what lets npm run check run in CI, and the etag being the publisher's verbatim is what the guide stamps are. It also records what we lean on that the page explicitly does not promise — the command surface, quoted in our README. A renamed command breaks our documentation and not our build, and no check will catch it, because the thing that moved is not a document we adopted. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
e7d7cc9451
commit
b41148f369
8 files changed
+304
-11
No files matched your search
@@ -0,0 +1,27 @@
|
||||
# Usages — `loomctl` guarantees
|
||||
|
||||
**This site is built with the tool.** *Every reference page in it was adopted with
|
||||
`external add`, and the reconcile that produced this one went through `check` and
|
||||
`apply`.* **So "what of ours depends on it" has a short, real answer for once.**
|
||||
|
||||
| what the page guarantees | what of ours leans on it |
|
||||
|---|---|
|
||||
| `check` reports and does not fix | **`npm run check` in CI.** *A build that repaired what it found would commit on a runner, with no cart and nobody to decide* |
|
||||
| the `ETag` is the publisher's, verbatim | `scripts/generate.mjs` — *the guide stamps in frontmatter are those etags; a computed hash would fire the stale banner on every whitespace change* |
|
||||
| it never writes over the network | *the deploy holds no write credential — `git-sync` clones anonymously and `loomctl` is never on the cluster at all* |
|
||||
| `add` refuses what is adopted, and stages a differing copy | *how all eight original documents were locked after being fetched by hand, without one byte being rewritten* |
|
||||
|
||||
## What we depend on that the page explicitly does not promise
|
||||
|
||||
**The command surface.** *`scripts/publish-site.sh` and the README quote
|
||||
`loomctl external add loom/<repo> <doc>.md` verbatim.* **The page says names,
|
||||
flags and output are `--help`'s business and nothing should parse them** — *we do
|
||||
not parse them, but a person following our README will type them.*
|
||||
|
||||
> **So a renamed command breaks our documentation and not our build**, *and no
|
||||
> check will catch it*, **because the thing that moved is not a document we
|
||||
> adopted.**
|
||||
|
||||
*Recorded rather than solved. It is the same class as the sub-page staleness limit
|
||||
in `HANDOFF.md`: the lock watches documents, and some of what we lean on is not a
|
||||
document.*
|
||||
Reference in new issue
Block a user