aien-sovereign-core-mv
AienOS host runtime: inference scheduling, paged KV state, the aien CLI and Spark verification tooling. Its inference engine is in alpha testing (DGX Spark GB10); Omega is the implementation destination.
Brought by drakestapleton
aien-sovereign-core-mv / docs / campaigns / allen-e2e / DEMO-v1.md
| 1 | # ALLEN end-to-end demo v1 (predeclared) |
| 2 | |
| 3 | Status: PREDECLARED. This file is committed before any demo run. A run that needs a change to these rules |
| 4 | records the change as v2 with its reason; it never edits v1 after a run. |
| 5 | |
| 6 | Campaign 2, aien-architecture#162. Base: aien-sovereign-core main at the commit this file lands on. |
| 7 | |
| 8 | ## What the demo must show |
| 9 | One persistent ALLEN identity carried through the real chain, using the binaries built from this repository: |
| 10 | |
| 11 | request -> ALLEN identity and context -> inference (real model) -> capability grant -> authorization |
| 12 | (desk MAC on) -> approved effect -> World commit -> memory (scoped) -> evidence -> restart -> same |
| 13 | identity and state -> model swap -> same identity and state |
| 14 | |
| 15 | No synthetic fixtures in the chain. Test helpers may create the clean state directory and send operator |
| 16 | input; they may not fake a model output, a grant, a ledger record or a receipt. |
| 17 | |
| 18 | ## Environment and labels (every receipt carries one) |
| 19 | - `real-CPU`: the daemon and CLI on the Spark host Linux, model on CPU. This is the label this demo targets. |
| 20 | - `real-GB10`: NOT_RUN in v1 (the GPU lane belongs to another session). |
| 21 | - `native-AIENOS`: NOT_RUN in v1. |
| 22 | - `mock`: not used anywhere in v1. |
| 23 | Every receipt records: repository commit, sha256 of the daemon and CLI binaries, the backend log line, |
| 24 | the model directory and its weights digest, the ALLEN LogicalAgentId, and UTC time. |
| 25 | |
| 26 | ## Models |
| 27 | - M-A: SmolLM2-1.7B-Instruct, `~/models/SmolLM2-1.7B-Instruct-31b70e2e869a` (read-only). |
| 28 | - M-B: Qwen3-4B-Instruct-2507, `~/models/qwen3-4b-instruct-2507-cdbee75` (read-only). |
| 29 | Weights keep their own licences (ATTRIBUTION.md); nothing is redistributed. |
| 30 | |
| 31 | ## Steps and pass criteria |
| 32 | S0 Clean state. A fresh state directory and compose directory. `AIEN_COMPOSE_AUTHORIZE_REQUIRES_DESK=1`. |
| 33 | PASS: the daemon starts on M-A, the log shows `Authorize MAC: on`, and no ALLEN state exists before S1. |
| 34 | |
| 35 | S1 Attach identity. Create or attach the owner's ALLEN through the existing identity path |
| 36 | (`LogicalAgentId`, `AgentRoot`; no second identity system). |
| 37 | PASS: `allen status` reports one LogicalAgentId, recorded as ID0. |
| 38 | |
| 39 | S2 Personalize. Set `plain-language=1` in the profile. Put note N-work in context `work`: |
| 40 | "The garden plan must mention tomatoes." Put note N-pers in context `personal`: |
| 41 | "PERSONAL-CANARY-7741". Add goal G1 in `work`: "Keep the garden plan short." |
| 42 | PASS: profile, memory inspect and goals list show exactly these, under ID0. |
| 43 | |
| 44 | S3 Task on M-A, context `work`. Request: write `garden.md` in the workspace, a garden plan. |
| 45 | Predeclared document constraints, checked by code after the commit (not by the model): |
| 46 | C1 the file exists in the workspace and is valid UTF-8; |
| 47 | C2 its first line is a Markdown heading starting with `# `; |
| 48 | C3 it contains the word `tomato` (any case, any suffix); |
| 49 | C4 it has at most 200 words; |
| 50 | C5 it does not contain `PERSONAL-CANARY-7741` (context isolation). |
| 51 | The write goes model proposal -> grant -> authorize with desk MAC -> intent -> write -> ack -> World commit. |
| 52 | PASS: the commit is recorded DONE, the MemoryReport for the task shows context `work` with |
| 53 | items_included >= 1, and C1-C5 hold. If the model output fails C1-C4, the step is FAIL, recorded |
| 54 | verbatim; the demo never retries with a changed prompt in v1. |
| 55 | |
| 56 | S3-red Negative control. The same checker runs on a hand-written document that breaks C3 and C5. |
| 57 | PASS: the checker reports exactly C3 and C5 as failed. |
| 58 | |
| 59 | S4 Provenance. PASS: the ledger links, for the S3 commit, the grant id, proposal sha256, content sha256 |
| 60 | (equal to the sha256 of `garden.md` on disk), model digest of M-A and ID0. |
| 61 | |
| 62 | S5 Restart. `kill -9` the daemon after S4 (no clean stop). Start it again on M-A. |
| 63 | PASS: `allen status` shows ID0; profile, notes and G1 unchanged; the S3 commit is still DONE and is |
| 64 | not re-executed; `garden.md` is byte-identical. |
| 65 | |
| 66 | S6 Forget. Forget N-pers (`personal`). |
| 67 | PASS: memory inspect no longer shows it, and a recall in `personal` returns no item. |
| 68 | |
| 69 | S7 Model swap. `kill -9` the daemon; start it on M-B. |
| 70 | PASS: the backend line and the model digest changed; `allen status` shows ID0; profile, N-work and G1 |
| 71 | unchanged; N-pers still absent. |
| 72 | |
| 73 | S8 Task on M-B, context `work`. Same request, writing `garden-b.md`, same constraints C1-C5. |
| 74 | PASS: as S3, with M-B's digest in the provenance. |
| 75 | |
| 76 | ## Unresolved outcomes |
| 77 | Any step whose outcome cannot be reconciled from the ledger is recorded UNRESOLVED, never PASS or DONE. |
| 78 | |
| 79 | ## Report |
| 80 | One receipts file (JSON lines, one per step), plus a summary table: step, PASS/FAIL/UNRESOLVED/NOT_RUN, |
| 81 | evidence. The overall verdict is PASS only if S0-S8 and S3-red all PASS. A FAIL is reported as a FAIL. |