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

Requirements index · View definition

evidence Valid

Requirement

Before that commit, the habeas-requirements skill MUST direct agents to check that the book holds exactly the agreed text.

Rationale

Obligation. requirements.cli.requirements_review_skill.commit.check has one MUST. Before the requirements commit, the habeas-requirements skill must direct agents to check that the book holds exactly the agreed text. It has no boundary cases, alternatives or modes.

Test. tests/authoring_cli.rs#fn[the_requirements_skill_checks_the_book_holds_exactly_the_agreed_text] is marked {test} for the requirement. It calls assert_phrases("habeas-requirements", ...) with the phrase “Check with git diff that the book holds exactly the agreed text, then commit it”.

How the assertion works.

  • assert_phrases calls assert_text on bundled_skill(name), which is the skill’s SKILL.md plus its reference files, joined and whitespace-collapsed.
  • assert_text asserts that the text contains the phrase.
  • Collapsing whitespace matters because assets/skills/habeas-requirements/SKILL.md wraps this sentence across lines. The workflow step reads “Check with git diff that the book holds exactly the agreed text, then commit it, all groups together, before any code”. After collapsing, the phrase matches.

Coverage.

  • Check: the phrase fixes the check (“Check with git diff”) and what it checks (“the book holds exactly the agreed text”).
  • Ordering: “then commit it” in the same phrase fixes the ordering, so the check comes before the commit.
  • Skill: the assertion targets the habeas-requirements skill specifically.
  • Failure: deleting or rewording the instruction fails the test. So does moving it to another skill.

This phrase-presence method is the one the suite uses for other skill-content requirements, and it fits a requirement about what a skill text must direct.

I found no gap.

Inputs

Tests

Input 2: outline tests/authoring_cli.rs fn[the_requirements_skill_checks_the_book_holds_exactly_the_agreed_text]
// {test}`requirements.cli.requirements_review_skill.commit.check`
#[test]
fn the_requirements_skill_checks_the_book_holds_exactly_the_agreed_text() {
    assert_phrases(
        "habeas-requirements",
        &["Check with `git diff` that the book holds exactly the agreed text, then commit it"],
    );
}

Other sources

Input 1: requirements selection requirements.cli.requirements_review_skill.commit.check
:::{req} requirements_review_skill.commit.check
Before that commit, the `habeas-requirements` skill MUST direct agents to check that the book holds exactly the agreed text.
:::
Input 3: requirements selection requirements.cli.requirements_review_skill.commit*
:::{req} requirements_review_skill.commit
The `habeas-requirements` skill MUST direct agents, once every group is decided, to commit the agreed requirements of all groups in one commit before any implementation, leaving out uncommitted edits the user said do not belong to the task.
:::

:::{req} requirements_review_skill.commit.check
Before that commit, the `habeas-requirements` skill MUST direct agents to check that the book holds exactly the agreed text.
:::

:::{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.
:::

:::{req} requirements_review_skill.commit.revert
Before that commit, the `habeas-requirements` skill MUST direct agents to revert the drafts the user rejected or deferred and to list them in their report.
:::

:::{req} requirements_review_skill.commit.validation
The `habeas-requirements` skill MUST tell agents that the requirements commit may fail validation until evidence is authored, and that only the pull request as a whole must pass.
:::