Skip to content

LM-5: signed policy delivery and truthful reroute termination - #424

Merged
BunsDev merged 3 commits into
lm3-signed-deliveryfrom
lm5-reroute-repair
Oct 28, 2026
Merged

BunsDev merged 3 commits into
lm3-signed-deliveryfrom
lm5-reroute-repair

Conversation

@BunsDev

@BunsDev BunsDev commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

This carries #419’s effective-configuration policy onto the signed LM-3 foundation in #423 and fixes a reroute race: when a local Codex child announces model/rerouted, a quiet final reply could previously settle the turn before native termination. The repair keeps the turn pending until a native terminal event or disconnect and reports that a stop was requested without claiming the child has stopped.

The final-before-reroute and final-after-reroute regressions failed before the repair and passed afterward. Independent source review found no blocking findings. Both delivery commits are signed. After #421 and #422 merged, the branch was rebased onto #423 at 4745b729acb5cbd1d59a4f9fd5dcdb83f5ff329f; the status-document conflict retained the latest companion evidence and LM-5 entry. Range comparison confirms the reroute repair is unchanged. The original #419 branch remains untouched.

Validation at 6ca43ed3c5fa206e03e2f561d5e8f7fe9e8014bd: root build and full unit tests passed (2,219 passed, 26 skipped, zero failures). Root typecheck and full E2E also passed on that commit: 470 desktop cases, seven desktop skips (20.7 minutes), and all seven site cases (8.9 seconds). Independent review of the rebased integration found no blocking findings. The subsequent documentation-only commit records these results; application, package and script contents are unchanged. Current-head hosted checks and protected delivery remain required. The base is #423; refresh integration evidence after that prerequisite merges.

Refs #380, #379, #419. Production local execution remains unwired. Actual local-runtime acceptance, network-denied qualification, managed-policy coverage and the remaining LM-5 criteria are separate open gates; this PR does not close those issues.

@vercel

vercel Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
modex Ready Ready Preview Oct 28, 2026 11:46am UTC

Request Review

BunsDev and others added 2 commits October 28, 2026 06:08
#380)

Before a local child opens or resumes a thread, CodexBackend reads the
child's own config/read (effective configuration, the layer that set each
key, every layer's contents and hash) and configRequirements/read, and
admitLocalConfiguration (engine/local-models/run-policy.ts) admits it only
when every governed key comes from Modex's session flags, no project layer
is loaded, the private home is empty, no managed layer touches a governed
key, no managed requirements apply, and the effective destination, wire,
credential reference, context and tools are exactly what Modex passed.
Otherwise the turn fails naming the layer and key; nothing is rewritten or
sent. The admitted provenance is kept with the child. A model/rerouted
notification on a local turn interrupts it and reports it failed.

Real-CLI evidence (codex-cli 0.164.0): config/read reports origins and
layers as the policy expects; a requirements.toml in the private home is
not read; a 307 from the configured loopback server is followed with the
full body and never with the token, a 302 as a bodyless GET. The opt-in
native test records both. This is the refusal boundary #417's review asked
for; wiring local execution into the product stays a separate decision.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@github-code-quality

Copy link
Copy Markdown

Code coverage overview

Languages: TypeScript

TypeScript / code-coverage-agent

lm3-signed-delivery b643617 lm5-reroute-repair e0a03ef +/-
66% 66% 0%
View coverage of the 6 most impacted files.
File lm3-signed-delivery b643617 lm5-reroute-repair e0a03ef +/-
apps/desktop/sr...ckends/codex.ts 98% 97% -1%
apps/desktop/sr...ngine/runner.ts 98% 98% 0%
apps/desktop/sr...point-policy.ts 100% 100% 0%
apps/desktop/sr...shared/types.ts 100% 100% 0%
apps/desktop/sr...ls/execution.ts 0% 100% +100%
apps/desktop/sr...s/run-policy.ts 0% 100% +100%

ℹ️ Calculations represent line coverage. Results may change as calculations are updated.

@BunsDev
BunsDev marked this pull request as ready for review October 28, 2026 16:15
@BunsDev
BunsDev merged commit 0956376 into lm3-signed-delivery Oct 28, 2026
6 checks passed
@BunsDev
BunsDev deleted the lm5-reroute-repair branch October 28, 2026 16:21

This branch was successfully deployed

1 active deployment
Preview — e0a03efb Deployed Oct 28, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant