Validate tool arguments against supplied JSON Schema #101
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nsaspy/llm-log!101
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/58-tool-schema-anomaly"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Tracks the second bounded detector family from #58, stacked on #91.
What changed
jsonschemaimplementation via a reusable bounded validator rather than a hand-written schema subset;tool_arguments_schema_violation(tool-call-schema/1, score 0.95, high severity) for deterministic supplied-schema violations;unusablerequest contracts and do not create model-blame evidence;$refvalues before validation; local#references remain supported;jsonschemaand the directly importedreferencingpackage explicitly inpyproject.toml, Nix dev/test closures and the delivered Nix package;RED evidence
Exact test-only head
8a811224f765e220a07584230a44279c8cea7adb: 144 tests ran; exactly three new behavioral expectations failed because schema conformance was not implemented:$refmismatch produced no anomaly.The other five new attribution/safety cases already passed on RED: valid arguments, invalid-JSON no double count, undeclared-tool no schema blame, invalid request schema no model blame, and remote-reference no model blame. Every inherited contract stayed green.
GREEN evidence
Implementation/dependency head
7083f696d70de5c128ec8f89334b14daf432a537passed all three exact-head workflows: Analytics run 95, Quota run 100, Expert-plane run 260, including full Python regression, adversarial analytics, real Common Lisp/Tek9/SWI-Prolog integration and delivered package build.Safety head
c19318e9609fb8e0550392d127384dc295328ef6also passed all three exact-head workflows (Analytics 96, Quota 101, Expert-plane 261) after adding broken-local-ref, external-ref, over-depth and JSON Pointer escaping regressions.Dependency-hygiene head
b82f8141741dd2c0f42bfd9f31e17ccaf8652e9dpassed Analytics 99, Quota 104 and Expert-plane 264 after declaringreferencingdirectly rather than relying on an undeclared transitive dependency.Final exact head
24b5e9955bd7d5d1708c8b019ae1fe58ffdfb11bpassed after Prolog/Org knowledge promotion:Boundary
This slice validates tool arguments only. It does not validate requested assistant response formats, infer task failure, fetch remote schemas, or add repetition/length/encoding/canary detectors. Quantization remains orthogonal grounded metadata and does not affect schema detector score.
No merge is performed here.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.