requirements.cli.requirements_review_skill.present.rereview
Requirements index · View definition
Requirement
The
habeas-requirementsskill MUST direct agents to apply the user’s decisions on each group. If a decision adds an obligation that no reviewer saw, the skill MUST direct them to review that group again before asking for agreement.
Rationale
The test adequately checks the requirement.
Obligations derived from the requirement
- The skill directs agents to apply the user’s decisions on each group.
- If a decision adds an obligation no reviewer saw, the skill directs a new review of that group.
- That review comes before asking for agreement.
What the test checks
tests/authoring_cli.rs#fn[the_requirements_skill_rereviews_a_group_a_decision_extends]reads the bundledhabeas-requirementsworkflow step that contains “Present each group to the user”. It does this through the helpersstep,step_ofandworkflow_steps, which collapse whitespace. That is step 4, the present step inassets/skills/habeas-requirements/SKILL.md.- It calls
assert_text_in_order, which requires these phrases in this sequence within that step:- “Apply the user’s decisions”
- “If a decision adds an obligation no reviewer saw, review that group again”
- “Gate:”
- The
assert_text_in_orderhelper panics if a phrase is missing or out of order, so the assertions are real.
Mapping to the obligations
- Obligation 1 is covered by the “Apply the user’s decisions” phrase, which is scoped to the present step.
- Obligation 2 is covered by the second phrase, which names both the condition (a decision adds an obligation no reviewer saw) and the action (review that group again).
- Obligation 3 is covered by the ordering assertion. The re-review sentence must come before “Gate:”, the part of the step about agreement or rejection by the user. The skill text is consistent with this: the “Apply the user’s decisions” and re-review sentences come before the Gate.
Gaps considered A reviewer could argue the Gate is only a proxy for “asking for agreement”. I don’t count that as a gap, because the Gate is the step’s agreement requirement and the ordering is the only place the skill states “before agreement”.
The requirement concerns skill wording, so a text-presence and ordering test fits it. The test also carries a {test} reference to the requirement, so there is no marking gap. No acknowledgments apply.
Inputs
Tests
Input 2: outline tests/authoring_cli.rs fn[the_requirements_skill_rereviews_a_group_a_decision_extends]
- File:
tests/authoring_cli.rs - Selector:
fn[the_requirements_skill_rereviews_a_group_a_decision_extends] - Kind:
fn tests/authoring_cli.rs:4014–4029
// {test}`requirements.cli.requirements_review_skill.present.rereview`
#[test]
fn the_requirements_skill_rereviews_a_group_a_decision_extends() {
assert_text_in_order(
"present step",
&step(
"habeas-requirements",
step_of("habeas-requirements", "Present each group to the user"),
),
&[
"Apply the user's decisions",
"If a decision adds an obligation no reviewer saw, review that group again",
"**Gate:**",
],
);
}
Other sources
Input 1: requirements selection requirements.cli.requirements_review_skill.present.rereview
requirements.cli.requirements_review_skill.present.rereview:md/requirements/cli.md:182–185
:::{req} requirements_review_skill.present.rereview
The `habeas-requirements` skill MUST direct agents to apply the user's decisions on each group. If a decision adds an obligation that no reviewer saw, the skill MUST direct them to review that group again before asking for agreement.
:::