Files
seaweedfs/seaweed-block/.github/pull_request_template.md
T
pingqiuandClaude Opus 5.5 d11c418451 ci: build sametokens once and tell a failed check from differing tokens
Review fold. The check ran the tool with go run, which takes the .go
arguments as more source files, so in CI every DOCS PR touching Go would
have been refused; the self-test hid it by building the tool itself. The
check now builds the tool into a temporary directory, the self-test runs
that same path, and a build or tool failure exits 2 (the check did not
run) instead of reporting changed tokens. In a file that uses cgo every
comment counts (the grouped import ("C") form dropped the preamble).
The template says DOCS may still change contract text, with the reviewer
as the gate; the script header names the go:embed limit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 00:25:13 -08:00

27 lines
1.4 KiB
Markdown

Feature: <roadmap item>
Machine/INV: <kind> / <INV rows>
Model: <spec + cfg + result, or NONE: reason>
Red-first: <commit + test that failed on the base, or NONE: reason>
Simplest: <the simplest version, and what this PR did not add>
<!--
The spec-trace check reads the lines above.
Machine/INV starts with exactly one kind:
IMPL <machine>.<transition> implements an existing transition; no new state, flag or reason.
FIX <INV-ID> the red test is that invariant failing on the base.
CHANGE <machine> new or changed states, transitions or invariants; the automaton
text and rows land with or before the code.
A fix without an invariant, or a guard term without a transition, is a CHANGE.
A PR that changes no behaviour uses one of these instead, checked against its files:
DOCS docs (not docs/spec), tests, and Go whose tokens are unchanged
(comments only; directive comments count as code).
TEST only tests, testdata and test helpers.
CI only .github/ (scripts/ ships install and deploy scripts).
DOCS may still change contract text (docs/design/invariants.md): the reviewer is the gate for that.
NONE needs a reason of at least 10 characters. Simplest is required when the PR
changes non-test Go under core/ or cmd/.
-->