Skip to content

search-and-answer-engines #287

Closed
Closed

Description

@craig-o-curtis

Search and Answer Engines Plan

Written 2026-11-08. The docs give search engines and AI answer engines less than they could: a sitemap with no dates, built CSS and JS re-checked on every visit, no link from a page to llms.txt, no page-size limit and no measured speed. GMT's docs fixed the same things in northguild/gmt#478; this plan ports only what worktree still lacks. The search-and-answer-engines entry is northguild/worktree#287, and that issue is where this feature's status lives.

  • Size: small to medium. A _headers file, a sitemap step, one head link, three audit checks, one measuring script.
  • Priority: Medium

Phase status lives in §6.1 of this document, and nowhere else.


1. Why

Checked against the live site on 2026-11-08, with curl:

  • No dates. https://northguild.dev/worktree/sitemap-0.xml lists 28 <loc> and 0 <lastmod>, though every page but the landing has an exact date in its footer and docs/scripts/audit-dist.mjs already checks it against git. Google uses lastmod only when it is consistently and verifiably accurate (Google Search Central, "Build and submit a sitemap"; sitemaps.org protocol).
  • No long caching. /worktree/_astro/print.ehPL0gv-.css answers cache-control: public, max-age=0, must-revalidate, so every visit re-checks files whose names change with their content. docs/dist/_astro/ has 19 files, all with a hash in the name, which is what makes a long lifetime safe (the audit check in Phase 2 proves it on every build).
  • llms.txt can be indexed as a page. https://northguild.dev/worktree/llms.txt answers 200 with no X-Robots-Tag, and a text file has no meta tags to carry one.
  • No link to llms.txt. grep finds no llms in docs/dist/index.html. docs/src/components/Head.astro emits none.
  • The changelog sits among the documentation. docs/src/lib/llms-txt.ts puts all 28 pages under ## Documentation.
  • No page-size limit. The largest built page is commands/branch/ at 177,869 bytes (docs/dist, built 2026-11-07, so a snapshot). Apple's Messages reads a page's main resource only up to 1 MB (Apple TN3156, as the issue cites it). Nothing fails if a page grows past it.
  • No speed numbers. Nothing in the repository records LCP, CLS or INP.

