Commit 662797e
delete English-prose research docs + ship mios-docs-index (unified)
Operator-flagged 2026-05-18 multi-step:
1. "NOO!!! HARDCODED ENGLISH!!!!" -- my multi-agent-architecture.md
+ native-os-agent-patterns.md were 250+ lines of English prose
each, registered into the MiOS Documentation OWUI knowledge
collection where they would auto-RAG-inject English chunks
into every non-English chat. Contamination by construction.
2. "clear caches and all rag temp etc-etc--EVERYTHING CLEANSLATE
AND SANITIZED" -- full wipe.
3. ".md files should ALL be accessible by all agents context
windows/scratchpad (GLOBAL UNIFIED)" -- unified discovery,
not RAG drip.
4. Slim my SOUL.md addition (was 8+ lines of English narrative)
-- replaced with a 3-line one-liner pointing at the helper.
Three concrete actions in this commit:
1. DELETED both research .md files from the repo:
* usr/share/mios/docs/multi-agent-architecture.md
* usr/share/mios/docs/native-os-agent-patterns.md
They were a mistake (English-prose contamination of a locale-
mirrored agent stack). Live system + OWUI knowledge_file rows
also unregistered + deleted (collection 'MiOS Documentation'
went 34 -> 33 files).
2. NEW mios-docs-index shim (Day-0 image-immutable at
/usr/libexec/mios/, symlinked into /usr/local/{s,}bin via
tmpfiles.d -- shim count 42 -> 43). Walks 9 doc surfaces:
/usr/share/mios/ai agent identities + prompts
/usr/share/mios/docs FHS architecture refs
/usr/share/mios/hermes/skills SKILL.md per skill
/usr/share/mios/cookbooks
/usr/share/mios/prompts
/etc/mios/system-prompts
/var/lib/mios/scratch shared mutable scratchpad
/var/lib/mios/ai/scratch assistant scratchpad
/var/lib/mios/compacted session digests
Emits `<path> -- <one-line description>` per .md (description
pulled from YAML frontmatter `description:` -> first H1 -> first
non-blank line). --grep <pattern> filters. --write persists to
/var/lib/mios/scratch/docs-index.md so agents can `cat` the
cached index instead of re-walking the filesystem.
3. AUTO-REFRESH on hermes restart. hermes-agent.service.d/
50-soul-sync.conf gains a second ExecStartPre:
ExecStartPre=-/usr/libexec/mios/mios-docs-index --write
(leading `-` makes it non-fatal -- daemon still starts if the
helper fails). Live-verified: hermes restart -> 59-line index
refreshed at /var/lib/mios/scratch/docs-index.md before the
gateway accepts the first request.
SOUL.md: replaced the 8-line "Doc discovery -- global unified
.md surface (no RAG drip)" section with a 3-line "Docs" section:
just the verb + filter syntax. Less English prose in the system
prompt = less locale contamination.
Cache wipe done too: full mios-cache-clear --all + extra
/var/lib/mios/{compacted,scratch}/* + daemon state.json +
launch_failures.json + container /app/backend/data/cache + vector_db.
Post-state: 0 chats / messages / memory; 33 knowledge files (the
FHS canonicals registered by mios-owui-apply-knowledge -- those
are operator-canonical docs, not my contamination).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 6c8639b commit 662797e
6 files changed
Lines changed: 148 additions & 416 deletions
File tree
- usr
- libexec/mios
- lib
- systemd/system/hermes-agent.service.d
- tmpfiles.d
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
| 99 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
230 | 236 | | |
231 | 237 | | |
232 | 238 | | |
| |||
This file was deleted.
0 commit comments