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.agreement.no_user

Requirements index · View definition

evidence Valid

Requirement

The habeas-requirements skill MUST direct an agent that cannot ask the user in the session to stop, leaving the drafts uncommitted, and report the revised drafts and the design questions.

Rationale

The requirement has one obligation. The habeas-requirements skill must direct an agent that cannot ask the user to stop, leave the drafts uncommitted, and report the revised drafts and the design questions. The requirement is about the skill’s text, and the project tests skill guidance by asserting that required phrases appear in the bundled skill.

tests/authoring_cli.rs#fn[the_requirements_skill_stops_and_reports_when_it_cannot_ask_the_user] is marked {test} for the requirement. It calls assert_phrases("habeas-requirements", ...), which runs assert_text over bundled_skill. bundled_skill collapses whitespace, so a phrase that wraps across lines still matches. The test requires the sentence “If you cannot ask the user in this session, stop, leave the drafts uncommitted, and report them with the design questions”.

In assets/skills/habeas-requirements/SKILL.md, that sentence closes the step 4 gate. By then the drafts are the revised drafts presented to the user, and the same step covers the design questions the review returned. The sentence names each part of the requirement:

  • the condition (the agent cannot ask the user);
  • stopping;
  • leaving the drafts uncommitted;
  • reporting the drafts together with the design questions.

If the sentence were removed or reworded, the assertion would fail. The test therefore checks every clause of the obligation.

I found no further input classes. The obligation has a single condition and a single outcome. The test does not check that the sentence sits in step 4, but the requirement does not specify a location.

Inputs

Tests

Input 2: outline tests/authoring_cli.rs fn[the_requirements_skill_stops_and_reports_when_it_cannot_ask_the_user]
// {test}`requirements.cli.requirements_review_skill.agreement.no_user`
#[test]
fn the_requirements_skill_stops_and_reports_when_it_cannot_ask_the_user() {
    assert_phrases(
        "habeas-requirements",
        &[
            "If you cannot ask the user in this session, stop, leave the drafts uncommitted, and report them with the design questions",
        ],
    );
}

Other sources

Input 1: requirements selection requirements.cli.requirements_review_skill.agreement.no_user
:::{req} requirements_review_skill.agreement.no_user
The `habeas-requirements` skill MUST direct an agent that cannot ask the user in the session to stop, leaving the drafts uncommitted, and report the revised drafts and the design questions.
:::