Repository navigation
feat(conventions): add the design-for-change engineering standard - #898
Conversation
Add conventions/engineering/design-for-change.md: diff-checkable rules for change impact (information hiding, local reversals, feature slices, injection, deploy-varying configuration, addition over edit, pattern fit, DRY by knowledge, Clean Code as heuristics), each with its source. It cites the existing standards that already own a principle instead of restating them, and syncs through the engineering-standards component. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Restore the SOLID and DRY/SSOT sentence and the owner's elision in the intent quote, say which pattern-table cells are the catalog's judgment, and move Metz and Dodds into the reference-dont-duplicate sources now that design-for-change relies on them. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Point the Related section at the loop-lane convention's "When work stops for the owner" section on claude-code-plugins main. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed No security findings in PR #898 at head 766c94e. critical-findings: 0 The PR adds
What I checked:
I did not read the instruction exception register, because no standing rule was removed or narrowed. |
|
claude-review reviewed No findings. The PR adds What I checked myself, with
Unverified (author-claimed): the lint, Note: the |
No related issue: owner decision 2026-11-19 to record the on/off switch naming rule as a shared standard ## Summary Adds `standards/engineering/configuration-switch-naming.md`: a switch that turns off a default-on behavior is named `<THING>_DISABLED`, one that turns on a default-off behavior `<THING>_ENABLED`; values are `true`/`false`, unset means the default, and booleans inside code stay affirmative. Leaving a switch unset is then always the normal state, and no caller needs a `|| 'true'` fallback. ## Fix - New standard with three cited sources: NO_COLOR (negative name, default in absence; noted that it reads presence, which is why the value rule exists), the Claude Code environment variables page (mixed presence and boolean reading inside one tool, the hazard a single value rule removes), and the .NET Framework Design Guidelines (affirmative names for code booleans). - Synced through `engineering-standards`, as #898 did for design-for-change: manifest entry, index row, both `managed-files-guard` path lists, and the synced-file counts in `standards/README.md` and the component README. - Cross-doc reconciliation: `naming.md` points at the new file; `standards/engineering/README.md` lists it. No existing rule in `standards/` or `REVIEW.md` names switches, so nothing contradicts it. Blast radius: the next standards sync opens a PR in each target that lists `engineering-standards` under `managed`, adding `docs/standards/configuration-switch-naming.md` and the index row. ## Verification - `npm run lint:md`: 0 issues. - `bash distribution/sync-manifest.test.sh`: 0 FAIL. - `bash components/managed-files-guard/managed-files-guard.test.sh`: 0 FAIL. - `lychee --offline` on the changed markdown: 0 errors. - Pre-commit and pre-push lefthook: pass. - Each quoted source line was re-read on 2026-11-19. ## Related - #898 (design-for-change), the precedent for the file set. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01KeBVgaQE4QB75SPD3ky1jd --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
No related issue: owner direction 2026-10-27, quoted in the standard
Summary
The owner asked that a change of direction should not cascade into breakage or edit more than a handful of files, and that designs use vertical slices, the common GoF patterns, dependency injection, externalized config, DRY/SSOT and Clean Code where they make sense. Most of those principles already have an owner in this catalog, so this adds one standard holding only the parts nothing else covers: diff-checkable change-impact rules and a pattern-fit table. Everything else is cited, not restated.
Fix
conventions/engineering/design-for-change.md: the owner's words as its intent, nine rules (check, why, source), and a fit table for Strategy, Factory, Builder, Decorator and Mediator with when each is over-engineering. Rules point atarchitecture-and-design.md,review/code-design.md,code-organization.md,reference-dont-duplicate.md,simpler-code.mdandshareable-artifact-design.mdfor the principles they already own.engineering-standardscomponent: manifest entry, index row, bothmanaged-files-guardpath lists, and the synced-file count inconventions/README.mdand the component README. Every link in the file is absolute, as the synced files require.architecture-and-design.md#use-design-patterns-when-they-solve-a-real-problemto the new pattern table, and move Metz and Dodds from "further reading, not load-bearing" into thereference-dont-duplicate.mdsources, since rule 8 now relies on them and both pages were read.REVIEW.mdis unchanged: the review bars this standard relies on already live inconventions/review/code-design.md, and this file assigns no new severity.Blast radius: once merged, the next standards sync opens a PR adding
docs/standards/design-for-change.mdand the index row in each of the 10 targets that listengineering-standardsundermanaged.Verification
npm run lint:md: 0 issues.bash distribution/sync-manifest.test.sh: 0 FAIL (it needs the change committed; the first run, uncommitted, failed on worktree-versus-index bytes and on the file sort order, which is now fixed).bash components/managed-files-guard/managed-files-guard.test.sh: 0 FAIL.lychee --offlineon the changed files: 0 errors. Absolute-URL anchors, which the offline lane skips, were checked against the headings on this branch: all 13 resolve.spellchecker:offso its spelling stays as the owner wrote it.Related
## Relatedlinks on claude-code-pluginsmain. The link targets the stablemainURL, so its anchor resolves once that PR merges; the offline link lane skips external URLs, so nothing fails before then.🤖 Generated with Claude Code