requirements.cli.requirements_review_skill.review_prompt.names
Requirements index · View definition
Requirement
The review prompt MUST direct the reviewer never to rename or move a committed requirement, and to raise a wrong name as a design question instead. When the reviewer splits a committed requirement, the prompt MUST direct it to keep the requirement’s full name on the core obligation, to name the parts
<name>.<part>, and to list every new name.
Rationale
The requirement has four obligations on the review prompt:
- Never rename or move a committed requirement.
- Raise a wrong name as a design question.
- When splitting, keep the full name on the core obligation and name the parts
<name>.<part>. - List every new name.
tests/authoring_cli.rs#fn[the_review_prompt_never_renames_and_names_split_parts] covers all four. It uses review_prompt_between to take the bundled habeas-requirements/references/review-prompt.md text between **Mechanical changes:** and **Design questions:**. collapse joins whitespace, so line wrapping does not matter. assert_text then asserts that this section contains each of three phrases:
- “Never rename or move a committed requirement; if its name is wrong, raise it as a design question” covers the first two obligations.
- “When you split one, keep its full name on the core obligation and name the parts
<name>.<part>” covers the third. - “List every new name” covers the fourth.
The assertions are real contains checks that panic on a miss. The test also scopes them to the mechanical-changes section, where the instruction applies. The prompt text in the asset contains exactly these sentences. The requirement concerns prompt content, so a phrase-presence test is the appropriate check. No obligation or boundary is left untested.
Inputs
Tests
Input 2: outline tests/authoring_cli.rs fn[the_review_prompt_never_renames_and_names_split_parts]
- File:
tests/authoring_cli.rs - Selector:
fn[the_review_prompt_never_renames_and_names_split_parts] - Kind:
fn tests/authoring_cli.rs:4251–4263
// {test}`requirements.cli.requirements_review_skill.review_prompt.names`
#[test]
fn the_review_prompt_never_renames_and_names_split_parts() {
assert_text(
"mechanical changes",
&review_prompt_between("**Mechanical changes:**", "**Design questions:**"),
&[
"Never rename or move a committed requirement; if its name is wrong, raise it as a design question",
"When you split one, keep its full name on the core obligation and name the parts `<name>.<part>`",
"List every new name",
],
);
}
Other sources
Input 1: requirements selection requirements.cli.requirements_review_skill.review_prompt.names
requirements.cli.requirements_review_skill.review_prompt.names:md/requirements/cli.md:273–276
:::{req} requirements_review_skill.review_prompt.names
The review prompt MUST direct the reviewer never to rename or move a committed requirement, and to raise a wrong name as a design question instead. When the reviewer splits a committed requirement, the prompt MUST direct it to keep the requirement's full name on the core obligation, to name the parts `<name>.<part>`, and to list every new name.
:::