Skip to main content

Module inspect

Module inspect 

Source
Expand description

Artifact inspection (decided.services.inspect): classify one document and report its structure, or aggregate types across a directory.

Section names are stored normalized (e.g. "success metrics"); the renderers format them (.title() for humans, snake_case for JSON). Decision metadata (status, category, supersedes) is attached only for decisions; relationships are spec-driven and exclude supersedes (the documented v0.4.2/ADR-007 top-level-scalar exception).

Structs§

DirectoryInspection
Aggregated inspection across a directory of Markdown files.
FileInspection
One file’s result inside a directory inspection.
InspectionResult
Typed single-file inspection result (InspectionResult).

Functions§

build_inspection
build_inspection(product) — classify, then attach decision metadata and relationships.
inspect_directory
inspect_directory(directory, recursive) — walk, classify, aggregate.