Skip to content

Latest commit

 

History

History
247 lines (175 loc) · 33.8 KB

local-models.md

File metadata and controls

247 lines (175 loc) · 33.8 KB

Local models: LM-1 contract and feasibility

Local Models v1 workflow candidate

The integration candidate adds Settings → Local models, connection add/edit/remove, cancellation and bounded metadata discovery, exact connection revision/model selection, context choices and a visible inference destination. Saved tokens remain in main; the token field accepts replacements but never reads a saved value. Metadata and manual IDs do not establish coding capability. Checking models never downloads, loads or generates with a model. The first coding message may cause the inference server to load weights and consume memory.

Product execution remains disabled: main/index.ts does not construct LocalExecution, and selecting a local target refuses before a coding turn. The test-only Electron bootstrap injects a scripted transport in a disposable home; it is not a product flag or real-model evidence. Candidate evidence and remaining gates.

Setup and changes

  1. Start an already installed Ollama server yourself, then open Settings → Local models. Choose Ollama and enter its numeric loopback address, normally http://127.0.0.1:11434.
  2. Enter a name and, only if required by that server, a token. Extra model IDs are optional, exact and one per line. Add server and inspect its metadata. Listed tool support and context are advertised values; coding compatibility remains unverified.
  3. Edit changes the connection revision when its destination, runtime or credential changes. Existing threads retain their selected revision and refuse after it becomes stale. Select the current revision explicitly; Modex never silently rebinds it. An active local turn prevents editing or removing its connection.
  4. The model menu shows each connection's candidates and bounded context choices. Production selection remains unavailable until admission; the separate integration fixture exercises selection and subsequent turns.

For admitted fixtures, returning to cloud requires confirmation naming the exact chosen cloud model and begins a fresh native conversation. Pending originals and Retry retain their original execution binding and cannot follow a changed destination. Copy text to new chat preserves the original and requires a new explicit send. Phone and paired-desktop sends or Retry on a local thread are refused in main.

Native qualification and rollback

Treat a compatibility receipt as specific to its CLI/runtime, exact model digest, context, host and configuration. When any of those changes, keep the new combination unverified until its approved native checks run again, and retain the older receipt with its named versions. Fixture results do not qualify a new native runtime combination.

With explicit approval and an installed model, run pnpm --filter @modex/desktop build:main in the owned worktree, then run MODEX_LM3_LIVE=1 MODEX_LM3_URL=http://127.0.0.1:11434/v1 MODEX_LM3_MODEL=qwen3-coder:30b MODEX_LM3_CONTEXT=65536 MODEX_LM3_REPORT=<absolute-evidence-directory> node --test --test-force-exit --test-name-pattern='AC1: a person' dist/test/local-codex-native.test.js from apps/desktop. The smoke reads a sentinel, permits only two exact fixture commands through its approval callback, checks actual edited bytes and a separately seeded test's recorded exit result, and verifies both a synthetic personal configuration and the real user's configuration fingerprint. Harness approval is separate from human acceptance.

A managed-preferences synchronization failure stops before a native thread opens. Check the macOS desktop session and its managed configuration, restore the local execution connection, then confirm that configuration reads succeed before retrying qualification. Minimum CLI version advice applies to an unsupported configuration RPC; a session or configuration failure retains its own cause.

If the agent's execution session cannot reach native macOS services, run the fixed foreground qualifier from a normal Terminal in the signed-in desktop. It starts codex app-server directly for its configuration check and uses the existing native and Electron harnesses; it does not restart the shared daemon. Commit the candidate first and use a fresh private system-temp evidence directory outside the worktree, then copy completed receipts into durable storage. The native workspace lives beneath that evidence root, so placing it under a home or project with a .codex ancestor triggers the existing project-configuration refusal:

node apps/desktop/scripts/local-model-qualify.mjs --live \
  --model qwen3-coder:30b \
  --digest 06c1097efce0431c2045fe7b2e5108366e43bee1b4603a7aded8f21689e90bca \
  --expect-head "$(git rev-parse HEAD)" \
  --evidence "$(mktemp -d /private/tmp/modex-lm-v1.XXXXXX)"

