OpenAI4S treats model discovery, accelerator routing, model-asset acquisition, backend bring-up, and formal scientific execution as separate states. This is a framework-level contract used by every Agent entry point; it is not a workflow that exists only in one Skill.
The protein-design MCP connector is the first adopter. Other checkpoint-backed connectors can reuse the same Host tools and admission state machine, but each connector must still implement a real inference canary and parse its own output. The framework cannot infer model readiness from a visible GPU, an installed package, or a file that merely has a checkpoint-like name.
| State | Meaning | What it does not prove |
|---|---|---|
| discovered | A connector or tool is visible to the Agent. | The backend, GPU, or weights exist. |
| route selected | The user selected local or one ssh:<alias> execution target. |
The route is reachable or provisioned. |
| staged | Exact model bytes were imported into model-assets/ and hashed. |
The backend can load or run those bytes. |
| admitted | A real minimal inference succeeded and its parsed terminal record reported the expected checkpoint digest on the selected route. | Experimental validity or scientific success for later inputs. |
| formal | The requested scientific operation reused the exact admitted identity. | Evidence beyond what that operation actually returned. |
An admission identity binds all of the following:
Changing any one of them requires another canary. Admission is deliberately process-local: restarting the backend process also requires another canary. A new process has not demonstrated that its environment, imports, driver access, model load, inference path, and output parser still work.
host.accelerator_status(). It probes
local NVIDIA hardware first, then reports configured SSH GPU routes. When
more than one candidate exists, the Agent asks the user to choose; it does
not silently prefer local or remote execution.host.stage_model_asset(source_path, ...).
This is an approval-gated exact-path import. It rejects secret paths and
symlink sources, copies in bounded chunks, and verifies an optional expected
SHA-256.run_mode="canary", using the same
adapter, backend revision, staged checkpoint digest, and execution target as
the intended formal call.run_mode="formal". The connector refuses
it if no exact live-process admission exists.Missing source code, an environment, or weights is a bring-up condition. The Agent must not conclude that a backend is unavailable merely because it was not preinstalled.
host.accelerator_status() returns local probe evidence, configured SSH routes,
ordered candidate targets, and selection_required. Hardware visibility is
kept separate from provider registration and model readiness. An empty SSH
registry therefore says nothing about local hardware, and a successful
nvidia-smi probe says nothing about whether a model backend is installed.
The existing host.remote_gpu_status() remains the detailed SSH capability
view. Selecting an SSH route still requires a live reachability and backend
preflight.
host.stage_model_asset(...) imports one operator-owned regular file into the
current session workspace under model-assets/. The result includes its
portable relative path, byte size, SHA-256, status: "staged", and
admitted: false.
The tool never downloads a file and never admits it. Download approval and backend admission are independent controls. Connector-specific bundles may use a manifest that pins every data file rather than treating a directory name as a stable model identity.
openai4s.host.model_admission.ModelAdmissionLedger supplies the common
identity and state transition. A connector owns the ledger inside the live
backend process and must provide the canary's observed checkpoint digest only
after its real handler and output parser have succeeded.
This separation is intentional: a generic framework can validate identities
and state transitions, but only the connector understands whether an
RFdiffusion .trb, a folding confidence payload, a language-model score file,
or another backend-specific output is complete and parseable.
The bundled Protein Design connector applies the contract to RFdiffusion, ProteinMPNN, ColabFold model-data bundles, and ESM-2 checkpoint-backed calls. Its connector manager enables admission enforcement for Agent-facing calls. A formal call without a matching canary ends in a persisted failed terminal record rather than disappearing from attempt accounting.
The connector currently executes as a local stdio process. It reports a selected SSH execution target as unsupported until a verified remote adapter exists; it does not reinterpret a remote selection as local work. Rosetta and OpenMM operations that do not identify a checkpoint still retain their normal revision, seed, terminal-record, and output-validation contracts.
See the connector package documentation for backend variables, network isolation requirements, individual tool schemas, and scientific evidence boundaries.
In-tree Python connector rows persist @openai4s/python, not an absolute path
to one server's virtual environment. The token resolves to the current daemon
interpreter only when the connector is spawned. Startup migrates matching legacy
built-in rows while leaving arbitrary custom commands unchanged.
Adding a connector from Customize → Connectors enables its configuration; it does not eagerly start the server. Discovery or the first call starts it lazily. Editing launch configuration disconnects the cached process so the next operation starts the updated command. Environment values are write-only in the browser: existing values are not returned, selected values can be replaced, and selected names can be explicitly removed.
A new connector should:
canary|formal run mode in its closed schema;ModelAdmissionLedger with a connector-specific namespace;admit();Connector authors should not persist admission across backend restarts unless they can independently re-establish all runtime facts that the canary proves.
The offline suite covers local/SSH route ordering and user selection, approval-gated asset staging, digest mismatch and symlink refusal, admission identity and process restart behavior, Protein Design canary/formal enforcement, MCP lifecycle and shape normalization, connector command migration, launch configuration editing, and static UI contracts. Real GPU inference remains a deployment acceptance gate because default CI is deliberately offline and does not install scientific model runtimes or checkpoints.