Files
rose-ash/lib/datalog/scoreboard.md
giles 69a53ece43
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 44s
datalog: dl-magic-query shape validator (255/255)
Bug: dl-magic-query crashed with cryptic "rest: 1 list arg" when
the goal argument was a string, number, or arbitrary dict. The
first thing the function does is dl-rel-name + dl-adorn-goal,
both of which assume a positive-literal list shape.

Fix: explicit shape check up front. A goal must be a non-empty
list whose first element is a symbol. Otherwise raise with a
clear diagnostic. Built-in / aggregate / negation dispatch (the
fall-back to dl-query) is unchanged.

2 new magic tests cover string and bare-dict goal rejection.
2026-05-10 21:13:30 +00:00

18 lines
421 B
Markdown

# datalog scoreboard
**255 / 255 passing** (0 failure(s)).
| Suite | Passed | Total | Status |
|-------|--------|-------|--------|
| tokenize | 29 | 29 | ok |
| parse | 22 | 22 | ok |
| unify | 28 | 28 | ok |
| eval | 38 | 38 | ok |
| builtins | 23 | 23 | ok |
| semi_naive | 8 | 8 | ok |
| negation | 10 | 10 | ok |
| aggregates | 20 | 20 | ok |
| api | 20 | 20 | ok |
| magic | 36 | 36 | ok |
| demo | 21 | 21 | ok |