Implementation Plan: Case Management
Implement agent-orchestrated case management using CMMN primitives: cases, stages, tasks, milestones, and artifact pipelines, with governance and auditability. Integrates with Agent Society for HITL escalations and A2A/Semantic Kernel for AI-powered case processing.
Provenance & Traceability
Architectural Decisions (ADRs)
| ADR ID |
Decision Title |
Impact on This Plan |
| ADR-021 |
Case Management Reference Domain |
Establishes CMMN as canonical model. |
| ADR-038 |
A2A-SK Integration |
Cases can trigger A2A tasks to external agents. |
Product Requirements (PRDs)
| PRD ID |
Requirement Title |
Satisfied By (SDS) |
Acceptance Criteria |
| PRD-026 |
Case Management Platform |
SDS-012 |
CMMN primitives operational |
| PRD-027 |
External Agent Interoperability |
SDS-056 |
A2A tasks from cases |
Software Design Specifications (SDS)
| SDS ID |
Service/Component |
Bounded Context |
Status |
| SDS-012 |
Case Management Service |
cognitive-extension |
Designed |
| SDS-056 |
A2A Protocol Gateway |
shared |
Done ✅ |
| SDS-031 |
Authority & Ownership |
shared |
Draft |
Architecture and Design
Cross-Plan Synergy Architecture
graph LR
subgraph "UI Layer (P020)"
ZED[Zed IDE]
LIBRE[LibreChat]
end
subgraph "Case Management (P023)"
CASE[Case Service]
TASK[Task Manager]
ARTIFACT[Artifact Pipeline]
end
subgraph "Agent Society (P015)"
HITL[HITL Escalation]
REGISTRY[Agent Registry]
end
subgraph "A2A + SK (P027)"
A2A[A2A Server]
SK[Semantic Kernel]
end
ZED -->|creates case| CASE
LIBRE -->|updates case| CASE
CASE --> TASK
TASK -->|requires approval| HITL
TASK -->|delegate| A2A
A2A --> SK
ARTIFACT --> SK
Integration Points
| Integration |
Source Plan |
Purpose |
| HITL Escalation |
P015 |
Case tasks requiring human approval |
| A2A Delegation |
P027 |
Delegate case tasks to external agents |
| SK Execution |
P027 |
AI-powered artifact analysis/generation |
| IDE Context |
P020 |
Create cases from IDE actions |
| LibreChat |
P020 |
Chat-based case creation and updates |
Design Principles Applied
Proposed Cycles
| Cycle |
Branch |
Wave |
Description |
| C1A |
cycle/p023-c1a-case-schema |
1 |
Case schema + lifecycle transitions |
| C1B |
cycle/p023-c1b-task-model |
1 |
Task types + assignment rules |
| C2A |
cycle/p023-c2a-artifact-pipeline |
2 |
Artifacts + evidence capture |
| C2B |
cycle/p023-c2b-hitl-integration |
2 |
Wire Agent Society HITL |
| C3A |
cycle/p023-c3a-a2a-delegation |
3 |
A2A task delegation from cases |
| C3B |
cycle/p023-c3b-ide-integration |
3 |
Create cases from IDE actions |
Task Breakdown
Wave 1: Core Case Model (Parallel)
Wave 2: Artifacts & HITL (Depends on Wave 1)
Wave 3: AI & IDE Integration (Depends on Wave 2)
Validation & Verification
Spec Validation
Implementation Validation
Open Questions
What is the MVP case domain? → Governance incidents
Integrate with Semantic Debt? → Yes (tight integration)
- NEW: Which A2A skills should cases delegate to? → TBD per case type
Risks & Mitigation
| Risk |
Likelihood |
Impact |
Mitigation |
| Case model too generic |
Medium |
Medium |
Start with governance incidents |
| Orchestration complexity |
Medium |
Medium |
Keep CMMN primitives minimal |
| A2A delegation latency |
Low |
Medium |
Async task polling with SSE |
| Type |
ID/Doc |
Document |
| ADR |
ADR-021 |
docs/specs/shared/adr/021-case-management-reference-domain.md |
| ADR |
ADR-038 |
docs/specs/shared/adr/038-a2a-semantic-kernel-integration.md |
| SDS |
SDS-012 |
docs/specs/cognitive-extension/sds/012-case-management-service.md |
| SDS |
SDS-031 |
docs/specs/shared/sds/031-authority-ownership-boundaries.md |
| SDS |
SDS-054 |
docs/specs/shared/sds/054-workbench-ui-service.md (Case Console) |
| SDS |
SDS-056 |
docs/specs/shared/sds/056-a2a-protocol-gateway.sds.yaml |
| Plan |
P014 |
Workbench UI (Case Console integration) |
| Plan |
P015 |
Agent Society Runtime |
| Plan |
P020 |
Platform UI Integration |
| Plan |
P027 |
A2A Protocol & Semantic Kernel Integration |