Public repository: timo / feel

Reader

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

docs: boxed-context ingester + 2853→2872 coverage update

public

docs: boxed-context ingester + 2853→2872 coverage update

DECISIONS.md: note boxed-context ingestion (parse_context_decisions,
assembled FEEL context literal, OUT_OF_SCOPE_EXPR_SKIPS for
range_006-011, 0030/0031 remain excluded via free-name scan).
References ADR-29's proviso on opaque comparison-test values.

ROADMAP.md: update suite count 2853→2872 / 86→87 files; clarify that
0074 range_001-005 and 1130 are now ingested; note remaining gap
(UnaryTestVal member_access) and retained unit tests as fast regression.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Changeset0821dc21db3acaff25de1fa259736ac23d0ae179
Author (claimed)Timo Stolz <timo.stolz@gmail.com>,
Parentsb72d2b0c1ba8
Children
Pushlog
by timo via ssh

modified DECISIONS.md +19 −0

@@ -1606,3 +1606,22 @@
16061606
   projection over a list of contexts. Landed on the `Postfix` layer alongside path
16071607
   access; the flagged grammar conflict with list literals / interval `in [a..b]`
16081608
   was checked and is conflict-free (LR(1)). Unlocked DMN-TCK `0001-filter`.
1609
+
1610
+- **Boxed-context ingestion** — *done (ingester-only; no feel-core change).* The
1611
+  ingester (`tools/ingest_tck.py`) now reads DMN boxed-context decisions
1612
+  (`<decision><context><contextEntry>…</context>`) in addition to literal-expression
1613
+  decisions. Each such decision is assembled into a FEEL context literal
1614
+  `{k1: e1, k2: e2, …}` (order preserved; multi-word keys are bare FEEL names the
1615
+  lexer joins); the expected value comes from the test-XML `<component>` tree (already
1616
+  parsed by `parse_expected_node`). Every entry expression is individually checked
1617
+  by `fits_slice_grammar`; if any entry is out-of-slice the whole decision is
1618
+  skipped. The fixture test's `expected_value` handles `"context"` type via
1619
+  `json_to_value`, mapping the JSON object to `Value::Context(BTreeMap{…})` for
1620
+  structural equality. **Unlocked:** `0074-feel-properties` range_001–005 (+5 fixture
1621
+  cases, 20 range-property assertions); `1130-feel-interval` all 14 Allen-relation
1622
+  decisions (+14 fixture cases, 132 boolean assertions). Suite 2853 → 2872.
1623
+  **Caveats (ADR-29 proviso):** `0074` range_006–011 (opaque comparison-test values
1624
+  `(<10)` / `(>=10)` etc., ADR-32) are excluded — `member_access` for
1625
+  `Value::UnaryTestVal` is not yet implemented; they are in `OUT_OF_SCOPE_EXPR_SKIPS`.
1626
+  0030/0031 (boxed context + user-defined functions) remain outside the slice via the
1627
+  free-name scan (ADR-23) and need no separate exclusion.

modified ROADMAP.md +11 −6

@@ -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 **2853 cases / 86 files**
10
+compliance-level-3 suites. Today the fixture suite is **2872 cases / 87 files**
1111
 (`cargo test -p feel-core --test fixtures_test -- --nocapture`).
1212
 
1313
 ---
@@ -131,11 +131,16 @@
131131
   `Sum` chain minus the `Postfix [Expr]` filter), so a trailing `[` can only be the close.
132132
   Pure grammar. Composes with reverse-OPEN: `]a..b[` ≡ `(a..b)`.
133133
 - **Range properties** `.start` / `.end` / `.start included` / `.end included` — a
134
-  `Value::Range` arm in `member_access`. `0074-feel-properties` did **not** go green by
135
-  ingestion, though: its `range_*` decisions are *boxed contexts* the ingester does not
136
-  read (like 1130), so the property forms are covered by the `range_properties` unit test.
137
-  The ingester relaxation (reverse-bracket `..` scan + multi-word `.member` blanking) did
138
-  unlock **+8** related cases in `0068`/`1156`/`0074` (suite → 2728).
134
+  `Value::Range` arm in `member_access`. `0074-feel-properties`'s `range_001`–`005`
135
+  decisions (interval-range properties) are now **ingested** as boxed-context fixture
136
+  cases (+5; `0074` suite 43 → 48). `range_006`–`011` (opaque comparison-test values
137
+  `(<10)` etc., ADR-32) are skipped — `member_access` for `UnaryTestVal` is not yet
138
+  implemented (`OUT_OF_SCOPE_EXPR_SKIPS`); the `range_properties` unit test covers all
139
+  bracket forms as a fast regression. `1130-feel-interval`'s 14 Allen-relation
140
+  context decisions are now also **ingested** (+14 fixture cases, 132 boolean
141
+  assertions covered). The ingester relaxation (reverse-bracket `..` scan +
142
+  multi-word `.member` blanking) did unlock **+8** related cases in
143
+  `0068`/`1156`/`0074` (suite → 2728).
139144
 
140145
 ### Done
141146