The command is opt-in and requires the existing model approval. It refuses dirty tracked source, a changed revision, old receipts, evidence paths inside the worktree and unavailable user lookup, Electron startup or native configuration reads. An optional absolute --electron-dist selects an already installed Electron distribution without downloading one. Ordinary stages clear inherited live-model and test-selection overrides. Run canonical checks with the normal development umask 022; applying 077 to the whole launcher changes archive fixture permissions. Evidence directories remain private (0700) and the qualifier's logs and receipts use 0600. The qualifier records runtime versions, host details, umask and original logs, runs build, typecheck, unit and full E2E commands, checks all four local Electron journeys, then runs the network-denied canary with an owned Ollama server and the explicit expected digest. A failed independent gate remains failed while later evidence is collected; a failed build or changed source stops dependent work. Earlier Playwright artifacts are retained separately from fresh output. qualification.json requires executed local journeys and complete native workflow/digest receipts before reporting a pass. Human acceptance, effective loaded context, product admission and delivery remain separate. Interrupting the foreground process stops its owned command group and leaves its receipts for inspection; an interrupted native outcome must be reconciled before another run.

For the network-denied canary, run node scripts/local-model-offline.mjs qwen3-coder:30b <absolute-evidence-directory> from apps/desktop, using a new empty directory for every attempt. Existing receipts and final symlink destinations are refused before contacting a runtime. It requires existing weights and starts a separate owned Ollama server. The complete canary tree inherits a macOS profile that denies external TCP and permits filesystem writes only in its owned evidence/workspace tree, the macOS user cache and /dev/null. A disposable outside write succeeds before applying the profile, then must fail inside it; an external TCP probe must also fail with a permission error before inference. The trusted harness supplies Codex's documented externalSandbox policy only after verifying this boundary, avoiding macOS's refusal to nest profiles while retaining native approval policy and managed-configuration admission. The profile hash binds the child's identity and provenance; it is never a renderer or thread option. Ordinary product turns retain their normal Codex sandbox policy.

Both the owned server and Codex descendants inherit the network and filesystem boundary. The server must list the same exact model digest recorded from the person's server before the native task starts and after it ends; missing or changed digests fail the run. Receipts retain both observations and require matching boundary identity and denial checks from the native workflow. These checks do not establish immutable weights throughout execution. Runtime logs and client-effective context remain separate from advertised context. Ollama's temporary home and Codex's private home are removed after their owned processes stop. A failed policy, runtime or native task fails the canary. It does not change the person's running Ollama, download weights or admit product execution.

Removing a connection asks for confirmation, preserves readable history and makes its selected targets unavailable. It does not uninstall weights. Product rollback currently consists of retaining the existing absence of LocalExecution in main; no local turn can start through the product. Future admission must retain an independently tested disable path that preserves profiles, history and originals without replay. An address on loopback establishes a configured destination; only a successful network-denied inference run establishes offline behavior for that exact configuration.

Each LM issue's ticked boxes and next action are in status.md.

Status: narrow Gate A accepted by Val on 2026-10-24 under #377 / #376 for the producer at main bb0e1a42ac7bb3e11ccfee05a40d8a02f1dc10c4 and the recorded Codex/Strata combination. No local execution option is enabled by this change. Existing BackendId, thread persistence, account policy, native execution, approval handling and companion messages are unchanged.

Identity and migration

src/shared/local-models.ts owns the accepted shared data contracts. A harness is codex or claude, never an inference runtime. Connection IDs are main-generated opaque identifiers; positive integer revisions change whenever endpoint, credential binding, wire configuration or relevant connection settings change. Exact model identifiers are opaque and case-sensitive, including punctuation and whitespace. LocalModelRef schema 1 combines the connection revision and model identifier. modelKey is an unambiguous tuple serialization, not a credential or authority token.

LocalConnection is main-owned configuration. Its credential reference points to secret storage; it is neither a token nor renderer data. LM-2 must validate endpoints, bound metadata requests and define the public projection. This type is not an IPC validator. No direct coding-inference HTTP client is introduced.

Shared identity with LM-2

shared/local-models.ts is the single owner of ConnectionRef, schema-1 LocalModelRef, LocalConnectionProfile and LocalMetadataRuntime. LM-2's shared/local-connections.ts imports and may re-export these identities; its LocalRuntime is an alias for LocalMetadataRuntime, and LocalModelDescriptor.model is LocalModelRef. Both discovered and manual entries use localModelRef(connection, exactId), which copies the connection revision and adds schema: 1. The helper assumes main has validated the values; it does not grant admission, qualify a model or normalize its ID.

Connection profile (kind) Metadata runtime (adapter) Mapping
ollama ollama Both directions preserve the name.
lmstudio lmstudio Both directions preserve the name.
llamacpp, vllm, custom responses All use compatible model listings. A generic responses profile from LM-2 maps to custom; do not infer llama.cpp/vLLM from metadata or an ID.

