Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

requirements.cli.requirements_review_skill.review_prompt.no_questions

Requirements index · View definition

evidence Valid

Requirement

The review prompt MUST tell the reviewer that a report with only wording changes means it has not looked hard enough for gaps and conflicts. If the reviewer looks again and still finds no design questions, the prompt MUST direct it to say so explicitly.

Rationale

The requirement has two obligations. The review prompt must say that a report with only wording changes means the reviewer hasn’t looked hard enough for gaps and conflicts. It must also direct the reviewer, if it still finds no design questions after looking again, to say so explicitly.

tests/authoring_cli.rs#fn[the_review_prompt_rejects_a_report_with_only_wording_changes] is marked {test} for the subject. It takes the ## Report section of the real prompt file, assets/skills/habeas-requirements/references/review-prompt.md. It does this through the review_prompt() and section() helpers. section() collapses whitespace, so phrases that wrap across lines in the prompt still match.

The test then uses assert_text_in_order to assert three phrases, each after the previous one:

  • “A report with only wording changes means you have not looked hard enough for gaps and for conflicts” covers the first obligation.
  • “Look again” covers the instruction to look again.
  • “If you still find no design questions, write "No design questions."” covers the second obligation, the explicit statement.

The ordering assertion matches the requirement’s sequence: wording-only report, then look again, then say so explicitly. The prompt text says “gaps and for conflicts with existing requirements”, which fits the asserted phrase.

The test has no conditional behavior to miss. The obligations concern the content of a static prompt, and the test checks that content directly. I found no further scenarios or boundaries in the text that need tests.

Inputs

Tests

Input 2: outline tests/authoring_cli.rs fn[the_review_prompt_rejects_a_report_with_only_wording_changes]
// {test}`requirements.cli.requirements_review_skill.review_prompt.no_questions`
#[test]
fn the_review_prompt_rejects_a_report_with_only_wording_changes() {
    assert_text_in_order(
        "report",
        &section(review_prompt(), "## Report"),
        &[
            "A report with only wording changes means you have not looked hard enough for gaps and for conflicts",
            "Look again",
            "If you still find no design questions, write \"No design questions.\"",
        ],
    );
}

Other sources

Input 1: requirements selection requirements.cli.requirements_review_skill.review_prompt.no_questions
:::{req} requirements_review_skill.review_prompt.no_questions
The review prompt MUST tell the reviewer that a report with only wording changes means it has not looked hard enough for gaps and conflicts. If the reviewer looks again and still finds no design questions, the prompt MUST direct it to say so explicitly.
:::
Input 3: outline tests/authoring_cli.rs fn[section]
/// The collapsed body of a Markdown section, from the line after `heading` to
/// the next heading of the same or a higher level outside a code fence.
// {cite}`habeas:util`
fn section(raw: &str, heading: &str) -> String {
    let level = heading.chars().take_while(|c| *c == '#').count();
    let mut lines = raw.lines().skip_while(|line| *line != heading);
    assert!(lines.next().is_some(), "no section {heading:?}");
    let mut fence: Option<usize> = None;
    let mut body = Vec::new();
    for line in lines {
        let ticks = line.trim_start().chars().take_while(|c| *c == '`').count();
        match fence {
            Some(open) if ticks >= open && line.trim().chars().all(|c| c == '`') => fence = None,
            Some(_) => {}
            None if ticks >= 3 => fence = Some(ticks),
            None => {
                let hashes = line.chars().take_while(|c| *c == '#').count();
                if hashes > 0 && hashes <= level && line[hashes..].starts_with(' ') {
                    break;
                }
            }
        }
        body.push(line);
    }
    collapse(&body.join("\n"))
}