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
Figure 1: Sdlicit architecture: a three-stage pipeline (Composing, Expansion, Generation) on top of a central LLM Gateway, with cross-cutting Socratic and Theory-of-Mind services and a dual-store Knowledge Base. The orchestrator is the single composition root.
Table 1: Pipeline vs. single-prompt baseline. Pipeline is pooled from two independent N=5 batches (this comparison and the ablation study, Table 2 ) for N=10 . Baseline is N=4 (one of five single-prompt runs failed schema validation).
Condition
full ( N=5 )
lean ( N=10 )
no-rag ( N=5 )
μ ( s )
μ ( s )
μ ( s )
Structural trace coverage (%)
98.5 ( 2.0 )
100.0 ( 0.0 )
99.6 ( 0.5 )
Semantic trace coverage (%)
67.3 ( 15.8 )
54.3 ( 22.0 )
58.0 ( 18.9
Gherkin validity (%)
100.0 ( 0.0 )
100.0 ( 0.0 )
100.0 ( 0.0 )
Broken links
1.2 ( 1.8 )
0.0 ( 0.0 )
0.4 ( 0.5 )
Table 2: Ablation results using the identical project brief and underlying model. full and no-rag are N=5 . lean is pooled to N=10 (this study plus the pipeline-vs-baseline comparison, Table 1 ).
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
Table 3: Per record results from the Semantic Kernel replication study where the decision column indicates the automated agreement classification and the alternatives quality column details option space alignment. The Jaccard column is the thresholded fuzzy Jaccard ( τ=0.6 ). The adjacent Max sim column reports the underlying closest pairwise option similarity (the continuous Ratcliff–Obershelp ratio the threshold is applied to), which shows how near the option sets actually come. A worked example for ADR-0006 is given in Appendix F .
Appendix figures & tables8 assets
Supplementary material from the paper’s appendix.
Appendix
Figure 2: Taxonomy of CodeLLM benchmarks across the SDLC. This figure categorizes existing CodeLLM benchmarks according to different phases of SDLC. The numbers indicate how many benchmarks correspond to each phase or task. Entries marked with an asterisk (*) denote benchmarks that can be used to evaluate the capabilities of CodeLLM agents. The blank spaces indicate that there are no relevant benchmarks for the current task. This figure and the legend were obtained from [ 54 ]
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 N 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
Appendix
Table 4: The principal architectural decisions behind Sdlicit, the concern each resolves, and the trade-off accepted.
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
Appendix
Table 5: The major components of the Sdlicit backend and their responsibilities. Each component is either an infrastructure service or an agent. The seven agents are listed by name in Table 6 and summarised individually in Section B.2 .
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)
Appendix
Table 6: The seven Sdlicit agents.
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.
Appendix
Table 7: The configuration ablation surface. Each knob isolates one subsystem or one cost-versus-fidelity trade-off that the validation framework sweeps independently.
Technique
Faithfulness
Answer Rel.
Context Recall
Context Prec.
baseline_direct (no retrieval)
0.007 ( 0.056 )
0.780 ( 0.191 )
0.133 ( 0.333 )
0.024 ( 0.153 )
kb_router_hybrid
0.974 ( 0.053 )
0.754 ( 0.160 )
0.744 ( 0.307 )
0.773 ( 0.277 )
naive_rag
0.979 ( 0.052 )
0.731 ( 0.215 )
0.666 ( 0.329 )
0.817 ( 0.333 )
Appendix
Table 8: Aggregated RAGAS scores, mean and standard deviation, over N=84 ISO derived gold questions.
Model
Backend
Struct. trace coverage (%)
Sem. trace coverage (%)
Gherkin validity (%)
Tokens
Latency (s)
Err.
μ ( s )
μ ( s )
μ ( s )
μ
μ ( s )
μ
gpt-5.4-mini
OpenRouter (cloud)
100.0 ( 0.0 )
45.0 ( 4.9 )
100.0 ( 0.0 )
∼33,200
806 ( 56 )
0.0
gpt-4o
OpenRouter (cloud)
100.0 ( 0.0 )
47.0 ( 19.9 )
100.0 ( 0.0 )
∼27,300
527 ( 29 )
0.0
mistral-small
OpenRouter (cloud)
100.0 ( 0.0 )
41.0 ( 37.9 )
60.0 ( 54.8 )
∼28,400
733 ( 205 )
0.4
qwen3.5-4b-sdlicit
Ollama (local 4B)
86.3 ( 14.2 )
30.7 ( 31.0 )
93.3 ( 14.9 )
∼107,700
2,294 ( 295 )
1.4
qwen3.5-0.8b-sdlicit
Ollama (local 0.8B)
0.0 ( 0.0 )
0.0 ( 0.0 )
0.0 ( 0.0 )
∼91,500
694 ( 257 )
2.6
Appendix
Table 9: Per-model results from the multi-model evaluation, N=5 runs per model. “Err.” is the mean count of pipeline-stage errors per run.
B1
B2
B3
A1
0.050
0.216
0.179
A2
0.055
0.273
0.220
Appendix
Table 10: Pairwise character-level similarity (Ratcliff–Obershelp ratio) between the two ground-truth options ( A1,A2 ) and the three generated alternatives ( B1 – B3 ) of ADR-0006. The maximum, 0.273 , is highlighted. It is still well below the τ=0.6 matching threshold, so the fuzzy Jaccard collapses to zero.