Skip to content

feat(docs): generate service reference from the plugin registry (#364) - #374

Merged
scttfrdmn merged 1 commit into
mainfrom
feat/364-generate-service-reference
Jul 26, 2026
Merged

scttfrdmn merged 1 commit into
mainfrom
feat/364-generate-service-reference

Conversation

@scttfrdmn

Copy link
Copy Markdown
Owner

Second PR of the v0.76.0 documentation-reliability milestone. Root-cause fix for the drift behind #363.

What

cmd/gen-service-reference boots the default plugin registry and rewrites the coverage matrix in docs/services.md between marker comments — listing all 63 registered plugins with their wire protocol. Everything outside the markers (the hand-written per-service operation / CloudFormation / cost detail) is left untouched.

Why this design

  • The old table was hand-maintained and had drifted to 37 while the registry has 63. Generation makes the count and plugin list impossible to drift.
  • I deliberately scoped the generated columns to what's machine-truthful (name + protocol). CFN support and per-operation detail live in the hand-written sections below the matrix — I did not destroy that content or replace it with guesses (per the count-and-list scope agreed for this issue; full per-operation generation remains a tracked follow-up).

Guardrails

  • Per-plugin metadata lives in a map the generator enforces is complete in both directions — a registered plugin with no entry, or an entry naming no plugin, fails generation.
  • //go:generate directive on RegisterDefaultPlugins; make docs-reference / make docs-reference-check.
  • New CI job Service Reference Drift runs make docs-reference-check on every PR.

Verification

go generate is idempotent; the drift guard fails when a plugin lacks metadata (tested); build + lint + full test suite clean.

Closes #364. Part of v0.76.0.

…n registry (#364)

Root-cause fix for the doc drift behind #363 (README said 63 plugins, the
Service Reference said 37 and called itself authoritative).

- cmd/gen-service-reference boots the default registry and rewrites the coverage
  matrix in docs/services.md between BEGIN/END marker comments, listing all 63
  registered plugins with their protocol. Content outside the markers -- the
  hand-written per-service operation/CFN/cost detail -- is left untouched.
- Per-plugin display name/protocol come from a maintained metadata map; the
  generator fails if a registered plugin has no entry or an entry names no
  plugin, so new plugins must be documented as part of adding them.
- go:generate directive on RegisterDefaultPlugins; make docs-reference /
  docs-reference-check targets; a 'Service Reference Drift' CI job runs the
  check on every PR.

Verified: go generate is idempotent, the drift guard fails when a plugin lacks
metadata, build/lint/test clean.

Closes #364.
@codecov

codecov Bot commented Jul 26, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 71 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
cmd/gen-service-reference/main.go 0.00% 71 Missing ⚠️

📢 Thoughts on this report? Let us know!

@scttfrdmn
scttfrdmn merged commit 322ac4a into main Jul 26, 2026
10 of 11 checks passed
@scttfrdmn
scttfrdmn deleted the feat/364-generate-service-reference branch July 26, 2026 06:18
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.

docs: generate service reference (and counts) from the plugin registry + CI drift guard

1 participant