Build opaque bounded external context runtime (#6) #25
No reviewers
Labels
No labels
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/prolog-rlm!25
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/issue-6-context-store"
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?
Closes #6.
Context runtime
rlm_contextas the backend-neutral external-context APIcontext_handle(Id, Version)termstext(Text)andterms(List)sourcesfilesystem:falseandnetwork:false;file(...), URL-like terms, streams, sockets, and arbitrary callable terms are not dereferencedBounded operations
Every projection supports explicit
max_results, globalmax_bytes, and wall-time budgets. Count/byte limits are enforced across the whole returned projection rather than independently per chunk.Traceability
Each successful operation records structured trace data including:
Deterministic coverage
Tests cover large opaque text, bounded search, global partition byte limits, term peek/slice/map/reduce, malformed/unknown/deleted handles, arbitrary callable denial, unsupported filesystem sources, invalid limits/partition sizes, trace metrics, and declared backend capabilities.
The branch has been merged forward to the current
mainprovider behavior, including reasoning-only OpenRouter normalization, so this PR does not revert or duplicate provider changes.CI/security