Skip to content

ci: validate RFC contents in check-rfc - #534

Open
filvecchiato wants to merge 4 commits into
mainfrom
ci/validate-rfc-document
Open

ci: validate RFC contents in check-rfc#534
filvecchiato wants to merge 4 commits into
mainfrom
ci/validate-rfc-document

Conversation

@filvecchiato

@filvecchiato filvecchiato commented Aug 28, 2026

Copy link
Copy Markdown
Collaborator

validate-rfc reads the RFC documents a pull request touches. A newly added RFC needs title and owner frontmatter, a ## Summary, a ## Motivation, and a section covering the approach; every touched RFC must be free of unedited template text and of TODO, TBD or FIXME. Edits to existing RFCs are exempt from the structural checks, several predate the template. Numbering is not checked, so an unnumbered draft passes and number-rfc.yml still assigns the number on merge. The diff runs against an explicit git merge-base.

Implementation is tracked on the RFC's issue, which carries a task per host alongside the Rust one, so an RFC document lands without rust/crates/truapi/ changes.

docs/rfcs/0001-template.md is the single template, in the shape the rfc skill drafts: Summary, Motivation, Approach, Trade-offs, Open questions. CONTRIBUTING.md, the skill, and the _index.md row for 0001 match it.

Three names for the design section are accepted — Detailed Design, Explanation, Approach — because the corpus holds all three. Settling on one is a separate cleanup.

Verified in a throwaway repo across nine cases: unnumbered, skill-shaped and Fellowship-shaped RFCs pass; missing frontmatter, missing sections, a verbatim template copy and a TODO fail; index-only and template-only changes are skipped.

@filvecchiato
filvecchiato requested a review from a team August 28, 2026 06:21
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.

2 participants