make sure only one spec is returned

This commit is contained in:
felix
2026-09-27 16:05:25 +02:00
parent 538a2d949e
commit 1f80fdc815
3 changed files with 20 additions and 5 deletions

View File

@@ -53,7 +53,7 @@ nodes columns share, on every step; `rep:collect`) → CSV → register file
## The profile: a map of the data
A profile lists the kinds of things in the data (entities), what each one
A profile (using SHACL + some extensions) lists the kinds of things in the data (entities), what each one
has (fields), and which fields lead to other entities (links). The app
writes it; the service ships no profile and knows no vocabulary.
@@ -285,6 +285,7 @@ The validator (`src/runner/check.js`) runs on every proposal and again
before every run. It returns the first problem, in words the LLM can act on.
On top of the rules above, it checks that:
- the Turtle holds one `rep:ReportSpec`, no more: one answer is one report;
- every step of every path exists in the profile;
- no path is longer than `MAX_PATH_DEPTH` steps;
- a date or number test ends on a value field, not on a link;
@@ -504,4 +505,4 @@ non-admin callers. Opening this up means adding the type to their group first.
## What it will not do
No counting, no sorting, no top-N, no comparing two subjects, one class per
report, suggestions stop at the public graph.
report, suggestions stop at the public graph.