requirements.cli.overview_skill.move_then_edit
Requirements index · View definition
Requirement
The
habeasskill MUST tell agents that a change which both moves and edits code, tests, or requirements is done as the move first, underhabeas-refactor, and then the edit, under the skill the edit routes to.
Rationale
The requirement has one testable obligation. The bundled habeas skill must tell agents that a change which both moves and edits code, tests, or requirements is done as the move first under habeas-refactor, then the edit under the skill the edit routes to.
tests/authoring_cli.rs#fn[the_habeas_skill_does_a_move_that_also_edits_as_the_move_first] is marked {test}. It reads workflow step 2 of the habeas skill with step("habeas", 2). It uses assert_text to assert that the step contains this sentence: “A change that both moves and edits code, tests, or requirements is the move first (habeas-refactor), then the edit under the skill the table gives for it”.
- Move first, under
habeas-refactor: the phrase names the combined move-and-edit case and says the move comes first underhabeas-refactor. - Then the edit, under the routed skill: the phrase says the edit follows “under the skill the table gives for it”. That is the routing the requirement describes.
- Code, tests, or requirements: the phrase lists all three.
- Matching:
assert_textis a plain substring check that panics on a miss.workflow_stepscollapses whitespace, so the skill’s line-wrapped text inassets/skills/habeas/SKILL.md(Workflow, step 2) matches the single-line phrase.
The assertion is specific and enforces the requirement’s content. I found no other distinct mode or boundary in the text that needs its own test.
Inputs
Tests
Input 2: outline tests/authoring_cli.rs fn[the_habeas_skill_does_a_move_that_also_edits_as_the_move_first]
- File:
tests/authoring_cli.rs - Selector:
fn[the_habeas_skill_does_a_move_that_also_edits_as_the_move_first] - Kind:
fn tests/authoring_cli.rs:3762–3772
// {test}`requirements.cli.overview_skill.move_then_edit`
#[test]
fn the_habeas_skill_does_a_move_that_also_edits_as_the_move_first() {
assert_text(
"habeas workflow",
&step("habeas", 2),
&[
"A change that both moves and edits code, tests, or requirements is the move first (habeas-refactor), then the edit under the skill the table gives for it",
],
);
}
Other sources
Input 1: requirements selection requirements.cli.overview_skill.move_then_edit
requirements.cli.overview_skill.move_then_edit:md/requirements/cli.md:107–110
:::{req} overview_skill.move_then_edit
The `habeas` skill MUST tell agents that a change which both moves and edits code, tests, or requirements is done as the move first, under `habeas-refactor`, and then the edit, under the skill the edit routes to.
:::