Files
Claude Code DTP Worker 4f31d0c8c5
CI / Contraintes NON-NÉGOCIABLES (CLAUDE.md) (push) Has been cancelled
CI / Validation JSON (schémas Faisabilité) (push) Has been cancelled
CI / Qualité documentaire (liens + 4Big) (push) Has been cancelled
CI / Reproductibilité des artefacts out/ (build == commité) (push) Has been cancelled
CI / Fraîcheur matrice de régression (run == commité) (push) Has been cancelled
CI / Intégrité du câblage CI (gate agrège tout · gates statiques verrouillés) (push) Has been cancelled
CI / Intégrité des chiffres du README (valeur == artefact cité · (push) Has been cancelled
CI / Publiciste · parser + schéma + generator (unittest) (push) Has been cancelled
CI / RBAC · 50 rôles + schéma (unittest) (push) Has been cancelled
CI / Faisabilité · générateur 4 volets + round-trip (unittest) (push) Has been cancelled
CI / RBAC · fixtures ERPNext (Role + Custom DocPerm) (push) Has been cancelled
CI / RBAC · plan User Permission (row-level) (push) Has been cancelled
CI / RBAC · Role Profile (bundles par portail) (push) Has been cancelled
CI / RBAC · run-book d'application unifié (agrégat 3 volets) (push) Has been cancelled
CI / Faisabilité · dossier bancable trilingue FR/EN/ES (push) Has been cancelled
CI / CRM · workflow vente ERPNext (lead → CONFOTUR) (push) Has been cancelled
CI / CRM · DocType porteur OTO Dossier Vente (push) Has been cancelled
CI / CRM · barème commissions vendeurs (push) Has been cancelled
CI / CRM · Financement Bancaire (gate hypothécaire RD) (push) Has been cancelled
CI / Fiscal · e-CF DGII (Compupar) (push) Has been cancelled
CI / Frontend · Workspaces 5 portails rôle (push) Has been cancelled
CI / Legal · DocType CONFOTUR Application (push) Has been cancelled
CI / QA · Audit 5D conformité (push) Has been cancelled
CI / SEO · mots-clés trilingues + schema.org + hreflang (push) Has been cancelled
CI / Chat OTOIA · montage par portail (Custom Block) (push) Has been cancelled
CI / QA · Audit 4Big (95+/100 sur 100% deliverables) (push) Has been cancelled
CI / Démo · Scénarios (run-sheet P07 banquier / P05 client) (push) Has been cancelled
CI / QA · Matrice de régression exhaustive (Sprint 8) (push) Has been cancelled
CI / DevOps · Run-book de déploiement VPS unifié (Sprint 8) (push) Has been cancelled
CI / QA · Matrice d'acceptation / traçabilité MVP (Sprint 8) (push) Has been cancelled
CI / Mobile · config app Expo/EAS (navigation par rôle) (push) Has been cancelled
CI / PIE · manifest de dépendances (Annexe 12 · V10.1) (push) Has been cancelled
CI / E2E baseline Playwright (manuel) (push) Has been cancelled
CI / Gate qualité (agrégat) (push) Has been cancelled
[DTP-Worker 20260803_093713] Auto exec · session 20260803_093713
2026-08-03 09:52:14 +00:00

61 lines
2.7 KiB
Python

"""Ancrages hors-module du PIE manifest (anti-dérive · anti-invention #6).
Le manifest PIE ne se valide pas seulement contre lui-même : trois faits sont
RE-DÉRIVÉS de sources de vérité EXTERNES au module, jamais recopiés à la main —
1. Les codes projets (`brands[].code`) sont confrontés à `CLAUDE.md §Projets`
(la constitution · [[claude-md-constant-anchor-gate]]). Une marque PIE dont
le code ne figure pas dans la constitution est une invention refusée.
2. `annexe` (12) et `version_workflow` (V10.1) doivent apparaître VERBATIM dans
la directive PIE. Renuméroter l'annexe dans la directive sans régénérer ici
casse la validation ([[roadmap-anchor-gate]] appliqué à la directive).
3. Chaque `downstream_registry[].module` non nul doit être un répertoire de
livrable RÉEL sous `05_deliverables_mvp/` (comme fiscal/ecf vérifie ses
contrats voisins). Un module fantôme (renommé/supprimé) casse la validation.
Zéro dépendance pip · zéro réseau · aucune écriture VPS (#8) : lecture seule de
fichiers déjà versionnés dans le dépôt.
"""
from __future__ import annotations
import os
import re
_HERE = os.path.dirname(os.path.abspath(__file__))
_MODULE_DIR = os.path.normpath(os.path.join(_HERE, "..")) # pie/manifest/
DELIVERABLES_ROOT = os.path.normpath(os.path.join(_HERE, "..", "..", "..")) # 05_deliverables_mvp/
_REPO_ROOT = os.path.normpath(os.path.join(DELIVERABLES_ROOT, ".."))
_CLAUDE_MD = os.path.join(_REPO_ROOT, "CLAUDE.md")
def claude_md_project_codes() -> set[str]:
"""Codes Pxx de la ligne `## Projets` de CLAUDE.md (source de vérité #Projets)."""
with open(_CLAUDE_MD, encoding="utf-8") as fh:
text = fh.read()
# Section entre « ## Projets » et le prochain titre « ## ».
m = re.search(r"^##\s+Projets\s*\n(.*?)(?:\n##\s|\Z)", text, re.S | re.M)
section = m.group(1) if m else ""
return set(re.findall(r"\bP0[1-9]\b", section))
def directive_declares(directive_relpath: str, *needles: str) -> dict[str, bool]:
"""Vrai/faux, pour chaque `needle`, s'il apparaît verbatim dans la directive PIE."""
path = os.path.join(_REPO_ROOT, directive_relpath)
try:
with open(path, encoding="utf-8") as fh:
text = fh.read()
except OSError:
return {n: False for n in needles}
return {n: (n in text) for n in needles}
def module_exists(rel_module: str) -> bool:
"""Le module de livrable `rel_module` (ex. 'faisabilite/bancable') existe-t-il ?"""
return os.path.isdir(os.path.join(DELIVERABLES_ROOT, rel_module))
def module_out_dir() -> str:
"""Répertoire de sortie du module (le SEUL endroit où ce worker écrit · #8)."""
return os.path.join(_MODULE_DIR, "out")