requirements.cli.requirements_review_skill.review_prompt
Requirements index · View definition
Requirement
The
habeas-requirementsskill MUST supply the review prompt that each group’s reviewer follows. The prompt MUST direct the reviewer not to edit files. It MUST direct the reviewer to make mechanical changes itself in the revised text it returns, and to return design questions for the user.
Rationale
The one marked test, tests/authoring_cli.rs#fn[the_review_prompt_makes_mechanical_changes_and_returns_design_questions], adequately checks all three obligations of requirements.cli.requirements_review_skill.review_prompt.
The test is a text check on a prompt. It collapses the whitespace of the skill’s references/review-prompt.md and asserts, through assert_text, that three directive phrases are present. assert_text fails with a message naming any missing phrase.
Obligations and how the test covers them:
- The skill supplies the review prompt. The test reads the prompt from the bundled
habeas-requirementsskill withreview_prompt(), which callsskill_file("habeas-requirements", "references/review-prompt.md"). The file is bundled and non-empty, or the test fails. Passing the prompt to each group’s reviewer belongs to the sibling requirementrequirements_review_skill.review.inputs, which has its own test. - The prompt directs the reviewer not to edit files. The test asserts “Don’t edit files; make your changes in the revised text you return”. I read the prompt, and this sentence is an imperative to the reviewer.
- The prompt directs the reviewer to make mechanical changes itself in the revised text. The test asserts “Mechanical changes: make them yourself in the revised text, and never phrase them as questions”. This is an imperative covering both the self-made changes and the revised-text location.
- The prompt directs the reviewer to return design questions for the user. The test asserts “Design questions: return these; the user decides”. This covers returning the questions and leaving the decision to the user.
I found no untested obligation and no distinct mode or boundary case in the subject. The prompt’s finer details are covered by separate sibling requirements, such as the mechanical list, the design list, the report template and the examples, and each has its own test. Those details are not part of this subject.
Inputs
Implementation
Input 3: outline assets/skills/habeas-requirements/references/review-prompt.md section[Requirement%20group%20review]
- File:
assets/skills/habeas-requirements/references/review-prompt.md - Selector:
section[Requirement%20group%20review] - Kind:
section assets/skills/habeas-requirements/references/review-prompt.md:1–109
# Requirement group review
You review one group of drafted or changed Habeas requirements before the user
sees them. Read the habeas skill's `SKILL.md` first for the directive syntax.
The agent that started you gives you the group's full names and a brief: what
the user asked for, the decisions already made, and the open choices already
noted. Don't re-raise those. The drafts are uncommitted edits in the book:
`git diff` on the book's source directory shows them, and
`habeas info <full-name>` prints a requirement. Read the surrounding chapter and
every requirement the group cites or overlaps. Don't edit files; make your
changes in the revised text you return.
Each requirement gets its own model assessment of whether tests adequately check
it, and editing a requirement makes its evidence stale. So a requirement should
be as small as it can be while still standing on its own: it costs less to
assess, and editing it makes only its own evidence stale.
## Two kinds of finding
**Mechanical changes:** make them yourself in the revised text, and never phrase
them as questions.
- Split a compound requirement (see "Criteria").
- Choose MUST, SHOULD, or MAY when the draft's intent is clear. Default to MUST;
keep a SHOULD or MAY the draft already chose.
- Fix wording whose resolution is obvious: vague terms, inconsistent terms, an
ambiguity with one sensible reading.
- Add an `{example}` where a concrete case pins an obligation down.
- Update other requirements a change makes stale, such as a `{cite}` of a
requirement you split.
Never rename or move a committed requirement; if its name is wrong, raise it as
a design question. When you split one, keep its full name on the core
obligation and name the parts `<name>.<part>`, so existing references still
resolve. List every new name.
**Design questions:** return these; the user decides.
- A gap: a case the text says nothing about, where either answer is plausible.
- A conflict with another requirement; cite it by full name.
- MUST or SHOULD when the choice depends on the user's intent, not wording.
- An obligation nothing could check, where any fix changes what is promised.
For each question give why it matters, the options, and your recommendation.
## Finding gaps
For each requirement, list the inputs and states it applies to, its boundaries
and failure cases (empty, missing, duplicate, invalid), and its observable
outputs, such as messages, output streams, exit codes, and files. Then list the
observable behavior the brief implies that no requirement in the group or the
book states. Each case the text does not decide is a gap: resolve it
mechanically if only one answer is sensible, otherwise ask.
## Criteria
- **Compound:** a requirement that lists several independent forms, checks, or
outputs is usually one requirement per item. A sentence beginning "It MUST
also" is a strong hint. Test: could one part be implemented, change, or fail
while another holds? Then split it. Move shared detail, such as a template or
a format, into its own requirement that the others cite.
- **Checkable:** a reviewer can judge the obligation from the requirement text,
the code, and the tests, and something would fail if it were broken.
- **One reading:** text a careful reviewer could read two ways is a finding.
- **Outcome, not implementation:** the text says what must hold, not how.
- **Distributed:** for a requirement with `{sites}` or `{violations}` queries,
apply the Do and Don't lists in the habeas skill's
`references/distributed-requirements.md`.
## Examples
Compound, with a mechanical fix:
> The `refactor` command MUST accept file, node, and definition mappings, MUST
> reject overlapping mappings, and MUST rewrite references and anchors. It MUST
> also update evidence rationales.
Split into `mappings.file`, `mappings.node`, `mappings.definition`,
`mappings.overlap`, `rewrite.references`, and `rewrite.rationale`. Not a
question.
Not questions, just change them: "Should 'shall' be 'MUST'?"; "Consider
calling 'the tool' `habeas refactor`."
A design question:
> After the split, `rewrite.rationale` says rationales are updated, but not what
> happens to a path mentioned inside rationale prose. Options: (a) rewrite it;
> (b) leave it and list it for the user; (c) make the record stale. Recommend
> (b): rewriting prose could change meaning the assessment did not produce.
## Report
```text
## Group: <name>
### Revised text
<every requirement in the group, as complete directives ready to paste,
including new split requirements>
### Edits outside the group
<revised text of other requirements your changes make stale, or "None.">
### Mechanical changes
- <one line each; list new full names and added examples>
### Design questions
1. <question>: why it matters; options; recommendation
```
A report with only wording changes means you have not looked hard enough for
gaps and for conflicts with existing requirements. Look again. If you still find
no design questions, write "No design questions."
Tests
Input 2: outline tests/authoring_cli.rs fn[the_review_prompt_makes_mechanical_changes_and_returns_design_questions]
- File:
tests/authoring_cli.rs - Selector:
fn[the_review_prompt_makes_mechanical_changes_and_returns_design_questions] - Kind:
fn tests/authoring_cli.rs:4189–4201
// {test}`requirements.cli.requirements_review_skill.review_prompt`
#[test]
fn the_review_prompt_makes_mechanical_changes_and_returns_design_questions() {
assert_text(
"review prompt",
&collapse(review_prompt()),
&[
"Don't edit files; make your changes in the revised text you return",
"**Mechanical changes:** make them yourself in the revised text, and never phrase them as questions",
"**Design questions:** return these; the user decides",
],
);
}
Other sources
Input 1: requirements selection requirements.cli.requirements_review_skill.review_prompt
requirements.cli.requirements_review_skill.review_prompt:md/requirements/cli.md:247–250
:::{req} requirements_review_skill.review_prompt
The `habeas-requirements` skill MUST supply the review prompt that each group's reviewer follows. The prompt MUST direct the reviewer not to edit files. It MUST direct the reviewer to make mechanical changes itself in the revised text it returns, and to return design questions for the user.
:::