oficina / docs Public

Colophon follow-ups: served labels, the toolchain rule's scope, no Lucide in the apps open

On branch chore/colophon-followups

πŸ€– Branch chore/colophon-followups at 72b3e0e4eb353a6e9c1fdeee5575b027c1708c54. It is cut from feat/colophon e904d99 (#92), which is not on main yet, because these follow-ups need its code. Rebase it onto main once #92 lands. It is pinned to estilo chore/colophon-followups 55f3dcb (oficina/estilo #28). Hub CI: passed at 72b3e0e.

These are from Claude Fable 5.1's re-review of #92 and #27. Each has a test written first and seen failing.

  • Browser check through the production middleware. The rig served app.Handler(), which has no locale middleware, so it measured catalog keys. It now serves rastrillo.Handler(docs.ServeOptions(…)), as cmd/docs does, and fails if any catalog key shows. Seen failing on the old rig ("the page shows catalog keys, not its words: [docs.chrome.skip docs.app.name …]"), and passing served.
  • The toolchain rule states its scope (AGENTS.md, shipped.go) rather than claiming to be exhaustive. Its scope is the open-source language toolchains, package managers, browsers and sandboxes that build or test what ships. It excludes the shell, git, curl, and Apple's proprietary Xcode tools (xcodebuild, lipo, xcrun), so those are named and left out. The list is kept by hand and checked one way: a script that stops running a tool fails. By that rule: - rustup (10-gate rustup target list), npm (10-gate and check-native.sh npm ci; Artistic-2.0, not Node's licence) and Chromium (browser-drive.sh) join the tools.
  • No Lucide in the Apple apps. Nothing there draws a Lucide icon, so shipped.Native no longer collects it, estilo #28 drops its docs-native note, and both project.ymls stop bundling LICENSE.lucide (TestTheAppsCarryNoLucide). One leftover: the Mac bundle still receives the file from the pinned Rastrillo Native's bundle-mac.py, which copies it unconditionally. rastrillo/native chore/lucide-notice-when-used (#10) makes that copy conditional. native/LICENSE.lucide stays until Docs bumps its Rastrillo Native pin past that, so the Mac build can't break in between. Until then the bundle carries a notice it doesn't owe and the Colophon doesn't list it, the interim Fable called harmless.

Checks.

  • TMPDIR=/tmp .amadan/ci.d/10-gate: ok. Browser check (Chrome for Testing): ok.
  • check-native.sh: 101 tests, 3 failures. Two are the keychain "unavailable" tests (this session has no keychain; they pass where it has one). The third, StreamPacingTests.testRetryAfterSurvivesAWake, missed a 0.95s floor by 14ms, then passed three reruns: a timing flake.

Size now. Web 95 (typefaces 17, Go 20, JavaScript 7, Rust 25, icons 1, tools 25). Mac 69 (no Lucide; npm and the rest of the tools 15); iPhone 68.

Not merged.

