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.context

Requirements index · View definition

evidence Valid

Requirement

The review prompt MUST direct the reviewer to read the habeas skill for directive syntax. It MUST also direct the reviewer to read the drafts as uncommitted edits to the book, the chapter around each requirement in the group, and every requirement that the group cites or overlaps.

Rationale

The requirement has four obligations for the review prompt. It must direct the reviewer to read the habeas skill for directive syntax. It must also direct the reviewer to read the drafts as uncommitted book edits, the chapter around each group requirement, and every requirement the group cites or overlaps.

tests/authoring_cli.rs#fn[the_review_prompt_reads_the_syntax_drafts_chapter_and_related_requirements] loads the real prompt file through review_prompt(). That helper reads references/review-prompt.md from the habeas-requirements skill. The test collapses whitespace so phrases match across wrapped lines. assert_text then asserts that the prompt contains three phrases:

  • Syntax: “Read the habeas skill’s SKILL.md first for the directive syntax” covers the habeas skill for directive syntax.
  • Drafts: “The drafts are uncommitted edits in the book: git diff on the book’s source directory shows them” covers reading the drafts as uncommitted edits.
  • Chapter and related requirements: “Read the surrounding chapter and every requirement the group cites or overlaps” covers the chapter and the cited or overlapping requirements.

assert_text fails with a message if any phrase is missing, so the assertions do enforce the three directives. I confirmed with ripgrep that the “surrounding chapter” sentence appears in the prompt under the section Requirement group review.

The chapter obligation says “the chapter around each requirement in the group”. The test phrase says only “surrounding chapter”, which is a reasonable rendering of that obligation. The requirement fixes no exact wording, and a phrase-presence test is an appropriate way to check prompt content.

Inputs

Tests

Input 2: outline tests/authoring_cli.rs fn[the_review_prompt_reads_the_syntax_drafts_chapter_and_related_requirements]
// {test}`requirements.cli.requirements_review_skill.review_prompt.context`
#[test]
fn the_review_prompt_reads_the_syntax_drafts_chapter_and_related_requirements() {
    assert_text(
        "review prompt",
        &collapse(review_prompt()),
        &[
            "Read the habeas skill's `SKILL.md` first for the directive syntax",
            "The drafts are uncommitted edits in the book: `git diff` on the book's source directory shows them",
            "Read the surrounding chapter and every requirement the group cites or overlaps",
        ],
    );
}

Other sources

Input 1: requirements selection requirements.cli.requirements_review_skill.review_prompt.context
:::{req} requirements_review_skill.review_prompt.context
The review prompt MUST direct the reviewer to read the `habeas` skill for directive syntax. It MUST also direct the reviewer to read the drafts as uncommitted edits to the book, the chapter around each requirement in the group, and every requirement that the group cites or overlaps.
:::