Skip to content

bug_markdown: refine Closes, reproducer, and workflow guidance - #889

Merged
rgushchin merged 1 commit into
mainfrom
feat/bug-markdown-closes-and-workflow
Nov 12, 2026
Merged

rgushchin merged 1 commit into
mainfrom
feat/bug-markdown-closes-and-workflow

Conversation

@rgushchin

Copy link
Copy Markdown
Member

Summary

Refine the generated bug Markdown prompt (/bug/<bugid>.md and /api/bug/markdown) and suggested trailer block:

  • Use Closes: instead of Link: after Reported-by:: Matches upstream Linux guidance in Documentation/process/submitting-patches.rst and Documentation/process/5.Posting.rst (while noting Link: for partial fixes), and adds Closes alongside Link in Sashiko's permitted git trailer lists (projects/sashiko/prompts/maintainers/general.md, CONTRIBUTING.md, GEMINI.md).
  • Distilled dmesg vs. reproducer note below ---: Instructs patch authors to include the relevant distilled part of dmesg or crash/sanitizer output in the commit message whenever possible to prove that the bug is reproducible in real life; when no such output can be included in the commit message and a working reproducer exists, instructs noting the availability of the reproducer attached to the bug report only below the --- separator line so it is omitted from the merged commit message.
  • Critical report verification & target fixes branch: Instructs evaluating the bug report's root-cause analysis and any suggested fix sketch critically (stopping and reporting concrete code evidence if the scenario is impossible rather than adding an unnecessary defensive check) and basing fixes on the subsystem's fixes tree (net, bpf, or mainline) rather than -next unless the introducing commit only exists in -next.
  • Gate public Sashiko DB mutations & upstream submissions on explicit user request: Explicitly instructs agents not to claim/assign bugs, post reproducers/comments/proposed fixes, or change bug state in the public Sashiko database (sashiko-cli ... bugs action), nor run git send-email, b4 send, or open upstream PRs unless explicitly requested by the user, and to present the formatted patch and ./scripts/get_maintainer.pl recipients to the user for review.

Verification

  • make check-pr
  • sashiko review --project sashiko --agent HEAD ("status": "clean", 0 findings)

Update the generated bug Markdown prompt and suggested trailer block:

- Emit Closes instead of Link after Reported-by, matching upstream
  Linux guidance in submitting-patches.rst and 5.Posting.rst (while
  noting Link for partial fixes).
- Instruct patch authors to include the relevant distilled part of
  dmesg or crash output in the commit message whenever possible to
  prove that the bug is reproducible in real life; when no such output
  can be included and a working reproducer exists, mention the
  availability of the reproducer attached to the bug report only below
  the --- separator line so it is omitted from the merged commit.
- Instruct evaluating the report critically (stopping with concrete
  code evidence if the scenario is impossible rather than adding a
  pointless defensive check, and not blindly copying a fix sketch from
  the report) and basing fixes on the subsystem fixes tree rather than
  -next unless the introducing commit only exists in -next.
- Gate all public Sashiko database mutations (claiming bugs, posting
  reproducers, comments, or proposed fixes, or changing bug state) and
  upstream patch submissions (git send-email, b4 send, PRs) on an
  explicit user request, presenting the formatted patch and
  get_maintainer.pl recipients to the user for review.

Signed-off-by: Roman Gushchin <roman@kernel.org>
@sashiko-bot

sashiko-bot Bot commented Nov 12, 2026

Copy link
Copy Markdown

Sashiko review

✓ No issues found across 1 commit.

Full review log on sashiko.sashiko.dev

@rgushchin
rgushchin merged commit fe4b777 into main Nov 12, 2026
1 check passed
@rgushchin
rgushchin deleted the feat/bug-markdown-closes-and-workflow branch November 16, 2026 19:12
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