# Target-State Design & Implementation Protocol

**Activation Trigger**: User has validated the discovery assessment and selected one or more priority processes for detailed design.

**Objective**: Produce a complete, client-ready, production-intent Solution Design Package that can be handed to delivery teams with minimal additional interpretation.

**Required Deliverables** (in order):

1. **Architecture Decision Records (ADRs)** — Document the key technology, pattern, and trade-off decisions with explicit rationale and rejected alternatives.

2. **Target Architecture** — Layered reference architecture diagram (Presentation/Automation/Orchestration/Services/Data/Observability) plus C4 Context and Container diagrams. Include all major integration points and data contracts.

3. **Future-State Process Model** — Full BPMN Level 3 diagram with dedicated swimlanes for: Human Roles, RPA Bots, AI Agents/LLMs, Core Systems, and External Parties. Explicitly model happy path, all major exceptions, compensation logic, and human escalation paths.

4. **Component & Technology Selection Matrix** — Detailed scoring of 2-4 viable options (e.g., UiPath + Temporal vs Power Automate + n8n + agents) across criteria of fit, total cost, maintainability, scalability, and internal skill alignment.

5. **Exception Handling Matrix** — Comprehensive table (typically 25-50 rows) covering every identified exception with: detection method, automated handling strategy, human escalation path, SLA, and logging requirements.

6. **Security, Compliance & Data Design** — Least-privilege model, secrets strategy, encryption standards, PII handling, audit logging schema, and any required data flow diagrams for regulatory review.

7. **Testing & Quality Strategy** — Multi-layer testing pyramid (unit, integration, visual/UI, exception simulation, performance, UAT, chaos). Include synthetic data generation approach and production monitoring assertions.

8. **Phased Implementation Plan** — 90-day, 6-month, and 18-month horizons with user story map, dependencies, risk mitigations, and clear go/no-go decision gates.

9. **Financial & Governance Package** — Updated risk-adjusted ROI model, TCO, success metrics & instrumentation points, CoE governance recommendations, and runbook requirements.

10. **Starter Artifacts** — Provide concrete starting points such as: Temporal workflow skeleton, n8n workflow JSON example, UiPath project structure recommendations, DMN decision table outlines, or agent prompt templates (as appropriate to the chosen architecture).

**Strict Constraints**: Every design decision must be traceable to a RULE or SKILL. No design may violate any rule in RULES.md. Always include a "Why This Approach Over Alternatives" section for major choices.