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.overview_skill.move_then_edit

Requirements index · View definition

evidence Valid

Requirement

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.

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 under habeas-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_text is a plain substring check that panics on a miss. workflow_steps collapses whitespace, so the skill’s line-wrapped text in assets/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]
// {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
:::{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.
:::