Capturing Design Intent Before The Code

Jens Krijgsman, Gideon Maillette de Buy Wenniger, Clara MaathuisarXiv 2026

TL;DR

AI coding assistants are fantastic at spinning up new code from scratch, yet they often slow developers down in mature, complex codebases because they lack historical context and architectural intent. Sdlicit solves this by acting as an active, Socratic design partner before a single line of code is written—transforming messy client briefs into a tightly linked web of requirements, architectural decisions, and executable test scenarios. It stops documentation drift before it starts, ensuring both humans and future AI coders actually know why a system was built the way it was.

What Problem Does This Paper Address?

There is a hidden productivity paradox in AI-assisted software engineering. In "greenfield" projects (brand-new codebases with few constraints), AI tools can boost productivity by up to 55.8%. However, most industrial software lives in "brownfield" environments—tangled, legacy systems full of implicit trade-offs. Here, AI tools can actually reduce productivity by up to 19%.

Why? Because early design rationale usually evaporates into forgotten Slack threads, meeting notes, and developers' heads. When humans or AI agents later try to modify the code, they lack the system's underlying mental model. Existing AI tools operate mostly at the syntax level (autocompleting lines of code) or generate isolated requirements documents that never connect downstream. The authors ask: how can we build an AI system that captures, structures, and preserves human design intent from day one, keeping every artifact traceable down to the test suite?

Methods

Instead of a passive autocomplete tool, the authors built Sdlicit (combining SDLC and solicit), a human-in-the-loop multi-agent framework integrated into VS Code via the Model Context Protocol (MCP). Its core philosophy is that AI shouldn't bypass an engineer's architectural thinking; it should challenge and refine it.

Fig. 1: Sdlicit architecture: a three-stage pipeline (Composing, Expansion, Gener- ation) 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.

Sdlicit processes projects through a three-stage pipeline:

  1. Composing: Turns an unstructured client brief into a Statement of Work (SOW), requirements, and step-by-step Architecture Decision Records (ADRs—structured logs capturing context, choices, and trade-offs).
  2. Expansion: Cross-cutting agents act as a "Socratic Solicitor" to question assumptions, use Theory-of-Mind to calibrate explanations to the user's expertise, and verify cross-reference tags.
  3. Generation: Translates approved designs into user stories and Behavior-Driven Development (BDD) test specifications written in Gherkin—a human-readable, machine-parseable syntax (Given-When-Then) that bridges plain English and automated tests.

What's novel vs. standard: While LLM agents and DSPy validation loops (dspy.Refine, which automatically rejects outputs with broken citations and retries) build on established patterns, Sdlicit uniquely weaves them into a continuous, verified lineage. Under the hood, it replaces standard flat vector search with LightRAG—a dual vector-and-graph retrieval system. A single LightRAG graph holds both static engineering standards and live session artifacts, capturing global architectural dependencies without the massive compute overhead of traditional GraphRAG.

Datasets

Because Sdlicit doesn't train models from scratch, datasets are used for grounding and evaluation:

  • Static Knowledge Base: Five international engineering standards (ISO/IEC/IEEE documents covering requirements, system life cycles, architecture descriptions, usability, and security).
  • Greenfield Scenario Brief: A custom client interview summary for designing a GitHub- and Outlook-integrated time-tracking app, used for end-to-end testing without a ground-truth answer key.
  • Replay Benchmark: Ten real-world ADRs manually selected across ten distinct domains (e.g., API design, RAG, serialization) from Microsoft's open-source semantic-kernel repository to test against established human ground-truth decisions.

Key Insights and Ideas

  • Traceability by construction beats post-hoc cleanup: A single-prompt LLM baseline hallucinated roughly half of its cross-references, requiring broken links to be filtered out afterward. By using in-loop validation (dspy.Refine) at each step, Sdlicit guarantees 100% valid links while building a vastly richer web of dependencies.
  • Evaluating design without an answer key: In software architecture, there is no single "right" design. The authors show you can still rigorously grade AI output automatically by combining regex-based link verification, Cucumber parser checks for Gherkin syntax, and a composite semantic similarity score (blending TF-IDF, Jaccard overlap, and NMF topic modeling).
  • Exact string matching fails at judging architecture: In the replay study, comparing AI-generated architectural options to human ones yielded a 0.00 fuzzy text-similarity score—yet an LLM judge found 100% of the final decisions were either matching or justifiable alternatives. Architectural concepts can be phrased too many valid ways for surface-level text metrics to catch.

Key Results

  • Retrieval Grounding: Grounding the pipeline with LightRAG raised RAGAS faithfulness from a baseline of 0.007 to 0.974 (with 0.754 answer relevancy and 0.773 context precision).
  • Artifact Density & Validity: Compared to a single-prompt baseline, Sdlicit produced dependency networks 5.4× denser (87.4 vs. 15.8 valid links per workspace) and 6.1× more distinct requirement IDs (46.9 vs. 7.5), achieving 100% structural trace coverage and 100% Gherkin parser validity. The trade-off is speed: Sdlicit took ~32 minutes (1938s) per run versus 68s for the single prompt.
  • Real-World Alignment: On the semantic-kernel replay study, an LLM judge (gpt-5.4) rated 4 out of 10 generated architectural decisions as matching the human ground truth, 6 out of 10 as different-but-justifiable, and 0 as incoherent.
  • Model Sizing: Multi-model sweeps showed qwen3.5-4b (4B parameters) is the approximate floor for decent system performance, while cloud models (gpt-5.4-mini, gpt-4o) performed best.

Limitations and Future Work

  • No Humans in the Automated Loop: Ironically, to run scalable automated benchmarks, the interactive Socratic Agent had to be disabled. Controlled user studies with real engineers are still needed to prove its collaborative value.
  • Evaluator Bias & Statistical Power: In the replay study, the generator (gpt-5.4-nano) and judge (gpt-5.4) came from the same model family. Furthermore, small sample sizes ($N=5$ to $10$) meant semantic coverage gains (+13.7 points over baseline) were not statistically significant.
  • Next Steps: The authors plan to close the loop backward—building agents that parse git histories, pull requests, and AST diffs to reverse-engineer design intent from existing brownfield code, while compiling Gherkin specs directly into executable test steps.

Summary updated

BibTeX
@misc{krijgsman2026capturing,
  author = {Jens Krijgsman and Gideon Maillette de Buy Wenniger and Clara Maathuis},
  title = {{Capturing Design Intent Before The Code}},
  year = {2026},
  eprint = {2611.35056},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.35056},
}
Figure