Repository navigation
docs: prose reset — STE register, legacy debris removed - #13
Merged
Merged
Conversation
Rewrites all prose in this repo (docs, comments, config) into strict Simplified Technical English: active voice, short sentences, no semicolons, no phrasal verbs. Tracked *.md files drop from 63,615 to 24,582 chars (61.4%); the hot-path bootstrap docs (AGENTS.md/CLAUDE.md symlink + .claude/workflow.json) drop from 17,998 to 15,290 chars (15.0%), most of that mass held by the exempt Traps section, which is compressed in wording but loses no fact. Structural changes - Merge docs/brief.md into docs/implementation-plan.md and delete brief.md. Drop the stale "Step 0a" repo-setup narrative and the pre-#170 sizing/map=true claim brief.md carried; fold every fact unique to either source doc into the survivor. Zero remaining repo references to brief.md. - Demote docs/implementation-plan.md from a mandatory pre-coding read to optional background reading in AGENTS.md. - Dedup the wp_kses paragraph, the Principles list, and the Decisions table down to one copy each in AGENTS.md, with implementation-plan.md pointing back to it. - Fold the 16-trap catalog into an index in AGENTS.md: each trap keeps its full lesson, now pointing at the file:line of its inline `⚠` comment where one exists. Debris fixed - workflow.json's `ready-to-implement` label: confirmed already absent from this branch (a true no-op — only `prAllowlistGlobs` exists here). - 6 weak one-line docblocks in includes/ folded or cut (no TRAP or return-value content lost). - 3 stale `npm run <script>` references in test docblocks corrected to `pnpm` (this repo has never had an npm script). - tests/lint.php's docblock pointed at `tests/lint-self-test.php`, which does not exist; reworded to state the lesson (break a file on purpose and confirm lint then fails) without the fabricated filename. Accuracy fix (found during this pass, not in the audit) - implementation-plan.md's status note claimed sitemaps were still unimplemented (SahajCloud#650); AGENTS.md already says they ship (#651). Dropped the stale departure bullet. Finisher pass - Re-verified every inline file:line pointer in AGENTS.md's Traps section against the actual `⚠` comment locations after the comment rewrites shifted several docblocks by 1-5 lines (embed.php, atlas-page.php, sahaj-atlas.php, page.php, sitemap.php, render.mjs, contract.php, diagnostics.php) and corrected the drifted ones. - Confirmed zero non-comment code lines changed across every comment-sweep file (workflows, assets, blocks, includes, tests, templates, sahaj-atlas.php) via targeted diff review. Traps preserved (all 16, verbatim-in-substance, all inline ⚠ comments intact): auto.js is a real ES module; explicit element printing beats core's own placement; element placement + wp_body_open hazard; display:block + definite height (SahajAtlasWeb#170 inversion); min-height is not a height; never wp_kses our own markup; get_header() duplicate-DOCTYPE on block themes; get_footer() != wp_footer(); redirect_canonical() breaks path routing; no translated string before init (WP 6.7); one _wp_page_template value serves both theme kinds; front-page atlas refuses path routing; empty sitemap must 404; allowedDomains is newline-separated with an open-by-default empty list; sitemap publishes only this-host URLs; suppress host SEO only after a successful fetch. Plus the CI contract-job trap (old warn-and-pass check on the false SahajCloud-is-private premise) and the GitHub auto-zip second-plugin hazard. Gates run, all green - gh pr list --repo sydevs/SahajAtlasWordpress: no open PRs. - pnpm install --frozen-lockfile: ok. - pnpm test:all (lint + WP 6.7/PHP 7.4 behaviour suite + render checks): 12/12 files syntax-clean, 122 assertions / 0 failures, 0 render failures across both theme kinds. - python3 -m json.tool .claude/workflow.json: valid. - readme.txt Stable tag / sahaj-atlas.php Version: both 0.1.0, unaltered. - tests/atlas-url-contract.json: untouched (generated file). - README.md `## Installation` heading: unchanged, anchor intact. - grep for docs/brief.md and ready-to-implement: zero hits outside .git. Native `php -l` was unavailable in this environment (no system PHP); pnpm lint's WASM-based `token_get_all(TOKEN_PARSE)` syntax check covers the same 12 non-test PHP files, and the full test:all run exercises (and would fatal on) every tests/*.php file too. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Merged
Ardnived
pushed a commit
that referenced
this pull request
Sep 18, 2026
* chore(release): v0.2.0 Three merged changes ship in the plugin zip since v0.1.0, and a volunteer sees none of them until a tag builds one: #21, #23 and #24. Everything else merged since c1fec89 is CI, docs or tests, all of which `.distignore` keeps out of the zip, and #10 and #13 touched shipping files in comments only. Minor, not patch, and pre-1.0 either way: #23 adds a capability and a second site setting, so the version has to move more than a fix would. Four declarations, not two. `release.yml` compares the tag against the plugin header alone, so it would have passed with `SAHAJ_ATLAS_VERSION` left at 0.1.0 — and that constant is the cache-buster on `atlas-page.css`, `atlas-page.js` and the editor assets. Every updated site would have kept serving the 0.1.0 copies. `blocks/embed/block.json` declares the same version to the editor. `package.json` declares none: it is dev tooling, and `.distignore` excludes it. The changelog is written for the one non-technical volunteer who runs each site, so it names what they will see rather than what changed in the code. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01QNEAgEV5tDoLsB9nyLUv26 * fix(readme): the 0.1.0 entry claimed a 0.2.0 row #23 edited the shipped `= 0.1.0 =` changelog entry, adding "and which side describes the Atlas page" to the status-panel bullet. That row did not exist at v0.1.0 — `git show v0.1.0:readme.txt` has the panel covering four things, not five. Plugin Update Checker merges readme.txt's sections into the WordPress update modal, so a volunteer on 0.1.0 deciding whether to update reads the fifth row credited to the version they already run. The 0.2.0 entry announcing that same row then reads as a repeat, and the release that actually ships it loses the credit. A shipped release's entry describes what that release shipped. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Jg5XawkJdwdSyhgVGdkvQu --------- Co-authored-by: Claude <[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
*.md(AGENTS.md/CLAUDE.md, README.md, docs/brief.md + docs/implementation-plan.md).claude/workflow.json)The hot-path number is smaller than the doc-wide one because ~35% of AGENTS.md is the Traps
section, which is exempt from fact deletion (compress wording, never drop a lesson) — it already
dominated the file before this pass and has a compression floor once every fact is kept.
What changed
Rewrote every prose surface into strict Simplified Technical English: active voice, one
instruction per sentence, ≤20 words in instructions / ≤25 descriptive, no semicolons, no phrasal
verbs, simple tenses, noun clusters ≤3 words. Scope:
AGENTS.md(CLAUDE.mdis a symlink to it),.claude/workflow.json,README.md,readme.txt,docs/brief.md+docs/implementation-plan.md,and every comment in
.github/workflows/{ci,release,workflow-state}.yml,assets/atlas-page.js,blocks/embed/{editor.js,render.php},includes/{diagnostics,embed,page,routing,seo,settings, shortcode,sitemap,updates}.php,sahaj-atlas.php,templates/atlas-page.php, andtests/{bootstrap,contract,domains,lint,report,run,sitemap}.php+tests/render.mjs. No code,delimiter, or directive changed anywhere — verified per file via targeted diff review (only
comment/prose lines differ;
phpcs:ignorerule names,@package/@vartags, and the pluginheader block all kept intact).
Deleted / merged
docs/brief.mddeleted. Its unique content (fleet survey, embed-contract parameter table,path-routing/diagnostics mechanics, SEO-override rationale, distribution rationale, fleet-specific
risks) folded into
docs/implementation-plan.md, which is now the sole planning-history doc.Zero remaining repo references to
docs/brief.md.pre-#170 sizing/
map=trueclaim (corrected in AGENTS.md since; not carried forward).AGENTS.md, with implementation-plan.md pointing back to it instead of restating.
docs/implementation-plan.mddemoted from a mandatory pre-coding read to optional backgroundreading in AGENTS.md.
Debris fixed
workflow.json'sready-to-implementlabel (the retired Stage-model term): confirmed alreadyabsent from this branch — a true no-op, re-verified after all edits landed. Only
prAllowlistGlobsexists here.includes/folded to a one-line@returnor cut outright, withzero TRAP or return-value content lost (2 candidate line numbers from the audit's debris list —
page.php:38,routing.php:176— turned out on inspection to be live TRAP docs, not weakone-liners, so they were left as full TRAP prose per the ground rule that traps beat debris).
npm run <script>references inside test docblocks corrected topnpm(this repo hasnever shipped an npm script;
package.jsonis pnpm-only).tests/lint.phppointed readers attests/lint-self-test.php, which does not exist anywhere inthe repo. Reworded to state the lesson (break a file on purpose, confirm lint then fails) without
the fabricated filename.
Accuracy fix found during this pass (not in the audit):
implementation-plan.md's status noteclaimed sitemaps were still unimplemented, tracked as SahajCloud#650. AGENTS.md already says
sitemaps ship (#651 supplied the enumeration endpoint #650 requested). Dropped the stale bullet,
kept the still-true front-page-routing departure note next to it.
Finisher pass (this PR's own verification, beyond the rewriters')
file:linepointer in AGENTS.md's Traps section against the actual⚠comment locations, since the comment-sweep partitions' rewrites shifted several docblocks by 1-5
lines. Corrected all drifted pointers:
embed.php:337→342,render.mjs:196→198,run.php:138→143,atlas-page.php:13,19,30→14,20,31,atlas-page.php:7→8,sahaj-atlas.php:83→84,page.php:193→191,tests/contract.php:126,148→131,sitemap.php:86→81,tests/sitemap.php:81→82,diagnostics.php:399→398,sitemap.php:187→181,tests/render.mjs:83→85. Leftembed.php:48,routing.php:113,163,sahaj-atlas.php:22,diagnostics.php:262,tests/bootstrap.php:5,42,tests/sitemap.php:20unchanged — verified they still land on the right⚠comment.the free-text reason after one
phpcs:ignore --inblocks/embed/render.php, which is commenttext, not the directive itself).
Traps preserved (all 16 + 2 CI traps, verbatim-in-substance)
auto.jsis a real ES module —wp_enqueue_script_module(), notwp_enqueue_script()+defer<sahaj-atlas>element; core's own script-tag placement no longer matterswp_body_openwould misplace a contained mapdisplay:block+ a definite height (SahajAtlasWeb#170 inverted the old rule)min-heightis not a height — needs a definite height anddisplay:blockwp_kses()on this plugin's own markup —safecss_filter_attr()dropsdisplayget_header()on a block theme falls through to theme-compat and duplicates the DOCTYPEget_footer()is notwp_footer()— the latter must fireredirect_canonical()301s deep links unless suppressed when the route var is setiniton WordPress 6.7_wp_page_templatevalue serves both theme kinds — do not branch to "fix" it<urlset>allowedDomainsis newline-separated; an empty list allows every origin by designgreen run never proved the diff executed
Gates run, all green
gh pr list --repo sydevs/SahajAtlasWordpress— re-checked right before finishing: no open PRs.pnpm install --frozen-lockfile— ok.pnpm test:all(lint + WP 6.7/PHP 7.4 behaviour suite + render checks) — 12/12 PHP filessyntax-clean, 122 assertions / 0 failures, 0 render failures across both theme kinds.
python3 -m json.tool .claude/workflow.json— valid JSON.readme.txtStable tagandsahaj-atlas.phpVersion:— both0.1.0, unaltered, still inlockstep.
git diff --stat -- tests/atlas-url-contract.json— empty (generated file untouched).README.md's## Installationheading — unchanged,#installationanchor still resolves.grep -rn docs/brief.mdandgrep -rln ready-to-implementacross the repo — zero hits outside.git.Native
php -lwas unavailable in this environment (no system PHP interpreter).pnpm lint'sWASM-based
token_get_all(..., TOKEN_PARSE)syntax check covers the same 12 non-test PHP files(all
ok), and the fulltest:allrun requires and executes everytests/*.phpfile too — asyntax error there would have failed the run outright, and it didn't.
Not applicable to this repo: bumping
claude-workflow's plugin version and runningrule-delta.mjs— those steps are scoped to theclaude-workflowrepo only.🤖 Generated with Claude Code