Skip to content

feat: implement RFC-0006 — doctor command; complete RFC-0001 spec - #10

Merged
classx merged 1 commit into
mainfrom
accepted-rfc-6-01
Apr 15, 2026
Merged

feat: implement RFC-0006 — doctor command; complete RFC-0001 spec#10
classx merged 1 commit into
mainfrom
accepted-rfc-6-01

Conversation

@classx

@classx classx commented Apr 15, 2026

Copy link
Copy Markdown
Owner

Add semantic health diagnostics for the RFC project, completing all 13 commands defined in RFC-0001.

New command:

  • doctor [--stale-days N] — analyze project-wide RFC health with 6 diagnostic checks:
    • D1: code drift (linked files modified after RFC acceptance) [error]
    • D2: no implementation (accepted RFC with empty links) [warning]
    • D3: dead links (linked files that don't exist) [error]
    • D4: stale drafts (not modified for N+ days) [warning]
    • D5: unresolved dependencies (accepted depends on non-accepted) [warning]
    • D6: circular dependencies (DFS cycle detection) [error]

Exit code: 1 if errors found, 0 for warnings-only or clean.

Promotes RFC-0001 to implemented — all 13 specified commands are now available: init, new, list, view, edit, status, set, link, unlink, deps, check, reindex, doctor.

Tests: 16 new integration tests (95 total, all passing)

Implements: RFC-0006

Add semantic health diagnostics for the RFC project, completing all 13
commands defined in RFC-0001.

New command:
- `doctor [--stale-days N]` — analyze project-wide RFC health with
  6 diagnostic checks:
  - D1: code drift (linked files modified after RFC acceptance) [error]
  - D2: no implementation (accepted RFC with empty links) [warning]
  - D3: dead links (linked files that don't exist) [error]
  - D4: stale drafts (not modified for N+ days) [warning]
  - D5: unresolved dependencies (accepted depends on non-accepted) [warning]
  - D6: circular dependencies (DFS cycle detection) [error]

Exit code: 1 if errors found, 0 for warnings-only or clean.

Promotes RFC-0001 to implemented — all 13 specified commands are now
available: init, new, list, view, edit, status, set, link, unlink,
deps, check, reindex, doctor.

Tests: 16 new integration tests (95 total, all passing)

Implements: RFC-0006
@classx
classx merged commit 705ccd1 into main Apr 15, 2026
1 check passed
@classx
classx deleted the accepted-rfc-6-01 branch April 15, 2026 07:06
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