metadataRuntimeForProfile and connectionProfileForRuntime define this mapping. The mapping is deliberately many-to-one: selecting an explicit llama.cpp/vLLM preset remains separate from the metadata protocol and must be retained in the main-owned profile. Responses is the coding wire in each case; neither the adapter nor the connection kind changes the native harness.

#386 and #398 kept the older identity and are superseded. LM-2 adopted this contract in #403, which applies the consumer adoption patch (written against #398 at 954cd5b7d0627333835db41f9b0dfb477b72176f) unchanged. It imports the canonical identities, aliases the adapter type and uses the canonical model factory. #403 also keys advertised model metadata by Capability, with unknown for anything a listing doesn't advertise.

LocalThreadTarget is the additive schema-1 binding LM-3 persists as Thread.localTarget, beside Thread.localContextTokens. The pure threadTarget reader preserves an absent target as legacy harness/model/account/resume semantics without writing or relabeling history. A present invalid or mismatched target is unavailable, never silently interpreted as cloud. Local selection deliberately does not import a legacy resume handle. LM-3 validates the target in main before it is saved and before every turn.

A run snapshots QualificationConfiguration and LocalRunProvenance. Configuration includes harness/CLI, connection revision, exact model, runtime/model/template/tool-parser revisions, effective context, explicit effective provider/reasoning/service-tier/approval/sandbox/network/writable-root/toolset settings, and a revision of the remaining effective non-secret native configuration. Process reuse and native resume must additionally bind credential generation, account generation, process-configuration revision and process generation. Generations are opaque main-owned IDs, never secrets or hashes of secrets. Record native thread/turn IDs using existing conversation/event identity; do not create a second event log. Snapshot before execution and never mutate past receipts when a profile changes.

Qualification

Connection health (unknown, reachable, unreachable, unauthorized) is independent of model capability. Metadata assertions and native tests remain separate evidence sources. Tools, images, structured output, reasoning, resume and cancellation each have supported/unsupported/unknown status. capabilityStatus only reuses dated, receipted native observations for an exact known tested configuration; metadata, conflicting observations and unknown revisions produce unknown. It does not grant tool authority or establish task quality. A greeting is not a tool test.

Advertised context belongs to metadata; effective context belongs to the tested configuration. A model/runtime/template/parser/configuration change invalidates qualification. Producers must issue new revisions even when a model's displayed name stays the same. Unknown revision information cannot certify reusable support. Main owns evidence creation; never accept a model assertion or renderer-supplied receipt as authority.

Loopback endpoint, observed local inference and network-denied verification are distinct. The provenance locality claim needs its own receipt; a local URL alone proves neither inference locality nor offline operation. LM-5 must enforce pinned local selection, deterministic titles, no generated follow-ups, no Jev inference and no unqualified remote tools across the turn and auxiliary work. These policies are requirements, not implemented claims here.

Source and native interface map

Consumer Existing source / interface Required follow-on boundary
Discovery (LM-2) shared/local-models.ts; backends/types.ts ModelInfo; CodexBackend.listModels Main-owned bounded metadata; native catalogue is not local discovery or qualification.
Execution (LM-3) engine/backends/codex.ts constructor configuration, ensure, attempt Child-scoped args/environment, exact provider/model, no provider fallback, isolated process identity.
Account isolation engine/backends/account-codex.ts use, planArgs, runTurn Preserve per-registration leases and CLI-owned legacy resumes. ChatGPT plan provider overrides must never override a local target.
Admission / safety main/index.ts handle wrapper; engine/runner.ts runTurn, updateThread; CodexBackend.policy Preserve trusted sender, desktop-host authorization, recovery/restart fences, main-owned account/resume handles and native approval/sandbox policy. WorkOS app identity remains identity-only.
UI / persistence (LM-4) shared/types.ts Thread, ThreadPatch; Store and existing journal/companion projections Add fields only with main validation and safe old-client behavior; do not fork conversation identity.
Auxiliary policy (LM-5) runner.ts naming/router/follow-up paths; engine/titles.ts Admission must enforce local policy before any auxiliary inference.
Stop / recovery codex.ts interrupt handling, endTerminals, forceStop Interrupt acknowledgement is insufficient; verify owned background terminals have stopped, otherwise outcome stays unknown. Never replay an uncertain effect.

