Public repository: timo / feel

Reader

An interpreter of FEEL, written in Rust, with integrations for PostgreSQL, WASM, Lua, and Python.

docs: ADR-45 + ROADMAP/README — quick-win suite coverage (3003 → 3145)

public

docs: ADR-45 + ROADMAP/README — quick-win suite coverage (3003 → 3145)

Documents the five newly ingested suites (0005/0016/0032/0034/0070),
the DECIMAL_LIST_SKIPS mechanism, and the 0003-iteration deviation.
Updates running total to 3145 cases / 110 files.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Changesetb62d26e4d9659d4098859f3feee92495c029c040
Author (claimed)Timo Stolz <timo.stolz@gmail.com>,
Parents423eedd53622
Children
Pushlog
by timo via ssh

modified DECISIONS.md +52 −0

@@ -2114,3 +2114,55 @@
21142114
   `1154-boxed-every` (compliance-level-3) — 5 cases, `exact`;
21152115
   `1161-boxed-list-expression` (compliance-level-3) — 2 cases, `exact`.
21162116
   **Suite 2985 → 3003.**
2117
+
2118
+## ADR-45: 0005, 0016, 0032, 0034, 0070 — deferred quick-win suites ingested (compliance-level-3)
2119
+
2120
+- **Context:** Five suites that were always within the engine's FEEL slice but had never
2121
+  been committed as fixtures.  All five had been confirmed ingestible (the ingester
2122
+  produced cases when run manually) but were not yet part of the fixture set because
2123
+  they were investigated after earlier coverage pushes and left for a follow-up round.
2124
+  In the same pass, `0003-iteration` was found to produce a single list-of-numbers case
2125
+  that fails `exact` comparison due to the decimal128 vs f64 gap — the `decimal-vs-f64`
2126
+  deviation rule only covers scalar numbers, not list elements.
2127
+
2128
+- **Decision:**
2129
+  - **`0005-literal-invocation`** (3 cases, `f64_epsilon`): boxed-context+result-cell
2130
+    decision inlining a BKM `PMT` as a function literal.  The `decimal-vs-f64`
2131
+    deviation fires (scalar numeric result).
2132
+  - **`0016-some-every`** (2 cases, `exact`): `some`/`every` over a list of contexts
2133
+    (`priceTable2`) with path access `i.price`.  5 decisions skipped: `priceTable1`
2134
+    references are outside the slice (DRG-scope name); `gtTen` and `even` are
2135
+    user-defined functions not in the built-in table; `values in a list` is a
2136
+    multi-word name requiring the name-join lexer (ADR-17) but appears inside the
2137
+    quantifier source, where `fits_slice_grammar` does not recognize it as a bound name.
2138
+  - **`0032-conditionals`** (6 cases, 3 `exact` + 3 `f64_epsilon`): `if/then/else`
2139
+    with context-bound date and number inputs.  `decimal-vs-f64` fires for the numeric
2140
+    branch cases.
2141
+  - **`0034-drg-scopes`** (2 cases, `exact`): leaf decisions (`decision A 1`,
2142
+    `decision B 1`) that use only `<context>` with literal-expression entries; the
2143
+    10 decisions that reference other decision names as FEEL identifiers are silently
2144
+    skipped (DRG-scope propagation is out of scope for a FEEL-expression engine).
2145
+  - **`0070-feel-instance-of`** (129 cases, `exact`): the full `instance of` truth
2146
+    table across all primitive FEEL types (Any, number, boolean, string, date, time,
2147
+    date and time, years and months duration, days and time duration, function, list,
2148
+    context) plus structural context types (`context<k: T, …>`) and nested contexts.
2149
+    13 decisions skipped: they reference user-defined `typeRef` aliases (`t255`,
2150
+    `tFooBar`, `tNumberList`, `tAnyList`, `t_context_013`) that the ingester cannot
2151
+    resolve to inline structural types.
2152
+  - **`0003-iteration`** (0 cases — no fixture file): the sole case
2153
+    `for i in Loans return PMT2(i)` produces a list of decimal128-computed numbers.
2154
+    The `f64_epsilon` comparison mode applies only to scalar `expected_type: "number"`
2155
+    results; list elements cannot be compared element-wise with epsilon tolerance under
2156
+    the current harness design.  Documented in the new `DECIMAL_LIST_SKIPS` frozenset;
2157
+    no fixture file is produced until the harness gains a list-numeric epsilon mode.
2158
+
2159
+- **Consequence:** The five new fixture files add 142 cases, all `exact` or `f64_epsilon`.
2160
+  The `DECIMAL_LIST_SKIPS` mechanism is now in place for future list-of-numbers cases.
2161
+
2162
+- **Fixtures ingested:**
2163
+  `0005-literal-invocation` (compliance-level-3) — 3 cases, `f64_epsilon`;
2164
+  `0016-some-every` (compliance-level-3) — 2 cases, `exact`;
2165
+  `0032-conditionals` (compliance-level-3) — 6 cases, mixed;
2166
+  `0034-drg-scopes` (compliance-level-3) — 2 cases, `exact`;
2167
+  `0070-feel-instance-of` (compliance-level-3) — 129 cases, `exact`.
2168
+  **Suite 3003 → 3145.**

