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 / c1 / acceptance.toml
| 1 | # Campaign C1 acceptance criteria. Frozen on merge. Changes only by amendment (SPEC.md Section 14). |
| 2 | |
| 3 | [campaign] |
| 4 | id = "c1" |
| 5 | spec_version = 1 |
| 6 | |
| 7 | [correctness] |
| 8 | # Correctness invariants are binary: every required trial passes. |
| 9 | required_pass_fraction = 1.0 |
| 10 | # KV bytes outside legitimately COW-mutated pages must be byte-identical. |
| 11 | unmodified_kv_byte_tolerance = 0 |
| 12 | max_leaked_blocks = 0 |
| 13 | max_duplicate_live_sequence_ids = 0 |
| 14 | max_stale_id_reuse = 0 |
| 15 | max_disallowed_placement_events = 0 |
| 16 | max_nan_or_inf_logits = 0 |
| 17 | max_lost_completions = 0 |
| 18 | max_scheduler_deadlocks = 0 |
| 19 | |
| 20 | [numerics] |
| 21 | # Tolerance for each metric = noise_multiplier_k x measured noise floor (SPEC.md Section 5.3). |
| 22 | noise_multiplier_k = 2.0 |
| 23 | # Denominator floor for relative error: |a - b| / max(|ref|, relative_error_epsilon). |
| 24 | relative_error_epsilon = 1.0e-3 |
| 25 | # Top-1 disagreement is allowed only where the reference top-2 margin is below the absolute tolerance. |
| 26 | top1_margin_exemption = "reference_top2_margin_below_abs_tolerance" |
| 27 | compare_every_generated_step = true |
| 28 | |
| 29 | # Measured noise floors. Filled by amendment before the equivalence runs they govern. |
| 30 | # A run whose governing floor is "unmeasured" cannot produce a PASS for I3. |
| 31 | [numerics.noise_floor.tinyllama] |
| 32 | status = "measured" |
| 33 | backend = "ReferenceCpuBackend" |
| 34 | hardware = "Spark CPU" |
| 35 | runs = 3 |
| 36 | prompts = 5 |
| 37 | k = 8 |
| 38 | model_sha256 = "6e6001da2106d4757498752a021df6c2bdc332c650aae4bae6b0c004dcf14933" |
| 39 | max_abs = 0.0 |
| 40 | max_rel = 0.0 |
| 41 | source_commit = "bc5a8b5" |
| 42 | forge_log = "/home/drakestapleton/workspace/test-queue-logs/PE2E-C7-light-201114.log" |
| 43 | # Rule 2.0 x floor (0) = 0: frozen as exact (bitwise) equality for the CPU reference backend; not loosened. |
| 44 | tolerance_abs = 0.0 |
| 45 | tolerance_rel = 0.0 |
| 46 | |
| 47 | [numerics.noise_floor.qwen3_coder_30b_a3b_fp8] |
| 48 | status = "unmeasured" |
| 49 | |
| 50 | [sampling] |
| 51 | gates_1_to_3 = ["greedy", "seeded"] |
| 52 | seeded_temperature = 0.7 |
| 53 | seeded_top_p = 0.95 |
| 54 | sampler = "philox4x32_10" |
| 55 | # Gate 4 continuity: seeded runs must produce identical token IDs. |
| 56 | gate4_token_identity_required = true |
| 57 | |
| 58 | [fork_positions] |
| 59 | # Positions are 1, bs-1, bs, bs+1, k*bs-1, k*bs, k*bs+1 (bs = block_size from kv_contract.toml). |
| 60 | small = ["1", "bs-1", "bs", "bs+1"] |
| 61 | large = ["k*bs-1", "k*bs", "k*bs+1"] |
| 62 | write_orders = ["parent_first", "child_first", "parent_then_child", "child_then_parent"] |
| 63 | |
| 64 | [fork_positions.k] |
| 65 | tinyllama = 64 # 1024 tokens with bs = 16 |
| 66 | qwen3_coder_30b_a3b_fp8 = 2000 # 32000 tokens with bs = 16 |
| 67 | |
| 68 | # Stages. Correctness invariants are identical at every stage; only these parameters change. |
| 69 | |
| 70 | [[gate1.stage]] |
| 71 | name = "A" |
| 72 | parent_context_tokens = 64 |
| 73 | branches = 2 |
| 74 | trials = 10 |
| 75 | |
| 76 | [[gate1.stage]] |
| 77 | name = "B" |
| 78 | parent_context_tokens = 2048 # TinyLlama maximum context |
| 79 | branches = 32 |
| 80 | trials = 100 |
| 81 | |
| 82 | [[gate1.stage]] |
| 83 | name = "adversarial_fork100" |
| 84 | parent_context_tokens = 1024 |
| 85 | branches = 100 |
| 86 | trials = 10 |
| 87 | script = "fork100_mutate73_destroy20_advance_parent_mutate4_destroy73" |
| 88 | |
| 89 | [[gate2.stage]] |
| 90 | name = "A" |
| 91 | parent_context_tokens = 64 |
| 92 | branches = 2 |
| 93 | trials = 10 |
| 94 | |
| 95 | [[gate2.stage]] |
| 96 | name = "B" |
| 97 | parent_context_tokens = 4096 |
| 98 | branches = 8 |
| 99 | trials = 10 |
| 100 | |
| 101 | [[gate2.stage]] |
| 102 | name = "C" |
| 103 | parent_context_tokens = 4096 |
| 104 | branches = 32 |
| 105 | trials = 100 |
| 106 | |
| 107 | [[gate3.stage]] |
| 108 | name = "C" |
| 109 | parent_context_tokens = 16384 |
| 110 | branches = 100 |
| 111 | max_private_tokens_per_branch = 512 |
| 112 | divergence = "mixed" |
| 113 | trials = 10 |
| 114 | |
| 115 | [[gate3.stage]] |
| 116 | name = "D" |
| 117 | parent_context_tokens = 32768 |
| 118 | branches = 500 |
| 119 | max_private_tokens_per_branch = 512 |
| 120 | divergence = "mixed" |
| 121 | trials = 3 |
| 122 | |
| 123 | [gate3] |
| 124 | preemption = false |
| 125 | watermark_blocks = 0 |
| 126 | uninstrumented_repeat_required = true |
| 127 | |
| 128 | [gate4] |
| 129 | preemption = true |
| 130 | oversubscription_branches = 500 |
| 131 | oversubscription_private_tokens_per_branch = 1000 |
| 132 | parent_context_tokens = 32768 |
| 133 | fault_points = [ |
| 134 | "cow_copy_mid", |
| 135 | "fork_mid", |
| 136 | "release_mid", |
| 137 | "step_pre_commit", |
| 138 | "step_post_commit_pre_expose", |
| 139 | ] |
| 140 | release_races = [ |
| 141 | "cancel_twice", |
| 142 | "completion_vs_cancel", |
| 143 | "preemption_vs_cancel", |
| 144 | "parent_teardown_vs_child_cancel", |
| 145 | ] |
| 146 | restart_same_fingerprint = true |
| 147 | restart_mismatched_fingerprint_must_refuse = true |