requirements.cli.requirements_review_skill.review_prompt.mechanical
Requirements index · View definition
Requirement
The review prompt MUST count the following as mechanical changes, which the reviewer makes in the revised text and never phrases as questions:
- splitting a compound requirement;
- choosing between MUST, SHOULD, and MAY when the draft’s intent is clear, defaulting to MUST and keeping a SHOULD or MAY the draft already chose;
- rewording vague or inconsistent terms, or an ambiguity, where only one resolution is sensible;
- adding an
{example}that pins an obligation down;- updating other requirements that a change makes stale.
Rationale
The subject has two obligations. The review prompt must count five kinds of change as mechanical: splitting a compound requirement, choosing MUST/SHOULD/MAY, rewording obvious wording problems, adding an {example}, and updating other requirements made stale. It must also say the reviewer makes these changes in the revised text and never phrases them as questions.
tests/authoring_cli.rs#fn[the_review_prompt_lists_the_mechanical_changes] checks both obligations. It reads only the prompt text between **Mechanical changes:** and **Design questions:**, using review_prompt_between. That helper takes the bundled references/review-prompt.md, collapses its whitespace, and panics if either marker is missing. Because the assertions are scoped to that span, the items can’t be satisfied by text in the design-questions section.
-
Items. The first
assert_textcall requires five phrases in that span:- “Split a compound requirement”;
- “Choose MUST, SHOULD, or MAY when the draft’s intent is clear. Default to MUST; keep a SHOULD or MAY the draft already chose”;
- “Fix wording whose resolution is obvious: vague terms, inconsistent terms, an ambiguity with one sensible reading”;
- “Add an
{example}where a concrete case pins an obligation down”; - “Update other requirements a change makes stale”.
These cover all five bullets, including the default-to-MUST rule, keeping a SHOULD or MAY the draft already chose, and the “only one sensible resolution” qualifier for rewording.
-
Handling. The second
assert_textcall requires “make them yourself in the revised text, and never phrase them as questions” in the same span. That covers the obligation that the reviewer makes these changes in the revised text and never phrases them as questions.
assert_text asserts text.contains(phrase) for each phrase with a failure message, so the assertions are real. The test is marked {test} for the subject. I found no other obligation or boundary case in the requirement text that lacks a test.
Inputs
Tests
Input 2: outline tests/authoring_cli.rs fn[the_review_prompt_lists_the_mechanical_changes]
- File:
tests/authoring_cli.rs - Selector:
fn[the_review_prompt_lists_the_mechanical_changes] - Kind:
fn tests/authoring_cli.rs:4230–4249
// {test}`requirements.cli.requirements_review_skill.review_prompt.mechanical`
#[test]
fn the_review_prompt_lists_the_mechanical_changes() {
assert_text(
"mechanical changes",
&review_prompt_between("**Mechanical changes:**", "**Design questions:**"),
&[
"Split a compound requirement",
"Choose MUST, SHOULD, or MAY when the draft's intent is clear. Default to MUST; keep a SHOULD or MAY the draft already chose",
"Fix wording whose resolution is obvious: vague terms, inconsistent terms, an ambiguity with one sensible reading",
"Add an `{example}` where a concrete case pins an obligation down",
"Update other requirements a change makes stale",
],
);
assert_text(
"mechanical changes",
&review_prompt_between("**Mechanical changes:**", "**Design questions:**"),
&["make them yourself in the revised text, and never phrase them as questions"],
);
}
Other sources
Input 1: requirements selection requirements.cli.requirements_review_skill.review_prompt.mechanical
requirements.cli.requirements_review_skill.review_prompt.mechanical:md/requirements/cli.md:262–271
:::{req} requirements_review_skill.review_prompt.mechanical
The review prompt MUST count the following as mechanical changes, which the reviewer makes in the revised text and never phrases as questions:
- splitting a compound requirement;
- choosing between MUST, SHOULD, and MAY when the draft's intent is clear, defaulting to MUST and keeping a SHOULD or MAY the draft already chose;
- rewording vague or inconsistent terms, or an ambiguity, where only one resolution is sensible;
- adding an `{example}` that pins an obligation down;
- updating other requirements that a change makes stale.
:::