Skip to content

Add Tracer integration for rule evaluation visualization#10

Merged
alexocode merged 6 commits intomainfrom
reed/tracer-integration
Feb 17, 2026
Merged

Add Tracer integration for rule evaluation visualization#10
alexocode merged 6 commits intomainfrom
reed/tracer-integration

Conversation

@systemic-engineer
Copy link
Copy Markdown
Collaborator

Introduces Brex.Trace, which converts a Brex.Result tree into a Tracer.t() tree, enabling color-coded visual inspection of rule evaluation via inspect/2.

  • Add Brex.Trace.from_result/1: operators map to :all/:any/:none step atoms with {:ok,:passed}/{:error,:failed} output and nested child traces; leaf rules preserve their raw evaluation and MFA/anonymous step identity
  • Add Brex.trace/2: evaluate then convert in one call
  • Bump ssl_verify_fun to 1.1.7 to fix OTP 27 compilation compatibility

systemic-engineer and others added 6 commits February 17, 2026 19:54
Introduces Brex.Trace, which converts a Brex.Result tree into a Tracer.t()
tree, enabling color-coded visual inspection of rule evaluation via inspect/2.

- Add Brex.Trace.from_result/1: operators map to :all/:any/:none step atoms
  with {:ok,:passed}/{:error,:failed} output and nested child traces; leaf
  rules preserve their raw evaluation and MFA/anonymous step identity
- Add Brex.trace/2: evaluate then convert in one call
- Bump ssl_verify_fun to 1.1.7 to fix OTP 27 compilation compatibility

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Replace container-based OTP 19-21 matrix (Elixir 1.6-1.10) with current
versions via systemic-engineer/ci reusable workflows.

- ci.yml: Switch to elixir-matrix.yml@main (Elixir 1.16-1.18, OTP 26-27)
- release.yml: Switch to hex-publish.yml@main
- Justfile: Add just recipes for local test/format/pre-commit/pre-push

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
elixir-matrix.yml does not declare a github-token secret input,
passing it caused a startup_failure.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Path deps don't work in CI — use the GitHub repo directly.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Convert all spec/ files to test/ with ExUnit.Case
- Inline shared ESpec behaviors (EvaluateSpec, IsRuleSpec) directly into
  the relevant test modules as describe blocks
- Drop ESpec custom assertion modules (BeRule, SatisfyRule) — replaced
  with plain assert/refute
- Move support/rules/ to test/support/rules/
- Fix stale stacktrace in Brex.Result.Formatter.Rules doctest
- Remove espec dep and test: "espec" alias from mix.exs

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Replace `use Mix.Config` with `import Config` in config.exs.
Remove espec and meck from mix.lock after uninstalling.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@alexocode alexocode merged commit 1fd4522 into main Feb 17, 2026
6 checks passed
@alexocode alexocode deleted the reed/tracer-integration branch February 17, 2026 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants