requirements.cli.requirements_review_skill.present.mechanical
Requirements index · View definition
Requirement
The
habeas-requirementsskill MUST direct agents not to raise mechanical changes to new text as questions. For text that was already agreed or that the user supplied, it MUST direct agents to show the change as a diff against that text, followed by a list of the mechanical changes.
Rationale
The subject requires the habeas-requirements skill to direct agents on two points. First, they must not raise mechanical changes to new text as questions. Second, for text that was already agreed or that the user supplied, they must show the change as a diff against that text, followed by a list of the mechanical changes.
The only reviewed test is tests/authoring_cli.rs#fn[the_requirements_skill_shows_mechanical_changes_without_asking]. It calls assert_phrases("habeas-requirements", …). That helper loads the skill with bundled_skill, which joins SKILL.md and its reference files. It then collapses whitespace in collapse, so matches work across the file’s line wraps. Finally it asserts that each phrase is present, with a panic message if one is missing.
The test asserts two phrases:
- “Show text that was already agreed or that the user supplied as a diff against that text, then a "Mechanical:" list of the changes”. This covers the second obligation: the diff against the agreed or supplied text, followed by the list of mechanical changes. It also covers both text classes the requirement names, “already agreed” and “user supplied”.
- “Don’t raise mechanical changes to new text as questions”. This covers the first obligation, the prohibition on posing mechanical changes to new text as questions.
I read assets/skills/habeas-requirements/SKILL.md and confirmed that Workflow step 4 contains both sentences. Wrapped over lines, they read “Show text that was already agreed or that the user supplied as a diff against that text, then a “Mechanical:” list of the changes“ and “Don’t raise mechanical changes to new text as questions”.
The requirement only asks that the skill direct agents to behave this way. For guidance text, asserting that the directive sentences are present is the appropriate check. The phrases are specific enough that removing or reversing either directive would fail the test. I found no distinct obligation, mode, or boundary left untested. The related …present.outside and review_prompt requirements have their own tests and are out of scope here.
Inputs
Tests
Input 2: outline tests/authoring_cli.rs fn[the_requirements_skill_shows_mechanical_changes_without_asking]
- File:
tests/authoring_cli.rs - Selector:
fn[the_requirements_skill_shows_mechanical_changes_without_asking] - Kind:
fn tests/authoring_cli.rs:3990–4000
// {test}`requirements.cli.requirements_review_skill.present.mechanical`
#[test]
fn the_requirements_skill_shows_mechanical_changes_without_asking() {
assert_phrases(
"habeas-requirements",
&[
"Show text that was already agreed or that the user supplied as a diff against that text, then a \"Mechanical:\" list of the changes",
"Don't raise mechanical changes to new text as questions",
],
);
}
Other sources
Input 1: requirements selection requirements.cli.requirements_review_skill.present.mechanical
requirements.cli.requirements_review_skill.present.mechanical:md/requirements/cli.md:172–175
:::{req} requirements_review_skill.present.mechanical
The `habeas-requirements` skill MUST direct agents not to raise mechanical changes to new text as questions. For text that was already agreed or that the user supplied, it MUST direct agents to show the change as a diff against that text, followed by a list of the mechanical changes.
:::