Skip to content

Migrate all pattern docs to spec/ + design/ split#221

Merged
Skymly merged 1 commit into
mainfrom
feature/docs-pattern-migration
Jul 8, 2026
Merged

Migrate all pattern docs to spec/ + design/ split#221
Skymly merged 1 commit into
mainfrom
feature/docs-pattern-migration

Conversation

@Skymly

@Skymly Skymly commented Jul 7, 2026

Copy link
Copy Markdown
Owner

Summary

Split all 7 pattern documentation files from docs/<PatternName>.md into docs/spec/<PatternName>.md (stable contracts) and docs/design/<PatternName>.md (implementation details), completing the migration plan established in PR #220.

Split structure

Each pattern is now documented in two files:

  • Spec (docs/spec/): API surface, diagnostic ID table, invariants, compatibility baseline, out-of-scope
  • Design Doc (docs/design/): Overview, design goals, implementation overview, design tradeoffs, ecosystem boundaries, known limitations

Migrated patterns

Pattern Spec Design Doc ADR
Strategy spec/Strategy.md design/Strategy.md
Chain of Responsibility spec/ChainOfResponsibility.md design/ChainOfResponsibility.md
Composite spec/Composite.md design/Composite.md ADR-006, ADR-007
Factory Registry spec/FactoryRegistry.md design/FactoryRegistry.md
Decorator spec/Decorator.md design/Decorator.md
Event Aggregator spec/EventAggregator.md design/EventAggregator.md
State Transition Table spec/StateTransitionTable.md design/StateTransitionTable.md ADR-005

Additional changes

  • Deleted 7 old docs/<PatternName>.md files
  • Fixed IFactoryRegistry IReadOnlyRegistry inheritance discrepancy (original doc said "does not inherit" but actual code does inherit IReadOnlyRegistry<TKey, TProduct>)
  • Updated docs/spec/README.md and docs/design/README.md with completed migration status and pattern index tables
  • Updated docs/README.md pattern index to point to spec/ + design/
  • Updated docs/DOCUMENTATION.md migration section to mark complete
  • Updated AGENTS.md pattern doc references to point to spec/ + design/
  • Updated root README.md documentation table
  • Updated docs/ROADMAP.md pattern doc references
  • Updated ADR-005/006/007 references (removed "pending" markers, removed old path references)
  • Updated archived RFC cross-references (StateTransitionTable.md, CompositeTreeSchemaValidation.md)

Test plan

  • dotnet build DesignPatterns.slnx -c Release — 0 warnings, 0 errors
  • No code files changed (documentation-only PR)
  • All cross-references verified — no broken links to deleted files

Split all 7 pattern documentation files from docs/<PatternName>.md into docs/spec/<PatternName>.md (stable contracts: API surface, diagnostic IDs, invariants, compatibility baseline) and docs/design/<PatternName>.md (implementation details: design goals, implementation overview, design tradeoffs, ecosystem boundaries, known limitations).

- Strategy: spec/Strategy.md + design/Strategy.md
- ChainOfResponsibility: spec/ChainOfResponsibility.md + design/ChainOfResponsibility.md
- Composite: spec/Composite.md + design/Composite.md (links ADR-006, ADR-007)
- FactoryRegistry: spec/FactoryRegistry.md + design/FactoryRegistry.md (fixed IReadOnlyRegistry inheritance discrepancy)
- Decorator: spec/Decorator.md + design/Decorator.md
- EventAggregator: spec/EventAggregator.md + design/EventAggregator.md
- StateTransitionTable: spec/StateTransitionTable.md + design/StateTransitionTable.md (links ADR-005, archived RFCs)
- Delete 7 old docs/<PatternName>.md files
- Update docs/spec/README.md and docs/design/README.md with completed migration status
- Update docs/README.md pattern index to point to spec/ + design/
- Update docs/DOCUMENTATION.md migration section to mark complete
- Update AGENTS.md pattern doc references
- Update README.md documentation table
- Update docs/ROADMAP.md pattern doc references
- Update ADR-005/006/007 references (remove 'pending' markers)
- Update archived RFC cross-references
@Skymly Skymly added the documentation Improvements or additions to documentation label Jul 7, 2026
@Skymly Skymly merged commit 1341cd7 into main Jul 8, 2026
3 checks passed
@Skymly Skymly deleted the feature/docs-pattern-migration branch July 8, 2026 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant