Skip to content

assessment

assessment owns the review’s own file: where it lives, and how its threats are ordered.

Terminal window
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.

FlagWhat 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.

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.

  • assessment_abs — the absolute path, and the only write target. assessment_path is a relative display form for prose and links.
  • phase and phase_reason — development, testing, or requires_judgement when 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.

--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.

A refusal exits 0: retagged is false, reason says why, and the file is left exactly as it was.

reasonWhat happened
no-assessment-fileNothing at the path given.
no-threats-sectionThe file carries no ## Threats heading.
no-threat-entriesNo entries yet. A rules-only review reaches this legitimately.
unscored-entriesSome 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.

0 on success and on every refusal · 2 on a bad argument · 1 on a runtime failure.