Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/prompts/triage-distillery.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,10 @@ the exact failure mode this contract exists to prevent. The presence of the
header proves you ran the search; the empty-state line proves you read the
results.

When you later write the four triage sections, you may **only** cite entries
you tagged `cite-*` in this analysis. Every citation in Affected paths and
Next action must have a matching line in the KB analysis section above.
When you later write the four sections that follow KB analysis (Severity,
Category, Affected paths, Next action), you may **only** cite entries you
tagged `cite-*` in this analysis. Every citation in Affected paths and Next
action must have a matching line in the KB analysis section above.

### Example `## KB analysis` section

Expand Down
8 changes: 6 additions & 2 deletions .github/prompts/triage.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ Start this section with exactly one of these four tokens, wrapped in
backticks, with no bold, italics, quotes, period, or any other punctuation
attached to the token itself:

`critical` `high` `medium` `low`
```text
`critical` `high` `medium` `low`
```

After the backticked token, on the same line, an em-dash and a one-sentence
justification grounded in concrete user-visible impact to people running
Expand All @@ -36,7 +38,9 @@ Elasticsearch nodes, causing full cluster downtime.
Start with exactly one of these four tokens, wrapped in backticks, same
formatting rules as severity:

`bug` `feature` `chore` `docs`
```text
`bug` `feature` `chore` `docs`
```

Then an em-dash and one short sub-flavour sentence if useful (e.g.
"bug — molecule coverage gap", "chore — CI tuning"). No more.
Expand Down
28 changes: 28 additions & 0 deletions .markdownlint-cli2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Markdownlint config — narrow scope by intent.
#
# We turn off the default rule set and re-enable only the rules that
# CodeRabbit's CHILL profile flags on this repo. The goal is to catch
# the same nits CodeRabbit catches, locally at commit time, without
# generating a wall of false positives on the existing markdown that
# was written without lint discipline.
#
# Add more rules here as the need is demonstrated, not preemptively.
config:
default: false
MD040: true # fenced-code-language: opening fences must specify a language
MD046: # code-block-style: prefer fenced over indented
style: fenced

# Narrow scope for the initial rollout: lint files this PR has touched
# (the prompts directory). Expand to docs/, plugins/, tests/ in a follow-up
# cleanup PR — running --all-files today reports 24 pre-existing findings
# in unrelated files, which would block every commit if globbed in.
globs:
- ".github/prompts/**/*.md"

ignores:
- ".venv/**"
- "venv/**"
- "node_modules/**"
- ".ansible/**"
- ".claude/**"
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,11 @@ repos:
pass_filenames: false
additional_dependencies:
- ansible

- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.22.0
hooks:
- id: markdownlint-cli2
# Globs are driven entirely by .markdownlint-cli2.yaml so the hook
# has a consistent scope whether invoked by pre-commit or by hand.
pass_filenames: false
Loading