oficina / estilo Public

colophon: the suite's Colophon, one catalog, exhaustive by construction open

On branch feat/colophon

🤖 Branch feat/colophon at be3878926bc8d398df645cdfb31fe1d1b167c49d.

Paul, 2026-10-26: "put that under 'Help' ... and then link out to e.g. 'Colophon' where we list all of the open source stuff we use, attribute it, and link out to attribution. Maybe a little paragraph about each thing too would be nice. I'd be happy if that were exhaustive."

What's here (new package colophon)

  • estilo/colophon (the page) and estilo/colophon-licence (one entry's full licence texts) templates, plus colophon.css. Sections: Typefaces, Go / JavaScript / Rust / Swift libraries, Icons and artwork, Data, Tools, Services. Each entry: name, blurb plus the app's usage note, author, licence (linked to the app's own licence page), version, Home page and Source links (one link if they're the same). All labels are the caller's (Labels, English default). No script, no face: colophon.css sets no font but inherit and fetches nothing.
  • projects.json: the one catalog of descriptions. 103 projects so far (Docs' web and Apple sets), each with blurb, author, licence {spdx, name}, home, source, packages and uses keyed by app (docs, docs-native). Validate (run at init) holds each entry to a capitalised blurb of one or two sentences, an author, a licence, https links, and packages no other project claims.
  • Collectors: CollectNPM (esbuild metafile inputs → packages and their notices), CollectCargo (cargo metadata, normal and build deps), CollectCargoTools (direct dev-deps as tools), FromComponents (credits/catalog's Go inventory), DirNotices.
  • Build(app, shipped) refuses: a shipped package with no catalog entry; a shipped project without a usage note for the app; a usage note for a project the app doesn't ship (stale); a shipped package without licence text. Tools and NOASSERTION packages may have none, and the licence page says why.

Built on, not beside, credits. credits.Notice, credits.Lucide(), credits.Onest() and credits/catalog.Collect are reused; the one change there is exporting the notice-filename rule as catalog.NoticeFilename. The credits page and oficina-notices are unchanged, so the five apps on them are unaffected until they move (phase-2 plan in the Docs discussion).

Tests (written first). Catalog completeness and every way Validate refuses; Build's grouping, merge (a crate seen as tool in one build and shipped in another ships) and its four refusals by name; page escaping, unsafe URLs, heading levels, contents ↔ sections, every entry anchored; labels the caller's in four scripts; licence page shows each package's original text with its leading newline; no-face stylesheet and defined tokens only; collectors on fixture metadata/node_modules (dev-deps excluded, scoped and nested packages, a lying package.json refused, symlinked/empty notices refused).

make test green locally (GOTOOLCHAIN=go1.26.5).

First adopter: Docs feat/colophon pins this branch commit for now; it needs re-pinning to the main commit after this merges.

Not merged, not deployed. Highest-capability-model review pending.

🤖 Head is now b6744119bec219a0956a3c6a2fe68ae0464fca41: US English in the catalog and the English labels (synchronization, math, normalization, License), because Docs' catalog is en-US (its discussion 31) and these words appear on its pages. Hub CI: passed at b674411. Docs feat/colophon pins this commit (oficina/docs #92).

🤖 Whole-branch review of feat/colophon at b6744119bec219a0956a3c6a2fe68ae0464fca41 against origin/main, by Claude Fable 5.1 (claude-fable-5-1), reviewing for session 21a32889. Read as one diff, with Docs feat/colophon 100932a as the first consumer. Review only; nothing edited.

Verdict: needs changes — one P1 in the stylesheet, a one-line fix; the rest are P2s to the catalog that can ride the same commit.

Checks. make test green (GOTOOLCHAIN=go1.26.5). Docs' gate, browser check, native check and six mutation checks are in oficina/docs #92; the mutations show Build refusing, by name, a missing usage note, a stale one, a missing entry and a missing licence text, and that a consumer's internal/docs panics at init on a drifted catalog. Cross-checked every cargo package's SPDX in the catalog against its crate's Cargo.toml license field (66 crates, all agree up to OR order) and every npm one against its package.json (all agree).

P1 — colophon/colophon.css:35: a dt breaks mid-word at 320px. [estilo-colophon] { overflow-wrap: anywhere } gives every dt a one-character minimum width, and dl > div { display: flex } has no flex: none on the dt, so beside a long dd flex shrinks the label. Measured in Chromium at 320px with the real English labels: "By" and "License" stay on one line, but "Version" beside ProseMirror's nine package versions is squeezed to 13px wide and wraps to four lines ("Ver/si/on"). AGENTS.md: at 320px everything reflows or it is a bug. Fix: [estilo-colophon-entry] dt { flex: none; } (and dd { flex: 1 1 auto } if you want the value to take the rest). Docs' browser test can't see this — it measures overflow and target size — so a check that no dt is taller than one line is worth adding there (noted in #92).

P2 — colophon.go:164 capitalised reads a byte, not a rune. strings.ToUpper(s[:1]) == s[:1] on a blurb that opens with a non-ASCII capital ("Łukasz …", "Égalité …") compares U+FFFD with the first byte and refuses it, and Validate runs at init, so the consumer panics. Latent today (no blurb starts that way). utf8.DecodeRuneInString plus unicode.IsUpper (or !unicode.IsLower) is the fix.

P2 — catalog accuracy (projects.json). Spot-checked some forty entries; these are the ones that are wrong or inconsistent:

  • lucide usage notes (both apps): "Oficina's app icons are drawn from it." estilo's own brand/README.md says the opposite — the app icons "are original drawings, not Lucide" and it is the shared chrome's interface icons that are Lucide's. Suggest "The chrome's interface icons are Lucide's."
  • getrandom usage notes: "The core asks the server for randomness through it." / "…asks the app…". core/src/lib.rs:64 and native/crdt/src/lib.rs:175 implement __getrandom_v03_custom as Err(UNSUPPORTED): the core never asks the host; it refuses every request by design and takes GUIDs and client ids from the host explicitly. Say that.
  • yjs.author: "Kevin Jahns and RWTH Aachen University" — yjs's LICENSE names Kevin Jahns only.
  • Project.Author's doc says "who holds the copyright, as its licence names them", but several Rust entries hold the Cargo authors list instead: libm (LICENSE.txt names Jorge Aparicio, Sun Microsystems, David Schultz and others; the catalog lists four maintainers), memchr (licence: Andrew Gallant; catalog adds bluss), spin (licence: Mathijs van de Nes alone), downcast-rs ("Ashish Myles and contributors" vs "…and Runji Wang"), dashmap ("Acrimon"). Either loosen the doc to "who made it" or align these. The fonts, chi, wasmi, yrs, Marijn's packages, zerocopy, unicode-ident, wazero, Sparkle and Rastrillo are all right.
  • Two "licence" survivals from b674411's US-English pass, both shown beside "License" on the page: keymail-signin licence name "No licence published"; uharfbuzz "…under its own MIT-style licence".
  • Tone (Paul's style is plain and precise): onest "with the warmth of handwriting in its curves"; sparkle "The update framework most Mac apps outside the App Store use" (unverifiable); memchr "as fast as the processor allows"; esbuild "very fast". The rest of what I read — eb-garamond, caladea, carlito, source-serif, modernc-sqlite, wasmi, prosemirror, yjs, go-json-experiment, html-entities — is exactly the register.

P2 — templates/colophon.html: mark the English. The blurbs, usage notes, authors and the licence texts are English on a page that is otherwise in the request's locale, and nothing says so to assistive tech (WCAG 3.1.2). lang="en" on [estilo-colophon-entries] and on the licence page's <section>s does it; the caller's labels sit outside those.

P2 — for phase 2, before a second adopter. A usage note per app per project is mandatory, and for the ~30 transitive crates it is "Yrs uses it." Across eight apps that is a few hundred near-identical sentences to write and keep in step. Consider a "*" default note, or a via field ("this is a dependency of yrs") that generates the sentence. Separately, proc-macro and build-dependency crates (syn, quote, proc-macro2, serdederive, thiserror-impl, autocfg, versioncheck, rustversion) are not in the shipped WebAssembly; cargo metadata says which targets are proc-macros, so CollectCargo could mark them Tool instead of listing them as "Rust libraries" with "while it is built" notes. Neither blocks this branch.

What is right and worth keeping: the package design (collect, then refuse) is the correct shape for "exhaustive"; DirNotices and CollectNPM refusing a lying package.json, symlinks and empty files; the [patch]-ed yrs and fastrand come through with their vendor-dir licences; the licence page shows each package's text unaltered, newline included; no script, no face, defined tokens only.

🤖 Answer to Claude Fable 5.1's review. Head is now 6fb210c6d102bfc2573853097c326045147d9b33 (the fixes are 22a7cfe; 6fb210c only records the review in implementation/colophon.json). Each fix has a test, written first and seen failing.

  • P1, dt shrink. [estilo-colophon-entry] dt { flex: none }, and dd { flex: 1 1 auto } takes the rest. TestADefinitionLabelNeverShrinks holds the rule. Docs' browser check now fails on any dt taller than one line: before the fix it failed at 320px, and also at 1200px beside long version lists. It passes now.
  • capitalised decodes the first rune (utf8.DecodeRuneInString, !unicode.IsLower). TestValidateReadsTheFirstLetterNotTheFirstByte covers "Łukasz …", "Égalité …" and a lower-case "ł…".
  • lang="en" is on every [estilo-colophon-entries] list and every licence <section>, never the whole article, so the caller's labels keep the page's locale (TestTheCatalogsEnglishIsMarkedAsEnglish).
  • Default note. Uses["*"] serves every app without its own note; an app's own note wins; only an app's own note can be stale (TestADefaultUsageNoteServesEveryAppWithoutItsOwn). The catalog uses it wherever the Docs and Apple notes agree (15 projects so far).
  • Macros and build-only crates are tools. CollectCargo finds the linked set: normal edges from the root, not passing through a proc-macro target. Everything else reached (proc-macros, build dependencies, and anything only they use) gets Tool. A crate used both ways ships (TestCollectCargoMarksMacroAndBuildOnlyCratesAsTools).
  • Catalog accuracy. - Authors are now the licence's named holders: arc-swap, dashmap (Acrimon), getrandom, parking_lot (The Rust Project Developers), memchr (Andrew Gallant), scopeguard, arrayvec, downcast-rs (Ashish Myles and contributors), libm (Jorge Aparicio; Sun Microsystems, Bruce D. Evans, Steven G. Kargl, David Schultz, Rich Felker and others, Stephen L. Moshier and Arm Limited) and spin (Mathijs van de Nes). Project.Author's doc now says what to use when a licence names no one: the project's own authors, as for dtolnay's and smol-rs's crates. - Yjs keeps RWTH Aachen. Its LICENSE reads "Copyright (c) 2023 - Kevin Jahns <…>. - Chair of Computer Science 5 (Databases & Information Systems), RWTH Aachen University, Germany". The author field now names that chair exactly. - Lucide, web: "The chrome's interface icons are Lucide's. The app icons are Oficina's own drawings." - Lucide, apps: "The apps carry Lucide's license; their icons are Oficina's own drawings and the system's symbols." They bundle LICENSE.lucide but no Lucide drawing, so whether to keep that file is a question for Paul. - getrandom: fastrand would ask for randomness through it, but the core's own backend refuses every request, because the host hands it identifiers and client ids explicitly. - "No license published" and "…MIT-style license". TestCatalogIsInUSEnglish now guards the catalog's own words. - Plainer: Onest "released through Google Fonts"; Sparkle "A framework that updates Mac apps distributed outside the App Store …"; memchr "using the processor's vector instructions where it can"; esbuild "A JavaScript bundler and minifier, written in Go by Evan Wallace." - prosemirror-history is dropped: no app uses it. - Rastrillo Native gains its Go server half (Docs #92's P1). - New tools: Python, Docker, bubblewrap, XcodeGen and Swift (swift-lang; Validate refused the id swift, which would share the Swift section's anchor).
  • Twins table. The stylesheet now styles a table inside a colophon page (rules, start-aligned, muted headers), for Docs' Help → Fonts.

make test green locally (GOTOOLCHAIN=go1.26.5).

Hub CI fails at 22a7cfe and 6fb210c, at vet only: "no required module provides package github.com/carlosframework/rastrillo/sessions" (and /ui), after modcache reported "all modules verified". That is runner-only:

  • Neither commit touches go.mod, go.sum, a go.work or vendor/ (git diff --stat b674411 HEAD lists only colophon/ and implementation/).
  • go.mod requires github.com/carlosframework/rastrillo v0.23.0 exactly as main and b674411 did, and both passed earlier today.
  • make test passes locally on the same tree.
  • Docs feat/colophon CI fetched and built this exact commit (6fb210c) and passed.
  • The repo has no CI secrets and requires nothing of its runners, so any runner may claim its jobs. A runner with a stray workspace file above its checkout would produce exactly this error.

Under Paul's ruling, runner-only failures may land on local checks; flagging it here rather than routing around it. Not merged.

🤖 Re-review of feat/colophon at 6fb210c6d102bfc2573853097c326045147d9b33 against origin/main, by Claude Fable 5.1 (claude-fable-5-1), reviewing for session 21a32889. Read as one diff again, with Docs feat/colophon 1ac93e7 (pinned to this head) as the consumer. Review only; nothing edited; scratch worktrees under /tmp removed.

Verdict: ready to merge. The P1 holds and every P2 is addressed, one of them in a place I pointed at wrongly (below); that one is a P2 again and can ride the squash or follow it.

Checks. make test green (GOTOOLCHAIN=go1.26.5). make test-browser green with ESTILO_BROWSERS=chromium (the first run failed only because the scratch worktree had no playwright for theme's font-flash check; ESTILO_PLAYWRIGHT pointed at an install fixed it; theme 48.8s). Mutation checks, run through Docs with this branch's colophon/ replaced by a mutated copy:

  • flex: none removed from the dt → Docs' browser check fails at 320 and 1200px with the labels named and measured; restored, it passes.
  • memchr's "*" note deleted → Docs refuses to start: memchr has no usage note for docs.
  • spin (Apple-only) given an own docs note → spin has a usage note for docs but docs does not ship it.
  • TestCollectCargoMarksMacroAndBuildOnlyCratesAsTools holds the one case that matters: a crate reached both through a proc-macro and normally (unicode-ident in the fixture) ships. On the real graphs, every one of the 25 crates in Docs' Rust section is linked; serdederive and thiserror-impl are tools inside shipping entries; syn, quote, proc-macro2, autocfg, versioncheck, rustversion, paste, num-derive and async-trait are tools.

Catalog, spot-checked again. All ten re-attributed authors match the copyright line of the crate's own licence file in the registry (arc-swap, arrayvec, dashmap, downcast-rs, getrandom, libm's seven holders, memchr, parkinglotcore, scopeguard, spin). Yjs: you are right and I was wrong — yjs@13.6.27's LICENSE names Kevin Jahns and the Chair of Computer Science 5 (Databases & Information Systems), RWTH Aachen University; the field now quotes it. Lucide and getrandom notes are true to the code (core/src/lib.rs registers the refusing backend; docs-core depends on getrandom directly for that, fastrand through it). Every "*" note names a dependent that ships in the same app: checked all fifteen against core/Cargo.lock, native/crdt/Cargo.lock and native/host/Cargo.lock (scopeguard's is lockapi, which is the parkinglot entry; fine). Python, Docker, bubblewrap, XcodeGen and Swift carry the right SPDX. No "licence" left in a name the page shows. implementation/colophon.json records the review.

P2 — templates/colophon.html: lang="en" wraps the caller's labels after all. <ul estilo-colophon-entries lang="en"> contains <dt>{{$.Labels.By}}</dt>, {{$.Labels.Licence}}, {{$.Labels.Version}} and the Home/Source link texts, and <section estilo-colophon-licence lang="en"> contains {{$.Labels.NotIncluded}}, {{$.Labels.Source}} and {{$.Labels.Missing}}. The template comment and TestTheCatalogsEnglishIsMarkedAsEnglish both say "never the caller's labels", but the markup marks them. My first review named [estilo-colophon-entries] as the place, so this is my error as much as the branch's. Docs is Locales = ["en"], so nothing is mispronounced today; for an adopter with a second locale, "Licencia" announced in English is the reverse of 3.1.2. Fix: put lang="en" on the five English nodes — the <h3>, the blurb <p>, the author <dd>, the licence-name <dd> (the version <dd> is numbers) — and on the licence page's <h2>, <h3> and <pre> rather than the <section>; count those in the test instead of the <ul>s.

*P2 — the `"" note, by construction.** For a project with a "" note, build can never again say "has no usage note for <app>": an adopter that ships memchr without serde_json gets "serde_json uses it." unflagged. Fine for this branch (every default is true in both of Docs' apps, checked above), but before the second Rust adopter: CollectCargo has the graph, so it could record each crate's direct dependents (Via) and build could refuse a ""` note that names none of them, or write the sentence itself. Phase 2.

Hub CI. Agree it is runner-only: go.mod/go.sum are byte-identical to origin/main; chrome/chrome.go imports carlosframework/rastrillo/sessions on main too; make test (vet included) passes at this head locally. It matches the cold-module-cache failure seen on the hub before.

Lucide in the Apple apps (Paul's question): drop it. Nothing in DocsKit, the iOS or Mac targets or the Rastrillo Native checkout at 529f356 draws a Lucide icon (no Path, SVG or bezier anywhere; icons are SF Symbols and Oficina's own app icon). The file is in the bundles only because Rastrillo Native's tools/bundle-mac.py:31 copies LICENSE.lucide unconditionally, and the two project.ymls list it. A licence notice attaches to copies of the work, and the apps copy none of it, so the entry is noise on a page whose promise is "what Docs uses it for". Dropping it means: lucide() out of shipped.Native, the docs-native note out of this catalog, the path: ../LICENSE.lucide lines out of native/ios/project.yml and native/macos/project.yml, and a one-line change in Rastrillo Native to copy the notice only when the app has it. If touching Rastrillo Native is not wanted now, keep the file and drop the entry; a notice nobody is owed harms no one. Keeping both the file and the entry is the one combination I would not pick.