Add supervised logical agents and typed spawn_agent (#11) #30
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!30
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/issue-11-agent-supervision"
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 #11.
Supervised logical-agent runtime
Replace the
rlm_agentstub with a bounded actor-style runtime:Closed mailbox vocabulary
The runtime accepts typed messages for request/result/spawn/cancel/checkpoint/budget events. Arbitrary non-ground messages are rejected.
Typed-plan
spawn_agentAdd term and JSON
spawn_agentsyntax, but deliberately desugar it into the existing closed trusted-tool operationtool(spawn_agent, ...).That means agent spawning inherits the existing plan security/runtime boundaries:
tool(spawn_agent)capability is required before execution;JSON-origin agent specs canonicalize anonymous JSON dict tags while actual metadata remains restricted to closed JSON-like values.
Public API
Expose runtime lifecycle, spawn/send/pump/status/children/cancel/trace operations and the trusted
agent_tool_handler/4adapter through the publicrlmmodule.Deterministic acceptance
Branch-head deterministic CI is green and covers:
spawn_agentexecution;spawn_agentexecution;tool(spawn_agent)authority preventing child side effects.Cleanup / safety
Temporary branch-only source-patch helpers and write-capable CI jobs used during connector-only development have been removed. The final workflow is back to
contents: read.Do not merge until exact-head deterministic CI and the same-repository REAL OpenRouter integration job are green, the final diff contains no temporary patch machinery or credential material, and the PR is mergeable.