Expand description
§optimization-runner
Optimization ecosystem · Shared solver-selection and agent guide
Two binaries for versioned optimization jobs on one node:
optimization-run: worker registration, staging of hashed inputs, idempotent request keys, CPU-slot admission (outer_workers * inner_threads <= cpu_slots), process supervision, cancellation, deadlines, journal recovery and coded errors.optimization-mcp: a Model Context Protocol server over stdio that gives agents the same jobs as tools and tasks. It serves MCP 2026-07-28 statelessly and supports handshake clients back to 2024-11-05. On 2026-07-28 it offers Tasks and discoverable optimization workflows through the Skills extension.
Install on Linux with Rust 1.88 or newer, from crates.io or, for changes after the latest release, from a source checkout:
cargo install optimization-runner --locked
# or: git clone https://github.com/dietmarwo/optimization-jobs && cd optimization-jobs \
# && cargo install --path crates/optimization-runner --locked
optimization-run --root /tmp/node node init --capacity 8
optimization-run --root /tmp/node workers add --id fcmaes --executable /path/to/fcmaes-job-worker
optimization-run --root /tmp/node run --spec JOB.jsonFrom 0.4.0 the runner also has optimization-run node capabilities, which
lists the execution kinds and schemas it supports and which are enabled, and optimization-run --root NODE jobs execution JOB_ID,
which prints how a finished job’s worker process ended and the hash of its
native result. The execution lifecycle behind them is internal, not a plugin
API.
Workers come from their own repositories:
fcmaes-rust,
LP-IP-craft and
SQP-craft. The job contract is
optimization-job-api.
See the guide.
Linux only. MIT license.
MCP Registry ownership token (prepared for a future listing):
mcp-name: io.github.dietmarwo/optimization-jobs.
The installed MCP executable is optimization-mcp, not the package name
optimization-runner. See the
directory publication requirements
before creating registry launch metadata.
§Trusted local commands and binary files
From 0.4.0 the runner supports opt-in execution.command/0.1 jobs and verified
binary transfers on the same local admission budget. Commands are trusted
programs under the runner user, not a sandbox. Read the
command and file guide
for node commands --enable, request/result schemas, transfer limits and the
build–run–collect example. MCP submission remains optimization-only.
§Explicit remote execution
0.4.0 adds fleet nodes add/probe, fleet submit --node,
fleet reconcile/resume/cancel/repair and verified terminal fleet collect.
A fixed SSH helper, pinned node identity and persisted dispatch/launch intent
keep uncertain work on the selected node. Remote launch requires a responding
systemd user manager and lingering. Read the
SSH guide
for provisioning, bounded transfers, recovery rules and validation limits.
Modules§
- mcp
optimization-mcp: a Model Context Protocol server over one node root.
Functions§
- main
- The
optimization-runbinary. An error is printed as{"error":{"code","message","retryable"}}on standard error, with exit status 2.