Commit Graph
159 Commits
Author SHA1 Message Date
Stefan 7fade4435c feat(trace): trace format v1 with TraceCollector on the compiled engine
Compiled engine only; the interpreted engine keeps legacy traces. The
interpreted graph, policy and function code is unchanged from
release/2.2: asked for a trace (true, v1 or legacy) it returns its
legacy trace, never converts to v1, and ignores now, timezone and seed.

- trace format v1 inside the engine (compiled/trace), public as
  zen_engine::trace: convert (legacy to v1), restore (v1 to legacy),
  inspect and redact, with the native encoder and policy writer, and
  TraceFormat, TraceDocument, PolicyTrace and TraceBatch; no separate
  crate
- TraceFormat option (off, v1, legacy) replacing EvaluationTraceKind on
  every evaluation path; on the compiled engine legacy traces are
  restored from v1
- native TraceCollector for single-row, batch and columnar evaluation:
  a static template per compiled graph and typed facts pushed by the
  engine (rule hits, switch branches, expression results, sub-decision
  and loop levels), written as v1 without a legacy map
- native policy writer for executions, members, reads, writes and
  absence markers
- engine glue under compiled/ (compiled/trace/mod.rs,
  compiled/pinning.rs); workspace request, result and error types take
  the trace format and the policy trace as type parameters defaulting
  to the legacy types, with public aliases for TraceFormat and
  PolicyTrace; the response trace enum gains V1 and its policy variant
  holds a PolicyTrace
- pinned evaluation context on the compiled engine: now, timezone and
  seed options, one clock read per evaluation and per batch, per-row
  random streams (row i draws from row_seed(seed, i)) in every batch and
  columnar path, Date and Math.random pinned in compiled function nodes;
  evaluatedAt, timezone and seed in the envelope
- format additions: result rows for repeated keys, $redacted and
  $omitted with truncated, reserved context, requires flags
- now, timezone, seed and trace format options in the Node, Python, C
  and uniffi bindings
- golden tests: compiled v1 and legacy restore to the base traces for
  every spec case, interpreted variants return legacy traces equal to
  the base for any trace option, native and convert agree, batch and
  columnar rows equal single rows, timing stress, pinned and
  random-stream tests, and the interpreted engine ignores pinning;
  trace API, damaged-input, POC fixture (tests/fixtures/trace) and
  corpus tests, and the trace_corpus example for the POC cross-check
