Premise Recovery in Software Design: What Does This Decision Rest On?
Authors: Priyabanta Sandulua, Islam Mesabaha, Sebastian J. Vollmer
Organizations: German Research Center for Artificial Intelligence (DFKI), Trippstadter Straße 122, 67663 Kaiserslautern, Germany · University of Kaiserslautern-Landau (RPTU), Gottlieb-Daimler-Straße 47, 67663 Kaiserslautern, Germany
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.
Figures & tables
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 ).
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.
Model
Str.
P
R
F1 (SD) [95% CI]
Res. range
R lo
R st
R im
Pred
Lexical
–
0.491
0.443
0.466 [0.326, 0.589]
0.400–0.508
0.000
0.571
0.125
0.92
bge-m3
–
0.429
0.443
0.435 [0.322, 0.541]
0.378–0.478
0.091
0.548
0.125
1.05
Qwen2.5-7B
T
0.471
0.475
0.473 (0.025) [0.379, 0.571]
0.410–0.495
0.212
0.563
0.333
1.03
Qwen2.5-7B
TD
0.257
0.563
0.350 (0.039) [0.242, 0.500]
0.319–0.398
0.273
0.690
0.312
2.27
Llama-3.1-8B
T
0.150
0.656
0.243 (0.020) [0.165, 0.347]
0.230–0.276
0.636
0.698
0.583
4.51
Llama-3.1-8B
TD
0.091
0.749
0.163 (0.035) [0.102, 0.263]
0.157–0.195
0.636
0.770
0.750
8.52
Table 1: Premise recovery on 60 targets (1,529 pairs; 61 gold premises; 19 disagreement and 5 late-cited pairs excluded; Gemma4-26B T, T+R in text). Str.: T titles, TD + decision text, +R reasoning. Means and SD over 3 seeds; CI: 2-level bootstrap. Res. range: F1 with the 19 disagreement pairs all against or all for it. R lo , R st , R im : recall on 11 low-overlap, 42 stated, and 16 implicit premises. Pred: predictions per target (gold 1.02).
ID
Comparison (A vs. B)
Metric
Δ [95% CI]
p
pHolm
c1
Qwen3.8-27B: TD vs. T
F1
+0.050 [ −0.027 , +0.127 ]
0.215
0.645
c2
Qwen3.8-27B: TD+R vs. TD
F1
−0.006 [ −0.081 , +0.076 ]
0.898
0.898
c3
Qwen3.8-27B: T+R vs. T
F1
−0.040 [ −0.132 , +0.040 ]
0.324
0.648
c4
Qwen3.8-27B T vs. Qwen3-8B T
F1
+0.120 [ +0.004 , +0.247 ]
0.043
0.215
c5
Qwen3.8-27B TD vs. bge-m3
F1
+0.321 [ +0.214 , +0.425 ]
< 0.001
0.005
c6
Qwen3-8B T vs. bge-m3
F1
+0.151 [ +0.061 , +0.246 ]
0.001
0.008
Table 2: Paired comparisons, main labels. Δ = A − B; CI and p : 2,000 bootstrap resamples; pHolm over c1–c9 (set after a pilot); p1 is post hoc.
System
Silver
Strict
Main
Adjud.
Lenient
No-pred.
Linked
No link
Lexical
0.528
0.446
0.466
0.431
0.457
0.455
0.515
0.133
Qwen3-8B T
0.563
0.560
0.586
0.566
0.568
0.558
0.704
0.254
Qwen3.8-27B TD
0.563
0.695
0.756
0.719
0.759
0.741
0.788
0.614
Gemma4-26B TD+R
0.623
0.755
0.796
0.740
0.748
0.782
0.825
0.676
GLM-5.3 TD+R
0.568
0.745
0.799
0.749
0.777
0.787
0.834
0.675
Table 3: F1 on 5 label sets and on main labels for 40 targets with a silver premise (Linked) and 20 without (No link). Silver: 46 rule-based links; Strict, Lenient: 19 disagreement pairs as non-premises, as premises; Main: consensus minus them; Adjud.: author’s resolution (9 premises); No-pred.: Main minus 4 superseded predecessors.