File size: 1,456 Bytes
4820e63
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
title: KernelMind AI OS
emoji: 🖥️
colorFrom: blue
colorTo: green
sdk: gradio
sdk_version: "6.5.1"
app_file: app.py
pinned: false
---

# KernelMind AI OS + Model Machine

KernelMind is a trainable AI operating-system policy kernel. It maps user intent,
resource target, privilege state, network availability, confirmation, file
existence, and service state into a three-action structured plan. The compact
Transformer is trained from scratch on an exhaustive synthetic capability corpus.

The bundled Model Machine is an in-memory virtual computer. It applies an
independent deterministic capability gate before every action, so deletion,
installation, service restart, web access, and protected-file operations cannot
be authorized by model output alone. It never executes commands or touches the
host filesystem.

This is a real trained OS-action policy and runtime prototype, not a bootable
general-purpose operating-system kernel. That boundary is deliberate and tested.

## Verified local result

The 19,527-parameter Transformer reached 100% exact-plan and action-slot accuracy
on 192 held-out combinations after training on 1,536 scenarios. It made zero
unsafe proposals in that test set. A separate hostile-plan audit injected 576
unauthorized delete, install, and restart actions; the Model Machine capability
gate blocked all 576.

```bash
uv run python projects/kernelmind-ai-os/train.py
uv run pytest tests/test_kernelmind_ai_os.py
```