requirements.cli.requirements_review_skill.code_rename
Requirements index · View definition
Requirement
The
habeas-requirementsskill MUST tell agents that renaming or restructuring code in place, without changing behavior, needs no requirement review, but that the item’s references move with it and the evidence that read it is reassessed.
Rationale
The tests adequately check requirements.cli.requirements_review_skill.code_rename.
Obligations derived from the requirement. The habeas-requirements skill must tell agents three things:
- Renaming or restructuring code in place, without changing behavior, needs no requirement review.
- The item’s references move with it.
- The evidence that read it is reassessed.
Test. tests/authoring_cli.rs#fn[the_requirements_skill_needs_no_review_for_renaming_code_in_place] calls assert_phrases("habeas-requirements", …). It requires this sentence in the bundled skill: “Restructuring code in place, including renaming an item, needs no requirement review, but references move with the code and the evidence is reassessed”.
Helper. assert_phrases calls assert_text(name, &bundled_skill(name), phrases). bundled_skill joins SKILL.md and the reference files and collapses whitespace. assert_text asserts that each phrase is contained and panics otherwise. The assertion is real, and the whitespace collapse means the check does not depend on line wrapping.
Mapping to obligations.
- Restructuring or renaming in place needs no review: the phrase says “Restructuring code in place, including renaming an item, needs no requirement review”.
- References move with it: the phrase says “references move with the code”.
- Evidence is reassessed: the phrase says “the evidence is reassessed”.
- Dropping or altering any of these clauses from the skill would fail the test.
Qualifier “without changing behavior”. The test does not assert this wording separately. The skill’s own sentence also does not state it. “Restructuring code in place” is behavior-preserving by meaning. Neighbouring skill text routes behavior changes through the full requirements workflow: the habeas routing table sends “any change to behavior, code, tests…” to habeas-requirements, and the workflow paragraph in assets/skills/habeas-requirements/SKILL.md#section[Habeas%20requirements]/section[Workflow] requires review for changes to agreed text. The test checks the same sentence the skill carries, so I do not treat this as an adequacy gap.
I found no untested obligation, so there is nothing to acknowledge and no {fixme} applies.
Inputs
Tests
Input 2: outline tests/authoring_cli.rs fn[the_requirements_skill_needs_no_review_for_renaming_code_in_place]
- File:
tests/authoring_cli.rs - Selector:
fn[the_requirements_skill_needs_no_review_for_renaming_code_in_place] - Kind:
fn tests/authoring_cli.rs:4163–4172
// {test}`requirements.cli.requirements_review_skill.code_rename`
#[test]
fn the_requirements_skill_needs_no_review_for_renaming_code_in_place() {
assert_phrases(
"habeas-requirements",
&[
"Restructuring code in place, including renaming an item, needs no requirement review, but references move with the code and the evidence is reassessed",
],
);
}
Other sources
Input 1: requirements selection requirements.cli.requirements_review_skill.code_rename
requirements.cli.requirements_review_skill.code_rename:md/requirements/cli.md:242–245
:::{req} requirements_review_skill.code_rename
The `habeas-requirements` skill MUST tell agents that renaming or restructuring code in place, without changing behavior, needs no requirement review, but that the item's references move with it and the evidence that read it is reassessed.
:::