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.text_change.rename

Requirements index · View definition

evidence Valid

Requirement

The habeas-requirements skill MUST direct agents to rename or move a committed requirement only with the user’s agreement, using habeas-refactor, and to commit the rename or move before changing the requirement’s text.

Rationale

The requirement has one testable claim. The habeas-requirements skill must tell agents to do three things for a committed requirement that is renamed or moved:

  • Do it only with the user’s agreement.
  • Use habeas-refactor.
  • Commit the rename or move before changing the requirement’s text.

tests/authoring_cli.rs#fn[the_requirements_skill_renames_requirements_through_refactor_before_editing] calls assert_phrases("habeas-requirements", ...). That helper checks that the whitespace-collapsed bundled skill text (SKILL.md plus its reference files) contains the phrase “Renaming or moving a committed requirement is a habeas-refactor task, agreed with the user and committed before its text changes”. It collapses whitespace through collapse in bundled_skill. That matters because the sentence wraps across lines in assets/skills/habeas-requirements/SKILL.md, in the Workflow section. The test would fail if the skill dropped or reworded the sentence.

The one asserted phrase covers all three parts of the requirement:

  • Renaming or moving a committed requirement.
  • Routing it through habeas-refactor.
  • “Agreed with the user”, and committing before the text changes.

No other input class or boundary is named, so no further scenario is needed. A phrase check on the skill text is the usual way to test a requirement about skill content, and the project’s other skill-guidance tests use it too. I found no gap.

Inputs

Tests

Input 2: outline tests/authoring_cli.rs fn[the_requirements_skill_renames_requirements_through_refactor_before_editing]
// {test}`requirements.cli.requirements_review_skill.text_change.rename`
#[test]
fn the_requirements_skill_renames_requirements_through_refactor_before_editing() {
    assert_phrases(
        "habeas-requirements",
        &[
            "Renaming or moving a committed requirement is a habeas-refactor task, agreed with the user and committed before its text changes",
        ],
    );
}

Other sources

Input 1: requirements selection requirements.cli.requirements_review_skill.text_change.rename
:::{req} requirements_review_skill.text_change.rename
The `habeas-requirements` skill MUST direct agents to rename or move a committed requirement only with the user's agreement, using `habeas-refactor`, and to commit the rename or move before changing the requirement's text.
:::