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

Requirements index · View definition

evidence Valid

Requirement

The habeas-requirements skill MUST direct agents not to commit requirements or write implementation or test code until the user has agreed to, rejected, or deferred every group.

Rationale

The tests adequately check this requirement.

Obligation. The habeas-requirements skill must direct agents not to do two things until the user has agreed to, rejected, or deferred every group:

  • commit requirements;
  • write implementation or test code.

Main test. tests/authoring_cli.rs#fn[the_requirements_skill_gates_commit_and_code_on_every_group_being_decided] is marked {test} for this requirement. It calls assert_phrases("habeas-requirements", …), which asserts that the collapsed text of the bundled skill contains this exact sentence: “Gate: no implementation or test code, and no commit, until the user has agreed to, rejected, or deferred every group”. In the skill’s SKILL.md that sentence wraps across lines. bundled_skill collapses whitespace first, so the match is valid.

Coverage of the obligation.

  • Both gated actions are in the asserted sentence: code, meaning implementation or test code, and commit.
  • All three user decisions are in it: agreed, rejected, deferred.
  • The sentence says “every group”, so the decision must cover all groups.
  • It is phrased as a directive, a Gate in step 4 of the workflow.
  • A skill that dropped or weakened any of these would fail the assertion.

Supporting tests. These related tests are marked for the parent requirement or for sibling requirements, so they are not needed for this obligation:

  • the_requirements_skill_commits_agreed_requirements_before_code checks that the Gate step sits after review and before the commit and implement steps.
  • the_requirements_skill_is_home_of_drafting_review_references_and_criteria checks that a Gate step exists.
  • the_requirements_skill_says_what_counts_as_agreement covers what counts as agreement, which a separate requirement governs.

Gaps. I found none. The obligation is about what the skill text says, and a phrase-presence assertion on the bundled skill is the right way to check that. No unnamed boundary cases or alternatives need further tests, and there is no acknowledgment ({fixme}) to consider.

Inputs

Tests

Input 2: outline tests/authoring_cli.rs fn[the_requirements_skill_gates_commit_and_code_on_every_group_being_decided]
// {test}`requirements.cli.requirements_review_skill.agreement`
#[test]
fn the_requirements_skill_gates_commit_and_code_on_every_group_being_decided() {
    assert_phrases(
        "habeas-requirements",
        &[
            "**Gate:** no implementation or test code, and no commit, until the user has agreed to, rejected, or deferred every group",
        ],
    );
}

Other sources

Input 1: requirements selection requirements.cli.requirements_review_skill.agreement
:::{req} requirements_review_skill.agreement
The `habeas-requirements` skill MUST direct agents not to commit requirements or write implementation or test code until the user has agreed to, rejected, or deferred every group.
:::