fix: bound zara-memory backend fact evidence #298

Open
nsaspy wants to merge 0 commits from rage/366-memory-backend-fact-bound into main
Owner

Closes #366.

RED

test_backend_fact_bounds.py proves a backend can currently return one memory containing 65 symbolic facts and bypass the service's caller-side fact bound.

Implementation

  • applies the existing MemoryService.MAX_FACTS = 64 invariant to backend-returned memories;
  • rejects oversized fact evidence before per-fact validation;
  • preserves scope/schema/provenance validation and does not emulate missing backend capabilities.

Exact-head CI must pass the complete compatibility, registry, plugin-test, and Nix gate before merge.

Closes #366. ## RED `test_backend_fact_bounds.py` proves a backend can currently return one memory containing 65 symbolic facts and bypass the service's caller-side fact bound. ## Implementation - applies the existing `MemoryService.MAX_FACTS = 64` invariant to backend-returned memories; - rejects oversized fact evidence before per-fact validation; - preserves scope/schema/provenance validation and does not emulate missing backend capabilities. Exact-head CI must pass the complete compatibility, registry, plugin-test, and Nix gate before merge.
Some checks failed
CI / test (pull_request) Failing after 38s
This branch is already included in the target branch. There is nothing to merge.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin rage/366-memory-backend-fact-bound:rage/366-memory-backend-fact-bound
git switch rage/366-memory-backend-fact-bound

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.

git switch main
git merge --no-ff rage/366-memory-backend-fact-bound
git switch rage/366-memory-backend-fact-bound
git rebase main
git switch main
git merge --ff-only rage/366-memory-backend-fact-bound
git switch rage/366-memory-backend-fact-bound
git rebase main
git switch main
git merge --no-ff rage/366-memory-backend-fact-bound
git switch main
git merge --squash rage/366-memory-backend-fact-bound
git switch main
git merge --ff-only rage/366-memory-backend-fact-bound
git switch main
git merge rage/366-memory-backend-fact-bound
git push origin main
Sign in to join this conversation.
No description provided.