requirements.cli.requirements_review_skill.commit.design_session
Requirements index · View definition
Requirement
In a design session with no code to write, the
habeas-requirementsskill 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. Inassets/skills/habeas-requirements/SKILL.mdthat is step 5, “Commit”. - It extracts that step’s whitespace-collapsed text with
step. - It calls
assert_text_in_orderto 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
stephelper 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]
- File:
tests/authoring_cli.rs - Selector:
fn[the_requirements_skill_stops_after_the_commit_in_a_design_session] - Kind:
fn tests/authoring_cli.rs:4112–4126
// {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
requirements.cli.requirements_review_skill.commit.design_session:md/requirements/cli.md:222–225
:::{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.
:::