requirements.cli.skill_conventions.references
Requirements index · View definition
Requirement
language: markdown paths: [assets/skills] rule: kind: minus_metadata match: - "---\nname: example\n---\n\n# Example\n" no_match: - "# Example\n":::
Rationale
Obligations. The requirement has two obligations.
- A bundled skill MAY link to files. A MAY imposes nothing to check.
- Each such link MUST say when to read the file. Each skill upholds this on its own, so the skill is the site and gets its own site review.
Neither obligation needs separate code-level tests. The existing test tests/authoring_cli.rs#fn[bundled_skills_say_when_to_read_each_reference_file] is extra assurance. It pins the “when to read” wording for each skill’s own references/ files, and it fails if a skill’s reference file has no entry in its table.
Site query skills.
- I ran
requirements.cli.skill_conventions.references/skills. It returned exactly five matches, theSKILL.mdfront matter ofhabeas,habeas-requirements,habeas-evidence,habeas-bootstrap-requirementsandhabeas-refactor. - These are the same five names as the
SKILLSconst intests/authoring_cli.rs. - A search for
^name: habeasacross the repository found no other skill. The reference files underassets/skills/*/referenceshave no front matter, so they are rightly not selected. - The query therefore selects every bundled skill and nothing outside the stated scope.
Query snippets. The match snippet is a document with --- front matter. The no_match snippet is the same body without front matter. Together they show the minus_metadata condition separating a skill from a plain markdown file. The requirement has no violation queries.
Cross-skill links. habeas-bootstrap-requirements and habeas-evidence also link to ../habeas/references/ci.md, and the test does not check these links. They are links to files the skill links to, so each skill’s own site review covers them. The requirement does not assign them to code, so I do not count the missing check as a test gap.
No gap found.
Inputs
Tests
Input 2: outline tests/authoring_cli.rs fn[bundled_skills_say_when_to_read_each_reference_file]
- File:
tests/authoring_cli.rs - Selector:
fn[bundled_skills_say_when_to_read_each_reference_file] - Kind:
fn tests/authoring_cli.rs:3640–3693
// {test}`requirements.cli.skill_conventions.references`
#[test]
fn bundled_skills_say_when_to_read_each_reference_file() {
let links = [
(
"habeas",
"references/ci.md",
"Use the [CI example](references/ci.md) when adding these steps to an existing workflow; setup configures the collector and static validation test, while CI integration belongs in the project's workflow",
),
(
"habeas",
"references/distributed-requirements.md",
"For an obligation that applies separately at each of many sites, such as a convention every validation function follows, read [references/distributed-requirements.md](references/distributed-requirements.md) before drafting it, and whenever you edit a `{req}` that contains `{sites}` or `{violations}`",
),
(
"habeas",
"references/syntax-details.md",
"If a file that implements or tests a requirement cannot carry a comment, such as a shipped skill or a stylesheet copied into other projects, or a requirement lives in a nested chapter, read [references/syntax-details.md](references/syntax-details.md)",
),
(
"habeas-requirements",
"references/review-prompt.md",
"For each group, start a read-only subagent, all in parallel. Tell it to read this skill's `references/review-prompt.md`",
),
(
"habeas-evidence",
"references/authoring-failures.md",
"If authoring fails on configuration, credentials, throttling, or a denied mandatory input, read [references/authoring-failures.md](references/authoring-failures.md)",
),
(
"habeas-evidence",
"references/fixme.md",
"| a real gap the user agrees to defer, a FIXME judgment, or a `{fixme}` issue that closed | read [references/fixme.md](references/fixme.md) |",
),
(
"habeas-evidence",
"references/reviews.md",
"| false citation or site review | read [references/reviews.md](references/reviews.md) |",
),
];
for name in SKILLS {
let text = collapse(skill_md(name));
for (path, _) in &skill_files(name)[1..] {
let found = links
.iter()
.filter(|(skill, file, _)| *skill == name && file == path)
.collect::<Vec<_>>();
assert!(!found.is_empty(), "{name} links {path} with no check here");
for (_, _, link) in found {
assert!(text.contains(link), "{name} lacks {link:?}");
}
}
}
}
Other sources
Input 1: requirements selection requirements.cli.skill_conventions.references
requirements.cli.skill_conventions.references:md/requirements/cli.md:544–559
::::{req} skill_conventions.references
A bundled skill MAY put material needed only in specialized situations in files it links to. Each such link MUST say when to read the file. Each bundled skill, recognized by its front matter, is a site:
:::{sites} skills
```yaml
language: markdown
paths: [assets/skills]
rule:
kind: minus_metadata
match:
- "---\nname: example\n---\n\n# Example\n"
no_match:
- "# Example\n"
```
:::
::::
Input 3: outline assets/skills/habeas-bootstrap-requirements/SKILL.md (whole file)
- File:
assets/skills/habeas-bootstrap-requirements/SKILL.md - Selector:
(root) - Kind:
file assets/skills/habeas-bootstrap-requirements/SKILL.md:1–157
---
name: habeas-bootstrap-requirements
description: Use when adopting Habeas in an existing codebase, when `habeas status --coverage` warns about uncovered items across most of a project's code, or when the user asks for a requirements coverage audit. Inventories tests, Rust items, and user-visible behavior; proposes an initial requirement set for the user's approval; tags every test and each requirement's root items; and drives `habeas author` and validation to full coverage. For a few uncovered items, use habeas-evidence.
---
# Bootstrap requirements
Habeas traces requirements, written in a project's mdBook, to the code and tests
that implement and verify them. Bootstrapping derives requirements from code
that already exists, so every requirement starts as a proposal: observed
behavior may be intended, a bug, or incidental.
Follow the habeas skill's "Testing and coverage artifacts": default to
`habeas coverage` for unit, integration and focused runs through `cargo nextest`;
run doctests separately with `cargo test --doc --workspace`, and never stage or
commit disposable coverage artifacts in the Cargo target directory.
## Workflow
Steps 1 to 3 run once. Repeat steps 4 to 7 for each area, such as one command
or module, then do steps 8 and 9. In a large codebase, give each area's reading
to a subagent to keep it out of your context.
- [ ] 1. Read the habeas skill for directive syntax, and the habeas-requirements
skill: its steps 3 to 5 review, agree, and commit requirements, and its "Choosing
references" and "What the review checks" sections govern tagging. Aim for
accurate references, not a coverage number. If the project has no
`tests/habeas.rs` calling `habeas::validate()`, Habeas is not set up: ask
before running `habeas setup`. Before bootstrapping evidence, check coverage readiness with `habeas status`: the validation test also checks the saved `.config/nextest.toml` collector and default-profile rules. Use `habeas setup` to establish or repair the integration under the existing setup authorization. Report conflicting nextest settings for review; preserve project-specific settings. If a requirement already exists, confirm
authoring works with `habeas author --stdout <full-name>`, which always
assesses and writes no evidence. If it fails, read the habeas-evidence
skill's `references/authoring-failures.md`.
- [ ] 2. Read the existing requirements, documentation, public entry points,
implementation, and tests. Follow behavior through the code rather than
relying on test names or top-level dispatch.
- [ ] 3. Build the inventories and the gap list (below).
- [ ] 4. Propose requirements for the area (below), reusing existing ones by
full name and proposing any changes to their text. Write them as
uncommitted edits to the area's chapter, one file per area, such as
`md/requirements/cli.md` for `requirements.cli.*`; for a new chapter, add
it to `SUMMARY.md` and `git add -N` it so reviewers see it.
- [ ] 5. Review, agree, and commit them through habeas-requirements steps 3 to
5; a general request to bootstrap is not agreement to specific text.
**Gate:** don't commit a requirement or tag code against it until the user
agrees to its text. Remove drafts the user rejects, defers, or has not
decided from the chapter, and keep them on the gap list.
- [ ] 6. Tag the area's tests and root items (below). In the first area, if step 1
had no requirement to try, run `habeas author <full-name>` on one of the
area's requirements to confirm authoring works before going on.
- [ ] 7. Validate and author the area:
- [ ] a. Run `habeas coverage`, which makes no model calls, and fix
the reference errors in this area's files. Leave uncovered items for
now: assessments that read reached code cover them, and none have
run yet. Items in areas not yet bootstrapped wait for their own
pass; never give them placeholder references.
- [ ] b. Tell the user how many definitions `habeas status` says need
authoring.
- [ ] c. Follow the habeas-evidence workflow for this area's definitions,
running `habeas author <full-name>` for each, and
`habeas author sites:<full-name>` for each distributed requirement,
until each passes or is on the gap list with a reason. Citation
reviews are authored only by `habeas author --all`, which also
authors other areas' definitions: run it once the area's own
definitions pass, then check that this area's items are covered.
Full validation can pass only after the last area.
- [ ] 8. Have a fresh subagent recount both inventories from the source and tests
without your lists, and reconcile any differences.
- [ ] 9. Run `habeas test` for full-workspace collection and post-suite coverage
checking. Include remaining execution-coverage gaps in the report,
separately from unmapped items and evidence findings. Recommend separate
successful collection and `habeas coverage-check` steps in project CI,
using the Habeas [CI example](../habeas/references/ci.md). Collection alone
does not enforce the coverage policy. Report (below). Next: for gap-list items the user decides, follow the
habeas-requirements skill.
{impl}`requirements.test-coverage.check.guidance`
## Inventories
Keep the inventories and the gap list in the conversation or in a file outside
the repository; a staged file listing names in role syntax would add
references.
- **Tests:** every first-party runnable test or test case, including integration
tests and parameterized cases. Record the behavior each test checks; fill in
requirement names once they are installed.
- **Items and behavior:** in Rust projects, every function, method, struct,
enum, and union, listed from the source rather than from the coverage
warnings, since an assessment's read can cover an item whose
behavior no requirement states. Add by hand the observable surface: public
APIs, commands, handlers, UI actions, configuration, outputs, errors, and
distinct observable branches. A tagged entry point doesn't mean every observable branch beneath
it has a requirement.
- **Gap list:** each item or behavior you cannot yet map, with its location, the
reason, and the open question.
Exclude third-party and checked-in generated code. Rust item coverage already
skips the project-root `vendor` directory; for any other such path, add it to
`[evidence] disallow` in `habeas.toml` with the user's agreement, which also
hides it from authoring.
## Proposing requirements
Write one requirement per obligation a user could rely on; the
habeas-requirements review (step 3) splits compound ones. For tests of internal
invariants, write a requirement for the invariant they check rather than
inventing a user-facing promise. Label each proposal and act on the label:
- **Intended:** state the observed behavior.
- **Possible bug:** ask the user what behavior is intended and write the
requirement for that. Don't change the code during bootstrap unless the user
asks; the resulting false judgment stays on the gap list, or gets a
`{fixme}` reference if the user defers it (the habeas-evidence skill's
`references/fixme.md`).
- **Incidental:** the user chooses between a requirement, often with MAY, and
removing the behavior. For example, a command that also accepts an
undocumented alias.
When a convention applies on its own at many sites, such as how every
validation function continues after a failed check, propose a distributed
requirement instead of marking each site `{impl}`; read the habeas skill's
`references/distributed-requirements.md`.
## Tagging
Give every inventoried test and each requirement's roots their references by
"Choosing references" in the habeas-requirements skill: `{test}` on tests and `{impl}`
on roots; code a root or test reaches needs none. Map each other inventoried
item to the requirement whose root reaches it. Every test must end up with a `{test}` reference to a requirement or example,
attached to the test as the habeas-requirements skill describes; a test whose behavior no agreed requirement states goes on the gap
list, never `habeas:util`. For a parameterized test, put the reference on the
case source or the generating declaration; one file-level tag must not stand in
for unrelated tests. Where one behavior follows from several requirements,
mark each with `{impl}` where it applies and explain how they combine, as the
habeas-requirements skill describes. An item that neither carries out a
requirement nor serves other code goes on the gap list: it needs a requirement
or is not needed.
## Report
```text
Tests mapped: <mapped>/<total>
Items mapped: <referenced or reached from a mapped root>/<total> (covered only by reads: <count>)
Independent recount: <agrees | differences and how reconciled>
Gaps:
- <item or behavior> (<file>:<line>): <reason>; <open question>
```
Claim 100% only when both inventories have no unmapped items, the independent
recount agrees, and every observable branch has been reviewed. Don't silently
exclude difficult cases.
## Gotchas
- Never write evidence yourself or ask another agent to, even over a long
session (habeas-evidence explains why).
- When assessments of the same subject disagree, follow "Disagreeing
assessments" in the habeas-evidence skill.
Input 4: outline assets/skills/habeas-evidence/SKILL.md (whole file)
- File:
assets/skills/habeas-evidence/SKILL.md - Selector:
(root) - Kind:
file assets/skills/habeas-evidence/SKILL.md:1–186
---
name: habeas-evidence
description: Use when Habeas evidence needs creating or refreshing, or when `habeas coverage` or `habeas status` reports Habeas findings such as missing, stale, or false evidence, uncovered `{test}` lines, uncovered Rust items, FIXME judgments, citation or site reviews, or disagreeing assessments, even if the user only says "the habeas test is failing". Covers running `habeas author` and fixing what it flags. If evidence went stale because code or requirements moved, use habeas-refactor first.
---
# Habeas evidence
## Workflow
Run commands from the project root, the directory with `book.toml` and
`Cargo.toml`.
- [ ] 1. `git add` new source files. Authoring and reference discovery read only
files in the Git index; unstaged edits to tracked files are read.
- [ ] 2. `habeas status` lists what needs attention; `habeas info <name>` shows
one definition's judgment, rationale, and findings. Fix what the findings
name (see "Fixing findings"), except uncovered Rust items: leave those
until after step 3, because an assessment that reads an item covers it.
- [ ] 3. `habeas author --all` assesses every definition whose evidence is
missing, stale, or invalid and skips current ones; `-v` prints each false
judgment's rationale. `habeas author <name>` does one.
- [ ] 4. `habeas coverage`, then handle the coverage warnings of
`habeas status --coverage` as "Uncovered Rust items" says. While findings remain
that you can fix, return to step 2.
- [ ] 5. Check the "Disagreements" section of `habeas status`. Validation
accepts a `true` or FIXME whose rationale records a disagreement, so only
this shows it; see "Disagreeing assessments".
- [ ] 6. Stop and report each finding that needs the user: a new or changed
requirement, a gap to defer, a blocker, missing information needed to
decide test adequacy, or a missing record or false judgment whose rationale
names only implementation that is still pending, which is expected.
Don't keep iterating on those, and never write placeholder evidence.
Don't wait for answers before step 7.
- [ ] 7. Commit every change under `evidence/` (new, updated, and deleted
records) with the source and requirement changes they assess; CI
validates only committed evidence.
- [ ] 8. Next: for findings that need code or tests, or requirement text that
must change, return to the habeas-requirements skill.
## Testing and coverage findings
Follow the habeas skill's "Testing and coverage artifacts": default to
`habeas coverage` for unit, integration and focused runs through `cargo nextest`;
run doctests separately with `cargo test --doc --workspace`, and never stage or
commit disposable coverage artifacts in the Cargo target directory.
For post-suite `habeas coverage-check` failures, first distinguish missing or
stale measurement from actual coverage gaps. Recollect measurement failures;
no explanation can waive them. Add tests for coverage gaps, or give a
substantive explanation through a standard `habeas:coverage` citation and author
its independent citation review. Neither `habeas:util` nor `{fixme}` excuses
execution coverage. Use `habeas test` for full verification after the changes.
The habeas skill's "Testing and coverage artifacts" gives the per-file target
and function obligations.
For CI integration, recommend the separate collection and check steps in the
Habeas [CI example](../habeas/references/ci.md); collection alone does not enforce
the policy.
{impl}`requirements.test-coverage.check.guidance`
## Judgments
`habeas author` records, for each requirement and example, a model's judgment
of whether the reviewed tests adequately check it; `habeas coverage` validates
those records without calling a model. A judgment is one of three outcomes:
- `true`: the reviewed tests adequately check the definition, with no gap under
the assessment's criteria.
- `false`: there is a gap that no `{fixme}` reference acknowledges; the
rationale names it.
- FIXME: `{fixme}` references acknowledge every remaining gap; validation
accepts it while each named issue is open.
## Rules
- Never write or edit evidence JSON, determinations, rationales, or inputs
yourself, and never hand that to another agent. Evidence means something only
as an independent assessment that the harness records. If authoring cannot
run, see Gotchas; when the fix needs the user, such as missing credentials,
stop and report the blocker.
- Never re-run an assessment to get a different result or to get an item read.
Results vary between runs, so a lucky pass or read would not stay true. Fix
the source, tests, references, or requirement text instead. Use `--force`
only when something the hash does not see changed: a fix in an ordinary
comment, a newly staged file, or a reassessment the user asked for.
- Don't read evidence files into your context. Use `habeas status` and
`habeas info`; to survey many rationales, ask a subagent to read them and
return short findings.
- A change to agreed requirement text, even a rewording, goes through habeas-requirements steps 3 to 5 (subagent review, the user's agreement, commit) first. Then give the reason, and the rationale that
prompted it, in the message of the commit that makes it, describing the change
relative to the prior commit rather than the drafts that led to it.
- Validation is deterministic. Run `habeas author` yourself; never add it to CI.
## Fixing findings
| Finding | Action |
| --- | --- |
| missing or stale evidence | `habeas author --all` |
| false judgment | read the rationale with `habeas info <name>`, fix the gap it names, then `habeas author --all` |
| uncovered `{test}` line | check the reference names the right definition, then `habeas author <full-name>`; fixing the reference makes the record stale, so no `--force` is needed |
| rationale identifies an unmarked standalone test | add `{test}` for the requirement or example it verifies; a reached test helper needs no reference of its own |
| uncovered Rust item | see "Uncovered Rust items" |
| a real gap the user agrees to defer, a FIXME judgment, or a `{fixme}` issue that closed | read [references/fixme.md](references/fixme.md) |
| false citation or site review | read [references/reviews.md](references/reviews.md) |
| orphaned citation or site review | `habeas author --all` deletes it |
| orphaned evidence for a renamed requirement or example | `habeas refactor --map <old>=<new>` (habeas-refactor), which keeps the evidence |
| orphaned evidence for a removed requirement or example | `git rm` the file the finding names (removing an orphan is not editing evidence), then `habeas author --all` |
| untracked file with references | `git add` it |
A false rationale names one of the gaps listed in "What the review checks" in
the habeas-requirements skill. Behavior with no requirement needs one agreed
with the user. Each determination stands alone: a false requirement does not
fail the definitions it implements, tests, or cites, so fix each on its own.
### Uncovered Rust items
Validation fails for only two kinds of uncovered item: a test function, with
`#[test]` or another attribute ending in `test`, that has no `{test}`
reference, and a Cargo example that does not `{cite}` a named example of the
book. Add the reference.
Every other uncovered item contributes to the coverage warning count in
`habeas status` and after `habeas author`, and does not fail validation.
Use `habeas status --coverage` to see the individual warnings.
An item has recent coverage
when it has its own reference, or when a recent version of an existing
evidence record or review read it: the version on disk or one of its last
three commits (`[coverage] reauthorings` in `habeas.toml` changes the number).
Items inside `mod tests` are never warned about. So an item a record stopped
reading stays quiet for a few re-authorings, while a new item that nothing has
read, or one whose only record was deleted, is warned about at once.
For each item still warned about after `habeas author --all`, choose
references by "Choosing references" in the habeas-requirements skill:
Before changing an uncovered item, determine whether it is a requirement root,
an entry point, an item that serves other code, or dead code. Report dead code
to the user without editing it.
| Situation | Action |
| --- | --- |
| the item is a root of a requirement's implementation | add `{impl}` of that requirement to the item |
| the item only serves other code | add `` // {cite}`habeas:util` `` |
| nothing reaches the item | report it to the user as dead code; don't delete it unasked |
## Disagreeing assessments
The goal is that independent assessments of the same subject reach the same
determination, because the requirement, code, and tests leave no gap a careful
reviewer could find and no reading a careful reviewer could take differently.
Assessments that disagree are findings against that goal.
By default (`confirm` policy), `habeas author` checks each `true` or FIXME
result with a second assessment and a verifier, and notes any disagreement at
the end of the recorded rationale. A determination that changes on
reassessment, though the subject and sources have not changed in substance, is
the same kind of finding.
1. Read both assessments: for a recorded disagreement, the rationale and its
note (`habeas info`); for a changed determination, the new rationale and the
previous one, which only Git has, such as by asking a subagent to summarize
`git show HEAD:evidence/<full-name>.json`. Decide whether one found a real
gap or the requirement text admits more than one reading.
2. Fix the source or tests, or tighten the requirement text through habeas-requirements steps 3 to 5 (subagent review, the user's agreement, commit).
## Gotchas
- What makes evidence stale:
| Change | Evidence |
| --- | --- |
| moving a node within its file without changing its selector (such as `impl[Thing]/fn[run]`), or editing Rust `//` comments | stays current |
| moving a node to another file or outline node | stale or invalid; use habeas-refactor |
| renaming a node | stale; reassess |
| editing code, doc comments, or docstrings | stale |
| adding, removing, or changing the role of an `{impl}`, `{test}`, or `{fixme}`, or editing its commentary | stale |
| editing an item with no reference | every record that read it is stale; the item keeps recent coverage while recent versions of those records read it |
Make related edits to shared helpers together before authoring.
- After a fix the hash does not see, such as one only in an ordinary comment,
run `habeas author --force <full-name>`.
- A false rationale saying the reviewer could not read a file you created means
the file is untracked: `git add` it and run `habeas author --force <name>`.
The inputs changed, so this is not a re-run for a different result.
- If authoring fails on configuration, credentials, throttling, or a denied
mandatory input, read
[references/authoring-failures.md](references/authoring-failures.md).
Input 5: outline assets/skills/habeas-refactor/SKILL.md (whole file)
- File:
assets/skills/habeas-refactor/SKILL.md - Selector:
(root) - Kind:
file assets/skills/habeas-refactor/SKILL.md:1–71
---
name: habeas-refactor
description: Use when a change moves code, tests, or requirements in a Habeas project to another file, chapter, or outline node, such as moving a function to another module, renaming or splitting a file, splitting or merging modules or chapters, or moving or renaming a requirement, so that evidence whose content is unchanged is not invalidated. Covers making the move and running `habeas refactor` to update evidence, references, and anchors. Not for changing what code or requirements say; use habeas-requirements.
---
# Habeas refactor
Evidence records where it read code and requirements: files, outline selectors
such as `fn[load]`, and full definition names. A move changes those addresses
without changing what was reviewed. `habeas refactor` rewrites the addresses,
so the evidence stays current without a model reassessing it.
## Workflow
Run commands from the project root, the directory with `book.toml` and
`Cargo.toml`.
- [ ] 1. Make the move with your own edits: move the file, cut and paste the
function, or move the `{req}` directive to its new chapter. Change
nothing else in this step. Keep the moved code's text, including doc
comments, and the moved requirement's text exactly as they were. Leave
`{impl}`, `{test}`, `{cite}`, `{fixme}`, and `{term}` references to a
moved definition, and `:impl:` and `:test:` anchors to a moved file,
as they are; the command rewrites them.
- [ ] 2. Record the move in the Git index: `git mv` for a moved file, or
`git add -A` on both the old and new paths. Reference discovery reads
only files in the Git index, so a stale old path still counts.
- [ ] 3. `habeas refactor --dry-run` with one `--map <old>=<new>` for every
moved file or directory, node, and definition name:
- a file or directory: `--map src/config.rs=src/settings.rs`, which also
covers every file under a directory;
- a node: `--map 'src/config.rs#fn[load]=src/config/load.rs#fn[load]'`,
which also covers the nodes inside it (quote it for the shell);
- a definition: `--map requirements.cli.check=requirements.core.check`,
which also covers the names beneath it, such as
`requirements.cli.check.case`.
To find a node's selector, `habeas info <name>` lists the inputs of a
requirement that reads it.
- [ ] 4. Review the report:
- "Would rewrite" lists the sources whose references or anchors change;
- "Would change" lists the records it updates, with each code span in
their rationales that still mentions an old path. The command leaves
rationale prose alone; show these spans to the user, and if they ask
for a record to be reassessed, run `habeas author --force <full-name>`
after step 7;
- "Would leave ... unchanged" lists records a mapping affects that fail a
check, with the reason. An unexpected one usually means the moved text
changed, or a mapping is missing; fix that and run the dry run again.
- [ ] 5. Run the same command without `--dry-run`.
- [ ] 6. `habeas status`. Only the records the report left unchanged, and any
that were stale before, should need attention.
- [ ] 7. Commit the move, the rewritten references, and the `evidence/` changes
together, before any change to behavior or text.
- [ ] 8. Next, reassess what remains stale with `habeas author --all`,
following the habeas-evidence skill, and if assessments disagree, its
"Disagreeing assessments"; then make any behavior or text changes as separate commits under
the habeas-requirements skill.
## Gotchas
- Never edit evidence files by hand to follow a move; `habeas refactor` updates
them only where it can check that nothing reviewed changed.
- A rename is not a move. Renaming a function, type, or other item changes its
code, and so its structural hash: its evidence needs reassessment with
habeas-evidence. Renaming a requirement's ID is a definition mapping, and
works when its text is otherwise unchanged.
- Editing moved code or text in the same step leaves every record that read it
stale. Move first, run the command, commit, then edit.
- A requirements input that selects a glob, such as `requirements.cli.*`, stays
stale when a definition moves out of it or into it: what it matches changed.
Input 6: outline assets/skills/habeas-requirements/SKILL.md (whole file)
- File:
assets/skills/habeas-requirements/SKILL.md - Selector:
(root) - Kind:
file assets/skills/habeas-requirements/SKILL.md:1–190
---
name: habeas-requirements
description: Use during design sessions and before changing code, tests, or requirement text in a project that tracks requirements with Habeas, even when the user only asks for a feature, bug fix, CLI flag, test, dependency bump, or wording tweak and never says "requirement". Drafts or edits requirements with the user (or confirms none change), has subagents review them, gets the user's agreement, then implements and adds `{impl}`/`{test}`/`{cite}` references. Not for moving code or requirements between files or outline nodes; use habeas-refactor. For validation findings, use habeas-evidence.
---
# Habeas requirements
Every end-user-observable result of the code, including errors and input
handling, must follow from a requirement the user agreed to. The habeas skill
has the directive and reference syntax.
## Workflow
- [ ] 1. Check the starting point. Run `git status` on the book's source
directory. If it has uncommitted edits you did not make in this task, ask
the user whether they belong to it. Read the relevant requirements, code,
and tests; `habeas info <selection>` prints a requirement's text and state.
If the change adds, alters, or removes no observable behavior (a comment typo, a
dependency bump, a speed-up), or an existing requirement already specifies
it (most bug fixes), tell the user which requirement covers it, or that
none is needed, and go to step 6.
- [ ] 2. Draft. Write drafts from the request straight into the chapter as
uncommitted, unstaged edits, with no draft marker; Git tracks what is in
progress. For a new chapter, add it to `SUMMARY.md` and `git add -N` it so
reviewers and Habeas see it. Ask the user only what the request can't
answer; the review in step 3 finds the rest. Drafts may be high-level,
compound, or incomplete. Cover each observable outcome and failure case
of the change without committing to an implementation. Reuse existing
requirements by full name, and propose a new one only for behavior none
covers; one general requirement, such as "invalid arguments MUST be
reported with usage", can cover many branches. Note the open product
choices; reviewers get them in step 3.
- [ ] 3. Review. Sort the new and changed requirements into groups that one
reviewer should see together: requirements that cite each other or
describe one feature. For each group, start a read-only subagent, all in
parallel. Tell it to read this skill's `references/review-prompt.md` and
the habeas skill's `SKILL.md` by absolute path, and give it the group's
full names and a brief: what the user asked for, the decisions already
made, and the open choices already noted, which it should not re-raise.
If you can't start subagents, review each group yourself against the
prompt, one group at a time. Apply the revised text the reviews return,
and reconcile reviews that clash, such as two that split the same
requirement differently; a clash whose resolution changes what is
promised becomes a design question.
- [ ] 4. Present each group to the user: its exact text, including any `{sites}`
and `{violations}` queries, and the design questions the review returned,
each with its options and your recommendation. Show text that was already
agreed or that the user supplied as a diff against that text, then a
"Mechanical:" list of the changes. Show the edits reviewers made outside
their group the same way, and list added `{example}`s, which each need a
test. Don't raise mechanical changes to new text as questions. Apply the
user's decisions. If a decision adds an obligation no reviewer saw,
review that group again.
**Gate:** no implementation or test code, and no commit, until the user
has agreed to, rejected, or deferred every group. Exact text the user supplied, or explicit agreement
earlier in the conversation, counts; a general request to build the
feature does not. If you cannot ask the user in this session, stop,
leave the drafts uncommitted, and report them with the design
questions.
- [ ] 5. Commit. Revert drafts the user rejected or deferred (`git restore -p`)
and list them in your report. Check with `git diff` that the book holds
exactly the agreed text, then commit it, all groups together, before any
code; leave out unrelated edits found in step 1. For a change to agreed
text, the message gives the reason and the rationale that prompted it,
relative to the prior commit (habeas-evidence, "Rules"). This commit fails
validation until evidence is authored; that is expected, as only the pull
request as a whole must pass. Report the full names. In a design session
with no code to write, stop here.
- [ ] 6. Implement and test. Add references as "Choosing references" says, then
check the work against "What the review checks". When a requirement was
split, move the `{impl}` and `{test}` of each split-off part to its new
name.
- [ ] 7. Next, follow the habeas-evidence skill to author evidence and fix what
it reports. When assessments disagree, follow its "Disagreeing
assessments".
Every change to agreed text, including a rewording for precision or removing a
requirement, goes through steps 3 to 5 before it is committed. If
implementation shows that agreed text must change, stop work that depends on it and take the changed requirements
through steps 3 to 5 first. Behavior no requirement covers goes back to step 2.
Renaming or moving a committed requirement is a habeas-refactor task, agreed
with the user and committed before its text changes. Restructuring code in
place, including renaming an item, needs no requirement review, but references
move with the code and the evidence is reassessed; moving code to another file
or outline node is a habeas-refactor task.
## Choosing references
The reviewer starts from a requirement's `{impl}` and `{test}` items and follows
what they *reach*: what an item calls, the types it uses, and the trait methods
it calls, transitively. Callers don't count. An item *carries out* part of a
requirement when it makes a decision, performs a check, produces an output, or
handles a case the requirement specifies; a type does when the requirement
constrains its fields, variants, serialized form, or validation. A *root* is an
item that carries out part of a requirement and that no other `{impl}` item for
it reaches. Roots are per requirement: a helper reached from one requirement's
root may be a root of another.
For each requirement or example an item could reference (an item may carry
several):
1. A test designed to verify it gets `{test}`. Helpers the test calls need
nothing; setup a test happens to exercise does not count.
2. Otherwise a root gets `{impl}`. Leave what it reaches unmarked.
3. Otherwise, code that should be re-checked when the requirement changes gets
`{cite}`.
4. Otherwise, if the item is still uncovered after `habeas author` has run
(see Gotchas), and it serves other code and carries out no requirement
itself, it gets
`` // {cite}`habeas:util` ``. That includes code a library calls, such as a
trait implementation it requires.
Edge cases:
- Code that only checks consistency with a requirement, such as recognizing a
form it defines to decide whether to run other behavior, gets `{cite}`. A
dispatcher that only routes to the implementation gets `{cite}` of what it
dispatches to, or nothing.
- A requirement that refines another's obligation can `{impl}` it.
- A site of a distributed requirement needs no reference to it, but a site that
is a root of another requirement gets `{impl}` of that one.
- If a behavior follows only from several requirements together, mark each with
`{impl}` where it applies and add fenced commentary saying how they combine.
For example, `^C` quits because one requirement maps `^C` to `q` and another
says q stops managed forwards; a reference alone would not say why `^C` is
accepted.
- For internal code with an invariant worth checking, such as a cache that must
not change results, propose a requirement stating the invariant and
`{impl}` it. Don't propose grouping requirements that state no checkable
obligation, such as one covering an area's internal helpers.
- An item that neither carries out a requirement nor serves other code needs a
requirement or is not needed: report it to the user with a proposed
requirement, or as dead code if nothing reaches it. Don't delete it unasked.
- Don't remove an existing `{impl}` from code a root reaches unless the user
asks: the user may want it as a root, and removing it changes what the
assessment reads.
`{cite}` implements nothing; a citation review checks project citations' roles
and built-ins' stated criteria. Execution-coverage exceptions use
`habeas:coverage` with an assessed prose justification, as the habeas skill's
"Testing and coverage artifacts" explains. To defer a requirement gap the user agrees to,
use `{fixme}` as the habeas-evidence skill's `references/fixme.md` describes.
## What the review checks
Before running `habeas author`, check the change against what each
requirement's assessment treats as a gap:
- obligations, boundaries, and failure cases no test runs and asserts. A test
may be omitted only for code with no logic of its own, or code that needs
network services, real time, or process-wide state no project test sets up;
temporary files don't qualify, and an obligation that a value stays
unchanged, distinct, or present always needs a test;
- assertions whose expected results contradict the requirement, or assertions
too weak to rule out plausible requirement-violating behavior;
- a standalone test designed to verify the subject without `{test}`; helpers
reached from marked tests need no reference of their own;
- an applicable SHOULD with inadequate tests, and text with two equally
supported readings that lead to different testing judgments.
An example's review checks that tests' setup and assertions cover its scenario
and each expected outcome. One acknowledged gap does not excuse others.
Derive expected behavior from the requirement, then map each obligation assessed
here to concrete test inputs and assertions. Follow helpers, fixtures, snapshots,
and parameterized tests before claiming an assertion is absent. For a proposed
adequacy gap, explain what requirement-violating behavior those tests would
accept, and check whether another reviewed test rules it out. Identify delegated
obligations and established testing exemptions separately.
The model initially receives the subject and its context, test sources, and
comment-only `{fixme}` acknowledgments. An `{impl}` reference or anchor alone
does not supply implementation source. `references` locates sources without
reading them; its `roles` filter can select implementations. A `habeas` source
read is recorded. The model requests implementation only for a specific question;
its passing judgment establishes test adequacy, not implementation correctness.
The supervising agent must still check that the code fulfills each applicable
requirement and introduces no additional end-user-observable behavior without an
agreed requirement.
## Gotchas
- In Rust, every explicit function or method, including trait methods and test
helpers, and every struct, enum, and union must be covered: by
its own reference, or by a current assessment that read it or an enclosing
item. A reference on an enclosing module or `impl` is not the item's own.
- Search results only locate code; they cover nothing.
- Reads exist only after `habeas author`, so author before treating an item as
uncovered, and before giving it `habeas:util`. For an item still uncovered
after that, see "Uncovered Rust items" in the habeas-evidence skill.
Input 7: outline assets/skills/habeas/SKILL.md (whole file)
- File:
assets/skills/habeas/SKILL.md - Selector:
(root) - Kind:
file assets/skills/habeas/SKILL.md:1–182
---
name: habeas
description: Use at the start of any work in a project that tracks requirements with Habeas (a `habeas` dev-dependency, a `habeas.toml`, `{req}` directives in its mdBook, or `{impl}`/`{test}`/`{cite}` references in code) to pick the task skill (habeas-requirements for design and any change, habeas-refactor for moves, habeas-evidence for validation findings, habeas-bootstrap-requirements for adoption). Also the reference for directive and reference syntax, `habeas status` and `habeas info`, and gotchas common to every Habeas task.
---
# Habeas
Habeas traces requirements, written in a project's mdBook, to the code and tests
that implement and verify them. `habeas author` has a model assess whether tests
adequately check each requirement and records the result as evidence under `evidence/`;
`habeas::validate()` validates that evidence without calling a model.
`habeas test` runs instrumented workspace tests and checks their saved execution
coverage.
## Workflow
- [ ] 1. Pick the skill for the task:
| Task | Skill |
| --- | --- |
| A design session, or any change to behavior, code, tests, or requirement text, including renaming code in place | habeas-requirements |
| Moving code, tests, or requirements to another file, chapter, or outline node, or renaming a requirement, without changing them | habeas-refactor |
| Creating or refreshing evidence; `habeas coverage` or `habeas status` reports Habeas findings | habeas-evidence |
| Adopting Habeas in an existing codebase, or most of the code has no references | habeas-bootstrap-requirements |
If Habeas is not configured yet (no `tests/habeas.rs` calling
`habeas::validate()`), ask the user before running `habeas setup`; if
setup is not completed, do no Habeas requirements work in the project.
A new project with little code starts with habeas-requirements, not
habeas-bootstrap-requirements, even though most of its code has no
references.
- [ ] 2. Follow that skill; each one names the next. 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.
Run commands from the project root, the directory with `book.toml` and
`Cargo.toml`.
## Testing and coverage artifacts
Use `habeas coverage` by default for every Rust unit and integration test run,
including focused runs (`habeas coverage -- -E 'test(name)'`). The workflow uses
`cargo nextest` for parallel process runs and retains independent process
coverage. In this repository use the local alias, `cargo habeas coverage`.
Run doctests separately with `cargo test --doc --workspace`. Install prerequisites
with `cargo install cargo-nextest --locked` (>= 0.9.116) and
`rustup component add llvm-tools-preview` when needed.
Profiles, reports, and captured source under the Cargo target directory
(`target/habeas/coverage/` by default) are disposable build artifacts. Never stage
or commit them to Git. The book combines each test's latest compatible attempt;
source changes invalidate the combined coverage, while saved reports remain
inspectable. Building the book does not run tests.
For final verification, run `habeas test` (`cargo habeas test` in this repository).
It collects coverage for the full workspace, then checks it. In CI, recommend
`habeas coverage -- --workspace` followed, only on success, by
`habeas coverage-check`. The check reads saved data and calls no model; the
static `habeas::validate()` test requires no prior execution coverage.
{impl}`requirements.test-coverage.check.guidance`
When setting up or reviewing project CI, check that it runs both collection and
the post-suite check. Collection alone does not enforce the coverage policy.
Use the [CI example](references/ci.md) when adding these steps to an existing
workflow; setup configures the collector and static validation test, while CI
integration belongs in the project's workflow.
Each first-party Rust file needs 80% instrumented-line coverage. Each completely
unexecuted or not-measured function, including functions excluded by the build
configuration, needs an independently assessed explanation. Partly covered
functions need no exception when their file meets its target. Write a standard
`{cite}` of `habeas:coverage`, with the rationale in fenced commentary or a Rust
doc comment, and author its citation review with `habeas author`. A file-root
citation excuses only the file threshold; a function citation excuses only that
function. Only current accepted review evidence permits the exception. No
project declaration or extra configuration is needed. The citation applies
across build configurations and may remain when coverage is sufficient.
Exceptions never increase reported percentages.
{impl}`requirements.test-coverage.check.exceptions.setup`
The requirements index automatically includes a Coverage gaps subchapter.
Do not add a coverage source chapter or coverage-index directive. Use its CI
verdict and expandable file gaps to find missing tests or coverage explanations;
accepted documented gaps are separate. The book shows coverage gaps without
per-test maps or captured-source reports.
## Inspecting
- `habeas status [<selection>]` lists definitions needing attention and a coverage-warning count.
- `habeas status --coverage` shows individual evidence-coverage warnings and coverage-history details.
- `habeas info <selection>` prints requirement and example text, evidence state,
rationale, inputs, and validation findings.
A selection is a full name or a glob in which `*` matches any characters,
including dots: `habeas info 'requirements.cli.*'`. Don't read `evidence/` files
into your context; use these commands.
## Requirements, examples, and definitions
Requirements live in the book's source directory (`[book].src` in `book.toml`,
`src` by default). A requirement is a fenced `{req}` directive. Its full name is
the chapter path relative to that directory, without `.md`, with `/` changed to
`.`, then the directive name. With `[book] src = "md"`, in `md/requirements.md`:
```text
:::{req} forwarding.quit
Pressing q MUST stop managed forwards.
:::
```
defines `requirements.forwarding.quit`. State obligations with BCP 14 terms
(MUST, SHOULD, MAY). Everything between the fences is the body.
An `{example}` is a concrete case, named and fenced the same way. Its body must
reference a requirement it illustrates: `{test}` when that requirement's review
should check the case, `{cite}` when the requirement is context for the
example's own review. A test must reference the example with `{test}` for the
example to be judged true.
```text
:::{example} forwarding.quit_two
With two forwards running, pressing q stops both. {test}`requirements.forwarding.quit`
:::
```
A `{definition}` defines shared vocabulary: `:::{definition} name`, one
`:phrase: display text` option, and an explanatory body. Refer to it with
`` {term}`full.name` ``. It has no evidence and is never the target of `{impl}`,
`{test}`, or `{cite}`. Names are unique across all three kinds.
For an obligation that applies separately at each of many sites, such as a
convention every validation function follows, read
[references/distributed-requirements.md](references/distributed-requirements.md)
before drafting it, and whenever you edit a `{req}` that contains `{sites}` or
`{violations}`.
## References
Write a reference with a full name in a comment on the relevant source line:
`` {impl}`requirements.forwarding.quit` ``, `` {test}`…` ``, or `` {cite}`…` ``.
`{impl}` marks code that carries out a requirement, `{test}` a test that
verifies it, and `{cite}` related code to re-check when it changes; the
habeas-requirements skill says which to use. `{fixme}` acknowledges a deferred
gap (the habeas-evidence skill's `references/fixme.md`).
Fence a reference to attach commentary, keeping both fences in one run of
consecutive comment lines:
```text
// :::{impl} requirements.forwarding.quit
// Stops forwards in creation order, so later ones never outlive earlier ones.
// :::
```
If a file that implements or tests a requirement cannot carry a comment, such as
a shipped skill or a stylesheet copied into other projects, or a requirement
lives in a nested chapter, read
[references/syntax-details.md](references/syntax-details.md).
## Gotchas
- A directive whose name has a segment (between dots) with characters other
than ASCII letters, digits, `_`, and `-` stays literal text and silently
defines nothing.
- A new chapter renders only once it is in `SUMMARY.md`.
- A `{req}` whose body contains a nested colon directive, including a fenced
reference, needs a longer outer fence such as `::::{req}`; otherwise the inner
`:::` closes it.
- Reference discovery and authoring read only files in the Git index. `git add`
every new source file; for a new chapter that is still a draft, `git add -N`
records it without staging its content.
- A reference inside a string literal does not count, so test fixtures can hold
role text.
- Moving or renaming a requirement changes its full name, which evidence,
references, and links use. Agree it with the user, then use habeas-refactor.
- Editing a vocabulary definition makes the evidence of everything that uses it
stale.
- When assessments of the same subject disagree, follow "Disagreeing
assessments" in the habeas-evidence skill.
- Never write or edit evidence yourself, or ask another agent to: evidence means
something only as an independent assessment (habeas-evidence, "Rules").
Input 8: outline assets/skills/habeas-bootstrap-requirements/SKILL.md section[Bootstrap%20requirements]/section[Workflow]
- File:
assets/skills/habeas-bootstrap-requirements/SKILL.md - Selector:
section[Bootstrap%20requirements]/section[Workflow] - Kind:
section assets/skills/habeas-bootstrap-requirements/SKILL.md:18–76
## Workflow
Steps 1 to 3 run once. Repeat steps 4 to 7 for each area, such as one command
or module, then do steps 8 and 9. In a large codebase, give each area's reading
to a subagent to keep it out of your context.
- [ ] 1. Read the habeas skill for directive syntax, and the habeas-requirements
skill: its steps 3 to 5 review, agree, and commit requirements, and its "Choosing
references" and "What the review checks" sections govern tagging. Aim for
accurate references, not a coverage number. If the project has no
`tests/habeas.rs` calling `habeas::validate()`, Habeas is not set up: ask
before running `habeas setup`. Before bootstrapping evidence, check coverage readiness with `habeas status`: the validation test also checks the saved `.config/nextest.toml` collector and default-profile rules. Use `habeas setup` to establish or repair the integration under the existing setup authorization. Report conflicting nextest settings for review; preserve project-specific settings. If a requirement already exists, confirm
authoring works with `habeas author --stdout <full-name>`, which always
assesses and writes no evidence. If it fails, read the habeas-evidence
skill's `references/authoring-failures.md`.
- [ ] 2. Read the existing requirements, documentation, public entry points,
implementation, and tests. Follow behavior through the code rather than
relying on test names or top-level dispatch.
- [ ] 3. Build the inventories and the gap list (below).
- [ ] 4. Propose requirements for the area (below), reusing existing ones by
full name and proposing any changes to their text. Write them as
uncommitted edits to the area's chapter, one file per area, such as
`md/requirements/cli.md` for `requirements.cli.*`; for a new chapter, add
it to `SUMMARY.md` and `git add -N` it so reviewers see it.
- [ ] 5. Review, agree, and commit them through habeas-requirements steps 3 to
5; a general request to bootstrap is not agreement to specific text.
**Gate:** don't commit a requirement or tag code against it until the user
agrees to its text. Remove drafts the user rejects, defers, or has not
decided from the chapter, and keep them on the gap list.
- [ ] 6. Tag the area's tests and root items (below). In the first area, if step 1
had no requirement to try, run `habeas author <full-name>` on one of the
area's requirements to confirm authoring works before going on.
- [ ] 7. Validate and author the area:
- [ ] a. Run `habeas coverage`, which makes no model calls, and fix
the reference errors in this area's files. Leave uncovered items for
now: assessments that read reached code cover them, and none have
run yet. Items in areas not yet bootstrapped wait for their own
pass; never give them placeholder references.
- [ ] b. Tell the user how many definitions `habeas status` says need
authoring.
- [ ] c. Follow the habeas-evidence workflow for this area's definitions,
running `habeas author <full-name>` for each, and
`habeas author sites:<full-name>` for each distributed requirement,
until each passes or is on the gap list with a reason. Citation
reviews are authored only by `habeas author --all`, which also
authors other areas' definitions: run it once the area's own
definitions pass, then check that this area's items are covered.
Full validation can pass only after the last area.
- [ ] 8. Have a fresh subagent recount both inventories from the source and tests
without your lists, and reconcile any differences.
- [ ] 9. Run `habeas test` for full-workspace collection and post-suite coverage
checking. Include remaining execution-coverage gaps in the report,
separately from unmapped items and evidence findings. Recommend separate
successful collection and `habeas coverage-check` steps in project CI,
using the Habeas [CI example](../habeas/references/ci.md). Collection alone
does not enforce the coverage policy. Report (below). Next: for gap-list items the user decides, follow the
habeas-requirements skill.
{impl}`requirements.test-coverage.check.guidance`
Input 9: outline assets/skills/habeas-evidence/SKILL.md section[Habeas%20evidence]/section[Testing%20and%20coverage%20findings]
- File:
assets/skills/habeas-evidence/SKILL.md - Selector:
section[Habeas%20evidence]/section[Testing%20and%20coverage%20findings] - Kind:
section assets/skills/habeas-evidence/SKILL.md:40–59
## Testing and coverage findings
Follow the habeas skill's "Testing and coverage artifacts": default to
`habeas coverage` for unit, integration and focused runs through `cargo nextest`;
run doctests separately with `cargo test --doc --workspace`, and never stage or
commit disposable coverage artifacts in the Cargo target directory.
For post-suite `habeas coverage-check` failures, first distinguish missing or
stale measurement from actual coverage gaps. Recollect measurement failures;
no explanation can waive them. Add tests for coverage gaps, or give a
substantive explanation through a standard `habeas:coverage` citation and author
its independent citation review. Neither `habeas:util` nor `{fixme}` excuses
execution coverage. Use `habeas test` for full verification after the changes.
The habeas skill's "Testing and coverage artifacts" gives the per-file target
and function obligations.
For CI integration, recommend the separate collection and check steps in the
Habeas [CI example](../habeas/references/ci.md); collection alone does not enforce
the policy.
{impl}`requirements.test-coverage.check.guidance`
Input 10: outline tests/authoring_cli.rs const[SKILLS]
- File:
tests/authoring_cli.rs - Selector:
const[SKILLS] - Kind:
const tests/authoring_cli.rs:2817–2825
/// The bundled skills, by name.
// {cite}`habeas:util`
const SKILLS: [&str; 5] = [
"habeas",
"habeas-requirements",
"habeas-evidence",
"habeas-bootstrap-requirements",
"habeas-refactor",
];
Input 11: outline tests/authoring_cli.rs fn[skill_files]
- File:
tests/authoring_cli.rs - Selector:
fn[skill_files] - Kind:
fn tests/authoring_cli.rs:2827–2885
/// The files of a bundled skill, by path relative to its directory: its
/// `SKILL.md` first, then every file under its `references/` directory.
// {cite}`habeas:util`
fn skill_files(name: &str) -> &'static [(&'static str, &'static str)] {
match name {
"habeas" => &[
("SKILL.md", include_str!("../assets/skills/habeas/SKILL.md")),
(
"references/ci.md",
include_str!("../assets/skills/habeas/references/ci.md"),
),
(
"references/distributed-requirements.md",
include_str!("../assets/skills/habeas/references/distributed-requirements.md"),
),
(
"references/syntax-details.md",
include_str!("../assets/skills/habeas/references/syntax-details.md"),
),
],
"habeas-requirements" => &[
(
"SKILL.md",
include_str!("../assets/skills/habeas-requirements/SKILL.md"),
),
(
"references/review-prompt.md",
include_str!("../assets/skills/habeas-requirements/references/review-prompt.md"),
),
],
"habeas-evidence" => &[
(
"SKILL.md",
include_str!("../assets/skills/habeas-evidence/SKILL.md"),
),
(
"references/authoring-failures.md",
include_str!("../assets/skills/habeas-evidence/references/authoring-failures.md"),
),
(
"references/fixme.md",
include_str!("../assets/skills/habeas-evidence/references/fixme.md"),
),
(
"references/reviews.md",
include_str!("../assets/skills/habeas-evidence/references/reviews.md"),
),
],
"habeas-bootstrap-requirements" => &[(
"SKILL.md",
include_str!("../assets/skills/habeas-bootstrap-requirements/SKILL.md"),
)],
"habeas-refactor" => &[(
"SKILL.md",
include_str!("../assets/skills/habeas-refactor/SKILL.md"),
)],
_ => panic!("unknown skill {name}"),
}
}