[DTP-Worker] Sprint 7/8 · Livrable démo : prompteur Markdown (out/run_sheet.md)
Le seul livrable démo (demo/scenarios) ne produisait qu'un run-sheet JSON machine — aucun support lisible par un présentateur, alors que le Sprint 7 vise un scénario « prêt à jouer ». Rendu Markdown in-repo depuis le JSON = même pattern que faisabilite (rend des .md), zéro écriture VPS. - scenlib/render.py : render_markdown() PUR/déterministe, ne lit que le run-sheet (déjà anti-inventé), aucun chiffre nouveau (#6). - build émet out/run_sheet.md (prompteur : par beat, table « À dire | Chiffre | Source (preuve) » traçant le pointeur RFC 6901 amont). - Compat vérifiée : HANDOFF 4Big ne json.load que les .json (ignore .md) ; check_artifacts diffe tout fichier build → md commité + reproductible. - Consommateurs régénérés : régression 551→558 (22 suites PASS) ; quality_report.json (README 5011→5575 o · 32→39 test_*) PASS 22/22 ; 03_agents/qa/AGENT.md 551→558 ; README démo auto-score 96→97. - 7 gates verts · 39 tests démo · 34 tests audit · arbre propre. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -42,7 +42,7 @@ import sys
|
||||
_HERE = os.path.dirname(os.path.abspath(__file__))
|
||||
sys.path.insert(0, _HERE)
|
||||
|
||||
from scenlib import builder, deps, evidence # noqa: E402
|
||||
from scenlib import builder, deps, evidence, render # noqa: E402
|
||||
|
||||
|
||||
def _eprint(*args) -> None:
|
||||
@@ -197,9 +197,13 @@ def cmd_build(ns: argparse.Namespace) -> int:
|
||||
with open(os.path.join(ns.out, name), "w", encoding="utf-8") as fh:
|
||||
json.dump(obj, fh, ensure_ascii=False, indent=2)
|
||||
fh.write("\n")
|
||||
# Prompteur Markdown lisible (dérivé PUREMENT du run-sheet · #6). Reproductible
|
||||
# à l'identique (gate ci/check_artifacts.sh) car render est déterministe.
|
||||
with open(os.path.join(ns.out, "run_sheet.md"), "w", encoding="utf-8") as fh:
|
||||
fh.write(render.render_markdown(run_sheet))
|
||||
|
||||
c = manifest["counts"]
|
||||
_eprint(f"✅ run-sheet → {ns.out}")
|
||||
_eprint(f"✅ run-sheet → {ns.out} (+ prompteur run_sheet.md)")
|
||||
_eprint(f" scénarios={c['scenarios']} · beats={c['beats_total']} · "
|
||||
f"citations={c['citations_total']} (non résolues={c['citations_non_resolues']}) · "
|
||||
f"modules cités={c['modules_cites_uniques']}")
|
||||
|
||||
Reference in New Issue
Block a user