Repository navigation
chore(docs): delete the dead content/docs.site.json config - #13701
Merged
os-project-manager merged 1 commit intoAug 31, 2026
Merged
Conversation
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.
os-project-manager
marked this pull request as ready for review
August 31, 2026 07:32
os-project-manager
deleted the
claude/issue-12489-delete-dead-docs-site-json
branch
August 31, 2026 07:59
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #12489
Deletes
content/docs.site.json— measured dead config. The live docs-site config isgitConfiginapps/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 from262145bef4.1. Reader census, re-run at
713f83f5dThe 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:
repoBaseUrlshowEditLinkshowLastUpdatetransparentModeimageZoomdefaultOpenLevelWidened beyond the card (all file types, not just the five extensions; plus
siteConfig/docsSite/loadSiteConfig/site-config/site_config/SiteConfig): 0 additional hits.apps/docsperforms no dynamic reads at all — its onlyimport()ismermaid.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 innode_modules).site.json/docs.site/siteConfigreturns 0 — but a negative control formeta.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.tsconfigures exactly two dirs,content/docsandcontent/blog.content/docs.site.jsonsits besidecontent/docs/, not inside it; relative to the glob root it is../docs.site.json, and**never matches... Empirically,find content/docsreturns 35 json/yaml files and the file is not among them, whilecontent/docs/meta.jsonis — 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 installranapps/docs postinstall: fumadocs-mdxto success with the file already deleted.3. Disposition of the gate-script hits
hintCoversis pure string logic — nofs, no tracked-file lookup — so no assertion can break on the file's absence. AndextractWatchHintsyields zerodocs.sitehints from all three scripts, so the deletion creates no dead hint fordeadHintSweep.check-doc-formula-expressions.mjs:271check-published-readme-links.mjs:92dispatch-gates.mjs:2532,:2790dispatch-gates.mjs:2535dispatch-gates.mjs:8555,:8616,:8617dispatch-gates.mjs:8962The re-point, and why it is in this PR
dispatch-gates.mjs:8614carries a standing instruction from its author addressed to whoever removes this file: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.
:8962asserts 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 thecontent/docshint, and after this deletioncontent/holds onlyblog/anddocs/, 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()— onlyt(...)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 toopnpm --filter @objectstack/lint run check:doc-formula-expressions—✓ 58 cases passed+ live greenpnpm check:nul-bytes—OK (scanned 7560 text file(s))+ 75-assertion self-testnode scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack --commands(17 families, re-derived on a non-stale tree): all greennode scripts/check-test-completeness.mjsis NOT MEASURED, not red: it grades a savedturbo run testlog 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.jsonis in no package, andscripts/pm/is CI-internal —lint.yml:2280names that exact case as "the textbookskip-changesetcase — such a PR releases nothing". Label applied.Zone 2 assumptions
gitConfigstill live with four consumers) — HELD: view-source linkpage.tsx:158, navbarlayout.shared.tsx:26, homepagepage.tsx:240, JSON-LDstructured-data.tsx:25,28.hintCoversnever touches the filesystem.Generated by Claude Code
Generated by Claude Code