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

Requirements index · View definition

evidence Valid

Requirement

The habeas-requirements skill MUST direct agents to show the edits a review made to requirements outside its group in the same way as cite requirements.cli.requirements_review_skill.present.mechanical requires. It MUST also direct them to list every {example} a review added and to say that each one needs a test.

Rationale

Obligations. The requirement requirements.cli.requirements_review_skill.present.outside asks the habeas-requirements skill to direct agents to do three things:

  1. Show edits a review made outside its group the same way as present.mechanical requires. That means a diff against the agreed or user-supplied text, followed by a “Mechanical:” list.
  2. List every {example} a review added.
  3. Say that each added example needs a test.

Test. tests/authoring_cli.rs#fn[the_requirements_skill_shows_edits_outside_a_group_and_added_examples] is marked {test} for the subject. It calls assert_in_order("habeas-requirements", ...), which runs bundled_skill, then collapse, then assert_text_in_order. The skill text is collapsed before matching, so the skill’s line wraps do not affect the match. assert_text_in_order panics unless each phrase is found, one after another, in the whole skill text (SKILL.md plus its reference files).

The test asserts two phrases in order:

  • “as a diff against that text, then a "Mechanical:" list” anchors the present.mechanical convention (diff, then Mechanical list).
  • “Show the edits reviewers made outside their group the same way, and list added {example}s, which each need a test” must appear after it. This one sentence covers all three obligations: outside-group edits shown “the same way”, added examples listed, and the statement that each needs a test.

The skill’s present step (step 4 in assets/skills/habeas-requirements/SKILL.md) contains exactly this text, directly after the diff and Mechanical sentence.

Assessment. The subject is a documentation-directing requirement, and presence of the directive text is the only observable behavior. The test checks all three clauses, and it checks that the “same way” sentence comes after the diff and Mechanical statement it refers to. A skill that dropped the outside-group edits, the example listing, or the needs-a-test statement would fail the test. The present.mechanical obligations are covered by their own requirement and test, and the cited requirement’s tests need no reassessment here. I found no unacknowledged gap.

Inputs

Tests

Input 3: outline tests/authoring_cli.rs fn[the_requirements_skill_shows_edits_outside_a_group_and_added_examples]
// {test}`requirements.cli.requirements_review_skill.present.outside`
#[test]
fn the_requirements_skill_shows_edits_outside_a_group_and_added_examples() {
    assert_in_order(
        "habeas-requirements",
        &[
            "as a diff against that text, then a \"Mechanical:\" list",
            "Show the edits reviewers made outside their group the same way, and list added `{example}`s, which each need a test",
        ],
    );
}

Referenced definitions

Input 2: requirements selection requirements.cli.requirements_review_skill.present.mechanical
:::{req} requirements_review_skill.present.mechanical
The `habeas-requirements` skill MUST direct agents not to raise mechanical changes to new text as questions. For text that was already agreed or that the user supplied, it MUST direct agents to show the change as a diff against that text, followed by a list of the mechanical changes.
:::

Other sources

Input 1: requirements selection requirements.cli.requirements_review_skill.present.outside
:::{req} requirements_review_skill.present.outside
The `habeas-requirements` skill MUST direct agents to show the edits a review made to requirements outside its group in the same way as {cite}`requirements.cli.requirements_review_skill.present.mechanical` requires. It MUST also direct them to list every `{example}` a review added and to say that each one needs a test.
:::