File size: 2,747 Bytes
f54a212
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---
license: apache-2.0
library_name: symbioos
tags:
  - llm-serving
  - kv-cache
  - coding-agents
  - operating-systems
  - gittins-index
  - streaming-prefill
  - pytorch
---

# SymbioOS — Closed-Loop Rootless POSIX Sandbox Scheduling & White-Box Streaming KV Promotion

* **Benchmark Dataset (`2,168` Hardware Resumes + `256`-Sandbox Sweeps):** [`batistado/SymbioBench-Agent`](https://huggingface.co/datasets/batistado/SymbioBench-Agent)
* **Interactive Explorer Space:** [`batistado/SymbioOS-Explorer`](https://huggingface.co/spaces/batistado/SymbioOS-Explorer)
* **Source Code & Proofs:** [`github.com/batistado/symbioos`](https://github.com/batistado/symbioos)
* **IEEE TPDS Overleaf / LaTeX Bundle:** [`paper/symbioos_tpds_overleaf.zip`](paper/symbioos_tpds_overleaf.zip)

## Overview

Autonomous software engineering agents (`SWE-agent`, `OpenHands`) alternate between GPU token generation and host POSIX tool execution (`pytest`, `clang++`, `git`). Existing inference engines (`Continuum`, `UNISON/SPEAR`, `vLLM`) and OS schedulers (`CFS`, `AgentCgroup`) operate open-loop: CPU contention stretches interactive `pytest` containers past GPU TTL cliffs, silent socket hangs stay pinned in scarce HBM, and thousands of `stdout` tokens wait until `exit(0)` to begin prefill.

![SymbioOS Architecture](fig1_architecture_overview.png)

`SymbioOS` closes this loop in **rootless user space**:
1. **Unstopped-Quantum Sub-Turn Filtration (`SubTurnRTTCFilter`):** Parses live `[XX%]` milestones and tracks silence strictly during unstopped quanta (`!is_sigstopped`), demoting stalled waits at `1.25s` without false-positive evictions on CPU-throttled imports.
2. **KV-Weighted Gittins `os.killpg` Priority (`KVWeightedGittinsScheduler`) & Theorem-2 JIT Staging (`OptimalStoppingJITController`):** Prioritizes hot-HBM interactive suites while staging evicted caches back just in time.
3. **1-Token BPE Lookback Streaming Micro-Prefill (`LookbackBPEStreamer`):** Pre-encodes `256`-token chunks of append-only `stdout` during GPU slack with exact token and logit parity (`cos_sim = 0.999997`, `7.98x` faster post-exit prefill).

![Multi-Model Results](fig3_multimodel_devtools.png)

## Quick Install

```bash
pip install git+https://github.com/batistado/symbioos.git
```

## Citation

```bibtex
@article{syed2026symbioos,
  title   = {{SymbioOS}: Closed-Loop Rootless {POSIX} Sandbox Scheduling and White-Box Streaming {KV} Promotion for Tool-Intensive Agent Clusters},
  author  = {Syed, Mohammed Kamran and Rentala, Anudeep and Rahul, Somesh and Pai, Raghuram Malpe and Dara, Krishna Suman},
  journal = {IEEE Transactions on Parallel and Distributed Systems (TPDS)},
  year    = {2026},
  url     = {https://github.com/batistado/symbioos}
}
```