requirements.cli.requirements_review_skill.review_prompt.report
Requirements index · View definition
Requirement
The review prompt MUST give a report template with these sections:
- the revised text of every requirement in the group, including new split requirements, as complete directives ready to paste;
- the revised text of requirements outside the group that the changes affect;
- the mechanical changes, including new full names and added examples;
- the design questions.
Rationale
The requirement has one obligation: the review prompt MUST give a report template with four sections. Those are the revised text of every group requirement (complete directives, including new split requirements), the revised text of affected requirements outside the group, the mechanical changes (including new full names and added examples), and the design questions.
tests/authoring_cli.rs#fn[the_review_prompt_gives_a_report_template] is marked {test} for this requirement. It takes the ## Report section of references/review-prompt.md using the helpers section, review_prompt and collapse. section stops at the next same-level heading outside a code fence, so the template inside the ```text fence is included. collapse joins wrapped lines, so the phrase “as complete directives ready to paste, including new split requirements” matches across the line break in the source. assert_text_in_order then fails if any of these is missing or out of order:
### Revised text, followed by the phrase “as complete directives ready to paste, including new split requirements”. This covers the first bullet, including the “complete directives” and “new split requirements” clauses.### Edits outside the group. This covers the second bullet.### Mechanical changes, followed by “list new full names and added examples”. This covers the third bullet, including its two named contents.### Design questions. This covers the fourth bullet.
I confirmed the prompt’s ## Report section contains exactly this template. Removing a section, dropping the “complete directives” or “split requirements” wording, or dropping the “new full names and added examples” wording would fail the test.
One weak point: for the outside-group section, the test asserts only the heading, not the phrase “revised text of other requirements”. The requirement asks for a template section, and the heading is that section, so this is not a gap. The related no_questions behavior is a separate requirement with its own test.
Inputs
Tests
Input 2: outline tests/authoring_cli.rs fn[the_review_prompt_gives_a_report_template]
- File:
tests/authoring_cli.rs - Selector:
fn[the_review_prompt_gives_a_report_template] - Kind:
fn tests/authoring_cli.rs:4354–4369
// {test}`requirements.cli.requirements_review_skill.review_prompt.report`
#[test]
fn the_review_prompt_gives_a_report_template() {
assert_text_in_order(
"report",
§ion(review_prompt(), "## Report"),
&[
"### Revised text",
"as complete directives ready to paste, including new split requirements",
"### Edits outside the group",
"### Mechanical changes",
"list new full names and added examples",
"### Design questions",
],
);
}
Other sources
Input 1: requirements selection requirements.cli.requirements_review_skill.review_prompt.report
requirements.cli.requirements_review_skill.review_prompt.report:md/requirements/cli.md:317–325
:::{req} requirements_review_skill.review_prompt.report
The review prompt MUST give a report template with these sections:
- the revised text of every requirement in the group, including new split requirements, as complete directives ready to paste;
- the revised text of requirements outside the group that the changes affect;
- the mechanical changes, including new full names and added examples;
- the design questions.
:::