Already done here, so not in this plan: unique descriptions of at most 155 characters (audit-dist.mjs), footer dates checked against git, fetch-depth: 0 in CI, Organization data on the landing, a 7 KB llms.txt with an H1 and a summary (docs/dist/llms.txt is 6,987 bytes), a real 404 status, AI crawlers allowed at the root. Not needed (the issue's own finding): a lean sidebar (9 KB of a 106 KB page), a per-namespace llms.txt (28 pages), a changelog split (35 KB). Share cards, og:image ?v=, og:locale, og:image:type and image alt text are #286.

Prior art, read at gmt d479dca8 (the local checkout at /Users/baldur/Development/northguild/gmt/gmt equals origin/main): apps/dox/src/lib/sitemap-lastmod.ts, apps/dox/src/assets-root/_headers, apps/dox/scripts/web-vitals.mjs (268 lines). The pull request is northguild/gmt#478 (merged 2026-11-08T16:56Z). Related: northguild/gmt#448, #286.

2. Constraints

  • Stack. In context/stack.md. The docs site is static, holds no secret and is served by a Worker with static assets and no script (docs/wrangler.jsonc has no main).
  • The site deploys with a release, not with a merge. docs-deploy.yml is called by publish.yml after a stable publish (context/release.md, Deploy (docs)). Nothing here is live until the next release, and docs/** owes no release note (context/release.md:47), so a merge alone does not cause one.
  • Never deploy from a workstation. Only docs-deploy.yml runs wrangler deploy. Local checks use wrangler dev --local or --dry-run.
  • The audit is the contract. audit-dist.mjs pins 28 page paths (PAGE_PATHS); the sitemap and llms.txt must list exactly those. The landing carries no footer date and the audit fails one that does. A new check is added to the audit and to audit-dist.test.mjs, which runs under pnpm docs:test.
  • Footer rule stands. No page carries a licence, version or maintainers line (context/verify.md, Audit).
  • A new dependency is argued, not assumed. Phases 1 and 5 each add one; each is justified in §3 (D3, D11).
  • Outside this repository. Crawlers read robots.txt only at the host root, so the Sitemap: line for /worktree/sitemap-index.xml belongs in the northguild/northguild.dev repo, with its share-card change (share-cards #286). docs/public/robots.txt says its own copy is not authoritative.

3. Decisions

D1. A page's <lastmod> is the datetime of the <time> in its built footer, read from docs/dist inside sitemap({ serialize }), which runs after the pages are written (gmt sitemap-lastmod.ts). The footer and the sitemap cannot then disagree, and the audit compares them. Rejected: computing the git date a second time in the config, because the footer is Starlight's git log -1 (without --follow) and the audit's oracle is --follow; a third computation is a third chance to differ.

D2. The landing has no <lastmod>. It has no footer (phase 15 of #235) and the audit requires that it carry no date. Rejected: the git date of index.mdx, because the landing is composed from components and that date is not a date anyone can verify, and an inaccurate lastmod is worse than none. The maintainer confirms in §9 Q1.

D3. Register @astrojs/sitemap explicitly in integrations, and add it to docs/package.json (^3.7.4; 3.7.4 is what Starlight 0.42.8 already resolves in the lockfile). Starlight adds its own sitemap only when no integration named @astrojs/sitemap is present (node_modules/@astrojs/starlight/dist/index.js:55), and its wrapper passes i18n only for a multilingual site, so a single-locale site loses nothing. Rejected: a post-build script that rewrites sitemap-0.xml, because it is a second writer of a file the integration owns.

D4. _headers is committed at docs/deploy/_headers and stage:deploy copies it to docs/.deploy/_headers. Cloudflare reads _headers from the root of the assets directory, which wrangler.jsonc sets to ./.deploy (Cloudflare Workers docs, Static Assets > Headers). Rejected: docs/public/_headers, because it would land at .deploy/worktree/_headers and never be read.

D5. The cache rule is Cache-Control: public, max-age=31536000, immutable on /worktree/_astro/* and on nothing else. HTML, llms.txt, the sitemap and the unhashed public/ files keep revalidating. Rejected: caching HTML, because a page changes without changing its URL.

D6. X-Robots-Tag: noindex on /worktree/*.txt, as gmt does (/gmt/*.txt). It covers llms.txt and a future llms-full.txt; it also matches the non-authoritative /worktree/robots.txt, which is harmless because crawlers read only the host root. Rejected: a rule for llms.txt alone, because the next text file would be indexable again.

D7. The smoke checks assert the exact header value, not a substring. fetch joins repeated headers with , , so a doubled Cache-Control (ours plus Cloudflare's) shows as a different string and fails. A page of HTML is also checked to carry no X-Robots-Tag, so a rule that grew too wide is caught.

D8. <link rel="describedby" type="text/plain" href="https://northguild.dev/worktree/llms.txt"> goes in Head.astro on the 28 pages and not on the 404, which already carries no canonical link or JSON-LD because it is not a page of the site. The URL is built from the constant in llms-txt.ts, not written a third time.

D9. In llms.txt the changelog moves under ## Optional, the section llmstxt.org names for links a reader may skip when context is short; the other 27 stay under ## Documentation. Rejected: a second file, because 28 pages do not need one.

D10. The page-size gate is an audit check: any built page over 1,048,576 bytes uncompressed fails and is named with its size. Rejected: a warning, because a limit nobody is stopped by is the state today.

D11. The measuring script is docs/scripts/web-vitals.mjs, modelled on gmt's: Lighthouse pinned through npx, INP in Playwright Chromium with 4x CPU throttling, PageSpeed Insights read-only for the live site. It adds playwright as a dev dependency of docs. It is not a CI gate and writes no numbers into the tree; measurements go in a comment on #287. Rejected: committing results, because a number in a file is stale at the next change.

D12. Only what is not "good" at the 75th percentile (LCP 2.5 s, CLS 0.1, INP 200 ms; web.dev, Web Vitals) is acted on, and each such finding becomes its own issue or a phase the maintainer adds here (§9 Q5). The hero already waits for first paint and pauses off screen, so it may need nothing.

4. Design

4.1 The sitemap date (Phase 1)

docs/src/lib/sitemap-lastmod.ts exports footerDate(html), builtPage(outDir, url) and sitemapLastmod(outDir, item), free of astro: imports so Vitest reads them (the shape of gmt's file). builtPage maps https://northguild.dev/worktree/<path>/ to <outDir>/<path>/index.html, since astro build writes dist/ without the /worktree base (wrangler.jsonc comment). astro.config.mjs registers sitemap({ serialize: (item) => sitemapLastmod(DIST, item) }) before starlight(...). A page with no footer date, or no built file, keeps no lastmod: the landing, by construction.

The audit reads sitemap-index.xml and each sitemap it names (sitemapUrls, audit-dist.mjs:1326), pairs each <loc> with its page's footer <time datetime> and fails on a missing, extra or different <lastmod>, and on a value that is not a W3C Datetime.

4.2 Headers (Phase 2)

/worktree/_astro/*
  Cache-Control: public, max-age=31536000, immutable

/worktree/*.txt
  X-Robots-Tag: noindex

stage:deploy becomes rm -rf .deploy && mkdir .deploy && cp -R dist .deploy/worktree && cp deploy/_headers .deploy/_headers. Cloudflare applies _headers to static asset responses only, and this Worker has no script, so every response is one. A matching rule's headers replace the ones Cloudflare ordinarily sends; a header can be detached with ! Name if a join ever appears.

The audit gains one rule: every file under dist/_astro/ has a hash segment in its name, because immutable is only safe if a name changes with its content. Measured on docs/dist/_astro/ (2026-11-08, build of 2026-11-07): names such as common.DT6iEKn7.css (8 characters) and ec.0vx5m.js (Expressive Code, 5 characters), so the rule accepts a dot-delimited segment of five or more characters of [A-Za-z0-9_-] before the extension.

deploy-smoke.mjs gains three rows and returns response headers from send: a hashed asset taken from docs/dist/_astro/ (as the schema row already reads dist/), llms.txt, and a page.

4.3 llms.txt and its link (Phase 3)

renderLlmsTxt emits ## Documentation with 27 items and ## Optional with the changelog. The audit's llmsItems reads any line starting - , so sections need no parser change; a new rule asserts the changelog is under ## Optional and the rest are not. Head.astro adds the link for every page but the 404; the audit asserts its href is the absolute URL and that the target exists in the build.

4.4 The page-size gate (Phase 4)

One loop in the audit over every built index.html and 404.html using stat size. The limit is a named constant beside HERO_LOADER_BUDGET.

4.5 The measuring script (Phase 5)

Three pages: the landing, one guide (/worktree/guides/github-issue-integration/) and one command page (/worktree/commands/branch/, the largest). Lighthouse mobile and desktop, three runs, median; INP in Chromium with 4x throttling driving search, the mobile menu and the theme toggle; PageSpeed Insights for the live site. Usage mirrors gmt: node scripts/web-vitals.mjs --origin http://127.0.0.1:<port> [--live https://northguild.dev]. PSI_API_KEY is read from the environment and never written to a file.

5. Risks

  • serialize runs before the pages exist. Astro 7.4.5 is newer than anything gmt's change was shown against. It would show as 28 URLs with no lastmod. The audit fails on a missing lastmod for 27 pages, so it cannot pass silently. Response: read dist from a astro:build:done hook instead.
  • _headers is first seen live at the next release. Cloudflare could join rather than replace Cache-Control, or not apply the file under this Route. It would show as a failed smoke row in the release's docs job, which does not roll back (context/release.md). Response: prove the file locally first (§8), and use ! Cache-Control to detach the default if a join appears. Recovery for a red site job is "Re-run failed jobs".
  • immutable on a file whose name does not change with its content. The site serves a stale file for a year with no way to recall it. The hash-name audit rule is the guard; pagefind/ and public/ files are outside _astro/ and keep revalidating.
  • The hash rule is wrong for a file Astro or a plugin emits unhashed into _astro/. It would fail the build and name the file. Response: that file is the finding, not a reason to loosen the rule.
  • Another feature edits the same files. share-cards #286 also changes audit-dist.mjs, context/verify.md and the head. Response: it touches astro.config.mjs head entries and this plan touches Head.astro; whichever lands second rebases the audit and verify.md hunks.
  • Playwright adds a large dev dependency. The npm package does not download browsers on install (to be confirmed in Phase 5), so pnpm install --frozen-lockfile in CI stays as fast; the browser is installed by hand for the script.
  • Variance in the measurements. Mitigated by three runs and the median; the script is not a gate.

6. Phases

6.1 Status ledger

# Phase Status Depends on Note
1 Sitemap <lastmod> from the footer date done — a0bf0f6
2 Long caching for hashed assets, noindex for text files done — d4ab279
3 llms.txt Optional section and the describedby link done — 08739c5
4 Page-size gate done — f96ddf3
5 Core Web Vitals, measured done — 3d62eba
6 Search engine owner steps done 1, 2, 3 c2707b8

Status is one of not started, in progress, blocked, done. A row goes to in progress when work on
the phase starts, before any code, so an interrupted run leaves a ledger that says what was underway. done
only when the scope landed and both gates passed, and whoever finishes a phase updates the row as part of
the same change as the work — who commits that change is context/git.md's answer, not this
table's.

The Note is one line: what a later session needs in order to understand or resume the Status beside it.
What is underway while a row is in progress, what remains where some of the phase landed, what is
blocking a blocked row, the commit sha where one is done. Nothing else — measurements, test counts,
gate output and the account of how the phase went go in the commit message that carries the row, or in the
run's own report. A Note that grows into a phase log makes the ledger unreadable at exactly the moment it is
being read in a hurry, and it is the one column in this document with no length anyone can see coming.

Exactly one table in this document has these columns. Do not add a second phase table — a
differently-shaped one nearby is a decoy that gets read by mistake.

A plan has a size budget, and How much a plan may hold in context/tracking.md says what it is. A
plan over it is not trimmed to fit — it is a feature that is more than one feature, and /feature-plan
proposes the split.

6.2 The phases

Phase 1 — Sitemap <lastmod> from the footer date

Files: docs/package.json, pnpm-lock.yaml, docs/astro.config.mjs, docs/src/lib/sitemap-lastmod.ts, docs/src/lib/sitemap-lastmod.test.ts, docs/scripts/audit-dist.mjs, docs/scripts/audit-dist.test.mjs, context/verify.md

Standards: philosophy/ai-agent-behavior.md, philosophy/core-principles.md, typescript/rules.md, typescript/anti-patterns.md, tooling/dates.md, tooling/dependencies.md, react/testing.md

Decisions: D1 — the date is the built footer's datetime, read in serialize; D2 — the landing gets none; D3 — @astrojs/sitemap is registered explicitly and added as a dependency.

Scope: Add @astrojs/sitemap and register it with serialize. Write sitemap-lastmod.ts test-first from the expected values in §8. Add the audit rule of §4.1 and its tests (a missing, an extra and a differing lastmod; the landing with one). Add a sentence to context/verify.md's Audit paragraph naming the rule.

Done when: after pnpm docs:build, docs/dist/sitemap-0.xml has 28 <loc> and 27 <lastmod>, none on https://northguild.dev/worktree/; sitemap-index.xml is still the index; pnpm docs:audit-dist exits 0; pnpm docs:test and pnpm --filter docs typecheck exit 0.

Phase 2 — Long caching for hashed assets, noindex for text files

Files: docs/deploy/_headers, docs/package.json, docs/wrangler.jsonc, docs/scripts/deploy-smoke.mjs, docs/scripts/audit-dist.mjs, docs/scripts/audit-dist.test.mjs, docs/README.md, context/verify.md, context/stack.md, context/release.md

Standards: philosophy/ai-agent-behavior.md, philosophy/core-principles.md, tooling/ci.md, tooling/dependencies.md, react/testing.md

Decisions: D4 — _headers lives in docs/deploy/ and stage:deploy copies it to the assets root; D5 — long caching on _astro/* only; D6 — noindex on *.txt; D7 — the smoke rows assert exact values.

Scope: Write _headers (§4.2). Change stage:deploy. Add the hash-name audit rule and its tests. Extend deploy-smoke.mjs with header-returning send and the three rows. Update the comment in wrangler.jsonc, the stage:deploy and deploy:smoke rows and the Deployment section of docs/README.md, the Layout line of context/stack.md, the Audit paragraph of context/verify.md and the Deploy (docs) bullet of context/release.md.

Done when: pnpm docs:build && pnpm docs:audit-dist && pnpm docs:test exit 0; pnpm --filter docs stage:deploy leaves docs/.deploy/_headers and docs/.deploy/worktree/index.html; and the three smoke rows pass against docs/.deploy served locally by wrangler dev --local (SMOKE_ORIGIN=http://127.0.0.1:<port>), or §9 Q2 records why that cannot be done and the rows wait for the first release.

Phase 3 — llms.txt Optional section and the describedby link

Files: docs/src/lib/llms-txt.ts, docs/src/lib/llms-txt.test.ts, docs/src/components/Head.astro, docs/scripts/audit-dist.mjs, docs/scripts/audit-dist.test.mjs, context/verify.md

Standards: philosophy/ai-agent-behavior.md, philosophy/core-principles.md, typescript/rules.md, react/testing.md

Decisions: D8 — the link is on the 28 pages, not the 404, with an absolute URL from the shared constant; D9 — the changelog alone is under ## Optional.

Scope: Split renderLlmsTxt's items into two sections; export the llms.txt URL from llms-txt.ts; emit the link in Head.astro; add the audit rules (changelog under ## Optional, the other 27 under ## Documentation; the link's attributes on each of the 28 pages, absent on the 404, target in the build) and tests. Add the rules to context/verify.md's Audit paragraph.

Done when: docs/dist/llms.txt has both sections with the changelog alone under ## Optional; each of the 28 built pages has the link and 404.html has none; pnpm docs:build && pnpm docs:audit-dist && pnpm docs:test exit 0.

Phase 4 — Page-size gate

Files: docs/scripts/audit-dist.mjs, docs/scripts/audit-dist.test.mjs, context/verify.md

Standards: philosophy/ai-agent-behavior.md, philosophy/core-principles.md, react/testing.md

Decisions: D10 — over 1,048,576 bytes uncompressed fails and names the page.

Scope: Add the size rule (§4.4) with its constant and tests, and its sentence in context/verify.md.

Done when: a test page of 1,048,577 bytes fails naming the page and its size, and one of 1,048,576 passes; the real build passes; pnpm docs:test exits 0.

Phase 5 — Core Web Vitals, measured

Files: docs/scripts/web-vitals.mjs, docs/package.json, pnpm-lock.yaml, docs/README.md, context/verify.md, context/stack.md

Standards: philosophy/ai-agent-behavior.md, philosophy/core-principles.md, tooling/dependencies.md, security/secrets.md

Decisions: D11 — the script follows gmt's, adds only playwright, is not a gate and records no numbers in the tree; D12 — only what is not "good" is acted on.

Scope: Write the script (§4.5) and its package.json entry; run it against a served docs/dist and against the live site; post the medians and the PageSpeed field data (or "no field data") as a comment on #287; file each metric that is not good as its own issue. List the script in docs/README.md's scripts table, in context/verify.md's Not run by Gate 1 and in context/stack.md's Layout line.

Done when: the script runs from the repository and prints LCP, CLS, TBT and INP for the three pages; the comment is on #287; pnpm check exits 0.

Phase 6 — Search engine owner steps

Files: docs/README.md

Standards: philosophy/ai-agent-behavior.md, philosophy/core-principles.md

Decisions: —

Scope: Write, once, in a Search engines section of docs/README.md: submit https://northguild.dev/worktree/sitemap-index.xml in Google Search Console and Bing Webmaster Tools, read each Pages report, and what a healthy result is (28 discovered, 28 indexed, no "Duplicate" or "Alternate page" entries for /worktree/ URLs). Name the Sitemap: line in the northguild.dev repo as outside this one.

Done when: the section is in docs/README.md and names each check; the steps themselves are carried out by the owner (§9 Q3).

7. Documentation

Started from the Documentation index in context/stack.md, then swept with grep -rln "llms.txt\|sitemap\|_headers\|Cache-Control" over docs/src/content, skills, README.md, context7.json, docs/worker/README.md and .github/workflows: nothing matched, so no user-facing page describes any of this.

Surface What changes Phase
docs/README.md the scripts table (stage:deploy copies _headers; deploy:smoke checks headers; new web-vitals script), the Deployment section, and a new Search engines section for the owner steps 2, 5, 6
context/verify.md the Audit paragraph gains the lastmod, hash-name, llms sections, describedby and page-size rules; Not run by Gate 1 gains web-vitals.mjs and the new smoke rows 1, 2, 3, 4, 5
context/stack.md the Layout line for docs/wrangler.jsonc / docs/scripts/ names docs/deploy/_headers and web-vitals.mjs 2, 5
context/release.md the Deploy (docs) bullet: the staged _headers and what the smoke run checks 2
docs/wrangler.jsonc its comment on assets.directory says what .deploy/ holds; now also _headers 2

Checked and unchanged: the root README.md, skills/worktree/SKILL.md, context7.json (it indexes docs/src/content/docs/, skills/ and the README only), docs/worker/README.md (the chat Worker), docs/src/content/docs/changelog.mdx, and .github/agents/ (not maintained, per stack.md). The .github/workflows/docs-deploy.yml comments describe the build, audit, stage, deploy and smoke steps, and those steps do not change shape.

8. Verification

The feature has no interface a person operates: the one visible-to-markup change is an invisible <link>. No accessibility pass or end-to-end pass in a real browser is owed, and context/verify.md names no browser driver, so none is invented. Phase 5's script is itself a browser run, and is not a gate.

By hand, beyond context/verify.md:

  • After pnpm docs:build: grep -c "<lastmod>" docs/dist/sitemap-0.xml prints 27 and grep -c "<loc>" prints 28.
  • After pnpm --filter docs stage:deploy: serve docs/.deploy with wrangler dev --local and run SMOKE_ORIGIN=http://127.0.0.1:<port> pnpm --filter docs deploy:smoke; then curl -sI the hashed asset, llms.txt and a page and read the headers by eye.
  • After the first release that carries this: curl -sI the same three on https://northguild.dev/worktree/, and the Pages report in Search Console (Phase 6).

What decides each value this feature computes.

Value What decides it
A page's <lastmod> the datetime of its footer <time>; that is decided by git history, which audit-dist.mjs's followDate reads independently (git log --follow -1 --format=%ct, UTC); the format is a W3C Datetime (sitemaps.org protocol)
The landing has no <lastmod> D2, and the audit's rule that the landing carries no date
Cache-Control on _astro/* D5: public, max-age=31536000, immutable, one year, with immutable per RFC 8246; as in Cloudflare's own _headers example for fingerprinted files
X-Robots-Tag on *.txt noindex, per Google Search Central, robots meta tag and X-Robots-Tag
A hash in each _astro/ file name Astro's build output naming; measured names are in §4.2
Changelog under ## Optional llmstxt.org, which defines Optional
The page-size limit, 1,048,576 bytes Apple TN3156, as the issue cites it; Phase 4 reads the source before writing the constant (§9 Q4)
The "good" thresholds, LCP 2.5 s, CLS 0.1, INP 200 ms at the 75th percentile web.dev, Web Vitals

9. Open questions

  • Q1 — needs a person. Is a landing without a <lastmod> acceptable (D2)? It is the only page of 28 without one. Answered by the maintainer at activation (2026-11-08): accepted.
  • Q2. Does wrangler dev --local apply docs/.deploy/_headers under this config's routes? Phase 2 tries it. If not, the only proof is the first release's smoke run, and a person has to watch that run (context/release.md, Launch checks for the northguild.dev/worktree docs site (from #235) #239 watches the first docs job). Answered by Phase 2 (d4ab279): yes. Served from docs/.deploy by wrangler dev --local, the hashed asset got exactly public, max-age=31536000, immutable (replaced, not joined), llms.txt got noindex, a page neither, and every smoke row passed; with _headers removed the two header rows failed. Whether the live edge applies it under the Route is still first seen at the next release's smoke run. Filed at close as owner check Check the live edge applies docs/.deploy/_headers at the first release's smoke run #346.
  • Q3 — needs a person. Submitting the sitemap in Google Search Console and Bing Webmaster Tools and reading the Pages report is an owner action, and so is adding the Sitemap: line for /worktree/sitemap-index.xml to the northguild.dev repo. Nothing here drives either. Filed at close as owner check Submit the docs sitemap to Search Console and Bing, add the Sitemap line to northguild.dev #347.
  • Q4. Two source claims are the issue's, not checked by the planner: Apple's 1 MB limit (TN3156) and Google's wording on lastmod. Cloudflare's _headers behaviour and serialize's signature were read in Cloudflare's and Astro's documentation on 2026-11-08. Phase 4 reads TN3156 before writing the constant; Phase 1 reads the Google page. TN3156 read by Phase 4 (f96ddf3): "The main resource located at the previewed link is limited to 1 MB" — it does not say 10^6 or 2^20 bytes, so D10's 1,048,576 stands as a reading, not a quotation. The Google lastmod page was not read in Phase 1 and is still open. Waived at close (2026-11-10): no code depends on it.
  • Q5 — needs a person. Phase 5 may find a metric that is not good. The plan does not guess the fix: does the maintainer want a fix phase added to this ledger, or an issue filed per finding? Also: is playwright an acceptable dev dependency of docs (D11)? Answered by the maintainer at activation (2026-11-08): an issue per finding, and playwright is accepted. The local lab run in Phase 5 found nothing that is not good. The live PageSpeed Insights reading (2026-11-10) found one: desktop TBT on the landing page, filed as Landing hero: desktop Total Blocking Time is 2,570 ms in PageSpeed Insights (software WebGL) #345.
  • Q6 — needs a person. The headers go live only with the next release, and a docs-only merge does not cause one. When to cut it is the maintainer's call (/release). Filed at close as owner check Cut a release so the docs search and caching changes of #287 go live #348.
  • Q7. Live Core Web Vitals field data (CrUX) may not exist for a site this size; Phase 5 reports "no field data" then, and the lab numbers stand alone. Answered by Phase 5 (2026-11-10): PageSpeed Insights shows no field data for https://northguild.dev/worktree/ on mobile, so the lab numbers stand alone.

Activity

  1. added
    enhancement
    workflow:feature
    docs-site
    on Nov 8, 2026
  2. added
    workflow:planned
    on Nov 8, 2026
  3. added theissue type on Nov 8, 2026
  4. self-assigned this
    on Nov 8, 2026
  5. baldurpan commented on Nov 8, 2026

    @baldurpan
    Contributor

    Phase 1 opened (Sitemap lastmod from the footer date), working in chore/287-search-and-answer-engines.

  6. baldurpan commented on Nov 8, 2026

    @baldurpan
    Contributor

    Phase 1 closed: done in a0bf0f6 (both gates passed; Gate 2 after one loopback).
    Phase 2 opened (long caching for hashed assets, noindex for text files).

  7. baldurpan commented on Nov 8, 2026

    @baldurpan
    Contributor

    Phase 2 closed: done in d4ab279 (both gates passed; §9 Q2 answered: wrangler dev --local applies _headers).
    Phase 3 opened (llms.txt Optional section and the describedby link).

  8. baldurpan commented on Nov 8, 2026

    @baldurpan
    Contributor

    Phase 3 closed: done in 08739c5 (both gates passed).
    Phase 4 opened (page-size gate).

  9. baldurpan commented on Nov 8, 2026

    @baldurpan
    Contributor

    Phase 4 closed: done in f96ddf3 (both gates passed; §9 Q4 TN3156 part answered).
    Phase 5 opened (Core Web Vitals, measured).

  10. baldurpan commented on Nov 8, 2026

    @baldurpan
    Contributor

    Phase 5: Core Web Vitals, local lab run only (docs/scripts/web-vitals.mjs, 3d62eba). docs/.deploy was served by wrangler dev --local on 2026-11-08 with Lighthouse 13.6.0, taking the median of 3 runs. INP was measured in Playwright Chromium at 4x CPU.

    Page Mobile LCP Mobile CLS Mobile TBT Desktop LCP Desktop CLS Desktop TBT INP (worst, 4x CPU)
    landing /worktree/ 1693 ms 0 64 ms 425 ms 0 0 ms 104 ms (search; theme 80; no menu on splash)
    guide github-issue-integration/ 1510 ms 0 0 ms 381 ms 0.002 0 ms 88 ms (search; theme 72; menu 16)
    command commands/branch/ 1509 ms 0 0 ms 381 ms 0.002 0 ms 104 ms (search and theme; menu 16)

    Every value is "good" (LCP ≤ 2.5 s, CLS ≤ 0.1, INP ≤ 200 ms), so D12 gives nothing to file.

    Not measured yet:

    • PageSpeed Insights / CrUX field data for the live site. The keyless API returned 429 (daily quota).
    • The live lab run. Chromium could not reach northguild.dev from the agent's sandbox.

    Run node scripts/web-vitals.mjs --live https://northguild.dev from docs/ with PSI_API_KEY set, in a normal shell, to finish Phase 5 and answer §9 Q7.

  11. baldurpan commented on Nov 8, 2026

    @baldurpan
    Contributor

    Phase 5 left in progress: the script landed in 3d62eba (both gates passed); the live measurement and §9 Q7 are still owed. The --all run stops here.

  12. baldurpan commented on Nov 10, 2026

    @baldurpan
    Contributor

    Phase 5 — live reading. PageSpeed Insights (pagespeed.web.dev), run by the maintainer on 2026-11-10 at 17:17 GMT, for https://northguild.dev/worktree/, mobile.

    • Field data (CrUX): No Data. This answers §9 Q7: the live site has no field data yet, so the lab numbers stand alone.
    • Lab (Lighthouse 13.6.0, emulated Moto G Power, slow 4G):
    Metric Value Good at
    FCP 0.9 s —
    LCP 1.4 s ≤ 2.5 s
    TBT 50 ms ≤ 200 ms
    CLS 0 ≤ 0.1
    Speed Index 2.3 s —

    Performance, Accessibility, Best Practices and SEO all score 100.

    • Nothing to file. Every metric is good, so no issue is filed (D12, §9 Q5). Lighthouse's insights list render-blocking requests (an estimated 300 ms) and 2.0 s of main-thread work. Neither takes a metric out of good.

    Not yet measured live: the script's own lab run of all three pages (node scripts/web-vitals.mjs --origin https://northguild.dev).

  13. baldurpan commented on Nov 10, 2026

    @baldurpan
    Contributor

    Phase 5: live reading, desktop. This is the same PageSpeed Insights report as the mobile reading above (2026-11-10, 17:17 GMT, Lighthouse 13.6.0), for https://northguild.dev/worktree/.

    • Field data (CrUX): No Data, as on mobile.
    • Lab: Performance 64.
    Metric Value Good at
    FCP 0.2 s —
    LCP 0.6 s ≤ 2.5 s
    CLS 0 ≤ 0.1
    TBT 2,570 ms ≤ 200 ms
    Speed Index 2.4 s —

    One metric is not good: TBT. It is filed as #345, per §9 Q5.

    • Cause: PageSpeed renders the hero's WebGL in software. A local Lighthouse desktop run with software GL reproduces the score (63 locally, 64 from PageSpeed). The same run with a GPU scores 100, with 7 ms of TBT.
    • Why the earlier local run missed it: that run had a GPU, and recorded 0 ms of desktop TBT.
  14. baldurpan commented on Nov 10, 2026

    @baldurpan
    Contributor

    Phase 5: live lab run. node scripts/web-vitals.mjs --origin https://northguild.dev, run by the maintainer on 2026-11-10 on their own machine (with a GPU). Lighthouse 13.6.0, median of 3 runs. INP was measured in Playwright Chromium at 4x CPU.

    Page Mobile LCP Mobile CLS Mobile TBT Desktop LCP Desktop CLS Desktop TBT INP (worst, 4x CPU)
    landing /worktree/ 1506 ms 0 77 ms 349 ms 0 0 ms 112 ms (search; theme 88; no menu on splash)
    guide github-issue-integration/ 974 ms 0 0 ms 310 ms 0.002 0 ms 112 ms (theme; search 104; menu 16)
    command commands/branch/ 1095 ms 0 0 ms 310 ms 0.002 0 ms 104 ms (search and theme; menu 16)
  15. baldurpan commented on Nov 10, 2026

    @baldurpan
    Contributor

    Phase 5 closed done (3d62eba). The live lab run, the PageSpeed reading and §9 Q7 are recorded above, and the one metric that is not good is filed as #345.

  16. baldurpan commented on Nov 10, 2026

    @baldurpan
    Contributor

    Phase 6 opened (search engine owner steps), working in chore/287-search-and-answer-engines.

  17. baldurpan commented on Nov 10, 2026

    @baldurpan
    Contributor

    Phase 6 closed: done in c2707b8 (both gates passed; Gate 2 PASS WITH NOTES). Every phase is done; next is /feature-close.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

docs-siteenhancementworkflow:featureworkflow:planned

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions