Expand description
Structural validation (decided.core.validation), severity overrides
(decided.core.overrides), OKF conformance (decided.services.okf_conformance),
and the .decided/config.yaml loaders (decided.services.init) — per
PORT-CONTRACT.d/04 §4-6.
Emission order is the contract: [metadata issues][ticketing issues]
[per-type issues], with each per-type validator’s internal append order
replicated verbatim. Messages are byte-exact, {x!r} via
pycompat::py_repr_str.
Structs§
- OkfConformance
Report - OkfEntry
- One walked corpus entry’s OKF projection:
(display path, artifact type, final filename). - OkfFinding
- Severity
Overrides
Constants§
Functions§
- apply_
overrides apply_overrides(issues, artifact_type, overrides).- check_
okf_ conformance - find_
config_ file find_config_file(start_dir): the nearest.decided/config.yamlat or above the resolvedstart_dir.- has_
errors - load_
freshness_ threshold load_freshness_threshold(start_dir)(ADR-045): thefreshness.stale_after_daysfrom the nearest.decided/config.yaml. Defaults to 180 when there is no config, nofreshnessmapping, or the value is not a positive int — YAML 1.1 bools are explicitly rejected (true/falseare not day counts even thoughboolis anintsubclass in Python).- load_
overrides load_overrides(start_dir)(ADR-053).- load_
ticketing_ provider load_ticketing_provider(start_dir)(ADR-088).- py_
title - Python
str.title()— titlecase the first char of each run of cased chars, lowercase the rest. (Reached only with ASCII section/type names.) - repository_
root repository_root(directory)(scope_paths): nearest dir at or above the resolved directory holding.decided/config.yaml, else the resolved dir.- resolve_
severity resolve_severity(base, code, type, overrides).- validate
decided.core.validation.validate(product, ticketing_provider, artifact_type).- validate_
product validate_product(product, start)— classification-dispatched rules with the repository’s severity overrides applied.