Capturing Design Intent Before The Code
Organizations: Open Universiteit, Heerlen, The Netherlands · University of Groningen, Groningen, The Netherlands
Abstract
Generative AI is transforming software development, but its impact on early stage engineering practices remains limited. This contributes to a growing disconnect between architectural intent and implementation. To this end, this research introduces Sdlicit as a knowledge-grounded multi-agent framework designed to enforce traceability across software engineering artifacts throughout the design phase. Integrated with Visual Studio Code and exposed through the Model Context Protocol (MCP), the system supports the transformation of unstructured client briefs into structured Statements of Work, Software Requirements Specifications, architecture decisions, and parser valid Gherkin scenarios. The evaluation shows that LightRAG-based grounding over engineering standards achieves high retrieval reliability, yielding a RAGAS faithfulness score of 0.974. Moreover, by maintaining artifact relationships by construction, Sdlicit produces dependency networks 5.4 times denser than conventional workflows (85.6 versus 15.8 links). Additionally, replay comparison of generated architectural decision records based on an input brief showed a fair amount of matching against ground-truth values; as assessed by a LLM-as-a-judge based evaluation. These findings reflect that knowledge-grounded and traceability-centric AI systems have the potential to strengthen pre-implementation software engineering processes and mitigate documentation drift.
Figures & tables
| Condition | full ( ) | lean ( ) | no-rag ( ) |
|---|---|---|---|
| ( ) | ( ) | ( ) | |
| Structural trace coverage (%) | ( ) | ( ) | ( ) |
| Semantic trace coverage (%) | ( ) | ( ) | ( |
| Gherkin validity (%) | ( ) | ( ) | ( ) |
| Broken links | ( ) | ( ) | ( ) |
| ADR | Topic (short) | GT # | Gen # | Jaccard | Max sim | Decision | Alts. Q. |
| ADR-0006 | Dynamic REST payload | 2 | 3 | 0.00 | 0.27 | matches | divergent |
| ADR-0008 | Generic LLM request settings | 3 | 4 | 0.00 | 0.38 | matches | partial |
| ADR-0010 | .NET project structure | 4 | 4 | 0.00 | 0.29 | different-justifiable | divergent |
| ADR-0017 | Function calling | 3 | 4 | 0.00 | 0.42 | matches | divergent |
| ADR-0034 | RAG in SK | 3 | 3 | 0.00 | 0.28 | different-justifiable | divergent |
| ADR-0039 | Plugin name metadata | 3 | 4 | 0.00 | 0.36 | different-justifiable | divergent |
Appendix figures & tables8 assets
Supplementary material from the paper’s appendix.
Appendix
| Decision | Rationale | Accepted trade-off |
|---|---|---|
| Stateless backend: the workspace directory is the only state | The same backend can serve the CLI, the IDE extension, and external MCP agents interchangeably. It makes every run reproducible from a directory alone | All state is written on disk and both frontend and backend need to handle it |
| A single orchestrator as composition root | One assembly point with all dependencies injected, so the subsystems can be swapped or disabled for ablation | The orchestrator is a wide class and construction order matters |
| A centralised LLM Gateway and prompts are declarative DSPy signatures | Prompt changes become reviewable, diffable code. One place enforces typing, retries, model routing, and logging | Indirection: a framework change touches every model call |
| Typed input/output via Pydantic, parsed in a single call (BAMLAdapter from DSPy) | Eliminates brittle regex parsing, the schema is the single source of truth for output shape | Schema rigidity, and malformed output triggers a re-call of the LLM (extra latency and cost) |
| Fragile artefacts are wrapped in self-correcting “validated programs” functions with DSPy | Hard and soft quality constraints are encoded as ‘reward functions’ that execute retries | Up to extra model calls per artefact, the reward functions must be maintained (fine-tuning with DSPy) |
| A dual knowledge store sharing one retrieval graph in LightRAG | Cross-store queries resolve in a single call, and cross-corpus graph edges are preserved | Store isolation is a path-prefix convention, not a hard boundary |
| Component | Responsibility | Key collaborators |
|---|---|---|
| Orchestrator | Composition root, it owns the stage pipeline. It is the single entry point the frontend calls | Every agent and service |
| SdlicitConfig | Typed runtime configuration and the ablation surface. It probes the model’s capabilities at start-up | bootstrap |
| LLMGateway | Routes every model call and selects the execution strategy. It manages optimised prompt state and usage accounting | DSPy and all agents |
| KnowledgeBase / KBRouter | Graph-augmented ingestion and store-aware retrieval with structure-aware chunking | LightRAG and all agents |
| TraceService | Traceability analysis, coverage scoring, and trace-link inference over a workspace | LLMGateway |
| SocraticAgent | Cross-cutting question-driven intervention | LLMGateway , ToM, KB |
| Agent | Stage | Produces |
|---|---|---|
| SOW | Composing | Statement of Work ( sow.md ) |
| ADR | Composing | Architecture Decision Records ( adr/ ) |
| Requirement | Comp. / Gen. | SRS ( srs.md ), ADR compliance check |
| User Story | Generation | Agile user stories ( stories.json ) |
| BDD | Generation | Personas and Gherkin scenarios ( bdd/ ) |
| Socratic | Expansion | Question-driven interventions (cross-cutting) |
| Knob | Values | What it isolates |
|---|---|---|
| enable_rag | on / off | Contribution of knowledge grounding to artefact quality. |
| enable_tom | on / off | Contribution of user-adaptive scaffolding. |
| enable_socratic | on / off | Contribution of the question-driven intervention loop. |
| socratic_judge_mode | dspy / hybrid / heuristic | Cost of LLM judgement vs. length-based filtering. |
| tom_focus | all / scaffolding / frustration / preferences | Per-dimension contribution of the ToM. |
| trace_check_mode | structural / semantic / full | Depth-versus-cost of traceability analysis. |
| Technique | Faithfulness | Answer Rel. | Context Recall | Context Prec. |
|---|---|---|---|---|
| baseline_direct (no retrieval) | ( ) | ( ) | ( ) | ( ) |
| kb_router_hybrid | ( ) | ( ) | ( ) | ( ) |
| naive_rag | ( ) | ( ) | ( ) | ( ) |
| Model | Backend | Struct. trace coverage (%) | Sem. trace coverage (%) | Gherkin validity (%) | Tokens | Latency (s) | Err. |
|---|---|---|---|---|---|---|---|
| ( ) | ( ) | ( ) | ( ) | ||||
| gpt-5.4-mini | OpenRouter (cloud) | ( ) | ( ) | ( ) | ( ) | ||
| gpt-4o | OpenRouter (cloud) | ( ) | ( ) | ( ) | ( ) | ||
| mistral-small | OpenRouter (cloud) | ( ) | ( ) | ( ) | ( ) | ||
| qwen3.5-4b-sdlicit | Ollama (local 4B) | ( ) | ( ) | ( ) | ( ) | ||
| qwen3.5-0.8b-sdlicit | Ollama (local 0.8B) | ( ) | ( ) | ( ) | ( ) |