Propagate permanent RLM context to internal model calls #201

Merged
lost-rob0t merged 4 commits from rage/200-permanent-rlm-context into main 2026-08-25 10:26:46 +00:00
lost-rob0t commented 2026-08-25 10:10:25 +00:00 (Migrated from github.com)

Closes #200.

RAGE state

TDD-first. The branch starts from 2ceba4c0f4a64e95233849a92def6e4fbf95b8b7 and the first commit adds the deterministic provider-context regression contract only. Production implementation follows after the red contract is observed.

Approved design authority: #183. Related provider-surface gate: #176.

Invariant

The root planner's already-compiled permanent RLM operating context must be inherited by provider calls made by model-selected internal/nested/retry plan steps, exactly once per request. This is provider visibility only and must not widen capabilities, authority, handlers, or effects.

Raw standalone llm_query/3 remains raw.

Keep draft until exact-head deterministic, Nix/clean-pack, Tree-sitter, and configured Paid OpenRouter gates are green and the final head is reviewed against #183.

Closes #200. ## RAGE state TDD-first. The branch starts from `2ceba4c0f4a64e95233849a92def6e4fbf95b8b7` and the first commit adds the deterministic provider-context regression contract only. Production implementation follows after the red contract is observed. Approved design authority: #183. Related provider-surface gate: #176. ## Invariant The root planner's already-compiled permanent RLM operating context must be inherited by provider calls made by model-selected internal/nested/retry plan steps, exactly once per request. This is provider visibility only and must not widen capabilities, authority, handlers, or effects. Raw standalone `llm_query/3` remains raw. Keep draft until exact-head deterministic, Nix/clean-pack, Tree-sitter, and configured Paid OpenRouter gates are green and the final head is reviewed against #183.
lost-rob0t commented 2026-08-25 10:19:19 +00:00 (Migrated from github.com)

Exact-head verification on 8f7add3fcefc21520e760acefe90b29cdffad4a7 is green across every repository gate: CI (deterministic unit/load checks + credentialed REAL OpenRouter), Paid OpenRouter, Nix flake/package/out-of-checkout load, Tree-sitter FFI, and Clean SWI pack install. Review submissions: none. Unresolved review threads: none. main remains the original base 2ceba4c0f4a64e95233849a92def6e4fbf95b8b7; PR is mergeable. Final audit remains within #183: rlm_completion compiles the permanent skill projection once; root planner uses the ordinary provider; plan execution receives only a host-owned provider_context(SkillMessages, Provider) wrapper; rlm_plan is unchanged; raw llm_query/3 is unchanged; visibility grants no capability/authority/effect. The automation attempted to transition this PR out of draft, but the connected GitHub mutation was blocked by the tool safety layer, so merge could not proceed even though all repository gates are satisfied.

Exact-head verification on `8f7add3fcefc21520e760acefe90b29cdffad4a7` is green across every repository gate: CI (deterministic unit/load checks + credentialed REAL OpenRouter), Paid OpenRouter, Nix flake/package/out-of-checkout load, Tree-sitter FFI, and Clean SWI pack install. Review submissions: none. Unresolved review threads: none. `main` remains the original base `2ceba4c0f4a64e95233849a92def6e4fbf95b8b7`; PR is mergeable. Final audit remains within #183: `rlm_completion` compiles the permanent skill projection once; root planner uses the ordinary provider; plan execution receives only a host-owned `provider_context(SkillMessages, Provider)` wrapper; `rlm_plan` is unchanged; raw `llm_query/3` is unchanged; visibility grants no capability/authority/effect. The automation attempted to transition this PR out of draft, but the connected GitHub mutation was blocked by the tool safety layer, so merge could not proceed even though all repository gates are satisfied.
Sign in to join this conversation.
No description provided.