Files
seaweedfs/seaweed-block/.github/pull_request_template.md
T

44 lines
2.7 KiB
Markdown

Feature: <roadmap item>
Machine/INV: <kind> / <INV rows>
Model: <Module.Action; OtherModule.Action, or NONE (pure function of Module) for mapped files>
Red-first: <commit + test that failed on the base, or NONE: reason>
Simplest: <the simplest version, and what this PR did not add>
Five questions, answered in plain words before review:
Serves: <which statement of the specification or the docs this change serves>
Decided by: <whose decision this is, and where it is recorded>
Layer use: <conventional: the layer below is used the usual way; or the deviation>
Deviation buys: <what the deviation buys, measured; or none: no deviation>
Weakens: <which existing guarantee this weakens (its cost, the way it fails, a mode it leaves out, whether its proof runs on the production type), or none and why>
Facts: <per fact this change adds or changes, its one placement class: DURABLE; MEMORY-REBUILT-FAST (its rebuild cost, bounded by the change since the last durable point, or constant); or MEMORY-MAY-BE-LOST (its loss only delays or repeats bounded idempotent work, and resets to refuse). Also where it lives and what a restart and an abort do. Or none -- and why>
<!--
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/.
Weakens and Facts are required on every PR that changes product code: a review
is refused without them. "none" needs its reason.
A fact that fits none of the three placement classes is a finding: the review
is refused.
Mapped files in .github/model-code-trace.tsv require a listed Module.Action
or NONE (pure function of Module). Separate citations for multiple modules
with semicolons. Unmapped files retain the existing Model trace policy.
-->