Grading Executable Legal Rules Against Independent Records: Transitional Provisions and Korean SME Status
Organizations: Department of Industrial and Management Engineering, Hankuk University of Foreign Studies, Yongin, Republic of Korea.
Abstract
Laws are increasingly turned into programs that decide cases, such as whether a firm was a small or medium enterprise (SME) on a given date, and large language models (LLMs) now write them. The programs are usually graded against answers written by someone who read the same law, so a program can score well by sharing the grader's reading rather than by getting the law right. LexTemporis grades them instead against records of what actually happened: 10,901 firm-years of SME status disclosed by Korean listed companies, with every version of the governing rules. An appendix adds comparison cases from US income tax and German hospital minimum volumes. The date changes outcomes mainly through provisions outside the main statutory text: one transitional provision raises agreement with the disclosures from 83-86% to 89-90%. The disclosures also test the author's reading of a contested provision, favouring it in 130 of 189 firm-years where readings diverge. Four LLMs wrote the rules, given different selections of the law. A pre-registered comparison finds no condition better across all four models. In exploratory analyses, supplying the right provisions looks better graded against the author's reading than against the records: the advantage shrinks for three models (for one, to between a quarter and three-fifths of its size), and per firm-year it is several times larger where the author's reading is wrong, partly by construction, since there reproducing that reading more faithfully must lose. Grading legal programs against the grader's own reading can overstate how well they work.
Figures & tables
| Layer | Instrument | What it decides | Changes in the study window |
|---|---|---|---|
| Statute | Framework Act on SMEs, Art. 2 | Definition; grace period (§2(3)) | – |
| Decree | Arts. 3, 7, 7-2 | Size tests: 3-year average revenue (Art. 7), total assets ¡ KRW 500 bn (Art. 7-2), independence | 2015 overhaul from employee/capital to revenue tests |
| Decree | Art. 3-3 | Status applies for one year from three months after the fiscal year end | – |
| Decree | Art. 9 | Grace period granted once only | – |
| Annex | Annex 1 | Revenue ceiling per industry (KSIC code) | 2015 new table; 2017 KSIC reclassification; 2025 ceilings raised for 16 of 44 industry rows |
| Annex | Annex 2 | Aggregation of affiliated firms’ revenue | – |
| Type | Temporal structure | Instance | What an in-force-only encoding gets wrong | Measured (against the key unless stated) |
|---|---|---|---|---|
| Transitional deeming | an old position stays applicable to facts after the new norm is in force, until a stated date | Korea: 2014 decree addenda, Art. 2 (in force 1 January 2015; deeming until 31 March 2018) | judges covered firms by the new ceilings from 2015 | modelling it with the once-only rule raises agreement by 5.1 points in FY2015–2017 (Section 6.1) |
| Lagged status | status for a period is fixed by facts of the preceding period | Korea: Decree Art. 3-3 | applies a new annex to the period in which it enters into force | none of 44 firms between the old and the 2025 ceilings switched in the FY2025 report (outside the key) |
| Anticipatory delegated parameter | an instrument is in force before the period it governs | US: Revenue Procedure for tax year Y, issued in the autumn of Y−1 | takes the latest document before the decision date, which governs the next year | the previous year’s law changes tax by 1% or more on 50% of returns (Appendix F.3) |
| Embedded schedule | the current text states year-specific values | Germany: Mm-R transitional clauses | nothing, if the current text is read whole | functions from the current and the date-correct versions score identically (Appendix F.4) |
| Evaluative standard | applicability turns on a judgement under an indeterminate concept | Germany: refutation on ”justified substantial doubts” | the judgement cannot be encoded | the share of entitled below-threshold sites rose from 0.34 to 0.64 (Appendix F.3) |
| Work | What is graded | Date of the law varies per case | Delegated or transitional provisions | Answer key | Years |
|---|---|---|---|---|---|
| Law&Order [Han et al. 2026] | executable tax program | no | no | independently authored returns (TaxCalcBench) | one |
| TaxCalcBench [Bock et al. 2025] | direct LLM tax computation | no | no | commercial tax engine | one (2024) |
| Synedrion [Gogani-Khiabani et al. 2026] | tax software | no | no Revenue Procedure selection | hand-written reference | one (2021) |
| Catala generation [Lorenzo et al. 2025; Ahmad et al. 2026] | Catala code | no | references, not versions in force | researcher-written | – |
| FiscalQA Pro, NitiBench+, LexKairos, Prior et al. | retrieved version or answer | yes | no | benchmark labels | several |
| TALD-Bench [Huang et al. 2026] | applicable law version | yes | transition to the Civil Code | court judgments | around the Civil Code |
| FY | Firm-years | Disclosed SME | Within ±20% of ceiling | Label from prose / table |
|---|---|---|---|---|
| 2015 | 887 | 67% | 13% | 866 / 21 |
| 2016 | 943 | 68% | 13% | 923 / 20 |
| 2017 | 1,028 | 69% | 13% | 1,008 / 20 |
| 2018 | 1,087 | 66% | 12% | 1,061 / 26 |
| 2019 | 1,155 | 67% | 12% | 1,130 / 25 |
| 2020 | 1,227 | 66% | 14% | 1,201 / 26 |
| Case | Property | Source |
|---|---|---|
| Korea | Equal decisions within one application period | Decree Art. 3-3 |
| Korea | Firms far below every ceiling are SMEs | Decree Art. 3, Annex 1 |
| Korea | Firms far above every ceiling with assets of KRW 500 bn or more are not | Decree Art. 3 |
| Korea | Firms covered by the 2014 addendum are SMEs in the 2016 period and not in the 2020 period | Addenda of 2014, Art. 2(1)–(2); reading (b) of (2), contested (Section 6.2) |
| Korea | Three-year grace after first exceeding | Act Art. 2(3) |
| Reference rule | Agreement | FY2015–17 | Within ±20% of the ceiling |
|---|---|---|---|
| Annex 1 and grace period, no addendum | 87.8% | 83–86% | 73.5% |
| + 2014 transitional addendum (reading (b) of Art. 2(2); reading (a): 88.5%, Section 6.2) | 88.9% | 89–90% | 75.7% |
| + grace period once only (full reference rule) | 89.1% | 89–90% | 76.8% |
| Separate instead of consolidated revenue (comparison; 11,079 firm-years) | 86.3% | 87% | 68.8% |
| Full rule, grace counted one report later | 87.3% | 89–90% | 69.7% |
| Full rule, pre-2015 status checked against FY2012–14 figures (35 FY2014 SME disclosures overruled) | 88.8% | 87–88% | 76.8% |
| Condition | All, vs reference rule | All, vs disclosures | Subset A, vs reference rule | Subset A, vs disclosures |
|---|---|---|---|---|
| Exact provisions (oracle) | 0.989 (27) | 0.890 | 0.922 [0.735–1.000] (12) | 0.822 |
| Ours | 0.989 (27) | 0.890 | 0.895 [0.714–1.000] (12) | 0.817 |
| Date-correct fixed list | 0.968 (27) | 0.884 | 0.851 [0.327–1.000] (12) | 0.777 |
| Fixed list padded to our size | 0.967 (27) | 0.884 | 0.776 [0.265–1.000] (12) | 0.745 |
| No law | 0.939 (25) | 0.866 | 0.879 [0.622–1.000] (12) | 0.801 |
| Current law | 0.945 (3) | 0.863 | 0.875 [0.831–0.898] (3) | 0.805 |
Appendix figures & tables12 assets
Supplementary material from the paper’s appendix.
Appendix
| Statute | Method | Precision | Recall | Articles included |
|---|---|---|---|---|
| SME act and decree | Five-year lifespan heuristic | 0.30 | 0.52 | 143 |
| SME act and decree | Addenda reader | 1.00 | 1.00 | 83 |
| Mid-sized Enterprise Act and decree | Five-year lifespan heuristic | 0.12 | 0.67 | 48 |
| Mid-sized Enterprise Act and decree | Addenda reader | 1.00 | 1.00 | 9 |
| Method | Recall | Precision | F1 | Avg. bundle size | Years with recall 1.0 |
|---|---|---|---|---|---|
| Current law, fixed list | 0.38 | 0.33 | 0.35 | 7.0 | 0/12 |
| Date-filtered statute only | 0.16 | 1.00 | 0.27 | 1.0 | 0/12 |
| Date-correct fixed list | 0.48 | 1.00 | 0.64 | 3.0 | 0/12 |
| BM25, same size as ours | 0.68 | 0.20 | 0.31 | 22.0 | 0/12 |
| Ours (L = 5) | 1.00 | 0.29 | 0.45 | 22.0 | 12/12 |
| Ours with addenda reader | 1.00 | 0.27 | 0.42 | 23.9 | 12/12 |
| Method | Correct at filing date (Y+1-04-15) | Correct at year end |
|---|---|---|
| Latest overall | 0/11 | 0/11 |
| Latest issued before the date | 0/11 | 0/11 |
| Procedure number year = Y | 2/11 | 2/11 |
| Applicability read from text (”taxable years beginning in Y”; latest if superseded) | 11/11 | 11/11 |
| Run | What was checked | Result | Action |
|---|---|---|---|
| First round, inside the project directory | 78 conversation logs | 33 name evaluation data files (e.g. cases.csv ) that no prompt mentions | whole round withdrawn |
| First isolated runs | 46 + 26 conversations (the two windows overlap by minutes) | no project path, no answer-key file name | kept |
| Rerun of 206 runs | 207 conversations in its window | the 206 runs inside isolated directories, none naming an answer-key file; one non-synthesis conversation from the project directory | kept |
| All Gemini runs | web use | 2 conversations ran a web search (one for an Annex 1 ceiling) | responses discarded and regenerated |
| All Gemini runs | attempts logged before the audit | 525 of 814 ended in a client error (mostly the usage quota, where observed) | retried |
| All Gemini runs | first code block loads | 17 of 303 synthesis responses did not (Korea 14, US 2, Germany 1) | 16 regenerated, 14 of which now load; the 17th is US 2023, outside the graded years |
| Subset | FY | Key | Gemini 3.8 Flash | Claude Opus 5.5 | GPT-OSS 120B | Claude Haiku 5.5 | RQ2 verdict across models |
|---|---|---|---|---|---|---|---|
| A | 2015 | reference rule | no | yes | no | yes | model-dependent (2 of 4) |
| A | 2016 | reference rule | no | no | no | yes | model-dependent (1 of 4) |
| A | 2017 | reference rule | no | yes | no | yes | model-dependent (2 of 4) |
| A | 2018 | reference rule | no | no | no | fixed list ahead | none (0 of 4) |
| A | 2015 | disclosures | no | yes | no | yes | model-dependent (2 of 4) |
| A | 2016 | disclosures | no | no | no | yes | model-dependent (1 of 4) |
| Question | Answer |
|---|---|
| Purpose | To grade executable rules for as-of-date legal status decisions against keys independent of the reading that produced them. Not built to decide any firm’s actual SME status. |
| Creator and funding | Withheld for double-blind review; no specific funding. |
| Instances | Korea: 10,901 firm-years (1,677 listed firms, FY2015–2023), each with a disclosed SME label, revenue and assets, industry code, pre-2015 status, and the filing identifier. US: 2,000 synthetic returns (2013–2022) with TAXSIM results. Germany: 7,845 site–procedure–year decisions (entitlement years 2021–2024) with case counts, exceptions, and the insurers’ result. Version stores: every version of the governing Korean act, decree, annexes, and addenda; US Code editions and Revenue Procedures; 24 Mm-R versions. |
| Labels and their source | Korean labels are the firms’ own statements in annual reports, extracted by scripts/extract_sme_labels_v3.py; 526 rest on ”not applicable” table cells and 82 cite a tax statute (both flagged). US labels are TAXSIM35 outputs. German labels are the insurers’ decisions as published by IQTIG. |
| Known errors and gaps | An audit found about 2% of first-extractor labels wrong (corrected in version 3); the author’s hand check of 200 stratified labels found 2 errors in 183 decidable ones, and confirmed every decidable label of the 189 firm-years on which the readings of the 2014 addendum differ; a second annotator, an undergraduate not involved in the project and blind to labels and the author’s decisions, agrees with the author on 352 of 353 disclosures both decided (κ = 0.99) and differs mainly in coding ”not applicable” as non-SME against the instructions (28 cases). Financial figures failing a sanity filter (271 rows) are treated as missing. FY2015 revenue averages two years, not three. The Korean reference rule omits the ownership-based independence tests. |
| Personal data | None. Firms are legal persons identified in public filings; the US returns are synthetic; German data are at hospital-site level. |
| Case | Property | Source |
|---|---|---|
| US | Zero tax below any standard deduction | IRC §63 |
| US | Tax non-decreasing in wages; marginal increase below 50% | IRC §1 |
| US | Long-term gains never taxed above wages | IRC §1(h) |
| US | Joint return with a non-earning spouse never above single | IRC §§1, 63 |
| Germany | Entitlement non-decreasing in case counts | Mm-R §4(1) |
| Germany | Exceptions grant entitlement; counts above every threshold grant entitlement | Mm-R §§4, 6 |
| Law applied | Returns | Correct within $1 | Tax differs by ≥1% | Median error | Median error (%) |
|---|---|---|---|---|---|
| Previous year (Y−1) | 2,000 | 8.2% | 49.7% | $151 | 1.1% |
| Latest (2022) | 1,800 | 8.2% | 90.5% | $1,062 | 14.1% |
| Last pre-TCJA year (2017) | 1,800 | 6.9% | 75.4% | $540 | 11.8% |
| First TCJA year (2018) | 1,800 | 8.4% | 86.8% | $812 | 11.5% |
| Count used | Agreement | Recall of denials (648) |
|---|---|---|
| Report year | 0.864 | 0.863 |
| July–June | 0.864 | 0.920 |
| Either | 0.898 | 0.852 |
| Both | 0.830 | 0.931 |
| Predict ”entitled” for all | 0.917 | 0.000 |
| Entitlement year | Below threshold | Entitled | Rule in force at prognosis |
|---|---|---|---|
| 2021 | 201 | 0.34 | Insurers may refute on justified substantial doubts |
| 2022 | 314 | 0.64 | + COVID-19 admitted as a supporting circumstance |
| 2023 | 436 | 0.71 | Refutation mandatory on such doubts, by formal decision |
| 2024 | 589 | 0.68 | + standard examples of doubt, including a missed threshold |
| Case | Measure | No law | Current law | Statute edition only (US) | Ours (US: statute + Revenue Procedure) |
|---|---|---|---|---|---|
| US | exact (±$1), 2013–2022 | 0.970 (30) | 0.963 (30) | 0.950 (30) | 0.973 (30) |
| US | within 1%, 2013–2022 | 1.000 (30) | 1.000 (30) | 0.986 (30) | 0.999 (30) |
| Germany | balanced accuracy, years with a changed threshold (2023 / 2024) | 0.783 / 0.825 | 0.773 / 0.810 | – | 0.773 / 0.810 |