Skip to content

feat(guideline): Replace lintable/informational flags with enforcement enum#76

Draft
andmatei wants to merge 2 commits into
mainfrom
andmatei/guideline-enforcement-enum
Draft

feat(guideline): Replace lintable/informational flags with enforcement enum#76
andmatei wants to merge 2 commits into
mainfrom
andmatei/guideline-enforcement-enum

Conversation

@andmatei

@andmatei andmatei commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

What

Replaces the two boolean props (lintable, informational) with a single explicit enforcement enum field.

Enforcement values

Value Meaning UI
"rule" Spectral rule exists and is active "Lint rule ↗" link
"automatable" Automatable check, no rule yet -
"review" Needs agentic review (default) -
"advisory" Not enforced; context only -

andmatei added 2 commits June 17, 2026 17:21
…ls group

- Remove the Informational/Enforced badge from the guideline header; the
  `informational` field stays in the metadata.
- Add <Guideline.Details>: a collapsible "Details" accordion (overridable
  title) that authors wrap a guideline's examples + workflow in, so the rule's
  prose stays visible and the supporting detail collapses below it.
- <Guideline> renders its children verbatim — no child introspection.
- Show workflows site-wide (showWorkflows: true) now that they live inside the
  Details accordion.
- Restructure the dev fixtures page; wrap IPA-100's example in Details.
- Update the VS Code authoring snippets to wrap examples/workflow in
  <Guideline.Details> (and add a guideline-details snippet); use the 3-digit
  ID placeholder.
…t enum

Introduces an explicit `enforcement` field replacing the two boolean props:

- "rule"        — Spectral rule exists; renders "Lint rule ↗" link
- "automatable" — automatable check, no rule yet; renders "Lint rule pending" badge
- "review"      — needs agentic review (default)
- "advisory"    — not enforced, context only; renders "Advisory" badge

Removes the implicit "unlintable" state — every guideline's enforcement
mode is now self-describing with a single field.
@andmatei andmatei force-pushed the andmatei/guideline-enforcement-enum branch from 927e745 to 2b598b5 Compare June 17, 2026 16:38
@andmatei andmatei changed the title feat(guideline): replace lintable/informational flags with enforcement enum feat(guideline): Replace lintable/informational flags with enforcement enum Jun 17, 2026
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