Installed codex-cli 0.163.0 schema was generated (re-checked on 0.164.0 on 2026-10-23: ThreadStartParams is byte-identical, TurnStartParams adds only Responses client-metadata fields; see the 0.164.0 refresh) with codex app-server generate-json-schema --experimental --out apps/desktop/.probes/lm1/schema. thread/start accepts model, modelProvider, config and allowProviderModelFallback; the latter must be false. thread/resume accepts model/provider/config overrides but has no fallback field. turn/start accepts model, effort, service tier, sandbox/approval policy and collaboration mode. Resolve effective settings before launch; native-plan configuration must not retarget the run. Merged PR #385 adds collaborationMode.settings.model and reasoning_effort, which override turn settings. LM-3 must pin that nested model to the same exact local model, include collaboration-mode changes in the configuration revision, and refuse a missing/mismatched local target rather than inherit a cloud/default thread model. The current probe does not qualify Plan mode. These schema fields prove protocol shape, not provider support.

The existing backend launches codex app-server -c model_reasoning_summary="detailed" plus scoped configuration arguments, initializes with experimental API capability, starts/resumes a thread, and sends text/local-image input to turn/start. Local providers must qualify or suppress unsupported reasoning/effort/service-tier/image controls. turn/interrupt takes thread and turn IDs. Existing terminal list/terminate cleanup must remain in the Stop path.

The official Codex configuration reference documents provider overrides. Ollama's Codex integration uses a Responses provider and generated catalogue; LM Studio's integration documents /v1/responses. These references are not runtime acceptance. Do not run launch helpers that rewrite global configuration or implicitly download weights. The isolated schema probe accepted an unlisted exact model without a custom catalogue; actual inference/catalogue requirements still need the real-model probe.

Gate A probe protocol

Use already installed weights, a disposable fixture and child-scoped configuration, never global CLI settings or cloud credentials. Record exact CLI/runtime/model/template/parser versions, arguments, effective context and schema hashes. Initialize app-server, inspect model catalogue, explicitly select the exact model/provider with fallback disabled, and require an observed native tool result reading a unique fixture sentinel. Capture actual Responses request/event shapes from the runtime's existing diagnostic facility if available; no new protocol proxy or inference client.

Start a second harmless command long enough to Stop after execution begins. Capture interruption and background-terminal termination evidence, then verify no delayed effect occurs. Continue the same safely settled native thread with a new read-only request; do not automatically replay the interrupted request. Missing native capabilities, unsupported tool shapes, unknown command completion or an unavailable local service leave qualification of the tested runtime/model combination blocked; they do not broaden or invalidate the separately accepted Strata receipt. Record real native results separately from contract fixtures and schema-only acceptance. Offline qualification requires separately denying network access to both Modex and the inference service.

LM-3: local execution through Codex

