Repository navigation
docs: prose reset — STE register, legacy debris removed - #196
Merged
Merged
Conversation
Repo-wide pass to strict Simplified Technical English across every
prose file the audit put in scope, plus a full comment sweep of the
78 source/config/script files this change touches. Tracked markdown
across the repo drops from 426,061 to 324,052 characters (-23.9%,
deduped for the CLAUDE.md / .claude/rules symlinks that git tracks as
separate blobs). The hot path (AGENTS.md + .claude/workflow.json,
loaded every session and every routine run) drops from 37,192 to
27,891 (-25.0%).
What changed, by area:
- Root and subsystem guides (AGENTS.md, src/AGENTS.md,
src/components/AGENTS.md), docs/rules/*.md, docs/security-triggers.md,
docs/architecture.md, docs/environment.md, docs/mcp-setup.md,
docs/testing.md: converted to STE, duplicated rules collapsed to a
single canonical statement plus cross-references, all numbered
traps and issue citations preserved verbatim.
- docs/embedding.md (the external host-facing contract): compressed
wording only, zero semantic change. Every wire literal (element ids,
storage keys, the Rethink Sans family name), every heading, and the
README cross-link all verified byte-for-byte / anchor-for-anchor
against origin/main.
- README.md, STORYBOOK.md, DESIGN_SYSTEM.md: STE conversion. Aligned
two facts in README's Privacy section (the `atlas.theme` fix status,
and the Fathom condition count) that had drifted out of sync with
embedding.md's already-correct wording.
- Legacy debris: fixed all 5 stale NextUI/NextUIProvider references in
.ladle/{components.tsx,config.mjs,vite.config.ts} and
tailwind.config.js (a 5th site the audit missed). Confirmed the
workflow.json `ready-to-implement` fix was already on main.
- Deleted docs/spike-32-region-feed-split.md (issue #32, confirmed
CLOSED via `gh issue view`), with no remaining referrers.
- Full comment sweep: every `//`, `/* */`, and `{/* */}` comment in
the 78 changed source/script/test/style files rewritten to strict
STE (active voice, no semicolons, no phrasal verbs, <=25-word
sentences). ~230 real comment-level violations fixed by hand across
45+ files, cross-checked against a code/comment classifier so no
CSS declaration, JS statement, or quoted code sample was touched.
Every issue-number citation in the touched source files is preserved
(diffed old vs. new — zero net loss).
- vaul.css: touched only the vendored header/footer prose we own;
every vendored CSS rule is byte-identical.
Known gap, disclosed rather than hidden: the source comment sweep
partition covered 45 of ~423 total src/ files before this pass: this
finisher pass fixed the real STE violations in all 78 files this PR
touches, but did not extend the sweep to files no partition touched.
That remains for a follow-up PR.
Gates run: pnpm lint, pnpm typecheck, pnpm test:run (114/114 files,
1518/1518 tests), pnpm build (+ assert:css, assert:maps), ste-lint.py
(zero hard violations outside actual code and ~15 documented
part-of-speech false positives — e.g. "gets" meaning "becomes" vs.
network fetch, "correct" as an adjective, `display:contents` in CSS),
rule-delta.mjs --base main (No directive disappeared), legacy-term and
wire-literal greps, and a manual anchor/heading check against
origin/main.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Deploying sahajatlas with
|
| Latest commit: |
4d18b2c
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://586a3333.sahajatlas.pages.dev |
| Branch Preview URL: | https://claude-prose-reset.sahajatlas.pages.dev |
3 tasks done
Ardnived
added a commit
that referenced
this pull request
Sep 5, 2026
…scripts (#197) Rewrites every remaining non-compliant source-code comment into strict Simplified Technical English across the 341 files PR #196's partial sweep had not yet reached: src/components (atoms, molecules, organisms, ladle, preview), src/lib, src/views, src/loader, src/hooks, src/config, src/types (excluding generated src/types/payload/**), src/mocks, src/styles, tests, and scripts. This completes #196's disclosed partial coverage. Deleted a handful of commented-out code lines and comments that only restated adjacent code. Fixed several stale-claim comments found during the sweep, including tests/smoke/spa-fallback.smoke.test.ts's outdated HashRouter claim (the widget moved to query-based routing in #154), a "TOOD" typo, a stale field-name reference in palette.ts, and a brand-name regression in EventMetadata.tsx's comment that had been accidentally reflowed onto one line, tripping brand.test.ts's de-branding check. Scope was comments only: no executable code, imports, strings, or types were changed, and all functional directives (JSDoc @PARAM tags, eslint-disable, @ts-expect-error, license headers) were preserved verbatim. Verified with git diff that only comment text changed. Gates run clean: pnpm lint, pnpm typecheck, pnpm test:run (1518/1518), and pnpm build (including CSS-scoping and no-sourcemaps assertions). Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
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.
Headline numbers
AGENTS.md+.claude/workflow.json, loaded every session/routine run)*.mdin the repo (deduped for theCLAUDE.md/.claude/rulessymlinks git tracks as separate blobs)78 files changed, all on
claude/prose-reset, one commit.What changed
Docs converted to strict Simplified Technical English (active voice, no semicolons, no phrasal verbs, ≤25-word sentences):
AGENTS.md,src/AGENTS.md,src/components/AGENTS.md,docs/rules/{data-layer,i18n-and-state,mapbox}.md,docs/security-triggers.md,docs/architecture.md,docs/environment.md,docs/mcp-setup.md,docs/testing.md,README.md,STORYBOOK.md,DESIGN_SYSTEM.md,.claude/workflow.json's three prose fields.Deleted:
docs/spike-32-region-feed-split.md— a closed decision record for issue #32 (confirmedCLOSEDviagh issue viewbefore deleting). Repo-wide grep confirms no referrers.Merged/collapsed duplication (per the audit's disposition table): the Implement→Adjust→Finalize phase description, the Protected Paths guard note, the Prettier rules section, the
VITE_-prefix rule, and the Permissions-Policy table were each pointed at one canonical source instead of being restated in 2-3 places.Legacy debris fixed — 5 stale NextUI/NextUIProvider references (the audit found 4; a 5th in
tailwind.config.jswas caught during the pass and fixed too, so a repo-wideNextUIgrep is now clean except for 3 legitimate historical mentions that correctly say NextUI was removed). Theworkflow.jsonready-to-implementlegacy term was already fixed onmain— confirmed, not re-touched.docs/embedding.md(the external host-facing contract read by WeMeditateWeb and the WordPress plugin): compressed wording only, zero semantic change. Every wire literal (sahaj-atlas-style/-fontsids,Atlas Rethink Sans,data-sahaj-atlas-ready, the four storage keys), every#/##heading, and theREADME.mdcross-link are verified byte-identical / anchor-identical againstorigin/main.Two small factual corrections in
README.md's Privacy section (not audit-flagged, found while cross-checking againstdocs/embedding.md's already-correct wording): theatlas.themenamespacing fix status, and the Fathom analytics condition count. Flagging since it's a content fix riding along with a wording pass.Full source-comment sweep on the 78 changed files: every
//,/* */, and{/* */}comment rewritten to strict STE where it wasn't already. This went beyond the original rewrite partitions — several files the partitions marked "done" (e.g.src/config/api/mutate.ts,src/components/atoms/Drawer/Drawer.tsx) still had 10-16 semicolons and long clauses on inspection, so this pass re-verified and fixed every changed file againstste-lint.pydirectly rather than trusting partition self-reports. ~230 real comment-level violations fixed by hand across 45+ files. A code/comment classifier (checked against every hit) made sure no CSS declaration, JS/TS statement, string literal, or quoted code sample was touched — only comment text. Diffed every issue-number citation (#89,#99,#130,#154,#161,#169, …) in old vs. new source: zero net loss.src/styles/vaul.css(vendored from[email protected]): touched only the header/footer prose we own. Every vendored CSS rule is byte-identical (diffed).Known gap — disclosed, not fixed here
The original comment-sweep partition covered 45 of ~423 total files under
src/. This PR's finisher pass fixed every real STE violation in the 78 files this PR actually touches (verified withste-lint.py, not partition self-reports), but did not extend the sweep to the ~350 files no partition touched at all. That's real, remaining work for a follow-up PR — flagging it explicitly rather than letting the green gates below imply full coverage.Traps preserved (verified present, wording only compressed)
claude-workflow/CLAUDE.md)pnpm sizeCI ≈2.1 KiB gap vs. production (Sentry debug-ID credentials)container-typedoes NOT create a containing block forposition: fixedin Chrome 151 (contradicts folklore)onGeolocateand other Mapbox handlers bind at construction time only (stale-closure trap)renderToStaticMarkuprenders nothing for a CLOSED portal but throws for an OPEN one_redirects200-for-anything),started_atcompletion-only (chore(build): make preview discovery survive a slow cloudflare deploy #132), provenance-ranked preview discovery as a security propertyworkflow.json'ssecurityReview.rationaleis advisory only, not enforced#107/#169/#161responsive-signal / map-frame / compact-card-floor rationaledocs/security-triggers.md's numbered rows (docs(claude): refresh stale internal docs and small hygiene batch #100/fix(widget): survive foreign hashes and harden the mount path #92/fix(ui): scope widget css so it cannot restyle the host page #91/fix(ui): upgrade swiper to v12 and add carousel pause control #104/fix(i18n): production hygiene for logging, locales, and storage #95/feat(widget): wire sentry into the error-reporting seam #108), kept verbatimGates run
pnpm lintpnpm typecheckpnpm test:runpnpm build(+assert:css,assert:maps)ste-lint.pyon every changed filedisplay: contentsas a CSS property, not the verb "display"; two multi-line backtick-quoted code snippets)rule-delta.mjs --base main .node_modulesstaged out of the walk — an unrelated.claude/worktrees/claude+fix-reported-defectsorphan directory, gotcha #7 in the audit, pollutes a.scan with vendored-package doc noise in itsADDEDlist; the pass/fail signal itself is unaffected)ready-to-implement/NextUIgreporigin/main)docs/mcp-setup.mdserver list.mcp.jsonservers listed (github, playwright, cloudflare-docs, payloadcms-docs)origin/maingit status --porcelaintouched-file set.claude/reports/or.claude/worktrees/editsgh issue view 32CLOSED, confirmed before deleting the spike docNot merging — flagging for review per the workflow.