ADR-008: Cognitive Artifact DSL (CADSL) for Generative UI

Status: Accepted Version: 1.0 Date: 2025-10-01 Supersedes: N/A Related ADRs: ADR-001, ADR-002, ADR-005, ADR-006 Related PRDs: PRD-010, PRD-011


Context

To enable the dynamic, AI-driven generation and rendering of interactive cognitive artifacts.

CADSL is not “just another UI schema” — it is the presentation projection of the Semantic Core and Knowledge Layer into the Cognitive Extension Layer, generated by the Artifact Engine and rendered by the CADSL Runtime.

Key constraints:

  1. Part of isomorphic architecture — Semantic Core (DSL + SBVR) is canonical meaning; CADSL artifacts are projections
  2. Cognitive Extension Layer contract — Dynamic artifacts to manage attention and intention
  3. Runtime roles — Artifact Engine generates CADSL; Runtime parses, renders, captures interactions
  4. ACE-compatible — Artifacts as evolving playbooks with small, composable units

Decision

Develop a Cognitive Artifact DSL (CADSL) based on a Mutually Exclusive, Collectively Exhaustive (MECE) set of symbolic elements, using a Semantic-first approach with optional layering.

Approach Selected: Semantic-First CADSL (Option B with Option C layering)

CADSL is primarily a cognitive artifact language, not a raw UI description. Low-level elements are present, but the language is centered on semantic structures that map to the Semantic Core and Knowledge Graph.

Approach Options Considered

Option Description Verdict
A: Thin UI DSL CADSL as typed component tree, minimal semantics ❌ Undershoots SEA™’s semantic-first promise
B: Semantic-first CADSL Cognitive artifacts as first-class, UI as projection Selected — Aligns with ADR-001/002/005/006
C: Hybrid/Layered CADSL-S (Semantic) + CADSL-V (View) layers ✅ Incorporated as capability
D: Graph-native Artifacts as views over CALM + KGS with queries ⏳ Future Phase 2/3 extension

Schema Requirements

Base CadslElement Schema

Every CADSL element must support:

CognitiveArtifact Schema

Every artifact must specify:

Implementation Approach

  1. Tag MECE elements by role and layer — Content/Structural/Interactive/Annotation/Temporal/Feedback/Collaboration
  2. Introduce semantic artifact type vocabulary — MVP: ProjectChecklist, RiskAssessment, ADRWorkbench, ArchitectureView
  3. Artifact Engine generates semantic artifacts first — Then decorates with layout
  4. Individual elements are stable, addressable units — Support ACE-style evolution (append, mark helpful/harmful, version)

Rationale

CADSL provides a structured, declarative language for defining cognitive artifacts, allowing the Artifact Engine to generate them programmatically. The MECE principle ensures comprehensive coverage of artifact types while avoiding redundancy, facilitating both generation and rendering across various user interfaces.

The semantic-first approach ensures:

Alternatives Considered

Hardcoded UI Templates

Rejected - Lack of flexibility and inability to support dynamic, context-aware artifact generation.

General-Purpose UI Frameworks

Rejected - Do not provide the semantic grounding or structured elements necessary for AI-driven artifact construction.

Constraints

Quality Attributes

Bounded Contexts Impacted

Consequences

Positive

Negative

Additional Notes

MVP