data2dsl

Ticket 051: Subactor Delegation Envelope Conformance and Closed-Loop Self-Healing E2E

Goal and scope

Implement Subactor Delegation Envelope conformance validation and closed-loop self-healing verification:

  1. Implement src/data2dsl_subactor.py with SubactorDelegationEnvelope parser/validator (ROLE, GOAL, SCOPE, ACCEPTANCE, AUTHORITY, LIMITS, REPORT) supporting text and JSON formats per wellmanifest/how-to-use-subactor.
  2. Add deterministic conformance error codes (COMM-ENVELOPE-001, COMM-ROLE-001, COMM-AUTH-001, POA-GRANT-001).
  3. Implement closed-loop self-healing execution pipeline (simulate_self_healing_cycle) simulating DETECT -> PLAN -> EXECUTE -> VERIFY -> HEAL with immutable SHA-256 evidence.
  4. Expose CLI subcommands validate-envelope and simulate-healing in src/data2dsl_cli.py.
  5. Add comprehensive unit and E2E tests in tests/test_subactor_envelope.py and tests/test_self_healing_e2e.py.
  6. Add structured example suite in examples/06-closed-loop-self-healing/.
  7. Verify all tests pass and governance check passes (GOV-PASS).

Acceptance criteria

Participants