Skip to content

chore(docs): delete the dead content/docs.site.json config - #13701

Merged
os-project-manager merged 1 commit into
mainfrom
claude/issue-12489-delete-dead-docs-site-json
Aug 31, 2026
Merged

os-project-manager merged 1 commit into
mainfrom
claude/issue-12489-delete-dead-docs-site-json

Conversation

@claude

@claude claude Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Fixes #12489

Deletes content/docs.site.json — measured dead config. The live docs-site config is gitConfig in apps/docs/lib/layout.shared.tsx.

The ruling attached a premise-first fence, so the census below is a re-measurement on current origin/main, not the card's numbers from 262145bef4.

1. Reader census, re-run at 713f83f5d

The card's grep, verbatim scope (.ts/.tsx/.mjs/.js/.json) — 11 hits, not the card's 7. The count grew; the disposition did not. All 11 are comments or self-test fixtures in the same three gate scripts, and none is a read of the file.

Per-key reader counts — every key's only repo-wide hit is its own definition line:

key readers
repoBaseUrl 0
showEditLink 0
showLastUpdate 0
transparentMode 0
imageZoom 0
defaultOpenLevel 0

Widened beyond the card (all file types, not just the five extensions; plus siteConfig / docsSite / loadSiteConfig / site-config / site_config / SiteConfig): 0 additional hits. apps/docs performs no dynamic reads at all — its only import() is mermaid.

2. fumadocs convention check — the sharp risk

Checked against the installed packages, not the docs: fumadocs-core@16.14.4, fumadocs-mdx@15.2.3, fumadocs-ui@16.14.4 (lockfile-pinned, verified in node_modules).

⚠️ My first probe was insufficient and I am recording that, because it is the interesting half. Grepping the installed tree for the literal strings site.json / docs.site / siteConfig returns 0 — but a negative control for meta.json, a convention fumadocs genuinely has, also returned 0. So the literal-filename probe cannot detect fumadocs conventions at all, and its zero was worthless.

fumadocs declares conventions as globs, not filenames. The real mechanism:

  • fumadocs-mdx/dist/transform-BFobDsdE.js:16 — SupportedPatterns.meta = "**/*.{json,yaml}"
  • fumadocs-mdx/dist/index-file-pX-fCn8l.js:176 — glob(collection.patterns, { cwd: collection.dir, absolute: true })

So fumadocs does collect JSON by convention — rooted at collection.dir. apps/docs/source.config.ts configures exactly two dirs, content/docs and content/blog. content/docs.site.json sits beside content/docs/, not inside it; relative to the glob root it is ../docs.site.json, and ** never matches ... Empirically, find content/docs returns 35 json/yaml files and the file is not among them, while content/docs/meta.json is — the convention is live and simply cannot reach one directory up.

Re-run with a working positive control: 0 convention reads, control found. No live consumer. The ruling's premise holds.

Independent confirmation: pnpm install ran apps/docs postinstall: fumadocs-mdx to success with the file already deleted.

3. Disposition of the gate-script hits

hintCovers is pure string logic — no fs, no tracked-file lookup — so no assertion can break on the file's absence. And extractWatchHints yields zero docs.site hints from all three scripts, so the deletion creates no dead hint for deadHintSweep.

site kind disposition
check-doc-formula-expressions.mjs:271 comment inert — gate green
check-published-readme-links.mjs:92 comment (records the stale-host incident) inert — gate green
dispatch-gates.mjs:2532, :2790 docblock: a historical measurement record, and a statement about strings left as-is, still true
dispatch-gates.mjs:2535 docblock asserting the file is a real file tense corrected — that claim is now false
dispatch-gates.mjs:8555, :8616, :8617 executable self-test cases pinned on the file as a live specimen re-pointed (below)
dispatch-gates.mjs:8962 executable self-test case path kept, comment corrected (below)

The re-point, and why it is in this PR

dispatch-gates.mjs:8614 carries a standing instruction from its author addressed to whoever removes this file:

If content/docs.site.json is ever removed, re-point this case at whatever sibling pair the tree then has rather than deleting it.

Those cases assert a rule about a real FILE sitting beside a real DIRECTORY of the same name stem. They stay green either way, but they silently degrade from live specimen to hypothetical. Re-pointed at packages/spec/authorable-surface + packages/spec/authorable-surface.base.json — the same shape (dotted-suffix JSON sibling of a directory), both tracked, and a stable path. The positive leg was upgraded from a synthetic path to a real tracked file, authorable-surface/ai.json.

One case was deliberately NOT re-pointed. :8962 asserts that the role-word hints — ['content/docs', 'scripts/role-word-baseline.json', 'skills/**'] — do not reach a sibling beside the content root. Its bite comes from the content/docs hint, and after this deletion content/ holds only blog/ and docs/, so the tree offers no replacement sibling there. Re-pointing it at a far-away path would keep it green while testing nothing — which the neighbouring comment explicitly forbids. The path is kept and labelled CONSTRUCTED in a comment.

Every executable line changed is inside selfTest() — only t(...) case arguments. No exported function body moved, so the ~60 consumer scripts that import this module are unaffected by construction.

4. Verification

Union re-run after the final commit, at a8895c6e6:

  • pnpm check:pm-dispatch-gates — ✓ dispatch-gates self-test: 1017 cases pass. (0 literal ✗). The four edited cases confirmed executed, not skipped.
  • pnpm check:published-readme-links — ✓ 176 outbound link(s) across 60 published markdown file(s) — self-test green too
  • pnpm --filter @objectstack/lint run check:doc-formula-expressions — ✓ 58 cases passed + live green
  • pnpm check:nul-bytes — OK (scanned 7560 text file(s)) + 75-assertion self-test
  • Full derived family via node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack --commands (17 families, re-derived on a non-stale tree): all green

node scripts/check-test-completeness.mjs is NOT MEASURED, not red: it grades a saved turbo run test log that only CI produces, and exits 3 — a code it defines as distinct from a finding's 1.

5. Changeset

No changeset: this releases nothing from any package. content/docs.site.json is in no package, and scripts/pm/ is CI-internal — lint.yml:2280 names that exact case as "the textbook skip-changeset case — such a PR releases nothing". Label applied.

Zone 2 assumptions

  • A2.1 (zero-reader census still holds) — HELD, re-measured.
  • A2.2 (gitConfig still live with four consumers) — HELD: view-source link page.tsx:158, navbar layout.shared.tsx:26, homepage page.tsx:240, JSON-LD structured-data.tsx:25,28.
  • A2.3 (deleting breaks no gate) — HELD on the verdict, FALSIFIED on the count: 11 hits, not 7. All inert; no gate breaks. The stated risk — a self-test fixture naming a path that no longer exists — was real in kind but not in effect, because hintCovers never touches the filesystem.

Generated by Claude Code


Generated by Claude Code

Every key in the file had zero readers and nothing loaded it; the live
docs-site config is gitConfig in apps/docs/lib/layout.shared.tsx.

Re-points the dispatch-gates self-test cases that used the file as their
live sibling-pair specimen at packages/spec/authorable-surface, per the
standing instruction those cases carry.
@claude claude Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Aug 31, 2026
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation labels Aug 31, 2026
@os-project-manager
os-project-manager marked this pull request as ready for review August 31, 2026 07:32
@os-project-manager
os-project-manager added this pull request to the merge queue Aug 31, 2026
Merged via the queue into main with commit 193a45e Aug 31, 2026
33 checks passed
@os-project-manager
os-project-manager deleted the claude/issue-12489-delete-dead-docs-site-json branch August 31, 2026 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/m skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

1 participant