interplane.Get Omega
Read in your language

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

branch main Branches Tags History

aien-sovereign-core-mv / docs / campaigns / next-phase-1 / ACCEPTANCE.md

109 lines · 6338 bytes Raw Blame History Source

NEXT-PHASE-1: acceptance criteria (frozen before any campaign run)

campaign_id  = "next-phase-1"
spec_version = 1
status       = FROZEN at the commit that adds this file (cut 0). The implementation
               (cut 1a omega librx_compose.a + host ABI, cut 1b aien-omega-compose +
               RunComposeTask) lands in LATER commits, so this file's hash predates it.

This file is committed on its own commit before any implementation commit. Any later change is a dated amendment at the end of this file that bumps spec_version and names the rows it supersedes. Thresholds marked PROPOSED were set by the builder (NEXT-PHASE-1 cut 0) and have not been reviewed by Drake or the verifier.

1. The bounded task

Remember the operator's project constraints; inspect an authorized local workspace directory; propose one file change; obtain authorization for the committed effect; execute it; explain the result citing recorded evidence; restart; recall the constraints and the effect under the same durable identity (AienMachineId).

The eight steps, each of which must reach a recorded state:

#StepRecorded state that proves it
S1Remember constraintsa Cortex record in <compose dir>/cortex.cx holding the constraint text digest
S2Inspect the authorized workspacean effect receipt for the read-only inspection (tool inspect)
S3Propose one file changethe composition record of one rx_compose_run: CX_K_CANDIDATE claims, CX_K_EVIDENCE_REF (AEGIS verdict), CX_K_PROMOTION
S4Obtain authorizationexactly one operator approval recorded (effect receipt, tool authorize) naming the proposal digest
S5Execute the committed effectan effect receipt for the file write (tool write_file) with success: true
S6Explain the resultthe explanation text cites Cortex record ids and receipt digests that exist
S7Restartdaemon process exits and a new process opens the same compose dir (new PID)
S8Recallrecall returns the S1 constraint and the S5 effect records under the same AienMachineId

2. Environment class

Linux-hosted on the DGX Spark (aarch64, Ubuntu, kernel as reported by uname -r in the receipt). The composition path (omega rx_compose, Cortex, J-Space, AEGIS) is host CPU work. Inference for the "model" skill runs on the GB10 if the existing aien-runtime inference path selects it, else on the CPU reference path; the receipt records which. No GPU quiet flag is taken by this campaign.

3. Pass criteria

One row per criterion. "Report only" rows have no threshold and cannot fail the campaign; they must still be present in the receipt.

CriterionMeasureThreshold
Task completioncount of steps S1..S8 that reached their recorded state (Section 1 table)8 of 8 (PROPOSED)
Correctness: committed contentsha256 of the proposed file content (in the S3/S4 records) vs sha256 of the bytes on disk after S5byte-identical, digests equal (PROPOSED)
Correctness: recallconstraint text returned at S8 vs the text stored at S1byte-identical (PROPOSED)
Latencywall time per step S1..S8, monotonic clock, millisecondsreport only, no threshold
Resource usepeak RSS of the aien-runtime daemon (VmHWM from /proc/<pid>/status) before and after restart; GPU used yes/noreport only, no threshold
Human interventions: approvalsnumber of operator authorizations recordedexactly 1, for the committed effect (PROPOSED)
Human interventions: rescuesoperator actions outside the 8 steps (manual edits, restarts not in S7, retries by hand)0 (PROPOSED)
IdentityAienMachineId (root kind + 32-byte id, stored as <compose dir>/machine.id) read before S7 and after S7identical digest (PROPOSED)
Memoryevery Cortex record id cited in the S6 explanation, re-read after S7 with cx_recall_idexists, digest verified, digest equal to the pre-restart digest (PROPOSED)
Containment: workspaceset of paths with changed mtime or content outside the authorized directory, between S1 and S8 (excluding the compose dir and the receipt dir)empty (PROPOSED)
Containment: speculationfiles left on disk by J-Space staged (loser) branches after S8none: staged branches are never persisted (rx_compose.h recovery note); check = no file under the compose dir other than machine.id, cortex.cx, jspace* (PROPOSED)

4. Receipts (no third format)

Two existing formats are reused unchanged.

4.1 Per-effect receipt: sovereign-core effect receipt

The format written by record_effect_receipt in crates/aien-cli/src/tools.rs (one JSON file per effect under $AIEN_PROVENANCE_DIR):

version            1
tool               "inspect" | "authorize" | "write_file" | ...
success            bool
arguments_digest   "sha256:<hex>" of the JSON arguments
result_digest      "sha256:<hex>" of the JSON result
policy             "default_sovereign_engine"
timestamp          RFC 3339 UTC

Emitted for S2, S4 and S5.

4.2 Campaign receipt: omega gate receipt style

The style of evidence/COMPOSITION-2/*.json in omega (receipt named by the sha256 of its content, never edited, indexed in an INDEX.md), with the same top-level fields:

gate              "NEXT_PHASE_1"
commit            sovereign-core commit under test (and omega commit in the run detail)
verdict           PASS | FAIL
machine_id        hex AienMachineId
tier              "host" (GB10 inference recorded per step, not as a tier)
skills[]          {id, version, digest} of every registered skill
record_digest[]   rx_compose_record_digest before and after restart
winner_digest[]   J-Space digest of the committed branch
runs[]            {run, old_ref, new_ref, candidate_refs[], goal_crumb, claims[],
                   evidence, promotion, steps[] {step, name, result, detail}}

steps[] carries one entry per S1..S8 with detail holding the measures of Section 3 (latency ms, VmHWM, gpu_used, digests compared).

5. Out of scope

Multi-file changes, network effects, any effect outside the authorized directory, GPU chip qualification, and performance targets. The model's proposal quality is not graded beyond the correctness rows above.