Add provider-neutral symbolic prompt compiler core #116
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!116
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "agent/prompt-context-compiler"
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?
Scope
This PR deliberately lands the compiler core only from RLM-RESEARCH-010/011. It does not claim completion or managed-conversation integration; that executable convergence remains open under #101.
Implemented here:
needs(...);prompt_catalog_search/4that returns declarative metadata only;rlm_context_budgetalgebra;all_toolscompatibility mode for regression/benchmark comparison;Authority invariant
registered(Unit) != available(Unit) != active(Unit) != authorized(Unit).Compiler selection controls only the model-visible projection. It never executes a tool, installs or starts MCP, stores trusted callables, or widens runtime capabilities. Existing tool/MCP/effect/authority runtimes remain authoritative.
Explicit non-goals for this PR
The following are intentionally not claimed here and remain work for #101 / subsequent prompt-runtime slices:
rlm_completion/4so the planner stops receiving every discovered registry schema by default;rlm_context_budgetpack;Keeping those out of this PR satisfies the prior reconciliation direction to either implement the whole executable integration or narrow the transaction to the compiler core. It also preserves the authority boundary: activation is model-visible projection only.
Reconciliation
The branch was merged forward onto current
mainwithout rewriting history. Final head7dafce18d3e50f3b5e6be06220ddb19263da765dis zero commits behindmainand the final delta is six intentional files. The reconciliation preserves the fail-closed production static loader, project-source coverage, UI fixture codec regression, and recursive fingerprint fixes already present onmain.Research
research/RLM-RESEARCH-011-managed-context-tool-discovery.orgrecords the broader convergence model: bounded candidate generation -> closure/policy -> compiler context units -> one shared context pack. Research remains broader than this implementation slice.Exact-head validation
Final head:
7dafce18d3e50f3b5e6be06220ddb19263da765dPASS:
The earlier live failure was provider HTTP 429 quota exhaustion; the fresh reconciled exact head subsequently passed the entire REAL OpenRouter job.
Remaining architecture work
Issue #101 remains open and authoritative for executable prompt-compiler integration with managed conversation and final provider-visible packing. This PR does not close or weaken that requirement.
Backlog reconciliation note: the compiler core/research/tests are substantial, but the current six-file delta does not yet wire selected schemas into
rlm_completionor the managed conversation runtime even though the PR scope claims that integration. Research 011 explicitly says completion should stop exposing every discovered registry schema by default and managed turns should merge compiler units with hot/warm/cold units before the singlerlm_context_budgetpack. Keep this draft until that executable integration is present and tested (or narrow the PR/body to compiler-core only). Do not satisfy this by moving execution/authority into the compiler: activation remains model-visible projection only, while the full trusted registry and existing authority/tool runtime stay authoritative.