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.present.rereview

Requirements index · View definition

evidence Valid

Requirement

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.

Rationale

The test adequately checks the requirement.

Obligations derived from the requirement

  1. The skill directs agents to apply the user’s decisions on each group.
  2. If a decision adds an obligation no reviewer saw, the skill directs a new review of that group.
  3. 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 bundled habeas-requirements workflow step that contains “Present each group to the user”. It does this through the helpers step, step_of and workflow_steps, which collapse whitespace. That is step 4, the present step in assets/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_order helper 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]
// {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
:::{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.
:::