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.commit.design_session

Requirements index · View definition

evidence Valid

Requirement

In a design session with no code to write, the habeas-requirements skill MUST direct agents to stop after the requirements commit.

Rationale

Obligation. In a design session with no code to write, the habeas-requirements skill must direct agents to stop after the requirements commit. This is one directive, and the skill text must place the stop instruction at the commit.

Test. tests/authoring_cli.rs#fn[the_requirements_skill_stops_after_the_commit_in_a_design_session] does the following:

  • It uses step_of("habeas-requirements", "all groups together") to find the commit step. In assets/skills/habeas-requirements/SKILL.md that is step 5, “Commit”.
  • It extracts that step’s whitespace-collapsed text with step.
  • It calls assert_text_in_order to require “then commit it” and then “In a design session with no code to write, stop here” in that same step. The helper panics if either phrase is missing or if they appear out of order.

Mapping.

  • The “design session with no code to write” condition is asserted by the phrase text.
  • The “stop here” directive is asserted by the same phrase.
  • The directive is anchored to the commit step and placed after the commit instruction. That matches “stop after the requirements commit”.
  • The skill file wraps the sentence across lines (“In a design session / with no code to write, stop here.”). The step helper collapses whitespace, so the match is robust to that wrapping.
  • If the sentence were deleted, moved to another step, or placed before the commit instruction, the test would fail.

Gaps. I found none. The requirement is a single textual directive and the test asserts it in context. The test is marked with {test} for the subject.

Inputs

Tests

Input 2: outline tests/authoring_cli.rs fn[the_requirements_skill_stops_after_the_commit_in_a_design_session]
// {test}`requirements.cli.requirements_review_skill.commit.design_session`
#[test]
fn the_requirements_skill_stops_after_the_commit_in_a_design_session() {
    assert_text_in_order(
        "commit step",
        &step(
            "habeas-requirements",
            step_of("habeas-requirements", "all groups together"),
        ),
        &[
            "then commit it",
            "In a design session with no code to write, stop here",
        ],
    );
}

Other sources

Input 1: requirements selection requirements.cli.requirements_review_skill.commit.design_session
:::{req} requirements_review_skill.commit.design_session
In a design session with no code to write, the `habeas-requirements` skill MUST direct agents to stop after the requirements commit.
:::