2026-11-04 17:46:43 +01:00
GoRules Team 2e152f3f6e chore(release): publish (#552) 2026-10-21 17:48:01 +02:00
GoRules Team 25624e821a chore(release): publish (#550) 2026-10-20 19:23:43 +02:00
GoRules Team c747ea2f46 chore(release): publish (#544) 2026-10-13 12:51:22 +02:00
GoRules Team 6ccf7f6013 chore(release): publish (#540) 2026-10-09 12:24:24 +02:00
GoRules Team 7e0b3d1e1f chore(release): publish (#536) 2026-10-02 12:40:20 +02:00
GoRules Team 2e88387e7a chore(release): publish (#533) 2026-09-29 23:07:09 +02:00
GoRules Team 61862ab9ef chore(release): publish (#526) 2026-09-29 12:35:25 +02:00
GoRules Team a1f8c3e470 chore(release): publish (#519) 2026-08-24 10:08:40 +02:00
stefan-gorules 8594f9a5fb fix: correct readme examples and java native library loader (#518) 2026-08-24 09:52:58 +02:00
GoRules Team 6c0fbabba1 chore(release): publish (#517) 2026-08-22 13:27:31 +02:00
stefan-gorules 692ca2fe6b fix: improve READMEs across bindings (#516)
* fix: improve READMEs across bindings

* add readmes for crates
2026-08-22 13:10:37 +02:00
GoRules TeamandStefan 112b8dbd42 chore(release): publish (#507)
* chore(release): publish

* correct version of expression_repl to v2

* remove release-as property

---------

Co-authored-by: Stefan <stefan@gorules.io>
2026-08-20 19:43:55 +02:00
stefan-gorules 13722740a1 fix: number out of range panics (#506) 2026-08-19 11:01:36 +02:00
GoRules TeamandStefan 0a1c0c3ff5 chore(release): publish (#503)
* chore(release): publish

* correct versions

---------

Co-authored-by: Stefan <stefan@gorules.io>
2026-08-19 00:06:21 +02:00
GoRules TeamandStefan 83504fa639 chore(release): publish (#501)
* chore(release): publish

* correct versions

---------

Co-authored-by: Stefan <stefan@gorules.io>
2026-08-07 10:51:46 +02:00
stefan-gorules fe43b4c1d7 perf: general performance improvements (#500)
* perf: general performance improvements

* remove unsafe usages, further improve perf

* perf: add table indexing
2026-08-04 11:12:37 +02:00
GoRules TeamandIvan Miletic 32a8f12547 chore(release): publish (#499)
* chore(release): publish

* correct the release

---------

Co-authored-by: Ivan Miletic <vnmiletic@gmail.com>
2026-07-26 14:02:39 +02:00
GoRules TeamandIvan Miletic 6ed91ecb82 chore(release): publish (#497)
* chore(release): publish

---------

Co-authored-by: Ivan Miletic <vnmiletic@gmail.com>
2026-07-24 14:53:46 +02:00
GoRules TeamandStefan e17a808bae chore(release): publish (#495)
* chore(release): publish

* correct the release

---------

Co-authored-by: Stefan <stefan@gorules.io>
2026-07-22 16:47:46 +02:00
GoRules TeamandStefan ad97b340b3 chore(release): publish (#491)
* chore(release): publish

* fix: correct cascade-bumped prerelease versions

---------

Co-authored-by: Stefan <stefan@gorules.io>
2026-07-22 11:38:23 +02:00
GoRules Team 717cbf5d80 chore(release): publish (#488) 2026-07-21 12:44:04 +02:00
stefan-gorules 1818371c90 feat: implement new loaders across languages (#487) 2026-07-20 12:20:48 +02:00
GoRules TeamandStefan 7c8f847c6d chore(release): publish (#484)
* chore(release): publish

* fix prerelease versions

---------

Co-authored-by: Stefan <stefan@gorules.io>
2026-07-17 11:51:27 +02:00
GoRules TeamandStefan 48cc2e38d5 chore(release): publish (#482)
* chore(release): publish

* correct release versions

---------

Co-authored-by: Stefan <stefan@gorules.io>
2026-07-10 10:42:56 +02:00
GoRules TeamandStefan 68708fa057 chore(release): publish (#480)
* chore(release): publish

* fix incorrect version bump

---------

Co-authored-by: Stefan <stefan@gorules.io>
2026-07-08 13:49:07 +02:00
GoRules TeamandStefan d3cd7ccad9 chore(release): publish (#478)
* chore(release): publish

* correct release version

---------

Co-authored-by: Stefan <stefan@gorules.io>
2026-07-07 14:54:50 +02:00
GoRules Team 7805da79f7 chore(release): publish (#475) 2026-06-29 14:18:59 +02:00
stefan-gorules b6fac7c7a6 perf: binding variable conversion (python and nodejs) (#474) 2026-06-29 13:56:52 +02:00
GoRules TeamandStefan c064ed0c4c chore(release): publish (#471)
* chore(release): publish

* hotfix version update and remove release-as from config

---------

Co-authored-by: Stefan <stefan@gorules.io>
2026-06-26 14:16:28 +02:00
GoRules TeamandStefan bab9af86e4 chore(release): publish (#468)
* chore(release): publish

* hotfix 1.0.1-beta.0 version to 1.0.0-beta.1

---------

Co-authored-by: Stefan <stefan@gorules.io>
2026-06-26 12:00:10 +02:00
GoRules Team 0aa2a39ebc chore(release): publish (#462) 2026-06-25 15:19:46 +02:00
stefan-gorules 7f31af809d chore: improve release pipeline (#451)
* chore: improve release pipeline

* fix pipelines

* fix sccache

* update workflows

* fix workflow

* update workflow

* remove sccache and cross

* bring back sccache

* fix pipelines

* fix nodejs build

* fix pipelines

* move python to abi3 for future proofing

* fix workflow ordering bug

* gate releases via environment - configure go via release

* set release as 1.0.0-beta
2026-06-24 20:44:35 +02:00
stefan-gorules 6c0ca51354 feat: policy engine (#450)
* feat: policy engine

* fix: cargo fmt

* fix: resolve issues with miri
2026-06-23 18:51:47 +02:00
Bot 6ceb70991e chore(release): publish python 2026-03-15 13:46:09 +00:00
Bot 021f3ccd3d chore(release): publish python 2026-03-04 09:35:08 +00:00
stefan-gorules 46688a4d4c feat: configurable arbitrary precision (#433)
* feat: configurable arbitrary precision

* fix workflow

* fix workflow

* set version of docker run action to v1

* set arbitrary_precision as opt-in

* revert making arbitrary_precision non-default

* update cargo version action and add features in Cargo.toml for deps

* add tests for arbitrary precision and make it non default. add warnings for compilation when arbitrary precision not enabled

* simplify conversion

* remove build.rs
2026-03-03 16:57:22 +01:00
Bot 112d1e73e2 chore(release): publish python 2026-01-19 09:54:34 +00:00
Bot 61465bd6d4 chore(release): publish python 2025-11-24 13:21:02 +00:00
Bot b3f8c8c559 chore(release): publish python 2025-11-21 21:39:26 +00:00
bcrevar-gorulesandStefan 7bfebd90fe feat: precompile decision content (#401)
* precompile first

* test

* add Opcode cache through Option<T>

* Compiled support for decisionTable,
default compile of new DecisionContent for node.js and py bindings

* format

* DecisionContent refactored to model module

* fmt

* added back BaseDecisionContent

* tests and benchmark

---------

Co-authored-by: Stefan <stefan@gorules.io>
2025-11-21 14:44:24 +01:00
Bot f8e753e138 chore(release): publish python 2025-11-20 13:12:49 +00:00
Bot aa174027d3 chore(release): publish python 2025-09-11 08:28:18 +00:00
stefan-gorules 91509821be feat: refactor engine (#390)
* temp: refactor engine

* temp

* implement remaining nodes

* resolve snapshot tests

* improve decision graph implementation

* implement changes in bindings

* implement changes in bindings

* fix function impl gaps

* update cargo.toml

* fix issues with trace
2025-09-04 18:54:32 +02:00
stefan-gorulesandbojancrevar 80fe4021c2 feat: compact trace (#384)
* feat: compact trace

* align with changes

* add deserialization

* add tests and deserializer

* fix bindings

* first draft

* mock time; update snapshots

* fix

* Node.js test fix

* fix merge

* fix utc override

* fix cross-env

* fix workflow

* fix

---------

Co-authored-by: bojancrevar <bojan.crevar@gorules.io>
2025-08-25 12:33:07 +02:00
Bot 141e1810a3 chore(release): publish python 2025-07-04 08:25:34 +00:00
Bot 95c8cc97df chore(release): publish python 2025-07-03 09:14:27 +00:00
Bot 4cfc79fe78 chore(release): publish python 2025-06-18 09:00:16 +00:00
Bot 01211294f1 chore(release): publish python 2025-06-16 08:16:24 +00:00
Bot 22d8c594d5 chore(release): publish python 2025-06-03 10:12:07 +00:00