Log
0823ae2d0a3f
docs: ADR-43 + ROADMAP/README — 0106/0107 ternary-logic coverage
public
docs: ADR-43 + ROADMAP/README — 0106/0107 ternary-logic coverage
Adds ADR-43 documenting the ingest of the ternary-logic suite pair.
Bumps fixture counts to 2985 cases / 99 files in ROADMAP.md and README.md.
Adds 0106/0107 to the README ingested-dirs prose with ADR-43 reference.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
modified
DECISIONS.md
+30 −0
@@ -2004,3 +2004,33 @@
2004 2004 2005 2005 - **Fixtures ingested:** `0009-invocation-arithmetic` (compliance-level-2) — 3 cases, 2006 2006 `f64_epsilon` . **Suite 2961 → 2964.** 2007 + 2008 +## ADR-43: 0106-feel-ternary-logic & 0107-feel-ternary-logic-not — three-valued and/or/not (compliance-level-2) 2009 + 2010 +- **Context:** The compliance-level-2 suites `0106-feel-ternary-logic` and 2011 + `0107-feel-ternary-logic-not` test FEEL's Kleene (three-valued) logic as defined in 2012 + spec §10.3.2.4 and Tables 51 and 74. Suite 0106 has two decisions (`DecisionAnd = A and B` , 2013 + `DecisionOr = A or B` ) and covers the full true/false/null × true/false/null input matrix 2014 + (9 test cases × 2 decisions = 18 fixture cases). Suite 0107 has one decision 2015 + (`DecisionNot = not(A)` ) with three test cases (true→false, false→true, null→null). 2016 + All inputs are boolean or null; no non-boolean operands appear. The predecessor suites 2017 + 0064/0065/0066 (ingested earlier) cover conjunction/disjunction/negation with literal 2018 + operands (including non-boolean error cases); 0106/0107 add context-bound inputs that 2019 + mirror the full ternary truth tables from the spec. 2020 + 2021 +- **Decision:** Ingest both suites as-is — no engine or ingester changes were required. 2022 + The three-valued logic combinators `and3` /`or3` (`eval.rs` , lines 749–807) and 2023 + `Expr::Not` evaluation (lines 186–200) already implement Table 51 (conjunction/disjunction 2024 + with null) and Table 74 (`not(null)=null` ) exactly. The ingester's context-binding path 2025 + maps `xsi:nil="true"` input nodes to null and produces exact-comparison cases. 2026 + All expressions (`A and B` , `A or B` , `not(A)` ) are core-slice keywords and pass 2027 + `fits_slice_grammar` without skips. Unit tests `logic_three_valued()` (lib.rs, line 1005) 2028 + had already verified the same matrix; 0106/0107 provide the official TCK provenance. 2029 + 2030 +- **Consequence:** The full ternary truth table (Table 51) and negation (Table 74) are now 2031 + covered by TCK-sourced fixtures in addition to the earlier unit tests and 0064–0066 2032 + literal suites. Both suites use `comparison: "exact"` (no floating-point deviation needed). 2033 + The 0106/0107 context-bound inputs complement 0064/0065/0066's literal-operand style. 2034 + 2035 +- **Fixtures ingested:** `0106-feel-ternary-logic` (compliance-level-2) — 18 cases, `exact` ; 2036 + `0107-feel-ternary-logic-not` (compliance-level-2) — 3 cases, `exact` . **Suite 2964 → 2985.**
modified
README.md
+4 −2
@@ -137,7 +137,7 @@
137 137 `context put` *overloads* whose name is absent from the single-row table 138 138 (`date(from: …)` , `context put(…, keys: …)` ; see `NAMED_ARG_OVERLOAD_SKIPS` ). 139 139 140 -The fixtures used by the test (97 files, ~2964 self-contained cases) are 140 +The fixtures used by the test (99 files, ~2985 self-contained cases) are 141 141 regenerated by pointing the script at each TCK dir, e.g.: 142 142 143 143 ``` sh
@@ -158,7 +158,9 @@
158 158 -o crates/feel-core/tests/fixtures/0070-instance-of.json 159 159 ``` 160 160 161 -The other ingested dirs include `0009-invocation-arithmetic` (compliance-level-2, BKM 161 +The other ingested dirs include `0106-feel-ternary-logic` and 162 +`0107-feel-ternary-logic-not` (compliance-level-2, context-bound three-valued 163 +and/or/not; ADR-43), `0009-invocation-arithmetic` (compliance-level-2, BKM 162 164 invocation + arithmetic, canonical §10.6.5 calculation pattern; ADR-42), 163 165 `0008-LX-arithmetic` (compliance-level-2, structured-input loan payment formula; ADR-41), 164 166 `0100/0101/0102-feel-constants` (compliance-level-2,
modified
ROADMAP.md
+1 −1
@@ -7,7 +7,7 @@
7 7 without re-deriving the analysis. 8 8 9 9 Coverage figures are case counts from `tools/ingest_tck.py` over the DMN-TCK 10 -compliance-level-3 suites. Today the fixture suite is **2964 cases / 97 files** 10 +compliance-level-3 suites. Today the fixture suite is **2985 cases / 99 files** 11 11 (`cargo test -p feel-core --test fixtures_test -- --nocapture` ). 12 12 13 13 ---