Hermes source: agent/background_review.py, agent/learn_prompt.py, tools/skill_manager_tool.py, tools/skill_ledger.py, tools/skill_usage.py, agent/curator.py.
Mechanics to implement on the Skill Router and Cortex (host side first):
- After a turn, on two independent counters (every N operator turns for memory, every N tool iterations for skills), a forked reviewer with a dispatch-side tool whitelist reviews the run and may write or patch a skill.
- Editorial policy as code and prompt: lessons, not logs; class-level skills over one-off recipes; never record an unresolved failure or a negative claim about a tool; no dates or PR numbers inside a skill.
- Read-before-write enforced: the reviewer must have viewed the exact file in the same review before patching it.
- Unattended reviewers may only add; patch and remove are staged for a person.
- Every skill mutation by any actor goes to an append-only ledger with content-addressed before and after blobs (Omega SEMANTIC_ID style) and single-edit rollback that fails closed.
- Use-driven ageing from sidecar telemetry: active, stale after 14 days, archived after 30, with pinned and scheduled skills exempt.
Our Cortex records lessons; nothing distils a run into a skill today.
Acceptance: a run that fixes a bug produces one skill under the policy; an unresolved failure produces none; rollback of one edit restores the exact prior blob; an unused skill ages to archived and a pinned one does not.
Parent: aien-dev/aien-architecture#267. Research note: aien-architecture docs/research/hermes-agent-prior-art.md. Prior art: Hermes Agent, Nous Research, MIT, commit 5480918 (2026-10-18). No Hermes code is copied; the mechanism is re-implemented from reading. The module header credits Hermes Agent, Nous Research, the MIT licence and the commit. Rust now, pure part effect-free and content-addressed so it can move to Omega (ADR 0024). No Python.
🤖 Generated with Claude Code