Skip to content

docs: prose reset — STE register, legacy debris removed - #196

Merged
Ardnived merged 1 commit into
mainfrom
claude/prose-reset
Sep 5, 2026
Merged

Ardnived merged 1 commit into
mainfrom
claude/prose-reset

Conversation

@Ardnived

@Ardnived Ardnived commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Headline numbers

Scope Before After Change
Hot path (AGENTS.md + .claude/workflow.json, loaded every session/routine run) 37,192 chars 27,891 chars -25.0%
All tracked *.md in the repo (deduped for the CLAUDE.md/.claude/rules symlinks git tracks as separate blobs) 426,061 chars 324,052 chars -23.9%

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 (confirmed CLOSED via gh issue view before 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.js was caught during the pass and fixed too, so a repo-wide NextUI grep is now clean except for 3 legitimate historical mentions that correctly say NextUI was removed). The workflow.json ready-to-implement legacy term was already fixed on main — 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/-fonts ids, Atlas Rethink Sans, data-sahaj-atlas-ready, the four storage keys), every #/## heading, and the README.md cross-link are verified byte-identical / anchor-identical against origin/main.

Two small factual corrections in README.md's Privacy section (not audit-flagged, found while cross-checking against docs/embedding.md's already-correct wording): the atlas.theme namespacing 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 against ste-lint.py directly 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 with ste-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)

Gates run

Gate Result
pnpm lint ✅ clean
pnpm typecheck ✅ clean
pnpm test:run ✅ 114/114 files, 1518/1518 tests
pnpm build (+ assert:css, assert:maps) ✅ clean
ste-lint.py on every changed file ✅ zero hard violations outside actual code (CSS/JS/bash syntax, string/regex literals) and ~15 documented part-of-speech false positives from the linter's word-stem matching (e.g. "gets" meaning "becomes" vs. network fetch; "correct" used as an adjective, not the verb "fix"; display: contents as a CSS property, not the verb "display"; two multi-line backtick-quoted code snippets)
rule-delta.mjs --base main . ✅ "No directive disappeared." (run with the repo's own node_modules staged out of the walk — an unrelated .claude/worktrees/claude+fix-reported-defects orphan directory, gotcha #7 in the audit, pollutes a . scan with vendored-package doc noise in its ADDED list; the pass/fail signal itself is unaffected)
ready-to-implement/NextUI grep ✅ zero debris hits (3 legitimate historical mentions remain, confirmed pre-existing on origin/main)
Wire-literal grep (embedding.md, README.md) ✅ every literal from gotcha #10 present, byte-for-byte, same occurrence counts as reported
docs/mcp-setup.md server list ✅ all 4 .mcp.json servers listed (github, playwright, cloudflare-docs, payloadcms-docs)
README/embedding.md heading + cross-link + Contents table ✅ verified matching, headings diffed byte-identical to origin/main
git status --porcelain touched-file set ✅ matches exactly the 6 partitions' files, no .claude/reports/ or .claude/worktrees/ edits
gh issue view 32 ✅ CLOSED, confirmed before deleting the spike doc

Not merging — flagging for review per the workflow.

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]>
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying sahajatlas with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4d18b2c
Status: ✅  Deploy successful!
Preview URL: https://586a3333.sahajatlas.pages.dev
Branch Preview URL: https://claude-prose-reset.sahajatlas.pages.dev

View logs

@Ardnived
Ardnived merged commit 82f8348 into main Sep 5, 2026
6 checks passed
@Ardnived
Ardnived deleted the claude/prose-reset branch September 5, 2026 07:51
@github-project-automation github-project-automation Bot moved this from In progress to Done in SYDevelopers Technical Roadmap Sep 5, 2026
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

1 participant