{
  "papers": [
    {
      "slug": "sia-rust",
      "title": "A Native Rust Re-implementation of the Self-Improving Agent Harness: Architecture, Fidelity, and Extensions",
      "kind": "System report",
      "authors": [
        {
          "name": "Micah Stubbs",
          "url": "https://superradiant.ai/team#member-micah-stubbs"
        },
        {
          "name": "Will Stark",
          "url": "https://superradiant.ai/team#member-will-stark"
        }
      ],
      "published_date": "2026-06-06",
      "subjects": [
        "cs.AI",
        "cs.SE"
      ],
      "keywords": [
        "self-improving agents",
        "Rust",
        "LLM agents",
        "reproducibility",
        "sandboxing"
      ],
      "summary": "A self-improving agent changes its own harness, and eventually its own weights, in response to feedback on what it did. In one well-specified design, a Meta-Agent writes and improves a Target-Agent, the Target-Agent executes a task, and a Feedback-Agent analyzes the resulting trajectory to propose the next improvement (the self-improving agent harness, Hebbar et al., arXiv:2605.27276). This paper is a system and experience report on sia_rust, a native Rust implementation of that self-improving-agent loop plus a set of safety, observability, and scheduling extensions.\n\nWe describe a faithful, byte-parity port of the deterministic self-improvement core; a native multi-provider LLM agent-runner layer built on injectable transports and tested offline; and a set of extensions scoped honestly as engineering primitives: a capability allow-list and threat model, a native verifier trait, per-generation telemetry, a dashboard, an adaptive scheduler, and a tested pure-CPU LoRA reference. The Rust core runs roughly 5.8× faster by geometric mean across nine operations. We are explicit about what is not yet evaluated and what remains future work.",
      "abstract": "The self-improving agent harness described in Self-Improving AI with Harness & Weight Updates is a framework in which a Meta-Agent writes and improves a Target-Agent, the Target-Agent executes a task, and a Feedback-Agent analyzes the resulting trajectory to propose the next improvement [1]. This paper is a system and experience report on sia_rust, a native Rust re-implementation of the self-improving agent harness plus a set of safety, observability, and scheduling extensions.\n\nWe describe three bodies of work. First, a faithful port of the deterministic self-improving agent harness core (orchestrator, context/trajectory management, prompt system, run-directory format, and web visualizer) that reproduces the reference Python implementation's prompt, context, and execution-log outputs byte-for-byte, verified by a differential-parity harness over an ASCII + CJK + emoji + control-character matrix. Second, a native multi-provider LLM agent-runner layer built on rig-core and injectable HTTP transports, comprising three runners (a Claude /v1/messages tool-use loop, an OpenHands-style OpenAI-compatible loop, and a PydanticAI-style loop), with trajectory-capture middleware, a provider/profile mapping layer, retry/resilience decorators, and a structured-output parity harness. The entire LLM layer is feature-gated and driven through injectable transports so its full tool-use loops are tested offline with scripted responses. Third, a set of extensions scoped honestly as engineering primitives and seams: a pure-std capability allow-list and a formal threat model for self-modifying agents; a native Verifier trait with adversarial-robustness hooks; per-generation telemetry; an Axum-based dashboard for the self-improving agent harness; a heuristic adaptive harness-vs-weight-update scheduler; and a native weight-update abstraction with a tested pure-CPU LoRA reference implementation.\n\nWe evaluate the port via differential parity, deterministic microbenchmarks (the Rust core runs roughly 5.8× faster by geometric mean across nine operations, up to ~25× on prompt building and ~18× on execution-log loading), and offline test coverage including mocked tool-loop tests and golden-master trajectory round-trips. We are explicit about what is not evaluated and what remains future work: a full meta-RL scheduler (only a heuristic exists; UCB/contextual-bandit stages are not implemented), GPU LoRA / real weight-update training (only a CPU reference plus an abstraction; Candle is not integrated), OS-level sandbox enforcement (only an advisory capability allow-list plus a roadmap; landlock/seccomp/WASI are not wired in), and any live end-to-end self-improvement accuracy study.",
      "platform_relevance": "",
      "pdf_url": "/sia/sia_rust.pdf",
      "thumbnail_url": "/thumbs/sia-rust.png",
      "landing_url": "/sia/",
      "demo_url": null,
      "code_url": null,
      "arxiv_id": null,
      "doi": null,
      "bibtex": "@techreport{stubbs2026siarust,\n  title       = {A Native Rust Re-implementation of the Self-Improving Agent Harness: Architecture, Fidelity, and Extensions},\n  author      = {Stubbs, Micah and Stark, Will},\n  institution = {Superradiant Research},\n  year        = {2026},\n  month       = jun,\n  url         = {https://research.superradiant.ai/abs/sia-rust/}\n}",
      "versions": [
        {
          "v": 1,
          "date": "2026-06-06",
          "pdf_url": "/sia/sia_rust.pdf",
          "note": "Initial release"
        }
      ],
      "published": true
    }
  ]
}