modified README.md +5 −2

@@ -137,7 +137,7 @@
137137
 `context put` *overloads* whose name is absent from the single-row table
138138
 (`date(from: …)`, `context put(…, keys: …)`; see `NAMED_ARG_OVERLOAD_SKIPS`).
139139
 
140
-The fixtures used by the test (105 files, ~3003 self-contained cases) are
140
+The fixtures used by the test (110 files, ~3145 self-contained cases) are
141141
 regenerated by pointing the script at each TCK dir, e.g.:
142142
 
143143
 ```sh
@@ -158,7 +158,10 @@
158158
   -o crates/feel-core/tests/fixtures/0070-instance-of.json
159159
 ```
160160
 
161
-The other ingested dirs include `1150-boxed-conditional`, `1151-boxed-filter`,
161
+The other ingested dirs include `0005-literal-invocation`, `0016-some-every`,
162
+`0032-conditionals`, `0034-drg-scopes`, and `0070-feel-instance-of`
163
+(compliance-level-3, deferred quick-wins; ADR-45),
164
+`1150-boxed-conditional`, `1151-boxed-filter`,
162165
 `1152-boxed-for`, `1153-boxed-some`, `1154-boxed-every`, and
163166
 `1161-boxed-list-expression` (compliance-level-3, DMN 1.5 boxed-expression
164167
 element forms — `<conditional>/<filter>/<for>/<some>/<every>/<list>`; ADR-44),

modified ROADMAP.md +7 −1

@@ -7,7 +7,7 @@
77
 without re-deriving the analysis.
88
 
99
 Coverage figures are case counts from `tools/ingest_tck.py` over the DMN-TCK
10
-compliance-level-3 suites. Today the fixture suite is **3003 cases / 105 files**
10
+compliance-level-3 suites. Today the fixture suite is **3145 cases / 110 files**
1111
 (`cargo test -p feel-core --test fixtures_test -- --nocapture`).
1212
 
1313
 ---
@@ -274,6 +274,12 @@
274274
   wrapper. First suite combining BKM inlining with positional invocation and arithmetic
275275
   (canonical §10.6.5 "Calculation" pattern). No engine or ingester change needed.
276276
   **Suite 2961 → 2964.**
277
+- **Deferred quick-win suites — `0005`, `0016`, `0032`, `0034`, `0070`** ✅ **shipped (ADR-45).**
278
+  Five suites ingested without engine changes: literal BKM invocation (0005, 3 cases),
279
+  some/every over context list (0016, 2), if/then/else with date input (0032, 6),
280
+  DRG leaf decisions (0034, 2), and the full `instance of` truth table (0070, 129).
281
+  Also added `DECIMAL_LIST_SKIPS` for `0003-iteration` (list-of-f64, no epsilon mode).
282
+  **Suite 3003 → 3145.**
277283
 - **Boxed-expression element forms — `1150–1154` & `1161`** ✅ **shipped (ADR-44).**
278284
   Six compliance-level-3 suites covering DMN 1.5 `<conditional>`, `<filter>`,
279285
   `<for>/<some>/<every>`, and `<list>` element forms — 18 cases across 6 files.