Log
6583b9b96e0d
docs: note named-argument ingestion (ADR-23); update README
public
docs: note named-argument ingestion (ADR-23); update README
Record that the ingester now keeps named-argument calls to built-ins (with the
two documented exceptions), and refresh the README ingestion section: the slice
note plus the case count (70 files, ~2060 cases). The ADR-23 testing note no
longer claims named-arg forms are out of slice — 0030/0031 stay hand-written
only because their decisions are boxed contexts/functionDefinitions invoking
user-defined and imported functions.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
modified
DECISIONS.md
+9 −2
@@ -716,11 +716,18 @@
716 716 `function(…)` literals still evaluate there, and a function reaching the JSONB output 717 717 is null. 718 718 - **Testing:** DMN-TCK 0030/0031 **cannot be auto-ingested** — their decisions are boxed 719 - `<context>` /`<functionDefinition>` (not literal expressions) and use named-arg and 720 - library-import forms outside the slice, so `tools/ingest_tck.py` skips them. The tests 719 + `<context>` /`<functionDefinition>` (not literal expressions) invoking user-defined and 720 + imported functions, both outside the slice, so `tools/ingest_tck.py` skips them. The tests 721 721 are therefore hand-written: feel-core unit tests + a hand-written `0030` fixture (each 722 722 case carrying a `source` provenance note reconstructing the TCK semantics as a 723 723 self-contained expression), plus pytest and Node smoke cases for the host paths. 724 + *Named-argument calls to * *built-ins* * are auto-ingested, though* (`abs(n: -1)` , 725 + `substring(string: …, start position: …)` ): the slice detector keeps them and the closed 726 + loop validates the binding. Two named forms feel-core's parameter tables cannot bind stay 727 + skipped — a named call to a variadic aggregate / varargs builder (no named form) and the 728 + temporal-constructor / `context put` *overloads* whose name is absent from the single-row 729 + table (`date(from: …)` , `context put(…, keys: …)` ) — both documented in the ingester 730 + (`_NO_NAMED_FORM_BUILTINS` , `NAMED_ARG_OVERLOAD_SKIPS` ). 724 731 - **Consequence:** FEEL gains first-class functions across every target that has a host 725 732 function concept, reusing ADR-21's laziness and identity pass-through wholesale. Still 726 733 out of scope (documented): typed parameters `function(a: string)` , general invocation on
modified
README.md
+8 −2
@@ -116,8 +116,14 @@
116 116 expressions that fit the current grammar slice, applies the deviation registry 117 117 (the `decimal-vs-f64` rule switches numeric results to epsilon comparison), and 118 118 prints a summary of processed / skipped cases and which deviation rules fired. 119 - 120 -The fixtures used by the test (~68 files, ~1940 self-contained cases) are 119 +Built-in calls are kept whether positional or named (`abs(n: -1)` , 120 +`substring(string: "foobar", start position: 3)` ; ADR-23) — the two named forms 121 +feel-core's parameter tables cannot bind stay out: a named call to a variadic 122 +aggregate / varargs builder (`sum(list: …)` , no named form) and the temporal / 123 +`context put` *overloads* whose name is absent from the single-row table 124 +(`date(from: …)` , `context put(…, keys: …)` ; see `NAMED_ARG_OVERLOAD_SKIPS` ). 125 + 126 +The fixtures used by the test (70 files, ~2060 self-contained cases) are 121 127 regenerated by pointing the script at each TCK dir, e.g.: 122 128 123 129 ``` sh