Settings → Local models and the model menu expose the integration workflow described above (#381), but local execution remains unadmitted (#379/#380). The interface requests a target through thread:update with localTarget and localContextTokens; a paired desktop cannot set either field. main/index.ts does not construct LocalExecution, so production refuses selection before persisting it and ends a persisted target's turn with a notice, without starting a child or routing to a cloud backend or account. The description below covers the execution module; scripted Electron fixtures and separately named native qualification receipts do not activate it in the product.

Admission. ThreadRunner.updateThread accepts a target only after LocalExecution.validate resolves exactly its connection revision, with the token readable, and the context window is 4,096–262,144 tokens. Selection pins the thread: backend codex, the exact model ID, Auto off, Plan off, no effort; the native handle and account binding are dropped, so the next turn starts a fresh native conversation. While the target is set, model, backend, effort, auto, plan and the context window cannot be changed except by selecting another target or clearing it (localTarget: null), which returns the thread to the default Codex model with a fresh handle. Settings are locked while a local turn runs. Every send validates again: a changed or deleted connection, a mismatched model, Plan, an image or a build without local execution ends the turn with a notice and never routes to a cloud backend or account.

Isolation. engine/local-models/execution.ts keeps one CodexBackend child per thread, keyed by connection revision (which moves with the address or token), model, context window and working directory. The child runs codex app-server with a private, empty 0700 home (HOME, CODEX_HOME, XDG_CONFIG_HOME, APPDATA), so the person's ~/.codex configuration, plugins, MCP servers and sign-in are not read; an environment allowlist of path, temp, locale and Windows shell variables; NO_PROXY=* with no proxy variables inherited; and the connection token, when there is one, in MODEX_LOCAL_TOKEN only, named by env_key and excluded from the tool shell by shell_environment_policy. The provider is modex_local at <origin>/v1 on the Responses wire with requires_openai_auth=false and retries off; the model and provider are named on every thread/start and thread/resume with allowProviderModelFallback=false, and Codex's reply must confirm both before any turn content is sent. A stale sign-in is never retried. A resume handle the child did not itself open, including every handle after a restart or target change, is refused rather than resumed. A project .codex directory in or above the working directory and a localhost endpoint are refused (precedence and resolver behaviour are unqualified); since LM-5 slice 1 the child's effective configuration is also read back and must come from Modex's flags alone. One turn at a time reaches any one loopback port, so IPv4, IPv6 and mapped aliases share a slot; a Stop while waiting starts nothing. Force-stop ends only the thread's own child. Deleting the thread, clearing the target or quitting removes the child and its private home.

What a local turn does not get. Auto routing, Jev for approvals, generated titles, follow-up suggestions, the credit fallback, Modex's note and knowledge tools, images, Plan, web search, image viewing and Codex's sub-agents. Effort, fast mode, service tiers and reasoning summaries are not sent. Deterministic approval rules and the thread's approval and sandbox policy still apply, as do native approvals, questions, Stop and the background-terminal cleanup.

Evidence. Fixtures prove the admission, isolation and session rules. Installed Codex 0.164.0 ran a real shell read against a scripted loopback Responses server, with the sentinel in the next request, no token in model input and no unqualified tool offered; that LM-3 receipt is transport evidence, not model inference. Later candidate receipts establish real Codex 0.167.0/Ollama 0.40.16 read/edit/check, four real-model Electron lifecycle cases, and a separate network-denied canary covering the owned client and inference server. They name exact source revisions, the approved model digest, unchanged personal configuration and observed 65,536 loaded context. See the integration qualification and current evidence map; these observations do not admit ordinary product execution or establish other runtime support.

Later native compaction completed but repeated two already completed reads, and dense-input continuation overflowed the verified context limit. The continuation audit and overflow receipt retain those failures. Action-safe compaction, genuine OOM recovery, managed-policy acceptance, Plan, images, other runtimes and resume across application restarts remain unqualified. Loopback remains a destination, not verified locality: Codex's HTTP client follows redirects and a server may forward requests. Only a separately enforced and observed client-and-server boundary supports a network-denied claim for its recorded run. The opt-in MODEX_LM3_LIVE=1 probe with MODEX_LM3_URL and MODEX_LM3_MODEL is distinct from those receipts and starts, installs and downloads nothing itself.

Cold loads

Opening Settings or refreshing a connection only reads metadata: it never installs a runtime, downloads weights, loads or unloads a model, scans directories or probes other ports. A turn you start yourself is different. Sending it may make the runtime load the selected model first, which can take a while and use a lot of memory. That is the runtime's ordinary behaviour, and Modex doesn't control it.

LM-5 slice 1: effective destination and managed policy

Status: on main through #423 (c23e6be, which carried #424; #380), no UI, local execution still unadmitted. Before a local child opens or resumes a thread, main reads the child's own config/read (effective configuration, the layer that set each key, and every layer's contents and hash) and configRequirements/read, and admits the child only when every governed key (destination, model, context, tools, plugins, hooks, instructions) 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 values are exactly the ones Modex passed. Otherwise the turn fails naming the layer and key, and nothing is sent or rewritten (engine/local-models/run-policy.ts). The admitted configuration's provenance is kept with the child (LocalExecution.provenance). A model/rerouted notification on a local turn interrupts it and reports it failed.

What is recorded rather than enforced: codex-cli 0.164.0 follows a 307 from the configured loopback server to another server with the full request body, and a 302 as a bodyless GET; the bearer token never follows a redirect. No Codex setting constrains this. A loopback server that redirects can send the turn's content wherever it points, as it could by forwarding. Evidence and the receipts are in the LM-5 slice 1 review.

LM-5 slice 2: the local-only rule at each auxiliary chokepoint

Status: on main, no UI, local execution still unadmitted (#380). Before this slice each caller checked thread.localTarget itself: the runner skipped Auto, follow-ups, naming and credit fallback, and the approval gate skipped Jev. A new caller could forget. Now localOnly(thread) in engine/local-models/run-policy.ts (true for any persisted local target, valid or not) is also enforced where each call is made:

  • Jev. Decisions.connect returns no connection for a question naming a local thread, before any key is resolved or CLI probed, so routing, follow-up and approval questions all stop there. Settings' Try it names no thread and is unaffected.
  • Credit fallback. Both the after-failure fallback and the recent-refusal skip return nothing for a local thread, whatever its backend and model claim.
  • Naming. A local thread is never sent to a title model, even through a backend that can name.
  • Unattended turns. sendUnattended, the routine path, refuses a local thread: nobody is there to see a local failure or stop its child, and the turn is not rerouted to a cloud target.

The callers' own checks stay in place. Evidence: LM-5 local-only chokepoints.

LM-5: context-window evidence

Status: on main, no UI, local execution still unadmitted (#380 AC6). The context window a local child runs with is never a cloud model's default. It is the person's explicit localContextTokens, which LocalExecution.validate already requires (4,096–262,144 tokens). Each source is now kept apart:

  • Advertised maximum. LocalModelDiscovery keeps what the runtime's last ready listing advertised for each model, by connection revision. Ollama's context_length, LM Studio's max_context_length and a /v1/models max_model_len count. A typed model, a failed listing or an edited connection records nothing.
  • Refusal. A window larger than the advertised maximum is refused before any process starts. It would overflow in the runtime, not in Modex.
  • Provenance. The admitted child's provenance (LocalExecution.provenance(threadId).context) records:
    • configured and source: "person";
    • effective, from the child's config/read, which admission requires to match;
    • advertised, the tokens and when they were checked, or "not-checked";
    • loaded: "unknown", because no supported runtime reports the size it actually loaded.

Evidence: LM-5 context-window evidence.

LM-5: known cloud-routed and non-generative models

Status: on main, no UI, local execution still unadmitted (#380, step 3). A loopback server can forward a model elsewhere: Ollama serves …:cloud/…-cloud models from ollama.com. Discovery already marked these unselectable, but that was the renderer's list. Main now refuses them itself, in LocalExecution.validate, before any process starts:

  • Cloud-routed. The connection's last ready listing marked the model cloud-routed (Ollama's remote_host/remote_model, or its cloud name). On an Ollama connection, a cloud-suffixed name is also refused without any listing.
  • Not generative. The listing marked the model embedding-only or not generating text.

A model that isn't marked stays unverified, not local: loopback alone doesn't prove where inference runs, and an unknown downstream route is still unknown. Evidence: LM-5 cloud-routed models.

LM-5: failures, compaction and entry points (fixture and wire level)

Status: in review (#380), local execution still unadmitted. Against the installed codex-cli 0.166.0 and a scripted loopback Responses server:

Everything below is what that recording server and the turn's result showed. The server sees only its own requests: other destinations were not monitored, so none of this establishes that no other request was made.

  • Compaction (AC1). Native auto-compaction runs inline. The server observed it on /v1/responses for the selected model with the connection's token. A failing compaction request has no fixture. The keys that change what it sends or when it runs (compact_prompt and the compaction thresholds) are governed: only Modex's session flags may set them.
  • Failures (AC4). Overflow, OOM 500, 503, a dropped stream, a killed child and Stop each end failed or interrupted. The server observed no retried request and no other model (request_max_retries and stream_max_retries must both be 0), and a tool that ran did not run again. A local 500 is reported as the local server's error, not as Codex's cloud "high demand" text.
  • Capacity (AC3). Profiles for one host and port share one slot; a stopped wait opens nothing and sends nothing.
  • Entry points (AC5). Only this Mac's own window may select, change or clear a local target. A paired desktop, the phone or a caller that names no client cannot.

Evidence: LM-5 fixtures.

Recognized local context-limit failures now explain how to continue in a new local conversation with less context, retain the native diagnostic, and warn that earlier commands may already have run. They remain failed and cause no automatic resend or model switch. Installed Codex 0.167.0 fixtures cover typed, HTTP and streamed overflow forms, including Ollama's observed null-code JSON; these do not establish real-model compaction recovery. The retained real dense-input run still overflowed after native compaction. Current repair, qualification and limits.

Accepted boundary and follow-up runtime availability

Val accepted narrow Gate A and separately approved the AGENTS metadata boundary in this task on 2026-10-24. The acceptance and runtime-availability receipt records the exact producer SHA, approval scope and authorized installed-model inventory. The accepted producer and Strata evidence may be consumed by LM-2/LM-3; acceptance does not qualify Plan, fresh-process resume, other runtimes, offline operation or UI.

Ollama 0.40.10 has no installed models. LM Studio's only model on this machine is an embedding model; its generative entries belong to a linked device. The additional app-server probe was authorized but has no eligible installed local target; Val explicitly deferred it until a local coding model exists. No inference was attempted, and no model was downloaded or imported. This is an availability gap, not a failed tool-compatibility result or authorization blocker.