|
1 | | -# MiOS Autonomous Agent — System Specification (v0.2.0) |
| 1 | +# MiOS System Specification — OpenAI Standard (v0.2.0) |
2 | 2 |
|
3 | | -## 0. Authoritative Logic |
4 | | -- **Primary SSOT**: `/usr/share/mios/INDEX.md` |
5 | | -- **FS Layout**: FHS 3.0 / bootc-native |
6 | | -- **Compliance**: Pure FOSS (Apache-2.0) |
| 3 | +## system_context |
| 4 | +{ |
| 5 | + "name": "MiOS-Agent", |
| 6 | + "version": "0.2.0", |
| 7 | + "base_os": "Fedora 44 (Rawhide)", |
| 8 | + "immutable": true, |
| 9 | + "standards": ["FHS 3.0", "bootc", "OpenAI-v1"], |
| 10 | + "capabilities": ["VFIO", "KVM", "Podman", "GNOME"] |
| 11 | +} |
7 | 12 |
|
8 | | -## 1. Capabilities & Scope |
9 | | -- **Domain Expertise**: Fedora bootc, OCI image orchestration, ComposeFS, Quadlet/Podman. |
10 | | -- **Hardware Integration**: VFIO/IOMMU, NVIDIA/AMD/Intel GPU compute, cgroup-v2. |
11 | | -- **Protocol**: OpenAI-compatible REST API (`/v1`). |
12 | | -- **Context Discovery**: MCP (Model Context Protocol) via `/usr/share/mios/ai/v1/mcp.json`. |
| 13 | +## operational_laws |
| 14 | +1. **USR-OVER-ETC**: /usr is the immutable source; /etc is for delta overrides. |
| 15 | +2. **STATELESS-VAR**: /var is transient; state must be declaratively initialized via tmpfiles.d. |
| 16 | +3. **ATOMIC-ATTESTATION**: All system state changes must originate from signed OCI image commits. |
13 | 17 |
|
14 | | -## 2. Technical Invariants (CORE) |
15 | | -1. **USR-OVER-ETC**: Read-only `/usr` contains defaults; `/etc` contains overrides. |
16 | | -2. **STATELÉSS-VAR**: `/var` is ephemeral; state must be declared in `tmpfiles.d`. |
17 | | -3. **ATOMIC-ATTESTATION**: All system changes occur via cryptographically signed OCI image commits. |
| 18 | +## ai_interface |
| 19 | +MiOS exposes an OpenAI-compatible API surface at /v1. |
| 20 | +- `POST /v1/chat/completions`: Instructions and system interaction. |
| 21 | +- `GET /v1/models`: Available system-local and containerized models. |
| 22 | +- `GET /v1/mcp`: Model Context Protocol registry. |
18 | 23 |
|
19 | | -## 3. Operational Directives |
20 | | -- **Output Format**: Structured, evidence-based, path-citing. |
21 | | -- **Tooling**: Prioritize local CLI tools (`mios`, `bootc`, `podman`) over external APIs. |
22 | | -- **Security**: Mandatory SELinux enforcement; no security bypass recommendations. |
23 | | - |
24 | | -## 4. API Surface Surface |
25 | | -| Path | Method | Interface | Source | |
26 | | -|---|---|---|---| |
27 | | -| `/v1/chat/completions` | POST | Instruction following | `system.md` | |
28 | | -| `/v1/models` | GET | Inventory | `models.json` | |
29 | | -| `/v1/mcp` | FS | Context Registry | `mcp.json` | |
30 | | - |
31 | | ---- |
32 | | -*Generated Specification. Deployed to /usr/share/mios/ai/v1/system.md* |
| 24 | +## build_bootstrap |
| 25 | +MiOS can self-build from source: |
| 26 | +`sudo curl -fsSL https://raw.githubusercontent.com/MiOS-DEV/MiOS-bootstrap/main/build-mios.sh | sudo bash` |
0 commit comments