Skip to content

feat(2.5.0): embed algorithm card tests, remove tests/algorithms/ sid… - #15

Merged
rg4444 merged 1 commit into
mainfrom
feat/2.5.0-embedded-tests
May 21, 2026
Merged

feat(2.5.0): embed algorithm card tests, remove tests/algorithms/ sid…#15
rg4444 merged 1 commit into
mainfrom
feat/2.5.0-embedded-tests

Conversation

@rg4444

@rg4444 rg4444 commented May 21, 2026

Copy link
Copy Markdown
Contributor

…ecar

Breaking change. The sidecar location tests/algorithms/.test.yaml is REMOVED as a valid location for algorithm card tests. Every algorithm card MUST now carry an embedded top-level tests array with at least two entries. Sidecar tests under tests/ remain valid for BPMN/DMN/CMMN cornerstones; only algorithm cards are affected.

Rationale: the Algorithm Card viewer (new chapter 13.16) renders the embedded tests as its primary interaction surface. A single source of truth (the card file) makes the viewer self-contained and removes the risk of orphaned tests or tests-without-card. The viewer minimum of two cases is intentional: single-case sample browsers hide failure modes and produce trivially-true UIs.

Changes:

  • VERSION 2.4.0 -> 2.5.0
  • algorithm-card.schema.json: new REQUIRED top-level tests array, minItems: 2. Each entry has { name, description?, inputs, expected_outputs, tolerance? }.
  • specification/13-algorithm-cards.md: 13.12 rewritten (embedded tests, sidecar REMOVED for algorithm cards); 13.11 promoted to first-class; new 13.15 (migration guide from v2.4.0); new 13.16 (informative — Algorithm Card viewer contract: polymorphic on implementation.type, common metadata/IO header, common sample- browser footer, per-language inline visualisers, side-panel drawer click-through from BPMN overlay).
  • specification/11-semantic-validation.md: SEM-014 (ERROR — tests array MUST have >=2 entries) + SEM-015 (WARN — test input/output keys SHOULD match io.inputs/outputs ids).
  • specification/10-conformance-checklist.md: three new bullets for SEM-014, SEM-015, and the sidecar removal.
  • examples/approve-expense-l4: card gains two embedded tests; old tests/algorithms/policy_lookup_assistant.test.yaml sidecar deleted; archive re-packed.
  • CHANGELOG.md: v2.5.0 entry stating the breaking change plainly.

uapf-cli validates both examples cleanly against v2.5.0 schemas.

…ecar

Breaking change. The sidecar location tests/algorithms/<card-id>.test.yaml
is REMOVED as a valid location for algorithm card tests. Every algorithm
card MUST now carry an embedded top-level tests array with at least two
entries. Sidecar tests under tests/ remain valid for BPMN/DMN/CMMN
cornerstones; only algorithm cards are affected.

Rationale: the Algorithm Card viewer (new chapter 13.16) renders the
embedded tests as its primary interaction surface. A single source of
truth (the card file) makes the viewer self-contained and removes the
risk of orphaned tests or tests-without-card. The viewer minimum of
two cases is intentional: single-case sample browsers hide failure
modes and produce trivially-true UIs.

Changes:
- VERSION 2.4.0 -> 2.5.0
- algorithm-card.schema.json: new REQUIRED top-level tests array,
  minItems: 2. Each entry has { name, description?, inputs,
  expected_outputs, tolerance? }.
- specification/13-algorithm-cards.md: 13.12 rewritten (embedded
  tests, sidecar REMOVED for algorithm cards); 13.11 promoted to
  first-class; new 13.15 (migration guide from v2.4.0); new 13.16
  (informative — Algorithm Card viewer contract: polymorphic on
  implementation.type, common metadata/IO header, common sample-
  browser footer, per-language inline visualisers, side-panel drawer
  click-through from BPMN overlay).
- specification/11-semantic-validation.md: SEM-014 (ERROR — tests
  array MUST have >=2 entries) + SEM-015 (WARN — test input/output
  keys SHOULD match io.inputs/outputs ids).
- specification/10-conformance-checklist.md: three new bullets for
  SEM-014, SEM-015, and the sidecar removal.
- examples/approve-expense-l4: card gains two embedded tests; old
  tests/algorithms/policy_lookup_assistant.test.yaml sidecar deleted;
  archive re-packed.
- CHANGELOG.md: v2.5.0 entry stating the breaking change plainly.

uapf-cli validates both examples cleanly against v2.5.0 schemas.
@rg4444
rg4444 merged commit efdb6fa into main May 21, 2026
1 check passed
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