FEEL Language Coverage
Status overview of which parts of the FEEL specification (DMN 1.6, §10) are implemented in feel-core, where deviations exist, and what is intentionally out of scope.
Fixture suite as of 2026-06-19: 110 files, 3 145 cases,
99/118 compliance-level-3 dirs ingested (83 %).
All ingested cases pass (cargo test -p feel-core --test fixtures_test).
Implemented
Literals and data types (§10.3.2.3)
| Feature | Spec | ADR | TCK |
|---|---|---|---|
Numbers – f64 (see gap §) |
§10.3.2.3.1 | ADR-2, ADR-40 | 0100/0101/0102, 0075, 0100-arithmetic |
Strings incl. Unicode escapes \uXXXX, \n, … |
§10.3.2.3.2 | ADR-10 | 0002, 1103–1111, 0083 |
Booleans true / false |
§10.3.2.3.3 | ADR-10 | 0064–0066, 0106–0107 |
null literal |
§10.3.2.1 | ADR-9 | 0068, 0072 |
Date date("2024-01-15"), @"2024-01-15" |
§10.3.2.3.5 | ADR-18 | 0007, 1115 |
Time time("10:00:00"), @"10:00:00+02:00" |
§10.3.2.3.4 | ADR-18 | 0007, 1116 |
Date-and-time date and time(…), @"…" |
§10.3.2.3.6 | ADR-18 | 0007, 1117 |
Days-and-time duration duration("PT4H") |
§10.3.2.3.7 | ADR-18 | 1120 |
Years-and-months duration duration("P1Y") |
§10.3.2.3.8 | ADR-18 | 1121 |
Leading-dot and exponent number literals (.872, 1.2e3) |
§10.3.2.3.1 rule 35 | ADR-40 | 0100/0101/0102 (L2) |
Arithmetic and logic (§10.3.2.3.1, §10.3.2.4)
| Feature | Spec | ADR | TCK |
|---|---|---|---|
Arithmetic + - * / ** (exponentiation) |
§10.3.2.3.1 | ADR-8 | 0100-arithmetic, 0075, 0099 |
Arithmetic negation -x |
§10.3.2.3.1 | ADR-8 | 0099-arithmetic-negation |
Three-valued and / or / not() |
§10.3.2.4 | ADR-9, ADR-43 | 0064–0066, 0106–0107 |
Comparison = != < <= > >= |
§10.3.2.2 | ADR-9 | 0068-feel-equality (96 cases) |
between expression |
§10.3.2.6 | ADR-8 | 0071-feel-between |
in – comparison-test form (x in < 5) |
§10.3.2.6 rule 48 | ADR-8, ADR-27 | 0072-feel-in |
in – single interval (x in [1..10]) |
§10.3.2.6 rule 48 | ADR-27 | 0072-feel-in |
in – comma-list of tests (x in [1,2,3], x in (1,<5)) |
§10.3.2.6 rule 48 | ADR-28 | 0072-feel-in |
in – not(tests) negation (x in not([1,2,3])) |
§10.3.2.6 rule 49 | ADR-30 | (unit-tested; no TCK case exists) |
if e then a else b |
§10.3.2.13 rule 51 | ADR-13 | 0032-conditionals |
Lists (§10.3.2.5)
| Feature | Spec | ADR | TCK |
|---|---|---|---|
List literals [1, 2, 3] |
§10.3.2.5 | ADR-10 | 0001, 0012 |
Positional index list[1], list[-1] |
§10.3.2.5 | ADR-24 | 0001-filter, 1151-boxed-filter |
Boolean filter list[item > 5] |
§10.3.2.5 | ADR-24 | 0001-filter, 1151-boxed-filter |
Projection Employees[dept=20].name |
§10.3.2.5 | ADR-24 | 0001-filter, 0074-feel-properties |
for x in list return … |
§10.3.2.14 | ADR-8, ADR-25 | 0033-for-loops, 0084-feel-for-loops |
for x in a, y in b return … (multiple contexts) |
§10.3.2.14 rule 44 | ADR-25 | 0084-feel-for-loops |
for x in a..b return … (integer range) |
§10.3.2.14 | ADR-8 | 0084-feel-for-loops |
some x in list satisfies cond |
§10.3.2.13 rule 46 | ADR-8, ADR-25 | 0016-some-every, 1153-boxed-some |
every x in list satisfies cond |
§10.3.2.13 rule 47 | ADR-8, ADR-25 | 0016-some-every, 1154-boxed-every |
Contexts (§10.3.2.6)
| Feature | Spec | ADR | TCK |
|---|---|---|---|
Context literals {a: 1, b: "x"} |
§10.3.2.6 | ADR-12 | 0057-feel-context |
Path access ctx.member, multi-word names |
§10.3.2.6 | ADR-12, ADR-17 | 0074-feel-properties |
Nested contexts, missing key → null |
§10.3.2.6 | ADR-12 | 0057, 0074 |
Descendant e ... name (deep navigation) |
§10.3.2.7 | ADR-46 | (no TCK case exists) |
Ranges (§10.3.2.7, §10.3.4.6)
| Feature | Spec | ADR | TCK |
|---|---|---|---|
Range literals [a..b], (a..b], [a..b), (a..b) |
§10.3.2.7 | ADR-27 | 0072-feel-in, 1130-feel-interval, 1156-range-function |
Reverse-bracket ]a..b] / [a..b[ |
§10.3.2.7 | ADR-29 | 0072, 1130, 1156 |
Unbounded ranges [1..), (..10] |
§10.3.4.6 rule 66 | ADR-31 | 1156-range-function |
Range as first-class value, = equality |
§10.3.4.6 | ADR-27 | 0068-feel-equality |
Range properties .start, .end, .start included, .end included |
§10.3.2.7 | ADR-29 | 0074-feel-properties |
13 range-relation built-ins (before, after, meets, …) |
§10.3.4.7 | ADR-27 | 1130-feel-interval, 1156-range-function |
instance of range<T> |
§10.3.2.9 | ADR-26, ADR-27 | 0070-instance-of |
Opaque comparison-test value (< 10) in value position |
§10.3.4.6 | ADR-32, ADR-33 | 0068-feel-equality, 0074-feel-properties |
range(string) built-in |
§10.3.4.7 | ADR-27 | 1156-range-function |
Functions (§10.3.2.13, §10.3.2.8)
| Feature | Spec | ADR | TCK |
|---|---|---|---|
User-defined functions function(x) x+1 |
§10.3.2.13.2 | ADR-23 | 0030-user-defined-functions |
Typed formal parameters function(a: number) … |
§10.3.2.13 rule 56 | ADR-35 | 0092-feel-lambda |
First-class built-in values (abs, sqrt as values) |
§10.3.2.13.1 | ADR-36 | 0092-feel-lambda |
| Positional parameter invocation | §10.3.2.13.5 | ADR-15 | all built-in dirs |
Named parameter invocation f(x: 1, y: 2) |
§10.3.2.13.5 | ADR-17, ADR-23 | 0058, 1115–1147 |
Higher-order sort(list, precedes) |
§10.3.4.4 / §10.3.4.9 | ADR-37 | 0013-sort |
list replace(list, match-fn, newItem) |
§10.3.4.4 | ADR-37 | 1155-list-replace-function |
Value invocation of literal callee – null(), "abs"(-1) → null |
§10.3.2.13.2 | ADR-38 | 1131-feel-function-invocation |
Java-style comments // and /* … */ |
§10.3.1.2 | ADR-34 | 0073-feel-comments |
| FEEL comments (lexer-level strip) | §10.3.1.2 | ADR-34 | 0073-feel-comments |
instance of (§10.3.2.9)
Full type lattice: number, string, boolean, date, time, date and time,
days and time duration, years and months duration, list<T>, context<…>,
range<T>, function<…>, Any, Null. Structural conformance for lists and contexts.
→ ADR-26, TCK 0070-instance-of (119 cases).
Type coercion (§10.3.2.9.4)
Implicit conversions at function-call boundaries: null → null, singleton-list
→ element, element → singleton-list, conforms-to. Typed formal parameters enforce
coercion on the call result.
→ ADR-39, TCK 0082-feel-coercion (31/36 active cases).
Built-in functions (§10.3.4)
All built-in functions from §10.3.4 are implemented, with the named-parameter form for all except pure-variadic ones (see gap § below):
| Group | Functions | TCK |
|---|---|---|
| Conversion | string, number, string length, date, time, date and time, duration, years and months duration |
0058, 1103–1121 |
| Boolean | not |
0066 |
| String | substring, upper case, lower case, substring before/after, replace, split, contains, matches, string join |
1103–1111, 1140 |
| List | list contains, count, min, max, sum, mean, product, all, any, sublist, append, concatenate, insert before, remove, reverse, index of, union, distinct values, flatten, sort, string join, list replace |
0009–0013, 0059–0063, 0094, 1155 |
| Numeric | floor, ceiling, decimal, abs, sqrt, log, exp, odd, even, modulo, round up/down/half-up/half-down |
0050–0056, 1100–1102, 1141–1144 |
| Temporal | now, today, day of week, day of year, week of year, month of year |
1095–1098, 1148–1149 |
| Context | get value, get entries, context, context put, context merge |
0080–0081, 1145–1147 |
| Range | range, before, after, meets, met by, overlaps, overlaps before, overlaps after, finishes, finished by, includes, during, starts, started by, coincides |
1130, 1156 |
| Misc | is |
0103-feel-is-function |
Boxed expression forms (§10.2.1)
Boxed conditional, boxed filter, boxed for, boxed some, boxed every, boxed
list – all six element forms that DMN 1.5 introduced.
→ ADR-44, TCK 1150–1154, 1161.
Known gaps and deviations
1. Number precision – f64 instead of decimal128 (§10.3.2.3.1)
Spec says: Numbers are decimal128 (IEEE 754-2008 128-bit decimal floating point).
feel-core: Uses Rust f64 (64-bit binary float, ~15–16 significant decimal digits).
Consequences:
- Rounding differences in edge cases involving many decimal places.
- Arithmetic chains that the spec resolves exactly (e.g.
0.1 + 0.2 = 0.3) may produce the usual binary-float artefacts. - The
decimal(n, scale)built-in rounds thef64result, not an exact value.
TCK impact: DECIMAL_LIST_SKIPS – 1 case (0003-iteration:MonthlyPayment)
where the reference implementation's list of decimal128 results cannot be compared
element-wise with f64 results within any fixed ε.
→ ADR-2; §10.3.2.3.1, §10.3.4.5.
2. Cross-type equality in in – TCK contradicts spec (§10.3.2.2)
Spec says: Cross-type equality evaluates to null.
§10.3.2.2: "the values to be compared must be of the same kind … to obtain a
non-null result" (example: FEEL("I" = 1) is null).
Table 53: input domain for = requires same kind/datatype; inputs outside the
domain yield null (§10.3.2.15 preamble).
Table 56: e1 in [e2, e3, …] = e1 = e2 or e1 = e3 or ….
Table 51: false or null or null = null.
So the spec-derived result of true in [false, 2, 3]
= (true=false) or (true=2) or (true=3) = false or null or null = null.
feel-core: Returns error-null (≈ null in lenient mode) for cross-type =,
consistent with ADR-14 and confirmed by 0068-feel-equality fixtures
(false = 0 → null, 100 = "100" → null). Our behavior is spec-correct.
TCK inconsistency: 0072-feel-in:boolean_001_a (true in [false, 2, 3])
expects false, which contradicts §10.3.2.2, Table 53, and the 0068 fixtures.
This appears to be a TCK bug (filed upstream).
TCK impact: CROSS_TYPE_EQUALITY_SKIPS – 1 case
(0072-feel-in:boolean_001_a).
→ ADR-14; §10.3.2.2 "Equality and Identity"; §10.3.2.15 Table 53, 51, 56;
TCK 0072-feel-in.
3. Regex dialect – XPath vs Rust (§10.3.4.3)
Spec says: matches, replace, split use the XPath F&O 3.1 regex dialect
(\p{IsBasicLatin} Unicode block names, \c/\i/\k categories, . excludes
CR in the default mode).
feel-core: Delegates to the host-injected FeelRegex provider (ADR-16). The
feel-core default (Rust's regex crate) is close but not identical – specific
gaps: Unicode block-name categories, x-flag whitespace handling inside character
classes, . matches CR.
TCK impact: REGEX_DIALECT_SKIPS – 15 cases in 1111-feel-matches-function
(all involve non-ASCII character categories or the CR . mismatch).
→ ADR-16; §10.3.4.3; TCK 1111-feel-matches-function.
4. Temporal value range – jiff caps (§10.3.2.3.4–3.8)
Spec says: No explicit year range is mandated.
feel-core: Backed by the jiff crate, which caps civil dates at years ±9999
and Span at a fixed magnitude. Extreme-range TCK values (year 9999+,
PT0.S fractional-zero form) cannot be represented.
TCK impact: TEMPORAL_RANGE_SKIPS – 13 cases across 1115-feel-date-function,
1117-feel-date-and-time-function, 1120-feel-duration-function.
→ ADR-18; §10.3.2.3.5, §10.3.2.3.7; TCK 1115, 1117, 1120.
5. Sub-second temporal equality (§10.3.2.2)
Spec / TCK: Values differing only in sub-second fractions are treated as equal
(second resolution).
feel-core: Compares temporal values structurally at nanosecond precision;
.0001 and .0002 are genuinely distinct.
TCK impact: TEMPORAL_SUBSECOND_EQUALITY_SKIPS – 2 cases
(0068-feel-equality:datetime_003_a, 0068-feel-equality:time_005).
→ ADR-18; §10.3.2.2; TCK 0068-feel-equality.
6. Temporal iteration range – for i in date..date (§10.3.2.14)
Spec says: A for loop over date..date iterates day-by-day, e.g.
for i in @"1980-01-01"..@"1980-01-03" return i → [@"1980-01-01", @"1980-01-02", @"1980-01-03"].
feel-core: The range iterator is integer-only; a temporal range evaluates to
null.
TCK impact: TEMPORAL_FOR_RANGE_SKIPS – 2 cases in 0084-feel-for-loops
(decision_017, decision_018 – ascending/descending date range). Non-date
temporal ranges (datetime, time, duration) already return null in the TCK
too, so those pass.
→ ADR-18 (residual); §10.3.2.14; TCK 0084-feel-for-loops.
7. Named-argument overloads – from: and keys: (§10.3.2.13.5)
Spec says: Several built-ins have multiple overloads with different parameter
names (e.g. date(from: string) vs date(year: …, month: …, day: …)).
feel-core: Carries one parameter-name row per built-in (ADR-23); overloaded
names (from, keys) are absent from the table and resolve to unknown → null.
Affected functions:
- Temporal constructors
date,time,date and timewhen invoked as(from: "…"). context putwhen invoked with the deep-put overload by the namekeys.
TCK impact: NAMED_ARG_OVERLOAD_SKIPS – 7 cases across 1115, 1116, 1117,
1146. Positional forms of all these cases are ingested and pass.
→ ADR-23; §10.3.2.13.5; TCK 1115, 1116, 1117, 1146.
8. Non-XID names as context keys (§10.3.1.4)
Spec says: Context keys can be any FEEL name, including names with special
characters.
feel-core: The name lexer accepts Unicode XID identifiers (XID-start then
XID-continue). Bare emoji and other non-XID characters are rejected.
TCK impact: NON_XID_NAME_SKIPS – 2 cases in 0083-feel-unicode
({🐎: "bar"}, {🐎: "😀"}). Emoji in string values work fine.
→ ADR-17; §10.3.1.4; TCK 0083-feel-unicode.
9. Singleton-list ↔ scalar coercion at decision-output boundary (§10.3.2.9.4)
Spec says: When a decision's declared output type is scalar and the value
expression produces a singleton list, the list is implicitly coerced to its
element.
feel-core: Coercion is implemented for function-call boundaries (ADR-39) but
not at the decision-output boundary, which belongs to the DRG layer.
TCK impact: OUT_OF_SCOPE_EXPR_SKIPS – 3 cases in 0021-singleton-list
(decision2, decision4, decision5). The list-typed twins (decision1,
decision3) pass.
→ ADR-39; §10.3.2.9.4; TCK 0021-singleton-list.
10. Non-true filter predicate semantics (§10.3.2.5)
Spec says: A filter list[pred] where pred is neither true nor false
should return null.
feel-core: Non-true predicate results silently drop the element (ADR-24), so
[1,2,3]["not a boolean"] returns [] instead of null.
TCK impact: BOXED_PREDICATE_DEVIATION_SKIPS – 3 cases in 1151-boxed-filter
and 1153-boxed-some.
→ ADR-24, ADR-13/14; §10.3.2.5; TCK 1151, 1153.
11. Named timezone Etc/GMT (§10.3.2.3.4)
feel-core: The embedded tzdb resolves Area/City timezone names but rejects
Etc/GMT; a @"…@Etc/GMT" literal becomes error-null.
TCK impact: TZDB_ZONE_SKIPS – 1 case (0103-feel-is-function:time_007:
is(@"23:00:50@Etc/GMT", @"23:00:50Z")).
→ ADR-18; §10.3.2.3.4; TCK 0103-feel-is-function.
12. General expression invocation – expr(args) (§10.3.2.13.2)
Spec says: Any expression that evaluates to a function value can be invoked.
feel-core: Only literal-name callees (built-ins, user-defined closure names,
bare built-in values) are supported. var(args) where var is a context key
holding a function, or lib.fn(args) chained path invocation, are not in scope.
TCK impact: None (no TCK case exercises this form without DRG context). The boundary is documented in the ingest tool's slice grammar predicate.
→ ADR-38; §10.3.2.13.2.
13. itemDefinition types in instance of (§10.3.2.9)
Spec says: instance of supports model-defined named types registered via
itemDefinition.
feel-core: The type lattice covers all built-in types. Model-defined types would
require a type registry threaded from the embedder – that registry does not exist.
TCK impact: Several 0070-instance-of cases referencing model types were not
ingested (the ingester's slice grammar rejects free type names).
→ ADR-26; §10.3.2.9; TCK 0070-instance-of.
Permanently out of scope
These features are part of the DMN model layer, not the FEEL expression language, and are not planned for feel-core.
| Feature | Spec | Why excluded |
|---|---|---|
| Decision tables | §10.3.2.10 | DRG layer; different engine |
| Decision services | §10.2.1.3, §10.4 | DRG layer |
| Business Knowledge Models (BKM) | §10.4 | DRG layer; can be inlined for expression tests (ADR-42) |
| DRG scope / context stack | §10.3.2.11 | DRG layer |
import / multi-model |
§10.6 | DRG layer |
| Externally-defined (Java) functions | §10.3.2.13.3 | Host-environment specific |
| Unary tests as standalone output-entry values | §10.3.1.3 | Decision-table cell form, not a value expression |
TCK dirs that are entirely out of scope for this reason: 0003-iteration,
0014-loan-comparison, 0017-tableTests, 0020-vacation-days,
0031-user-defined-functions, 0034-drg-scopes–0041-multiple-nestedcontext,
0076-feel-external-java, 0085-decision-services–0091-local-hrefs
(19 dirs, 16 % of L3).