Prompt file imported from zekiriabd/SDD-Pro (
.codex/prompts/sdd-reverse-status.md). Fill in{{arguments}}before use. Copyright stays with the author.
Arguments: {{arguments}}
/sdd-reverse-status [--project {LegacyProject}] [--json]
Rôle
Diagnostic read-only du workflow reverse engineering. Pendant du /sdd-status SDD_Pro standard, scoped reverse.
Args
| Arg | Type | Description |
|---|---|---|
--project {LegacyProject} |
optionnel | Filtre sur un projet spécifique. Par défaut : tous les projets sous workspace/old/ |
--json |
flag | Sortie JSON machine-readable |
Actions
Invoque le script déterministe (aucun agent) :
python .sdd/python/sdd_reverse_scripts/reverse_status.py [--project ...] [--json]
Le script :
- Liste tous les sous-dossiers de
workspace/old/(sauf.) - Pour chacun, détecte la phase atteinte :
- init :
.sys/existe - inventory :
.sys/inventory.jsonexiste - audit :
.sys/tech-audit.mdexiste - db_merged :
.sys/db-schema.merged.jsonexiste
- init :
- Calcule pour chaque projet :
feats_extracted / units_total(depuis_featAllocationsvsunits[]) - Liste les FEATs
generated-by: sdd-reversedansworkspace/feats/avec :- Marker
[REV](confidence=high) ou[REV⚠️](medium/low) allow_sdd_fulldepuis le commentaire<!-- REVERSE-GATE -->- source-unit, confidence, language-detected
- Marker
Sortie humaine
═══ Reverse Engineering Status ═══
Projets legacy : 2
• HelloWebForms
init✓ → inventory✓ → audit✓ → merged✓
FEATs : 2/2 unités extraites (100%)
• LegacyJava
init✓ → inventory✓ → audit✗ → merged✗
FEATs : 1/5 unités extraites (20%)
FEATs reverse dans workspace/feats/ : 3
[REV] 1-Login (confidence=high, U=U-1)
→ /sdd-full OK
[REV⚠️] 2-Home (confidence=medium, U=U-2)
→ REVUE HUMAINE OBLIGATOIRE avant /sdd-full
[REV⚠️] 3-Dashboard (confidence=low, U=U-3)
→ REVUE HUMAINE OBLIGATOIRE avant /sdd-full
Sortie JSON
{
"ok": true,
"projects": [
{"name": "HelloWebForms", "phases": {...}, "units_total": 2, "feats_extracted": 2, ...},
...
],
"feats": [
{"file": "...", "name": "1-Login", "confidence": "high", "marker": "[REV]", "allow_sdd_full": true, ...},
...
]
}
Anti-derive
- Read-only strict : aucune écriture, aucun side-effect
- No-spawn : aucun agent
- Jamais bloquant : exit 0 toujours (exit 1 uniquement si
workspace/old/absent — info) - Pas de gate, pas de FAIL — diagnostic pur
Voir .sdd/docs/reverse-engineering-workflow.md §6.1 + §6.2 (marker [REV] + check_reverse_feat_for_full gate).
