PD-282 — Decomposition multi-agents (Step 6a)¶
- Story : PD-282 — ProofEnvelope : scellement HSM (PROOF-14) + materiel validation eIDAS (PROOF-05b)
- Date : 2026-03-02
Strategie de parallelisation¶
Agents¶
| Agent | Role | Subprocess |
|---|---|---|
| agent-entity | Interfaces, entity, migration, module registration | claude -p |
| agent-seal | Pipeline scellement, detection secrets, validation format, hash SHA3-384 | claude -p |
| agent-verification | OCSP client, assemblage materiel verification, verification offline | claude -p |
| agent-qa | Tests unitaires + integration pour tous les modules | claude -p |
Manifest de taches¶
Niveau 0 — Fondations (parallelisable)¶
| ID | Tache | Agent | Contract | Fichiers | Dependances |
|---|---|---|---|---|---|
| T1 | Interfaces + types TypeScript | agent-entity | C1 | proof-envelope-seal.interfaces.ts | - |
| T2 | Extension HashService (hashSha3_384) | agent-seal | C8 | hash.service.ts | - |
Niveau 1 — Services fondamentaux (parallelisable apres N0)¶
| ID | Tache | Agent | Contract | Fichiers | Dependances |
|---|---|---|---|---|---|
| T3 | Entity LegalCompositeProof + migration DDL | agent-entity | C1 | legal-composite-proof.entity.ts, *-PD282-AddEnvelopeSealColumn.ts | T1 |
| T4 | SecretDetectionService | agent-seal | C6 | secret-detection.service.ts | T1 |
| T5 | EnvelopeFormatValidatorService | agent-seal | C7 | envelope-format-validator.service.ts | T1 |
| T6 | OcspClientService | agent-verification | C11 | ocsp-client.service.ts | T1 |
Niveau 2 — Services dependants (parallelisable apres N1)¶
| ID | Tache | Agent | Contract | Fichiers | Dependances |
|---|---|---|---|---|---|
| T7 | VerificationMaterialAssemblerService | agent-verification | C10 | verification-material-assembler.service.ts | T1, T6 |
| T8 | EnvelopeSealService (pipeline JCS -> SHA3-384 -> HSM) | agent-seal | C5 | envelope-seal.service.ts | T1, T2, T4, T5 |
Niveau 3 — Orchestration + verification (sequentiel apres N2)¶
| ID | Tache | Agent | Contract | Fichiers | Dependances |
|---|---|---|---|---|---|
| T9 | Integration generateProof() + sealing steps | agent-seal | C9 | legal-composite-proof.service.ts | T3, T7, T8 |
| T10 | OfflineVerificationService (Mode A + Mode B) | agent-verification | C12 | offline-verification.service.ts | T1, T2, T7 |
| T11 | Module registration LegalPreModule | agent-entity | C4 | legal-pre.module.ts | T3-T10 |
Niveau 4 — Tests (sequentiel apres N3)¶
| ID | Tache | Agent | Contract | Fichiers | Dependances |
|---|---|---|---|---|---|
| T12 | Tests unitaires SecretDetection + FormatValidator | agent-qa | C6, C7 | secret-detection.service.spec.ts, envelope-format-validator.service.spec.ts | T4, T5 |
| T13 | Tests unitaires EnvelopeSeal + Hash | agent-qa | C5, C8 | envelope-seal.service.spec.ts, hash.service.spec.ts | T2, T8 |
| T14 | Tests unitaires OCSP + VerificationMaterial | agent-qa | C10, C11 | ocsp-client.service.spec.ts, verification-material-assembler.service.spec.ts | T6, T7 |
| T15 | Tests OfflineVerification (Mode A air-gap + Mode B online) | agent-qa | C12 | offline-verification.service.spec.ts | T10 |
| T16 | Tests integration pipeline complet (generateProof + verify) | agent-qa | C5, C9, C12 | pd282-proof-envelope-seal.integration.spec.ts | T9, T10, T11 |
Arbre de dependances¶
N0: T1 (interfaces) T2 (hash)
| |
N1: T3 (entity) T4 (secret) T5 (format) T6 (ocsp)
| | | | |
N2: T7 (verif-material ← T6) T8 (seal ← T2,T4,T5)
| |
N3: T9 (generateProof ← T3,T7,T8) T10 (offline ← T2,T7)
| |
T11 (module ← all)
|
N4: T12-T16 (tests)
Observations¶
- Mode sequentiel recommande pour N3-N4 : T9 et T10 dependent de T7/T8, T11 depend de tout, les tests dependent des services.
- Parallelisation effective : N0 (2 taches), N1 (4 taches), N2 (2 taches) → gain temps significatif.
- Nombre total : 16 taches, 4 agents, 5 niveaux.
- Le mode
by_levelest recommande mais les niveaux 3-4 ont des dependances croisees qui peuvent necessiter un fallback sequentiel.