Repository navigation
docs(guides): trim the guides and load docs/testing.md only for test work - #314
Merged
Merged
Conversation
…work Cut what a session can rebuild from the code (the tech-stack table, the package.json scripts, the file tree, the env list, restated configs) and move single-scope blocks next to the files they govern: the deploy topology to docs/rules/deployment.md, the bundle-size budget to scripts/AGENTS.md. The root guide no longer imports docs/testing.md into every session. A short Testing block keeps the validation policy and the never-rules; docs/testing.md gains a paths: list and loads through a .claude/rules/testing.md symlink when a spec, a vitest config or the test tooling is read. It stays at its own path because the specs cite it there. Fix the stale claims the audit found: the retired typecheck hook, the providers stack, the Dialog atom, the fetchers that no longer exist, the renamed mapIsContained, and where the Sentry build vars go. Point the compact-card section back at lib/embed-slot.ts. Non-Markdown edits are comment-only. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Deploying sahajatlas with
|
| Latest commit: |
9d9d671
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://bc2182a7.sahajatlas.pages.dev |
| Branch Preview URL: | https://docs-doctor-trim.sahajatlas.pages.dev |
This was referenced Oct 26, 2026
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.
Summary
docs/testing.mdnow loads only for test work.Change outline
What every session loads
The root
AGENTS.mdno longer@-importsdocs/testing.md. In its place, a 1,099-char## Testingblock holds the validation policy (the per-edit hook selection, the lean gate before a PR, the rest left to CI) and the never-rules: no Testing Library or default jsdom, no assertion counted until it has failed, no bare-200 smoke assertion, nowrangler preview.docs/rules/code-comments.mdstill loads unconditionally (2,814 chars). With it, the always-loaded total is about 17.4k.docs/testing.mdbecomes a path-scoped rule, at its own pathIt gains a
paths:list (**/*.test.ts(x),tests/**,src/test-support/**, both vitest configs,select-unit-specs.mjs,assert-preview-host.mjs, the unit-test hook,ci.yml,production-smoke.yml). It loads through a new.claude/rules/testing.mdsymlink. The file stays atdocs/testing.mdbecause about 60 specs, scripts and workflow comments cite that path, so none of them needed a repoint. The repo has no Playwright config, so none is listed.The content trim was conservative (43,811 → 43,177 chars, after adding about 750 chars of front matter and header). It removed the lanes table and the CI gate list (
package.jsonandci.ymlshow both), the tsconfig split, an inventory of what the unit lane covers, and a parenthetical that repeated the portal ⚠. Every gotcha, measurement, flake record and never-rule stays.Trims and moves (already approved, committed here)
AGENTS.mddocs/testing.mdsrc/components/AGENTS.mdsrc/AGENTS.mddocs/rules/data-layer.mddocs/rules/code-comments.mddocs/rules/deployment.md(new, +.claude/rules/symlink)scripts/AGENTS.md(new, +CLAUDE.mdsymlink)public/deploy files, the source-map policy, and the Dependency Review andcheck:wranglergates moved from root todocs/rules/deployment.md.pnpm sizebudget and the per-graph Sentry gap moved toscripts/AGENTS.md.docs/architecture.md,docs/environment.md,docs/mcp-setup.md,docs/testing.md, plus comments inci.yml,wrangler.jsoncandcheck-bundle-size.mjs.src/components/AGENTS.mdis not splitIt does not divide cleanly by subdirectory. The compact-card section, the best candidate, spans
src/App.tsx(AppShell),src/views/,src/lib/andsrc/hooks/. It is also interleaved with the shadow-DOM patch notes, which apply to every Radix primitive inatoms/.Stale fixes
Each claim was checked against the code. The docs were changed to match, never the code.
src/AGENTS.md); no typecheck hook exists. The provider stack (providers.tsxisStrictMode+ Query + Helmet +MotionConfig;BrandThememounts inApp). "Not theDialogatom" → "not an atom". The fetcher list indata-layer.md(getCountry,getAreaandgetVenuedo not exist). The.envcomment saying the Sentry build vars go "on the Pages project only". Thejsx-sort-propsduplicate, merged intocode-comments.md's carve-out.getClientandgetAtlasConfigentries, thesrc/types/payload/line), and theno-explicit-anyclaim.mapIsContained, a name that no longer exists, now readsmapModein the guide and in theembed-slot.tsdocblock.lib/embed-slot.tsis mentioned again in the compact-card section, as the home ofresolveDestination,embedLayoutandSLOT_GAIN.Preview
None: this PR changes only docs and comments.
Test results
embed-slot,slot-decision,wrangler-config,ci-workflows,select-unit-specsandbrand: 6 files, 103 passed.eslint --max-warnings 0on the two touched code files: clean.pnpm sync:atlas-contract: byte-identical to SahajCloud.pnpm sync:translationswas not run, because it needsATLAS_API_KEY.paths:glob matches at least one file, every symlink resolves, every relative Markdown link resolves.Notes for reviewer
.claude/rules/testing.mdand.claude/rules/deployment.mdsymlinks are Protected-Path writes..envmatches the security-review trigger, but its change here is one comment.CHANGELOG.mdordocs/embedding.mdentry: a host sees no change.Claude-Session:trailer: this local session's attribution supplied none.🤖 Generated with Claude Code