Add Tracer integration for rule evaluation visualization#10
Merged
Conversation
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
approved these changes
Feb 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.