Skip to main content

check_missing_decisions

Function check_missing_decisions 

Source
pub fn check_missing_decisions(pkg: &DraftPackage) -> Option<String>
Expand description

Check whether a draft is missing an agent decision log for substantive changes.

“Substantive” = any artifact that is a .rs, .ts, .tsx, .js, .jsx, .py, .go, .java, .cpp, .c, or .h file. Config-only changes (.toml, .yaml, .json, .md, docs) are excluded from this check.

Returns a warning annotation string when the check fires, or None if a decision log is present or there are no substantive code changes.

This satisfies Constitution §1.5: reviewers must have design rationale for any goal that creates or modifies non-trivial source code.