Skip to content

feat(conventions): add the design-for-change engineering standard - #898

Merged
kyle-sexton merged 4 commits into
mainfrom
docs/design-for-change
Oct 27, 2026
Merged

kyle-sexton merged 4 commits into
mainfrom
docs/design-for-change

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

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

  • Add 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 at architecture-and-design.md, review/code-design.md, code-organization.md, reference-dont-duplicate.md, simpler-code.md and shareable-artifact-design.md for the principles they already own.
  • Sync it through the engineering-standards component: manifest entry, index row, both managed-files-guard path lists, and the synced-file count in conventions/README.md and the component README. Every link in the file is absolute, as the synced files require.
  • Cross-doc reconciliation: link architecture-and-design.md#use-design-patterns-when-they-solve-a-real-problem to the new pattern table, and move Metz and Dodds from "further reading, not load-bearing" into the reference-dont-duplicate.md sources, since rule 8 now relies on them and both pages were read.
  • REVIEW.md is unchanged: the review bars this standard relies on already live in conventions/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.md and the index row in each of the 10 targets that list engineering-standards under managed.

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 --offline on the changed files: 0 errors. Absolute-URL anchors, which the offline lane skips, were checked against the headings on this branch: all 13 resolve.
  • Pre-commit lefthook (editorconfig, typos, markdownlint, gitleaks): pass. The verbatim quote is fenced with spellchecker:off so its spelling stays as the owner wrote it.
  • Each cited source was read on 2026-10-27. The ACM DOI page returns 403, so Parnas was confirmed through Crossref metadata and the paper's text. 12-Factor III and Martin's "Principles of OOD" carry no date, so the file gives none. Pattern-table cells with no source are labeled as the catalog's judgment.

Related

🤖 Generated with Claude Code

kyle-sexton and others added 2 commits October 27, 2026 15:57
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]>
@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Oct 27, 2026
kyle-sexton and others added 2 commits October 27, 2026 16:00
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]>
@kyle-sexton kyle-sexton removed the do-not-merge Hard merge gate: do not merge while applied. label Oct 27, 2026
@kyle-sexton
kyle-sexton marked this pull request as ready for review October 27, 2026 20:17
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-10-27T20:17:57.612932Z 766c94e Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@kyle-sexton
kyle-sexton enabled auto-merge (squash) October 27, 2026 20:18
@github-actions

Copy link
Copy Markdown

claude-security-review reviewed 766c94e50f30d7ee1f1a1a8cbd7fcbda0d20eb91: 0 finding(s), 0 as inline comments.

No security findings in PR #898 at head 766c94e.

critical-findings: 0

The PR adds conventions/engineering/design-for-change.md and wires it into the synced engineering-standards set. It touches 10 files in total:

  • Prose: the new standard, two READMEs, architecture-and-design.md and reference-dont-duplicate.md.
  • Index: standards-index.md.
  • Distribution wiring: one added line in distribution/sync-manifest.yml, and one added path in each of the two managed-files-guard workflows' on: paths: lists.

What I checked:

  • Trust controls: none of the listed controls is touched. The diff does not change trusted-actor lists, token scope or broker rules, the kill switch, merge holds, or .github/actions/*. The managed-files-guard edits only add docs/standards/design-for-change.md to the guarded path list, which widens the guard's coverage and loosens nothing.
  • Instruction surface: nothing is deleted, narrowed or softened. The only changes to existing text are an added cross-link in architecture-and-design.md and moving two citations in reference-dont-duplicate.md from "further reading" to the sources list.
  • Plugin manifests: no plugin.json or marketplace.json is changed, so there are no manifest <field> lines.
  • Sync: the new file is prose, mapped one-to-one to docs/standards/design-for-change.md in the existing engineering-standards component. It adds no new target, executable content or credential handling.
  • Embedded text: the new document quotes the owner's direction. It is descriptive and contains no instructions aimed at the review lane.

I did not read the instruction exception register, because no standing rule was removed or narrowed.

@github-actions

Copy link
Copy Markdown

claude-review reviewed 766c94e50f30d7ee1f1a1a8cbd7fcbda0d20eb91: 0 finding(s), 0 as inline comments.

No findings. The PR adds conventions/engineering/design-for-change.md and wires it into the engineering-standards sync, and I found nothing a reviewer should block on.

What I checked myself, with grep, sed and the diff:

  • Sync wiring: the file appears in the sync-manifest.yml entry, the standards-index.md row, both managed-files-guard path lists, and the "eight" counts in conventions/README.md and the component README. The new entry sorts before deterministic-work-execution in all four lists ("des" < "det"). The grep for other lists of synced files turned up no other place that enumerates the synced standards. The two "seven" hits in sync-manifest.yml (lines 797 and 808) refer to something else.
  • Anchors: I confirmed every repo-internal anchor in the new file against the target headings, including the absolute-URL ones. These are in architecture-and-design.md, code-design.md, code-organization.md, shareable-artifact-design.md, simpler-code.md and reference-dont-duplicate.md. All resolve.
  • Claims about other files: the shotgun-surgery carve-out in code-design.md#responsibility-and-cohesion exists as cited. So does the "a command does not call another command" rule in architecture-and-design.md#command-orchestration-and-consistency-boundaries that the Mediator row relies on. The Hollywood Principle section does name dependency injection as the default over a service locator.
  • Absolute links: the synced file has no relative links. The one relative link, from architecture-and-design.md to the new file, sits in a file that is not synced.
  • Path-scoped rules: the only rule file, .claude/rules/pr-body-contract.md, covers the PR body. The body opens with No related issue: <reason> and has all four sections, and no line starts with "committer".
  • Closing issue: none; the PR states no related issue.
  • Plugin manifests: none changed.

Unverified (author-claimed): the lint, sync-manifest.test.sh and managed-files-guard.test.sh results, the lychee run, and the reading of the external sources. I did not run them or fetch the external quotes (Parnas, Martin, Bogard, Fowler, 12-Factor, Metz).

Note: the ## Related link in the new file targets an anchor, #when-work-stops-for-the-owner, that only exists once claude-code-plugins#10516 merges. The PR body states this. The offline link lane skips external URLs, so nothing fails in the meantime.

@kyle-sexton
kyle-sexton merged commit 6ae9e34 into main Oct 27, 2026
90 of 92 checks passed
@kyle-sexton
kyle-sexton deleted the docs/design-for-change branch October 27, 2026 20:24
kyle-sexton added a commit that referenced this pull request Nov 19, 2026
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant