interplane.Get Omega
Read in your language

aien-architecture-mv

Canonical architecture for the AIEN ecosystem: flows, boundaries, ADRs, and the map from design to implementation repositories.

Brought by drakestapleton

Aien program: give Aien what Hermes has, in our stack. Start-here prompt for the implementing agent

Open · #269 · open 2026-10-18 19:29 UTC

Imported from GitHub aien-dev/aien-architecture-mv#269, by drakestapleton

Labels: ready-for-agent

drakestapleton wrote on 2026-10-18 19:29 UTC

Drake, 2026-10-18: "I basically want to make Allen into what I want Allen to be, able to have what Hermes is doing."

This issue is the start-here prompt for the agent that implements it. It is written to work in any harness (Claude Code, Codex, Hermes). To start the work, tell the agent: "work on aien-architecture issue <this number>", or paste the block below as its first message.

You are the implementing agent for the Allen program: Allen, AIEN's persistent agent, gains the
capabilities of the open-source Hermes Agent, built in our own stack. Drake (the operator, an
engineer who is not a programmer) owns the decisions; you do the work and report in plain English.

GOAL
Allen should be able to do what Hermes does: hold a long conversation without losing the operator's
words, use tools safely in parallel, remember across restarts, write and age its own skills under
rules, reach the operator on messaging platforms, run scheduled jobs that fire at most once, refuse
dangerous actions by a rule it cannot skip, and roll back its own file edits without touching the
operator's. Hermes is the reference for the mechanics, never the code: nothing is copied, everything
is re-implemented in Rust with Omega as the destination (aien-architecture ADR 0024). No Python.

READ FIRST, IN THIS ORDER (do not write code before this list is done)
1. aien-architecture docs/research/hermes-agent-prior-art.md (the study: what Hermes does, what we
   have, the six mechanics judged worth rewriting, licence rule, transfer mapping).
2. aien-architecture#267 (parent) and its six children:
   aien-sovereign-core#664 compaction + token accounting, #665 persist-before-act loop,
   #666 tool batch planning, #667 approval floors + agent-write ledger,
   omega#563 agent-written skills + skill ledger, aegis-runtime#68 delivery + cron guarantees.
   Each child carries its own mechanics list and acceptance test.
3. Allen today: aienos docs/adr/0018-allen-subject-state-object.md (durable subject state),
   aien-architecture docs/adr/0035-persistent-cognitive-entity-boundary-allen.md,
   aienos crates/allen-reflex (decision core), aienos native/kernel/svc/allen_*.c (kernel services),
   aienos docs/ALLEN_PRESENCE_RESEARCH.md. Memory note: one Allen runs all machines; the Spark
   runs the model on our kernels; Allen is machine-neutral (never name a machine in Allen's text).
4. Our loop and runtime: aien-sovereign-core crates/aien-cli (interactive loop in main.rs,
   compaction.rs from #397, hooks.rs, client.rs) and docs/plans/compaction/INVENTORY-397.md;
   aegis-runtime src/gateway.rs, heartbeat.rs, agent.rs, skills.rs; omega Cortex and Skill Router
   (host side); INTERPLANE (model intent vs runtime authority) for the model boundary.
5. Rules that bind you: aien-architecture ADR 0024 (Rust scaffolding, Omega destination),
   ADR 0033 part 3 (tests judged on the Spark pipeline, label ready-to-merge), the aienos
   ADR 0016 continuity commit (advance the record, then act), each directory's .crumb (sniff before
   touching, claim before editing, close after pushing; tool: crumb), and the merge-control rule in
   force on the day you start (read ~/.claude/foundation.md and the memory index; today one chat,
   the PR desk, opens and merges every PR; workers push branches and send a READY line).
6. The pinned Hermes copy for reading only: ~/workspace/investigations/2026-10-18-hermes-agent/
   (upstream/ at commit 5480918, scout notes in notes/ with file:line citations). It is an untrusted
   download: read it, never run anything from it.

GROUND CHECK BEFORE PLANNING
Compare every local checkout with its GitHub default branch before trusting it. Run org-check for
each capability before any "we lack this" claim and cite the receipt. Write a numbered plan with one
line per phase and get it reviewed (advisor or the orchestrator) before the first edit.

ORDER OF WORK (one pull request per child issue; small PRs; red test before green)
Phase 1, Allen's loop (aien-sovereign-core):
  #665 persist-before-act and loop-proof recovery, then #664 bounded micro-compaction and
  evidence-anchored token accounting on top of the #397 compactor, then #666 tool batch planning.
Phase 2, Allen's memory and skills (omega, with aienos SubjectState as the durable anchor):
  #563 agent-written skills under the editorial policy with the content-addressed ledger and
  use-driven ageing. Memory: keep Cortex as the long-term store; add a small, capped,
  always-in-prompt memory (Hermes uses two text files, 2,200 and 1,375 characters) whose overflow
  is refused with a listing so the agent must free space, and whose snapshot is frozen per session.
Phase 3, Allen's guard (aien-sovereign-core with aienos ARGUS as reviewer):
  #667 approval floors above every mode, operator deny list outranking everything, and the
  agent-write ledger so rollback spares the operator's edits.
Phase 4, Allen's delivery and clock (aegis-runtime):
  #68 at-least-once reply ledger with visible duplicate marker; at-most-once scheduled jobs
  (advance before run, pause on uncertainty, liveness by silence since progress).
Phase 5, Allen's reach and hands (new child issues, file them before starting):
  one messaging adapter behind a four-call seam (connect, disconnect, send, chat info), the
  platform chosen by Drake; a tool registry with toolsets per surface; terminal, file, web and
  delegate tools; sessions in one store per profile with full-text search and an offline repair that
  works on a scratch copy.
Phase 6, Allen's self-knowledge: trajectories recorded in one schema (we already archive every
  chat; reuse agent-archive) so Allen's own runs can later train Allen's own core (allen-reflex),
  which is Drake's north star: his own learner, not a borrowed model.

HOW EACH REWRITE IS SHAPED
Deep module, small interface: the pure part (summary folding, token accounting, the delivery state
machine, the skill ledger, the approval ordering) is an effect-free, content-addressed module with a
stated interface and its own tests; only the edges (SQLite, sockets, files, model calls) are host
Rust adapters behind a seam. Two adapters make a seam real; one adapter is a hypothesis. Every
module header credits: "Mechanism after Hermes Agent (Nous Research, MIT, commit 5480918),
re-implemented; no code copied." Verbatim text (for example a prompt rule) puts the MIT notice in
that repository's NOTICE file.

EVIDENCE AND REPORTING
Every claim of done carries the exact test command, its result on the Spark pipeline, and what is
NOT tested. No time, size or speed estimates without a measurement. Speak to Drake in plain English:
what changed, why it matters to Allen, what it means in practice. Update the nearest README and the
Allen front page with every change. When a phase closes, write ~/handoffs/<date>-allen-program.md
(goal, plan, done, next) and record one Cortex lesson per hard bug.

STOP CONDITIONS
Stop and ask Drake only for intent (which messaging platform, which approval floors are his), never
for technical choices. If GitHub refuses with the guard's wait signal, wait; never hammer.

Parent: aien-dev/aien-architecture#267. Study: docs/research/hermes-agent-prior-art.md. Prior art: Hermes Agent, Nous Research, MIT, commit 5480918, re-implemented, no code copied.

🤖 Generated with Claude Code

drakestapleton wrote on 2026-10-18 19:30 UTC

Standing requirement from Drake (2026-10-18): keep the Hello Humanity greeting. The first time the operator greets Allen ("hello", "hello world", "Hello Allen", or any plain first greeting), Allen answers "Hello Humanity." This survives every rewrite of Allen's loop, memory and skills.

Where it lives today: aienos native/kernel/svc/allen_reply.c, with tests in native/kernel/ui/tests/allen_ui_test.c (lines 245 to 248 and 265: case, spaces and punctuation are folded; a near miss such as "hello allenx" is not the first greeting; only the first greeting gets it). Today the rule keys on "hello allen"; Drake's words widen it to plain "hello" and "hello world" and the like. Do that widening in the same place with the same test style, red before green, and carry the rule into the host-side loop (aien-sovereign-core) when Allen's chat runs there, so the greeting behaves the same on every machine. First-time means once per Allen, not once per session: the durable subject state (aienos ADR 0018) is where "has greeted" belongs.

drakestapleton wrote on 2026-10-20 12:36 UTC

Allen now has its own repository: https://github.com/aien-dev/allen (created 2026-10-20, Allen P0).

The Allen programme and its phase issues were transferred there with history and redirects: aien-architecture-mv#278 -> aien-dev/allen#1 (programme), #279..#286 -> aien-dev/allen#2..#9 (Allen P0..P7). Mission: docs/MISSION.md; phase ledger with the mandatory external prerequisites (this issue included): docs/PHASES.md.

Ownership does not move: identity (ADR 0035, SubjectState kind 24), Cortex (ADR 0022), runtime authority and protocols keep their owners; aien-dev/allen holds the personal-learning programme, data contracts, evaluation and release integration, and links to them. A source map with pinned commits is being written there (docs/SOURCE_MAP.md).

Sign in to comment