[P1] Execute closed KB prompt commands through canonical typed tool runtime #206
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#206
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Parent: #172
Related: #144, #203/#204, #175
Starting main:
8054606971ffbbb6aa9484b4e915caa4c655929bObserved gap
Current
rlm_prompt_commandalready compiles closed KB bindings such asprompt_action(..., delegate_subagent)intotool(rlm_subagent). Currentrlm_subagentalready provides bounded child execution, structured return envelopes, child-owned capability/authority, cancellation, usage/trace, and parentchild_resultpropagation. Current adaptive recursion already has adelegated_subagentroute.However, repository search on the starting SHA finds no production consumer of
prompt_command_compile/*; the end-to-end test manually destructuresCommand.command = tool(Tool)and callstool_invoke/7itself. That host glue is the missing symbolic-control-plane seam.Goal
Add the smallest generic runtime executor for an already-compiled prompt command so a closed KB binding can reach the canonical typed tool runtime without letting command data become an arbitrary callable or arbitrary tool target.
First supported adapter remains
delegate_subagent -> tool(rlm_subagent)and derives the invocation payload from trusted compiled command data as{query: Command.text}. Execution must reuserlm_tooland the registered canonicalrlm_subagent; it must not create another scheduler, tool path, authority tier, or child runtime.TDD contract
unknownKB trigger and executing the compiled command invokes the registered canonicalrlm_subagentwithout manualCommand.command/tool_invokeglue;child_resultand can consume it throughagent_pump;Non-goals
RAGE decision input
This slice closes the concrete missing executor seam first. After it lands, #172 can wire unresolved/unknown policy selection to this typed command path and make parent resume/replan explicit without duplicating command/tool semantics.