feat: DoX assessment recording and soft visibility (STATE-WP-0077)
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:
parent
d356fde41c
commit
fe4cfe22c9
13 changed files with 786 additions and 103 deletions
|
|
@ -422,6 +422,29 @@ def cmd_fix_consistency(args: argparse.Namespace) -> None:
|
|||
sys.exit(exit_code)
|
||||
|
||||
|
||||
def cmd_quality_debt(args: argparse.Namespace) -> None:
|
||||
"""List DoX quality debt (STATE-WP-0077) — ready without DoR-Ok, etc."""
|
||||
script = STATE_HUB_DIR / "scripts" / "quality_debt.py"
|
||||
if not script.exists():
|
||||
print(f"ERROR: quality_debt.py not found at {script}")
|
||||
sys.exit(1)
|
||||
cmd = [sys.executable, str(script)]
|
||||
if args.repo_path:
|
||||
cmd.extend(["--repo-path", str(Path(args.repo_path).expanduser().resolve())])
|
||||
else:
|
||||
cmd.append("--here")
|
||||
if args.api_base:
|
||||
cmd.extend(["--api-base", args.api_base])
|
||||
if args.no_hub:
|
||||
cmd.append("--no-hub")
|
||||
if args.as_json:
|
||||
cmd.append("--json")
|
||||
if args.strict:
|
||||
cmd.append("--strict")
|
||||
result = subprocess.run(cmd)
|
||||
sys.exit(result.returncode)
|
||||
|
||||
|
||||
def cmd_promote_intake(args: argparse.Namespace) -> None:
|
||||
"""Promote a routed intake into a workplan, task, decision, or engagement."""
|
||||
script = STATE_HUB_DIR / "scripts" / "promote_intake.py"
|
||||
|
|
@ -708,6 +731,18 @@ def main() -> None:
|
|||
help="Preserve checker exit code 2 for warnings-only runs",
|
||||
)
|
||||
|
||||
# quality-debt (STATE-WP-0077)
|
||||
qdebt = sub.add_parser(
|
||||
"quality-debt",
|
||||
help="List DoX quality debt: ready without DoR-Ok, finished without DoD-Ok, intakes without DoC-Ok",
|
||||
)
|
||||
qdebt.add_argument("--repo-path", default=None, help="Repo root (default: cwd)")
|
||||
qdebt.add_argument("--api-base", default=API_BASE, help="State Hub API base URL")
|
||||
qdebt.add_argument("--no-hub", action="store_true", help="Skip hub intake scan")
|
||||
qdebt.add_argument("--json", action="store_true", dest="as_json")
|
||||
qdebt.add_argument("--strict", action="store_true", help="Exit 1 if any debt found")
|
||||
qdebt.set_defaults(func=cmd_quality_debt)
|
||||
|
||||
# promote-intake
|
||||
promote = sub.add_parser(
|
||||
"promote-intake",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue