Skip to content

Add DMN-style decision tables#261

Merged
JE-Chen merged 1 commit into
devfrom
feat/decision-table-batch
Jun 20, 2026
Merged

Add DMN-style decision tables#261
JE-Chen merged 1 commit into
devfrom
feat/decision-table-batch

Conversation

@JE-Chen

@JE-Chen JE-Chen commented Jun 20, 2026

Copy link
Copy Markdown
Member

Workflow batch (from multi-agent web research; verified absent). Full layers + tests + EN/Zh v53 docs + README.

Feature (utils/decision_table, pure-stdlib)

  • evaluate_table / DecisionTable: externalize branching into rows of conditions -> outputs with a hit policy (UNIQUE/FIRST/PRIORITY/COLLECT) — the DMN alternative to nested AC_if_var. Cell conditions are wildcard (None/-/*), literal (equality), or {op, value} reusing the executor's standard comparators (eq/ne/lt/le/gt/ge/contains/startswith/endswith — imported, not duplicated).
  • Executor AC_decision_table (spec/context dict or JSON string); MCP ac_decision_table; Builder under Flow.

Verification

  • 10 tests pass (first-match, no-match empty, COLLECT all, UNIQUE multi-raises, wildcard+literal, unknown-op raises, direct class API, executor round-trip, wiring, facade); ruff clean; radon no CC≥C; bandit clean; PySide6-free.

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 37 complexity · 0 duplication

Metric Results
Complexity 37
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@JE-Chen JE-Chen merged commit e69e8a1 into dev Jun 20, 2026
16 checks passed
@JE-Chen JE-Chen deleted the feat/decision-table-batch branch June 20, 2026 12:58
@sonarqubecloud

Copy link
Copy Markdown

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.

1 participant