requirements.cli.skill_structure.evidence
Requirements index · View definition
Requirement
Under
, the
habeas-evidenceskill MUST be the home of the authoring workflow, fixing validation findings, including uncovered Rust items, outcomes and FIXME judgments, citation and site reviews, disagreeing assessments, and the commit message for a change to agreed requirement text.
Rationale
The subject says habeas-evidence MUST be the home of eight topics. They are the authoring workflow, fixing validation findings, uncovered Rust items, outcomes, FIXME judgments, citation reviews, site reviews, disagreeing assessments, and the commit message for a change to agreed requirement text. The test is tests/authoring_cli.rs#fn[the_evidence_skill_is_home_of_authoring_findings_and_assessment_outcomes]. It checks both parts of “home” for every topic.
The topic is stated in the evidence skill. There are two kinds of assertion.
- Direct section and file assertions through
assert_text:- The authoring workflow: the
## Workflowsection ofSKILL.mdcontains`habeas author --all`. - Fixing findings and uncovered Rust items: the
## Fixing findingssection contains the finding/action table and the### Uncovered Rust itemsheading. - Disagreeing assessments: the
## Disagreeing assessmentssection contains “The goal is”. - The commit message: the
## Rulessection contains “in the message of the commit that makes it”. - FIXME judgments:
references/fixme.mdcontains# FIXME judgments. - Citation and site reviews:
references/reviews.mdcontains both## Citation reviewsand## Site reviews.
- The authoring workflow: the
assert_home("habeas-evidence")throughhome_markers. It asserts that the evidence skill contains a marker phrase for each topic:- The outcomes: “A judgment is one of three outcomes”.
- The workflow: the
habeas author --allsentence. - Fixing findings:
## Fixing findings. - Uncovered Rust items: the “recent coverage” sentence.
- FIXME judgments: “A FIXME judgment, such as”.
- Citation reviews: “gets a citation review…”.
- Site reviews: “A site the requirement does not apply to is judged true”.
- Disagreeing assessments: “The goal is that independent assessments…”.
- The commit message: “describing the change relative to the prior commit…”.
It is in exactly one skill. assert_home also loops over every other skill in SKILLS and asserts that none contains any of those markers. A restatement elsewhere would fail the test. This covers the requirements.cli.skill_structure rule that each topic is stated in full in one home. The cited rule’s skill definition is also followed: skill_files supplies SKILL.md plus the references/ files, and bundled_skill is used for the whole-skill check.
Remaining limitation. The test is phrase-based, so it proxies “stated in full”. That is a reasonable way to test this kind of requirement, and the topics are distinct enough that a topic removed from the evidence skill or copied into another skill would be caught. I found no obligation in the subject text that is left untested.
Inputs
Tests
Input 3: outline tests/authoring_cli.rs fn[the_evidence_skill_is_home_of_authoring_findings_and_assessment_outcomes]
- File:
tests/authoring_cli.rs - Selector:
fn[the_evidence_skill_is_home_of_authoring_findings_and_assessment_outcomes] - Kind:
fn tests/authoring_cli.rs:3399–3435
// {test}`requirements.cli.skill_structure.evidence`
#[test]
fn the_evidence_skill_is_home_of_authoring_findings_and_assessment_outcomes() {
let raw = skill_md("habeas-evidence");
assert_text(
"authoring workflow",
§ion(raw, "## Workflow"),
&["`habeas author --all`"],
);
assert_text(
"fixing findings",
§ion(raw, "## Fixing findings"),
&["| Finding | Action |", "### Uncovered Rust items"],
);
assert_text(
"disagreeing assessments",
§ion(raw, "## Disagreeing assessments"),
&["The goal is"],
);
assert_text(
"commit message",
§ion(raw, "## Rules"),
&["in the message of the commit that makes it"],
);
assert_text(
"FIXME judgments",
skill_file("habeas-evidence", "references/fixme.md"),
&["# FIXME judgments"],
);
let reviews = skill_file("habeas-evidence", "references/reviews.md");
assert_text(
"reviews",
reviews,
&["## Citation reviews", "## Site reviews"],
);
assert_home("habeas-evidence");
}
Referenced definitions
Input 2: requirements selection requirements.cli.skill_structure
requirements.cli.skill_structure:md/requirements/cli.md:444–451
:::{req} skill_structure
Habeas's bundled agent skills MUST jointly give the direction that the requirements on them specify. A skill consists of its `SKILL.md` and the files under its `references/` directory. Each topic MUST be stated in full in exactly one skill, its home.
:::
Other sources
Input 1: requirements selection requirements.cli.skill_structure.evidence
requirements.cli.skill_structure.evidence:md/requirements/cli.md:475–481
:::{req} skill_structure.evidence
Under {cite}`requirements.cli.skill_structure`, the `habeas-evidence` skill MUST be the home of the authoring workflow, fixing validation findings, including uncovered Rust items, outcomes and FIXME judgments, citation and site reviews, disagreeing assessments, and the commit message for a change to agreed requirement text.
:::
Input 4: outline tests/authoring_cli.rs fn[assert_home]
- File:
tests/authoring_cli.rs - Selector:
fn[assert_home] - Kind:
fn tests/authoring_cli.rs:3092–3105
/// Asserts that `home` states each of its markers and no other skill does.
// {cite}`habeas:util`
fn assert_home(home: &str) {
assert_phrases(home, home_markers(home));
for other in SKILLS.into_iter().filter(|other| *other != home) {
let text = bundled_skill(other);
for marker in home_markers(home) {
assert!(
!text.contains(marker),
"{other} restates {home}'s {marker:?}"
);
}
}
}