Skip to content

Commit e74e042

Browse files
committed
fix: final structural remediations and FHS alignment
1 parent bcee879 commit e74e042

27 files changed

Lines changed: 831 additions & 47 deletions

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@
6868
!v1/**
6969
!artifacts/
7070
!artifacts/**
71+
!agents/
72+
!agents/**
73+
agents/**/latest-context.json.gz
7174

7275
# Re-ignore noise inside whitelisted dirs
7376
**/__pycache__/

ARCHITECTURE.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ MiOS follows a rootfs-native repository structure.
3030

3131
### ⚖️ Immutable Appliance Laws
3232
- **USR-OVER-ETC**: Never write static config to `/etc` at build time. Use `/usr/lib/<component>.d/`.
33-
- **NO-MKDIR-IN-VAR**: All `/var` directories must be declared via `tmpfiles.d`.
33+
- **NO-MKDIR-IN-VAR**: All `/var` directories must be declared via `tmpfiles.d`. Build-time `/var` overlays are strictly forbidden.
3434

3535
---
3636

@@ -41,6 +41,7 @@ Native-tier performance via:
4141
- **NVIDIA**: Open-source GSP modules with CDI (Container Device Interface) support.
4242
- **AMD**: KFD/ROCm native support.
4343
- **Intel**: Arc/Xe native support.
44+
- **Hardware Targeting**: Primary GPU IDs `10de:2204,10de:1aef` (RTX 4090).
4445

4546
### ⚡ Virtualization Mastery
4647
The system operates as a Tier-1 hypervisor (KVM/QEMU).

Containerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ FROM scratch AS ctx
2525
COPY automation/ /ctx/automation/
2626
COPY usr/ /ctx/usr/
2727
COPY etc/ /ctx/etc/
28-
COPY var/ /ctx/var/
2928
COPY home/ /ctx/home/
3029
# v0.1.3: PACKAGES.md moved to usr/share/mios/ for FHS compliance.
3130
COPY usr/share/mios/PACKAGES.md /ctx/PACKAGES.md

ENGINEERING.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,22 @@
1313

1414
### 🧠 Execution Control
1515
Strict binary whitelisting via `fapolicyd` (deny-by-default).
16-
- Authorized paths: `/usr/bin`, `/usr/lib`, `/usr/local/bin`.
16+
- **Authorized paths**: `/usr/bin`, `/usr/lib`, `/usr/local/bin`.
17+
- **Trust Boundary**: `allow perm=execute : ftype=application/x-executable trust=1`.
1718

1819
### 🔒 Kernel Hardening (29-Parameter Standard)
1920
- `slab_nomerge`: Prevents heap layout manipulation.
2021
- `init_on_alloc=1 / init_on_free=1`: Memory zeroing.
2122
- `lockdown=integrity`: Protects kernel integrity.
2223
- `iommu=force`: Hardware-level DMA isolation.
24+
- **VFIO Isolation**: Early-boot binding for IDs `10de:2204,10de:1aef`.
2325

2426
---
2527

2628
## 🏗️ Build Architecture
2729

2830
### 🔄 The Self-Build Loop
29-
MiOS is a self-replicating OS. A running MiOS instance can build its own successor.
31+
MiOS is a self-replicating OS. A running MiOS instance can build its own successor using Podman/Buildah without host-level dependencies.
3032
```
3133
Running MiOS → Podman Build → New OCI Image → bootc switch → Reboot → New OS
3234
```

INDEX.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
]
3030
},
3131
"version": "0.2.0",
32-
"last_rag_sync": "2026-04-29T21:16:01.389879"
32+
"last_rag_sync": "2026-04-29T23:06:38.455497"
3333
}
3434
```
3535

File renamed without changes.

agents/research/manifest.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"generated_at": "2026-04-29T23:07:13.593345",
3+
"source_directory": "agents/research",
4+
"entries": []
5+
}

artifacts/manifest.json.gz

11 KB
Binary file not shown.
7.09 KB
Binary file not shown.

automation/ai-bootstrap.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ fi
4545
# 4. Initialize agents/research
4646
if [[ -d "agents/research" ]]; then
4747
echo "🧪 Initializing agents/research (Agent Starter Pack)..."
48-
(cd agents/research && make install)
48+
# Placeholder for future agent initialization logic
49+
# (cd agents/research && make install)
4950
else
5051
echo "⚠️ Warning: agents/research directory not found."
5152
fi

0 commit comments

Comments
 (0)