[P0] Build opaque external context store and context operations #6

Closed
opened 2026-08-12 01:17:52 +00:00 by lost-rob0t · 0 comments
lost-rob0t commented 2026-08-12 01:17:52 +00:00 (Migrated from github.com)

Goal

Keep large inputs outside the root model prompt while exposing controlled, inspectable operations over them.

Scope

  • define opaque context handles and metadata terms;
  • support text/term-backed contexts initially;
  • implement peek/slice/search/partition/map/reduce primitives;
  • bound result sizes and execution time;
  • make context operations traceable;
  • prevent arbitrary filesystem/network access through context handles;
  • define extension points for larger persistent stores later.

Acceptance criteria

  • a context significantly larger than the model prompt can be registered and queried by handle;
  • root model receives metadata/handles rather than the full payload;
  • search and partition results are bounded;
  • invalid/stale handles produce structured errors;
  • context operations emit trace events with bytes/items inspected.

Dependencies

Research

See RLM-RESEARCH-002-agentic-harness.org and RLM-RESEARCH-009-durable-artifact-context.org.

## Goal Keep large inputs outside the root model prompt while exposing controlled, inspectable operations over them. ## Scope - define opaque context handles and metadata terms; - support text/term-backed contexts initially; - implement peek/slice/search/partition/map/reduce primitives; - bound result sizes and execution time; - make context operations traceable; - prevent arbitrary filesystem/network access through context handles; - define extension points for larger persistent stores later. ## Acceptance criteria - a context significantly larger than the model prompt can be registered and queried by handle; - root model receives metadata/handles rather than the full payload; - search and partition results are bounded; - invalid/stale handles produce structured errors; - context operations emit trace events with bytes/items inspected. ## Dependencies - #4 - parent #3 ## Research See `RLM-RESEARCH-002-agentic-harness.org` and `RLM-RESEARCH-009-durable-artifact-context.org`.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nsaspy/prolog-rlm#6
No description provided.