assessment
assessment owns the review’s own file: where it lives, and how its threats are ordered.
ingrain assessment mint [--host <host>] [--title <title>] [--scope-paths <file>]ingrain assessment retag [--assessment <path>]retag defaults to the file mint last recorded for this branch.
Both subcommands run offline, reading the filesystem and nothing else. mint opens a review on
a machine that may have nothing set up yet, so it has to work before any configuration exists.
The ingrain-security skill runs them for you. They are documented because their output is
what the review acts on, and because a failure here stops the review before it starts.
Resolves where this task’s assessment lives, seeds an empty skeleton when none exists, and prints one JSON object holding the write target, the resolved phase, and everything the route was decided from.
A file that already holds analysis is read and left as it stands. A mint runs again on every resumption, so it seeds only where there is nothing to find.
| Flag | What it does |
|---|---|
--host <host> | claude | codex — selects how the project root is resolved. |
--title <title> | The task’s title. With none, the file is named for the branch alone. |
--scope-paths <file> | A file of repository-relative folders, one per line: the footprint the recorded analysis was built for. |
The file is keyed on branch and title
Section titled “The file is keyed on branch and title”assessment-<branch-slug>-<task-slug>.md, inside .ingrain-security/ at the repository root.
That means a re-mint has to pass the same title, verbatim. A paraphrase resolves to a
different filename, reports no prior content, and starts a fresh review beside the real one.
siblings lists the other assessments on the branch, so the review can open each, read its
recorded title, and pick the right one.
What it reports
Section titled “What it reports”assessment_abs— the absolute path, and the only write target.assessment_pathis a relative display form for prose and links.phaseandphase_reason—development,testing, orrequires_judgementwhen the decision is yours to make.has_content— whether a stage has written into the file. A mint always leaves a file behind, so this is the field that separates a fresh review from a resumption.selected_threats/selected_rules— gated drivers per axis.siblings— written assessments on this branch that this title did not mint.threshold_high/threshold_medium/threshold_low— the risk score a threat must exceed at each maturity band.
The scope-change test
Section titled “The scope-change test”--scope-paths is what stops a long-lived branch being checked forever against its first
push’s threats. If the change has moved outside the footprint the analysis was built for, the
run routes back to Development and is re-analysed rather than merely re-verified.
With no flag, routing is decided from phase and content alone. A footprint comes from a caller
that pulled one — retrieve.
Sorts a scored ## Threats section into descending-risk order.
Every entry keeps the T<nn> it arrived with, so a tag names one threat for the life of
the task: position in the document is risk order, and the tag is identity.
A re-review re-scores every threat, so positions move while tags stay. That is what lets a
pull-request comment thread anchored to T03 still describe the threat it was written about.
Entries move as whole blocks, so every #### phase block — including a previous pass’s
verification verdicts — travels with its threat exactly as it was.
When it refuses
Section titled “When it refuses”A refusal exits 0: retagged is false, reason says why, and the file is left exactly as
it was.
reason | What happened |
|---|---|
no-assessment-file | Nothing at the path given. |
no-threats-section | The file carries no ## Threats heading. |
no-threat-entries | No entries yet. A rules-only review reaches this legitimately. |
unscored-entries | Some threat has no readable Risk score. malformed names them. |
unscored-entries refuses the whole section. An entry with no score has no place in a risk
order, so sorting the rest around it would hand it a position nobody chose.
Exit codes
Section titled “Exit codes”0 on success and on every refusal · 2 on a bad argument · 1 on a runtime failure.