feat: DoX assessment recording and soft visibility (STATE-WP-0077)
All checks were successful
CI Smoke / host-smoke (push) Successful in 1s
CI Smoke / container-smoke (push) Successful in 2s

Add quality_doc/dor/dod recording convention, quality-debt CLI, promote-intake
and C-34 soft warnings, agent protocol notes, and DoD policy badge language.
Mark STATE-WP-0077 finished.
This commit is contained in:
tegwick 2026-07-22 21:18:40 +02:00
parent d356fde41c
commit fe4cfe22c9
13 changed files with 786 additions and 103 deletions

View file

@ -338,6 +338,23 @@ def _append_yaml_block(target_file: Path, fields: dict, *, origin_intake_id: str
# entry point
# ---------------------------------------------------------------------------
def _soft_warn_missing_doc(intake: dict) -> None:
"""STATE-WP-0077: warn (do not block) if DoC-Ok is not recorded."""
try:
from quality_assessment import intake_has_doc_ok
except ImportError:
sys.path.insert(0, str(Path(__file__).resolve().parent))
from quality_assessment import intake_has_doc_ok # type: ignore
if intake_has_doc_ok(intake):
return
print(
"WARNING: intake has no DoC-Ok recorded (quality_doc / notes). "
"Promotion continues (soft only). Assess Definition of Comprehension "
"before confident promote — docs/work-record-quality-gates.md",
file=sys.stderr,
)
def promote_intake(
api_base: str,
intake_id: str,
@ -350,6 +367,7 @@ def promote_intake(
workplan_file: str | None = None,
) -> dict:
intake = _fetch_intake(api_base, intake_id)
_soft_warn_missing_doc(intake)
if to_kind == "workplan":
canonical_id, new_file = _promote_to_workplan(api_base, repo_dir, repo_slug, domain, intake)