Repository navigation
feat(docs): prose says only what the code cannot - #284
Merged
Merged
Conversation
Docs sync only ever added prose. The rule gives it the other direction: one home per fact, and a three-question test for what earns a sentence. No per-repo copies: the rule is read from this checkout by the skills that apply it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
"Document what it introduces" asked for prose on every change, so guides grew with each PR and restated the code. Failure prevented: a fact copied into a second doc that the next change misses. Co-Authored-By: Claude Opus 5.5 <[email protected]>
A should-fix on the line, so address-review adopts it and the restatement is removed before merge. Failure prevented: over-documentation passing review because nothing counted it as a defect. Co-Authored-By: Claude Opus 5.5 <[email protected]>
doc-weight.mjs reports the doc share of changed lines on main and the docs touched most often. The audit journals the number and cleans up the hot docs against the rule. Failure prevented: doc churn growing unseen. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
|
🤖 no session running recent dispatchesWritten by the sydevs dispatcher. Sessions never edit this comment. |
This was referenced Nov 20, 2026
Contributor
|
The session for review-pr did not finish after 3 attempts. I have stopped retrying. A 🤖 sydevs dispatcher |
This was referenced Nov 20, 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/documentation.md; review flags breaches asshould-fix; the audit weighs docs.Change outline
The rule —
docs/documentation.md(new), story indocs/why.md#docs-say-what-the-code-cannotOne home per fact. Each sentence takes a three-question test:
A never-delete list guards what auto-fix must not touch:
⚠lines, sync pointers and#NNN, commands,embedding.mdandCHANGELOG.md, a condition list without its replacement pointer, rejected alternatives.No per-repo copies, unlike
code-comments.md: a copy is a second home for a fact. Only skills apply this rule, and they read the claude-workflow checkout.Where it bites
finalize-prstep 5review-prlens 1should-fixon its line.address-reviewadopts it as it does any critic thread, so it is fixed before merge.audit-codehygiene, docs vs realitydoc-weight.mjsper repo, journals the number, and opens a doc-fix PR against the most-touched docs.workflow/lib/doc-weight.mjs(new)Doc share of changed lines over first-parent commits on
origin/main, excluding lockfiles, binaries and each repo'sgeneratedFiles; plus the most-touched docs and the heaviest commits. Local git only. Exits 1 only when git cannot answer.Preview
No preview surface — prose and one lib script.
Test results
claude plugin validate ./workflow --strict,node --test workflow/lib/*.test.mjs— 147 pass (4 new)rule-delta.mjs --base origin/main workflow/skills: 92 → 92, no directive disappeareddoc-weight.mjsagainst SahajAtlasWordpress, 10 weeks:DOC WEIGHT 9%, rootAGENTS.mdtouched in 30 of 55 commitsNotes for reviewer
why.md.securityReview.triggerPattern(skills,workflow/lib). Noallowed-toolschange; the script runsgit logandgit rev-parseread-only and reads.claude/workflow.json.AGENTS.mdguides, to test the rule on real text before the loop enforces it.Detail
Sample behind the change (last 40 merged PRs per repo, 2026-11-19): docs touched in 22–27 of 40 PRs in each product repo. Most-edited guides: WordPress
AGENTS.md21/40; SahajCloudsrc/AGENTS.mdandscripts/AGENTS.md8/40 each (largely file listings); SahajCloud#1203 explained a timer constant's restart logic indocs/rules/clients.md.Rejected: stripping only mechanism and keeping condition lists. Feature and fix PRs change conditions by definition, so most of the churn would stay.
Rejected: a new audit angle. That is a
loop-config.jsonchange, and docs vs reality already owns docs.🤖 Generated with Claude Code