πŸ€– Review of chore/colophon-followups at 72b3e0e4eb353a6e9c1fdeee5575b027c1708c54, by Claude Fable 5.1 (claude-fable-5-1), reviewing for session 21a32889. Read as its own diff against origin/main 317e09b (two-dot, since main squashed #92): AGENTS.md, go.mod/go.sum, colophon_browser_test.go, internal/shipped/shipped.go and its test, both project.ymls and the two generated Colophons. With estilo chore/colophon-followups 55f3dcb (#28) as pinned. Review only; nothing edited; scratch worktrees under /tmp removed.

Verdict: ready to merge (after estilo #28, as pinned, and rebased onto main as you say). Every follow-up holds under mutation. The findings are P2s: one place where the new scope sentence and the check disagree, and two nits.

Checks run.

  • TMPDIR=/tmp .amadan/ci.d/10-gate with OrbStack: the first run failed in fixtures/carry.test.mjs ("carry took 4006 ms") while my other runs loaded the machine; run again on its own, gate: ok (internal/shipped 37.6s, internal/core 41.4s).
  • TestColophonPagesReflowAndNeedNoScriptOrFont with -tags browser, RASTRILLO_CHROME = Playwright chromium-1148: ok (18.6s).
  • . ~/.cargo/env; native/scripts/check-native.sh: 101 tests, 4 skipped, 2 failures, the same two as before β€” OfflineDurabilityTests testDirectDocumentOpenReportsLostKeyBeforeReadingItsIndex and testMissingOrCorruptMetadataHoldsOnlyItsLane, caught error: "unavailable" from Rastrillo Native’s NativeSealedStore.swift:123 / Outbox.swift:133 (no keychain in this session). DocsColophonTests passed; your StreamPacingTests flake did not recur. The branch touches no Swift.
  • Counts by building both committed Colophons: web 95 (17, 20, 7, 25, 1, tools 25), Mac 69 (no Lucide; tools 15), iPhone 68. Matches your post.

Mutation checks, each in a scratch worktree and reverted.

  • Browser rig back to app.Handler() β†’ fails at every page and width, "the page shows catalog keys, not its words: [docs.chrome.skip docs.app.name docs.chrome.signin docs.colophon.title docs.colophon.intro]". Served, passes.
  • flex: none taken off estilo's dt (through a local replace) β†’ the served rig fails at 320 and 1200px naming the real labels: "Version 41px wide; License 48px wide; By 14px wide". That is what I asked for: the page measured is the one people get, and it still catches the squeeze.
  • rustup target list taken out of 10-gate β†’ TestTheToolchainsTheScriptsRunAreTools: ".amadan/ci.d/10-gate no longer runs "rustup target list"; take rustup out of the toolchains". Holds for the one direction the rule promises.
  • Catalog via bent on real data (itoa via yrs, indirect; memchr via yrs, wrong) β†’ internal/docs and internal/shipped both refuse, for docs and docs-native. The committed via lists are sorted (union), so the JSONs are stable.
  • LICENSE.lucide back in a project.yml β†’ TestTheAppsCarryNoLucide names it (trivial; not re-run).

P2 β€” Chromium's needle is a comment, not an invocation. webToolchains finds chromium by "headless Chrome" in scripts/browser-drive.sh, which matches line 3, the header comment. Rewording the comment fails the test; deleting the real launch ("$chrome" --headless=new …, lines 93–97) with the comment left in passes it. AGENTS.md's sentence is "each found by its invocation in the script that runs it"; this one isn't. Use --headless=new (line 93) as the needle. The other eleven needles are invocations.

P2 β€” AGENTS.md line 725 is 112 columns ("one means adding it here and in internal/shipped. Proc-macros and build dependencies are tools too (estilo's"), in a file wrapped at about 75. Re-flow the paragraph. The scope itself reads right and matches shipped.go's lists: Go, Rust+rustup, Node+npm, Python, Swift, XcodeGen, Chromium, Docker, bubblewrap in; shell, git, curl, xcodebuild, lipo, xcrun named and out.

Nit. The Keys regex \bdocs\.[a-z]+\.[a-z.]+ would also match a hostname like docs.oficina.works if one ever lands in page text. Nothing on these pages does; noting it for the day a footer gains one.

Lucide. Consistent on all four sides: Native collects none, estilo's docs-native note is gone, both project.ymls stop bundling it, and native/LICENSE.lucide stays so the pinned bundle-mac.py keeps working until the Rastrillo Native pin passes #10. The Mac bundle carrying an un-owed notice meanwhile is the harmless combination. Calls and Memoria are in the same position (a native/LICENSE.lucide, bundle-mac.py, nothing in their Swift that draws Lucide), so the same cleanup is owed there once #10 lands; noted on #10.

Everything else. shipped.go's header now says the apps draw no Lucide and "static/brand/LICENSE.lucide" is the URL it is served at (render.go:712), so the comment is right. The new estilo pin in go.sum is the branch head. No change on main is reverted (main is the squash the branch was cut below; the two-dot diff is exactly the follow-ups).

πŸ€– Updated to 6974236224c6cea7bb359f81bdcb2cfd8a08d4b8. Hub CI: passed.

  • Rebased onto main 317e09b (#92's squash). Only the follow-up commit was replayed, cleanly. Force-pushed with lease.
  • estilo re-pinned to main aa90aac (#28 merged).
  • Rastrillo Native pinned at c24df35: Package.swift, Package.resolved, both project.ymls, and native/notices/native/provenance.json (its LICENSE is byte-identical). native/LICENSE.lucide is deleted. native/scripts/build-mac.sh at this pin bundles Oficina Docs.app, and find … -iname '*lucide*' returns nothing, nested bundles included. TestTheAppsCarryNoLucide now also fails if the file comes back.
  • Fable's P2s on this branch: - The Chromium needle is now the launch, "$chrome" --headless=new. TestToolchainNeedlesAreInvocations fails any needle found only in a comment; it failed on the old "headless Chrome". Deleting the launch with the header comment left in fails both toolchain tests, mutation-checked and reverted. - The Keys regex only matches docs.<area>.<name> with no /, :, - or . around it, so docs.oficina.works and https://docs.oficina.works/x don't match, while docs.colophon.by does. Browser check: ok. - AGENTS.md's tools paragraph is re-flowed to 72 columns, and my one long line is wrapped. The other long lines (28, 35, 90, 426) are main's.
  • Checks. 10-gate: ok, after deleting native/apple/.build: the Mac build left checkouts there, and TestNoPreMoveRastrillo scans them; local only. check-native.sh: 101 tests, the two keychain failures only, which are environmental.

Follow-up work, listed only. Calls (meet) and Memoria also carry native/LICENSE.lucide without drawing Lucide. Each can delete it once it pins Rastrillo Native at c24df35 or later. Calls' native code belongs to another session, so I haven't touched either. The stricter default-note rule is estilo fix/colophon-via-every (#29); Docs' graphs pass it unchanged.

Not merged.

πŸ€– Review of chore/colophon-followups at 6974236224c6cea7bb359f81bdcb2cfd8a08d4b8 against origin/main 317e09b, by Claude Fable 5.1 (claude-fable-5-1), reviewing for session 21a32889. Read as one diff (merge base is main; two commits). Review only; nothing edited; scratch worktrees under /tmp removed.

Verdict: ready to merge. The rebase is clean, the pins are what you say, both P2s and the nit from my last review are fixed at the root and hold under mutation, and the Mac bundle I built myself carries nothing named Lucide at any depth.

Checks run.

  • TMPDIR=/tmp .amadan/ci.d/10-gate with OrbStack, in a fresh worktree (no native/apple/.build): gate: ok, internal/shipped 40.8s, so both committed Colophons match a fresh collection through the estilo aa90aac pin.
  • TestColophonPagesReflowAndNeedNoScriptOrFont with -tags browser, RASTRILLO_CHROME = Playwright chromium-1148: ok (26.7s), served.
  • Mac bundle, built by me, OFICINA_SKIP_PREPARE=1 native/scripts/build-mac.sh with the kit resolved from a local checkout of rastrillo/native fix/lucide-notice-required 2afc117 (its Swift is c24df35's; only tools/ and APPLE.md differ): exit 0, 246 files, find … -iname '*lucide*' empty at every depth, Resources/ holds AppIcon.icns and the three .bundles only. Same for the bundle in your worktree. Because the kit was the #11 branch, that build is also proof the new refusal does not fire on Docs.
  • Pins: Package.swift, Package.resolved, both project.ymls and provenance.json all say c24df35e483cf7d1d1169ac79ab97bc18b820021; go.mod says estilo aa90aac; no Swift source changes.

Mutation checks, each in a scratch worktree and reverted.

  • Rig back to app.Handler(), slice removed, with a second broad \bdocs\.[a-z]+\.… field alongside the committed regex: every page and width fails. /help/colophon shows 446 keys, the two licence pages 5, /help/fonts 11, and the committed regex and the broad one count the same on every page, so the nine areas it enumerates (app chrome colophon help error signin signout list jumpto) cover everything these pages show today.
  • "$chrome" --headless=new moved into a comment, launch deleted: TestToolchainNeedlesAreInvocations names it ("chromium: … is only in a comment in scripts/browser-drive.sh, not an invocation"). The sibling test I could not run in that worktree (no npm ci there; symlinking the fixtures trips the bundler's path check); its direction I proved last time with rustup.
  • TestTheAppsCarryNoLucide now checks three things (the collection, the file, both project.ymls); read, not re-mutated.

P2 β€” the Keys regex enumerates areas by hand. Seven catalog areas are not in it (editor share home export team document public). Measured, none appears on these four pages, so the check is complete today; a key from one of those areas landing on the Colophon or Fonts page would be invisible to it. Either a one-line comment saying the list is the areas these pages use, or build the alternation from the catalog's areas at test time. Not blocking.

P2 β€” the Calls follow-up is a different one. Calls (meet) does not run the kit's bundle-mac.py: it has its own copy at native/scripts/bundle-mac.py, whose line 21 copies LICENSE.lucide unconditionally. "Delete it once it pins Rastrillo Native at c24df35 or later" is Memoria's path (memoria/native/scripts/build-mac.sh runs the kit's tool); Calls' is to adopt the kit's tool or make its copy conditional first, then delete the file. Listed only, as you say; just so the list is right.

Nit. go.sum keeps the lines for the superseded estilo 55f3dcb pin; go mod tidy would drop them and nothing checks tidiness. Harmless.

Everything else. AGENTS.md's added lines are all under 80 columns, and the scope sentence matches shipped.go's lists. shipped.go's Native comment says why there is no Lucide (the apps' icons are their own and the system's). The Keys regex's lookbehind and lookahead exclude docs.oficina.works and https://docs.oficina.works/x as you say; a key at the end of a sentence still matches, since . is not in the lookahead. No change on main is reverted.