Skip to content

Standardize documentation system: RFC, ADR, Spec, Design Doc, Roadmap#220

Merged
Skymly merged 1 commit into
mainfrom
feature/docs-system-standardization
Jul 7, 2026
Merged

Standardize documentation system: RFC, ADR, Spec, Design Doc, Roadmap#220
Skymly merged 1 commit into
mainfrom
feature/docs-system-standardization

Conversation

@Skymly

@Skymly Skymly commented Jul 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • Establish a formal documentation system with five document types (RFC, ADR, Spec, Design Doc, Roadmap), lifecycle management, archiving rules, and templates
  • Both human developers and AI agents must follow the standard defined in docs/DOCUMENTATION.md
  • Migrate existing 4 RFCs to docs/rfc/archive/ with unified frontmatter format
  • Create 7 ADRs covering existing architecture decisions (primitives over frameworks, Roslyn incremental generators, dual TFM, Core no MSDI, state transition table, composite parallel traversal, composite tree schema validation)
  • Create docs/spec/ and docs/design/ directories with templates and migration plan for existing pattern documentation
  • Update AGENTS.md with documentation system summary and Agent workflow conventions
  • Update CONTRIBUTING.md with documentation workflow table and directory guide
  • Add documentation checklist to PR template

Documentation type overview

Type Directory Purpose
RFC docs/rfc/ Design proposals and discussion
ADR docs/adr/ Architecture decision records (immutable)
Spec docs/spec/ Stable contracts (API surface, diagnostic IDs, invariants)
Design Doc docs/design/ Implementation details, trade-offs, known limitations
Roadmap docs/ROADMAP.md Feature and technical backlog

Plan = GitHub Issue (no separate document type).

New files

  • docs/DOCUMENTATION.md — authoritative documentation standard
  • docs/adr/ADR-001 through ADR-007 — architecture decision records
  • docs/adr/README.md, docs/rfc/README.md, docs/spec/README.md, docs/design/README.md — indexes
  • docs/rfc/_template.md, docs/adr/_template.md, docs/spec/_template.md, docs/design/_template.md — templates

Migrated files

  • docs/rfc/StateTransitionTable.md -> docs/rfc/archive/StateTransitionTable.md (unified frontmatter, Implemented)
  • docs/rfc/CompositeParallelTraversal.md -> docs/rfc/archive/CompositeParallelTraversal.md (unified frontmatter, Implemented)
  • docs/rfc/CompositeTreeSchemaValidation.md -> docs/rfc/archive/CompositeTreeSchemaValidation.md (unified frontmatter, Implemented)
  • docs/rfc/HierarchicalStateMachine.md -> docs/rfc/archive/HierarchicalStateMachine.md (unified frontmatter, Implemented)

Updated files

  • docs/README.md — reflect new directory structure
  • AGENTS.md — add documentation system summary section with Agent workflow conventions
  • CONTRIBUTING.md — add documentation workflow table and directory guide
  • .github/pull_request_template.md — add documentation checklist section

Migration plan for existing pattern docs

Existing docs/<PatternName>.md files (Strategy.md, Composite.md, etc.) will be gradually split into docs/spec/ + docs/design/. Migration can be done per-pattern, not required in one PR. See docs/spec/README.md for the migration plan table.

Test plan

  • dotnet build DesignPatterns.slnx -c Release — 0 warnings, 0 errors
  • dotnet test DesignPatterns.slnx -c Release — 657 tests passed, 0 failed
  • No code files changed (documentation-only PR)

Establish a formal documentation system with five document types, lifecycle management, archiving rules, and templates. Both human developers and AI agents must follow the standard.

- Add docs/DOCUMENTATION.md as the authoritative standard
- Create docs/adr/ with ADR-001 through ADR-007 covering existing architecture decisions
- Create docs/spec/ and docs/design/ directories with templates and migration plan
- Create standard templates for RFC, ADR, Spec, Design Doc
- Migrate existing 4 RFCs to docs/rfc/archive/ with unified frontmatter format
- Add README indexes for rfc/, adr/, spec/, design/ directories
- Update docs/README.md, AGENTS.md, CONTRIBUTING.md, and PR template
@Skymly Skymly merged commit 4a0c338 into main Jul 7, 2026
3 checks passed
@Skymly Skymly deleted the feature/docs-system-standardization branch July 7, 2026 15:02
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