requirements.cli.requirements_review_skill.agreement
Requirements index · View definition
Requirement
The
habeas-requirementsskill 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_codechecks that the Gate step sits after review and before the commit and implement steps.the_requirements_skill_is_home_of_drafting_review_references_and_criteriachecks that a Gate step exists.the_requirements_skill_says_what_counts_as_agreementcovers 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]
- File:
tests/authoring_cli.rs - Selector:
fn[the_requirements_skill_gates_commit_and_code_on_every_group_being_decided] - Kind:
fn tests/authoring_cli.rs:4031–4040
// {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
requirements.cli.requirements_review_skill.agreement:md/requirements/cli.md:187–190
:::{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.
:::