oficina / docs Public

Docs: Rastrillo Native past #10, so the apps carry no Lucide notice

- Rebased onto main 317e09b (the Colophon, squashed from #92).
- estilo re-pinned to main aa90aac (#28 merged).
- Rastrillo Native pinned at c24df35 (Package.swift, Package.resolved,
  both project.yml files, and the vendored licence's provenance; its
  LICENSE is unchanged). Its bundle-mac.py copies LICENSE.lucide only
  when the app has the file, so native/LICENSE.lucide is deleted: a Mac
  bundle built at this pin holds no Lucide file anywhere
  (TestTheAppsCarryNoLucide checks the file is gone).
- Claude Fable 5.1 on #96: Chromium is found by its launch,
  `"$chrome" --headless=new`, not the header comment; a needle may not
  sit only in a comment (TestToolchainNeedlesAreInvocations), and
  deleting the launch fails both toolchain tests. The browser check's key
  pattern can no longer match a hostname. AGENTS.md's tools paragraph is
  re-flowed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 6974236224c6cea7bb359f81bdcb2cfd8a08d4b8 parent 8ae6d34
13 files changed, +59 −59
  • AGENTS.md +9 −7
  • go.mod +1 −1
  • go.sum +2 −0
  • internal/docs/colophon_browser_test.go +4 −1
  • internal/shipped/shipped.go +1 −1
  • internal/shipped/shipped_test.go +36 −0
  • native/LICENSE.lucide +0 −43
  • native/apple/Package.resolved +1 −1
  • native/apple/Package.swift +1 −1
  • native/apple/Sources/DocsKit/Resources/Colophon.json +1 −1
  • native/ios/project.yml +1 −1
  • native/macos/project.yml +1 −1
  • native/notices/native/provenance.json +1 −1

CI passed — run details

diff --git a/AGENTS.md b/AGENTS.md
index 9510c29..5a72a7d 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -714,19 +714,21 @@ Word's measurements, from `fonts.json`'s `twin`.
exact crate version).
- **Tools are the pinned dev dependencies plus the toolchains the scripts
run**, each found by its invocation in the script that runs it
- (`webToolchains`, `nativeToolchains`); a tool's own dependencies are its
- own. The toolchain list is kept by hand and checked one way (a script
- that stops running one fails), so its scope is stated rather than
- claimed exhaustive: the open-source language toolchains, package
+ (`webToolchains`, `nativeToolchains`); a tool's own dependencies are
+ its own. The toolchain list is kept by hand and checked one way (a
+ script that stops running one fails), so its scope is stated rather
+ than claimed exhaustive: the open-source language toolchains, package
managers, browsers and sandboxes that build or test what ships (Go,
Rust and rustup, Node and npm, Python, Swift, XcodeGen, Chromium,
Docker, bubblewrap); not the shell, git, curl, or Apple's proprietary
Xcode tools (xcodebuild, lipo, xcrun). Adding a script that runs a new
- one means adding it here and in `internal/shipped`. Proc-macros and build dependencies are tools too (estilo's
- `CollectCargo`): they run in the compiler and are not linked.
+ one means adding it here and in `internal/shipped`. Proc-macros and
+ build dependencies are tools too (estilo's `CollectCargo`): they run
+ in the compiler and are not linked.
- **The Apple host crates are marked by platform** per target graph, so a
crate on one target alone shows in that app alone.
-- The pages need no script and load no font (`TestNoPageLinksOrPreloadsAChromeWebfont`,
+- The pages need no script and load no font
+ (`TestNoPageLinksOrPreloadsAChromeWebfont`, and
`TestColophonPagesReflowAndNeedNoScriptOrFont` with `-tags browser`).
## Work in a worktree, and catch main up first
diff --git a/go.mod b/go.mod
index 1edff71..54a7295 100644
--- a/go.mod
+++ b/go.mod
@@ -3,7 +3,7 @@ module github.com/carlosframework/docs
go 1.26.5
require (
- amadan.net/oficina/estilo.git v0.0.0-20261026195414-55f3dcbb5ab4
+ amadan.net/oficina/estilo.git v0.0.0-20261026205409-aa90aaceb796
amadan.net/oficina/home/dashboard v0.0.0-20261024235511-baa2503c7064
amadan.net/oficina/home/handoff v0.0.0-20260908102137-481d2d57f489
amadan.net/oficina/home/roster v0.0.0-20260908123429-74dda570e0cf
diff --git a/go.sum b/go.sum
index dfc5a7d..6cdb702 100644
--- a/go.sum
+++ b/go.sum
@@ -12,6 +12,8 @@ amadan.net/oficina/estilo.git v0.0.0-20261026194655-1ce6d2587f84 h1:tFvlYDPLTq6m
amadan.net/oficina/estilo.git v0.0.0-20261026194655-1ce6d2587f84/go.mod h1:4u0jNBtIdMLOsJyrScfqoEuYDJF7BBM3qM9YWbzt6aw=
amadan.net/oficina/estilo.git v0.0.0-20261026195414-55f3dcbb5ab4 h1:VLf++jn2g1gFiENcNNzLN6HXLH+ygvAMjPBPxT+yPfk=
amadan.net/oficina/estilo.git v0.0.0-20261026195414-55f3dcbb5ab4/go.mod h1:4u0jNBtIdMLOsJyrScfqoEuYDJF7BBM3qM9YWbzt6aw=
+amadan.net/oficina/estilo.git v0.0.0-20261026205409-aa90aaceb796 h1:yj3d1pKgMbZ3e+7zTf+SWdGYux4E0hhnCOr4YJxH9VE=
+amadan.net/oficina/estilo.git v0.0.0-20261026205409-aa90aaceb796/go.mod h1:4u0jNBtIdMLOsJyrScfqoEuYDJF7BBM3qM9YWbzt6aw=
amadan.net/oficina/home/dashboard v0.0.0-20261024235511-baa2503c7064 h1:2YbDksZDxpY9khlhXmTeiM89yze7w2XfYSumtrzH4tc=
amadan.net/oficina/home/dashboard v0.0.0-20261024235511-baa2503c7064/go.mod h1:+7xsX+QyVFrKy5gDAGh+FZ5+75z4CibWTL0wl9DWAw0=
amadan.net/oficina/home/handoff v0.0.0-20260908102137-481d2d57f489 h1:RPKtyry/71i06o8L+gjAaUyexbmG56kO1YPs601URAM=
diff --git a/internal/docs/colophon_browser_test.go b/internal/docs/colophon_browser_test.go
index 2af7bdb..c349e89 100644
--- a/internal/docs/colophon_browser_test.go
+++ b/internal/docs/colophon_browser_test.go
@@ -79,7 +79,10 @@ func TestColophonPagesReflowAndNeedNoScriptOrFont(t *testing.T) {
Loaded: [...document.fonts].filter(f => f.status === 'loaded').length,
Family: main ? getComputedStyle(main.querySelector('h1')).fontFamily : '',
HasMain: !!main,
- Keys: (document.body.innerText.match(/\bdocs\.[a-z]+\.[a-z.]+/g) || []).slice(0, 5),
+ // A catalog key is docs.<area>.<name>, with no slash, colon or
+ // hyphen around it, so a hostname such as docs.oficina.works in
+ // page text is not one.
+ Keys: (document.body.innerText.match(/(?<![\w.\/:-])docs\.(?:app|chrome|colophon|help|error|signin|signout|list|jumpto)\.[a-z][a-z.]*[a-z](?![\w\/:-])/g) || []).slice(0, 5),
Headings: document.querySelectorAll('h1').length,
// A label is one line: taller than its own line-height means
// flex squeezed it and it broke mid-word ("Ver/si/on").
diff --git a/internal/shipped/shipped.go b/internal/shipped/shipped.go
index 3e4e07b..b5509e8 100644
--- a/internal/shipped/shipped.go
+++ b/internal/shipped/shipped.go
@@ -78,7 +78,7 @@ var (
{name: "node", file: ".amadan/ci.d/10-gate", needle: "node --test"},
{name: "npm", file: ".amadan/ci.d/10-gate", needle: "npm ci"},
{name: "rustup", file: ".amadan/ci.d/10-gate", needle: "rustup target list"},
- {name: "chromium", file: "scripts/browser-drive.sh", needle: "headless Chrome"},
+ {name: "chromium", file: "scripts/browser-drive.sh", needle: `"$chrome" --headless=new`},
{name: "python", file: "scripts/vendor-fonts.py", needle: "#!/usr/bin/env python3"},
{name: "docker", file: "scripts/build-wasm.sh", needle: "docker run"},
{name: "bwrap", file: "scripts/build-wasm.sh", needle: "bwrap --tmpfs"},
diff --git a/internal/shipped/shipped_test.go b/internal/shipped/shipped_test.go
index eed122c..b09ed2d 100644
--- a/internal/shipped/shipped_test.go
+++ b/internal/shipped/shipped_test.go
@@ -217,6 +217,12 @@ func TestTheAppsCarryNoLucide(t *testing.T) {
t.Error("the apps' Colophon lists Lucide")
}
}
+ // Rastrillo Native copies the notice into the Mac bundle only when the
+ // app has the file (rastrillo/native #10, pinned past c24df35), so the
+ // file itself is gone.
+ if _, err := os.Stat(filepath.Join(root, "native", "LICENSE.lucide")); err == nil {
+ t.Error("native/LICENSE.lucide is still here, so the Mac bundle carries it")
+ }
for _, spec := range []string{"native/ios/project.yml", "native/macos/project.yml"} {
raw, err := os.ReadFile(filepath.Join(root, spec))
if err != nil {
@@ -227,3 +233,33 @@ func TestTheAppsCarryNoLucide(t *testing.T) {
}
}
}
+
+// Each toolchain is found by its invocation, never by a comment that
+// mentions it: a script that stops running the tool but keeps the comment
+// must fail TestTheToolchainsTheScriptsRunAreTools.
+func TestToolchainNeedlesAreInvocations(t *testing.T) {
+ root := filepath.Join("..", "..")
+ for _, tc := range append(append([]toolchain{}, webToolchains...), nativeToolchains...) {
+ raw, err := os.ReadFile(filepath.Join(root, tc.file))
+ if err != nil {
+ t.Fatal(err)
+ }
+ found := false
+ for _, line := range strings.Split(string(raw), "\n") {
+ at := strings.Index(line, tc.needle)
+ if at < 0 {
+ continue
+ }
+ if comment := strings.Index(line, "#"); comment >= 0 && comment < at {
+ continue
+ }
+ if strings.HasPrefix(strings.TrimSpace(line), "//") {
+ continue
+ }
+ found = true
+ }
+ if !found {
+ t.Errorf("%s: %q is only in a comment in %s, not an invocation", tc.name, tc.needle, tc.file)
+ }
+ }
+}
diff --git a/native/LICENSE.lucide b/native/LICENSE.lucide
deleted file mode 100644
index 718bb3f..0000000
--- a/native/LICENSE.lucide
+++ /dev/null
@@ -1,43 +0,0 @@
-ISC License
-
-Copyright (c) 2026 Lucide Icons and Contributors
-
-Permission to use, copy, modify, and/or distribute this software for any
-purpose with or without fee is hereby granted, provided that the above
-copyright notice and this permission notice appear in all copies.
-
-THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
-OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-
----
-
-The following Lucide icons are derived from the Feather project:
-
-airplay, alert-circle, alert-octagon, alert-triangle, aperture, arrow-down-circle, arrow-down-left, arrow-down-right, arrow-down, arrow-left-circle, arrow-left, arrow-right-circle, arrow-right, arrow-up-circle, arrow-up-left, arrow-up-right, arrow-up, at-sign, calendar, cast, check, chevron-down, chevron-left, chevron-right, chevron-up, chevrons-down, chevrons-left, chevrons-right, chevrons-up, circle, clipboard, clock, code, columns, command, compass, corner-down-left, corner-down-right, corner-left-down, corner-left-up, corner-right-down, corner-right-up, corner-up-left, corner-up-right, crosshair, database, divide-circle, divide-square, dollar-sign, download, external-link, feather, frown, hash, headphones, help-circle, info, italic, key, layout, life-buoy, link-2, link, loader, lock, log-in, log-out, maximize, meh, minimize, minimize-2, minus-circle, minus-square, minus, monitor, moon, more-horizontal, more-vertical, move, music, navigation-2, navigation, octagon, pause-circle, percent, plus-circle, plus-square, plus, power, radio, rss, search, server, share, shopping-bag, sidebar, smartphone, smile, square, table-2, tablet, target, terminal, trash-2, trash, triangle, tv, type, upload, x-circle, x-octagon, x-square, x, zoom-in, zoom-out
-
-The MIT License (MIT) (for the icons listed above)
-
-Copyright (c) 2013-present Cole Bemis
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/native/apple/Package.resolved b/native/apple/Package.resolved
index dba2208..7d2df51 100644
--- a/native/apple/Package.resolved
+++ b/native/apple/Package.resolved
@@ -6,7 +6,7 @@
"kind" : "remoteSourceControl",
"location" : "https://amadan.net/rastrillo/native",
"state" : {
- "revision" : "529f356f476e43174882361511032e0bdefa5317"
+ "revision" : "c24df35e483cf7d1d1169ac79ab97bc18b820021"
}
},
{
diff --git a/native/apple/Package.swift b/native/apple/Package.swift
index 9575656..cc45b86 100644
--- a/native/apple/Package.swift
+++ b/native/apple/Package.swift
@@ -3,7 +3,7 @@ import PackageDescription
import Foundation
let sharedNative: Package.Dependency = ProcessInfo.processInfo.environment["OFICINA_NATIVE_PACKAGE_PATH"].map { .package(name: "native", path: $0) }
- ?? .package(url: "https://amadan.net/rastrillo/native", revision: "529f356f476e43174882361511032e0bdefa5317")
+ ?? .package(url: "https://amadan.net/rastrillo/native", revision: "c24df35e483cf7d1d1169ac79ab97bc18b820021")
let package = Package(name: "DocsNative", defaultLocalization: "en", platforms: [.macOS(.v26), .iOS(.v26)],
products: [.library(name: "DocsKit", targets: ["DocsKit"]), .executable(name: "DocsMac", targets: ["DocsMac"])],
diff --git a/native/apple/Sources/DocsKit/Resources/Colophon.json b/native/apple/Sources/DocsKit/Resources/Colophon.json
index 037e4d0..e1b4ded 100644
--- a/native/apple/Sources/DocsKit/Resources/Colophon.json
+++ b/native/apple/Sources/DocsKit/Resources/Colophon.json
@@ -1737,7 +1737,7 @@
{
"ecosystem": "swift",
"name": "native",
- "version": "529f356f476e",
+ "version": "c24df35e483c",
"notices": [
{
"Name": "LICENSE",
diff --git a/native/ios/project.yml b/native/ios/project.yml
index a5c59e7..16cc37d 100644
--- a/native/ios/project.yml
+++ b/native/ios/project.yml
@@ -8,7 +8,7 @@ packages:
path: ../apple
RastrilloNative:
url: https://amadan.net/rastrillo/native
- revision: 529f356f476e43174882361511032e0bdefa5317
+ revision: c24df35e483cf7d1d1169ac79ab97bc18b820021
settings:
base:
SWIFT_VERSION: '6.0'
diff --git a/native/macos/project.yml b/native/macos/project.yml
index 297c2bc..27d6a55 100644
--- a/native/macos/project.yml
+++ b/native/macos/project.yml
@@ -7,7 +7,7 @@ packages:
path: ../apple
RastrilloNative:
url: https://amadan.net/rastrillo/native
- revision: 529f356f476e43174882361511032e0bdefa5317
+ revision: c24df35e483cf7d1d1169ac79ab97bc18b820021
settings:
base:
SWIFT_VERSION: '6.0'
diff --git a/native/notices/native/provenance.json b/native/notices/native/provenance.json
index eaf05a2..079f95f 100644
--- a/native/notices/native/provenance.json
+++ b/native/notices/native/provenance.json
@@ -1,6 +1,6 @@
{
"comment": "Rastrillo Native's LICENSE, copied unaltered from the checkout SwiftPM resolves for native/apple/Package.resolved (git status clean). internal/shipped refuses it if Package.resolved pins another location or revision.",
"location": "https://amadan.net/rastrillo/native",
- "revision": "529f356f476e43174882361511032e0bdefa5317",
+ "revision": "c24df35e483cf7d1d1169ac79ab97bc18b820021",
"sha256": "d8d2562a7cb68ffdfe91fc66af1ed4a8a4e272aa4ab59bea7451ba34b9aba3d4"
}