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

Requirements index · View definition

evidence Valid

Requirement

The habeas skill MUST tell agents that a new project with little code starts with habeas-requirements, not habeas-bootstrap-requirements, even though most of its code has no references.

Rationale

The requirement has one obligation. The habeas skill must tell agents that a new project with little code starts with habeas-requirements, not habeas-bootstrap-requirements, even though most of its code has no references.

tests/authoring_cli.rs#fn[the_habeas_skill_starts_a_new_project_with_the_requirements_skill] covers it:

  • It uses step("habeas", 1) to read the numbered routing step of the bundled habeas skill’s Workflow section.
  • workflow_steps panics if the skill has no Workflow section or the step is missing.
  • It asserts with assert_text that the step contains the sentence “A new project with little code starts with habeas-requirements, not habeas-bootstrap-requirements, even though most of its code has no references”. assert_text uses contains and fails with a message if the phrase is absent.
  • That phrase carries every clause of the requirement: the new-project condition, the choice of habeas-requirements, the exclusion of habeas-bootstrap-requirements, and the “most code has no references” caveat.
  • It also asserts the contrasting bootstrap routing row, “Adopting Habeas in an existing codebase, or most of the code has no references | habeas-bootstrap-requirements”. That check shows the new-project guidance sits beside the bootstrap guidance it is distinguished from.

The test reads the real bundled skill text, so removing or changing the guidance would fail it. The requirement has no other modes or boundary cases. I found no gaps.

Inputs

Tests

Input 2: outline tests/authoring_cli.rs fn[the_habeas_skill_starts_a_new_project_with_the_requirements_skill]
// {test}`requirements.cli.overview_skill.new_project`
#[test]
fn the_habeas_skill_starts_a_new_project_with_the_requirements_skill() {
    let routing = step("habeas", 1);
    assert_text(
        "habeas workflow",
        &routing,
        &[
            "Adopting Habeas in an existing codebase, or most of the code has no references | habeas-bootstrap-requirements",
            "A new project with little code starts with habeas-requirements, not habeas-bootstrap-requirements, even though most of its code has no references",
        ],
    );
}

Other sources

Input 1: requirements selection requirements.cli.overview_skill.new_project
:::{req} overview_skill.new_project
The `habeas` skill MUST tell agents that a new project with little code starts with `habeas-requirements`, not `habeas-bootstrap-requirements`, even though most of its code has no references.
:::
Input 3: outline tests/authoring_cli.rs fn[step]
/// The text of one numbered workflow step.
// {cite}`habeas:util`
fn step(name: &str, number: u32) -> String {
    workflow_steps(name)
        .into_iter()
        .find(|(n, _)| *n == number)
        .unwrap_or_else(|| panic!("{name} has no step {number}"))
        .1
}