requirements.cli.requirements_review_skill.commit.check
Requirements index · View definition
Requirement
Before that commit, the
habeas-requirementsskill 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_phrasescallsassert_textonbundled_skill(name), which is the skill’sSKILL.mdplus its reference files, joined and whitespace-collapsed.assert_textasserts that the text contains the phrase.- Collapsing whitespace matters because
assets/skills/habeas-requirements/SKILL.mdwraps this sentence across lines. The workflow step reads “Check withgit diffthat 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-requirementsskill 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]
- File:
tests/authoring_cli.rs - Selector:
fn[the_requirements_skill_checks_the_book_holds_exactly_the_agreed_text] - Kind:
fn tests/authoring_cli.rs:4092–4099
// {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
requirements.cli.requirements_review_skill.commit.check:md/requirements/cli.md:212–215
:::{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*
requirements.cli.requirements_review_skill.commit:md/requirements/cli.md:202–205requirements.cli.requirements_review_skill.commit.check:md/requirements/cli.md:212–215requirements.cli.requirements_review_skill.commit.design_session:md/requirements/cli.md:222–225requirements.cli.requirements_review_skill.commit.revert:md/requirements/cli.md:207–210requirements.cli.requirements_review_skill.commit.validation:md/requirements/cli.md:217–220
:::{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.
:::