Premise Recovery in Software Design: What Does This Decision Rest On?

Priyabanta Sandulua, Islam Mesabaha, Sebastian J. VollmerarXiv 2026

TL;DR

This paper introduces "premise recovery," the task of automatically identifying hidden dependencies between software architecture decisions. By benchmarking open-weight Large Language Models (LLMs) on a new dataset of 1,060 Architecture Decision Records (ADRs), the authors demonstrate that modern models can uncover "implicit" premises that traditional keyword-based searches miss, significantly improving the reliability of change impact analysis.

What Problem Does This Paper Address?

Software architecture is built on a foundation of interconnected decisions. These are often documented in Architecture Decision Records (ADRs), which capture the context, choice, and consequences of a design move. However, decisions rarely stand alone; a choice made in ADR 9 might presuppose a technology selected in ADR 2.

The problem is that these dependencies (or "premises") are frequently unwritten. When an engineer reverses an old decision, they must manually search for everything it affects. If a dependency isn't explicitly named, it’s easily missed, leading to "stale" architecture where new decisions rest on invalidated foundations. The authors frame the solution as premise recovery: given a target ADR, can an AI find its earlier premises among a sea of candidate records?

Fig. 1. Premise recovery. Inputs: a target ADR D with identifiers masked and a closed list of earlier ADRs. An LLM sees titles (T) or titles and decision text (TD), with optional reasoning. It returns the premises of D, stated or implicit. Example from alphagov/content-publisher (ADR 9). Use case: reversing a premise P flags its dependents for review (Section 5.4).

Methods

The researchers treated premise recovery as a ranking and classification task. To ensure the models weren't just "cheating" by matching numbers, they masked all ADR identifiers (e.g., changing "ADR 46" to a generic placeholder).

They tested several strategies:

  • Input Levels: Providing the model with just titles (T) versus titles plus the first 300 characters of the decision text (TD).
  • Reasoning: Testing whether "Chain-of-Thought" reasoning (+R) helped the model connect the dots.
  • Models: They evaluated 7 open-weight models (including Qwen, Llama, Gemma, and GLM) against two baselines: a simple lexical word-overlap scorer and BGE-M3 embeddings.

To create a high-quality "gold standard" for evaluation, they used two different LLMs (Claude Opus and Sonnet) as independent annotators, resolving disagreements through human expert review.

Datasets

The authors curated a new corpus specifically for this task:

  • The ADR Corpus: 1,060 ADRs collected from 36 open-source GitHub repositories.
  • The Evaluation Set: 60 target ADRs with 1,529 candidate premise pairs.
  • Implicit vs. Stated: They specifically tagged whether a premise was "stated" (explicitly mentioned in the text) or "implicit" (required logical inference to connect), providing a rigorous test for LLM reasoning.

Key Insights and Ideas

  • The "Implicit" Gap: Traditional tools (like word overlap) are reasonably good at finding stated premises but are almost useless for implicit ones. LLMs bridge this gap by understanding the intent and logic behind the decisions.
  • Reasoning Boosts Recall: While adding reasoning (+R) didn't always improve the overall F1 score, it significantly boosted the recall of implicit premises. In other words, reasoning helps the model find those "hidden" dependencies it might otherwise overlook.
  • Scale Matters (To a Point): Larger models (27B parameters and up) performed significantly better than 7-8B models. However, the best-performing model (GLM-5.3) is a massive mixture-of-experts model, suggesting that sheer capacity helps in complex design reasoning.
  • Real-World Stale Decisions: The authors found actual instances in open-source projects where a decision was superseded, but its dependents were never updated—confirming that this isn't just a theoretical problem.

Key Results

The results show a clear victory for LLMs over traditional methods:

  • Superior Performance: The best-planned system, Qwen3.8-27B, achieved an F1 score of 0.756, nearly doubling the lexical baseline's 0.466.
  • Handling Low Overlap: On premises where the title had almost no word overlap with the target, the lexical baseline failed completely (0.0 recall). In contrast, Qwen3.8-27B maintained a high recall of 0.758.
  • Top Performer: The GLM-5.3 model (using decision text and reasoning) reached the highest overall F1 of 0.799.
  • Precision: Open models achieved precision between 0.68 and 0.78, suggesting they are accurate enough to be integrated into developer tools to suggest unwritten premises during a redesign.
Fig. 2. (a) Main labels split by title overlap with the masked target (no stated/implicit tag); colour: model size, marker: strategy (legend below); lexical is the lower grey cross; x-axis starts at 0.45. (b) Lex.: the lexical scorer predicts, per target, as many top-scoring candidates as the LLM did; Pred counts all pairs, including the 19 disagreement and 5 late-cited pairs. Means over seeds.

Limitations and Future Work

  • Data Contamination: Since ADRs are public on GitHub, there is a risk that these documents were in the models' training sets. While masking identifiers helps, it doesn't entirely rule out memorization.
  • The "Closed List" Constraint: This study gave models a pre-filtered list of candidates from the same repository. A real-world tool would need to perform "retrieval" across a much larger set of documents first.
  • Human-in-the-loop: Future work could involve testing these models in live environments to see if they actually help practitioners catch more dependencies during architectural changes.

Summary updated

Abstract

Design decisions shape software architecture, and writing them down preserves the reasons behind it. Architecture decision records (ADRs) capture them, each with its context, choice, and consequences. A decision can depend on earlier ones: reversing one of them would force its review. We call these its premises. Yet ADRs do not always name their premises. When a decision is reversed, engineers supersede its ADR and search by hand for what it affects. That search can miss ADRs resting on an unnamed premise. We frame this as premise recovery: given an ADR with identifiers masked, find its premises among earlier records. We collect 1,060 ADRs from 36 repositories and label 1,529 candidate pairs for 60 target ADRs. Two LLM annotators agree at \k{appa} = 0.859. An independent human annotator, blind to their labels, agrees with the stated/implicit tag on 30 of 32 premises (\k{appa} = 0.875). We compare 7 open-weight models with 2 baselines that use no LLM. Qwen3.8-27B reaches F1 0.756, against 0.466 for word overlap; 2 models added post hoc score similarly. On the 11 premises whose titles barely overlap the target, it finds 0.758, while word overlap finds none. Reasoning raises its recall of implicit premises but not its F1. Word overlap with as many predictions gains 69% as much. We find only 2 to 3 stale dependents, though we searched for unlinked ones in only 30 of 66 supersessions. Open models could thus suggest unwritten premises when a decision is reversed, with precision between 0.68 and 0.78.
BibTeX
@misc{sandulua2026premise,
  author = {Priyabanta Sandulua and Islam Mesabaha and Sebastian J. Vollmer},
  title = {{Premise Recovery in Software Design: What Does This Decision Rest On?}},
  year = {2026},
  eprint = {2611.21367},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.21367},
}
Figure