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-v4.md

92 lines · 5932 bytes Raw Blame History Rendered
1# NEXT-PHASE-1 campaign v4: acceptance criteria (frozen before any v4 code or run)
2
3```text
4campaign_id = "next-phase-1"
5spec_version = 4
6status = FROZEN at the commit that adds this file. The v4 code (assistant
7 prefix, declared warm-up, recomputed budget, reply logging) lands
8 in LATER commits, so this file's hash predates it.
9base = next-phase/compose-v3 69f7603 (main 91751b6 + v3, PR #221 open);
10 rebased onto main once #221 merges.
11```
12
13v1, v2 and v3 stand as recorded; their receipts are never edited. v3 verdict FAIL: attempt 1
14echoed the prompt, attempt 2 answered in prose; the control proved the request already used the
15model's chat template, so the echo is not a prompt-format bug.
16
17## 1. Task, steps, receipts, pass criteria: unchanged
18
19ACCEPTANCE.md Sections 1, 2 and 4, the ACCEPTANCE-v2 Section 2 table (every threshold and the
20rescue definition) and ACCEPTANCE-v3 Section 3d (S8 scored on its own) apply unchanged. One
21driver launch, one goal, one task, two daemon starts, zero hand input.
22
23## 2. Declared production-path changes (v4)
24
25**(1) Assistant-response prefix.** The `RunComposeTask` "model" Skill starts the assistant turn
26with the literal text `filename: ` (9 ASCII characters plus one space). It is part of the
27production proposal template (aien-runtime), the same for every goal and every attempt. The
28model generates the path and the content after it.
29- Template source: TinyLlama-1.1B-Chat-v1.0 `tokenizer_config.json`, sha256
30 `7b41ba7d0eb91e77914ca3dafde559ea3e19878769b7e68409e89bed5222e77a`, field `chat_template`;
31 with the generation prompt it ends the text with `<|assistant|>` and a newline
32 (ACCEPTANCE-v3 Section 2, PROVEN BY TEST in v3).
33- Exact bytes sent for attempt 1 (prompt P = `proposal_prompt(goal, workspace, entries)`,
34 unchanged since v2):
35 `<|user|>\n` + P + `</s>\n<|assistant|>\nfilename: `
36 The prefix follows the assistant marker and its newline directly; nothing comes after the
37 final space. Encoded with special tokens: BOS first, one EOS (end of the user turn), and the
38 tail `... 29989 29958 13 9507 29901 29871` = `|>`, newline, `filename`, `:`, `▁` (MEASURED
39 with the real tokenizer: 138 tokens for the v4 workspace path; retry prompt 176).
40- Declared risk (INFERRED): the prompt ends on a lone space token (29871), an unusual boundary
41 for this tokenizer; the model may continue without a leading space. This is the literal
42 prefix as briefed; it is not tuned.
43- Parser: unchanged (`check_file_proposal`). The only change is that the Skill reads the reply
44 as `filename: ` + generated text, so the parser sees the prefix as the first line's start.
45 `text` and `text_sha256` in `proposal_attempts[]` cover that full reply; `tokens` counts the
46 generated tokens only.
47- If the prefix lands a path but the content is empty or cut at 48 tokens, that is recorded as
48 the parser or AEGIS outcome and scored by the unchanged rows (a FAIL row). `max_tokens` is not
49 raised during the campaign.
50
51**(2) Declared warm-up at daemon start.** After the model loads and before the daemon serves
52any request, it runs one turn of 1 generated token on a fixed warm-up prompt longer than one
53prefill chunk (more than 128 tokens, so both the full-chunk and the remainder prefill paths
54run), and discards the token. Purpose: pay the measured first-call penalty (5.2 s in v3, inside
55the first 128-token prefill step, cause UNKNOWN) before the task window. The daemon prints
56`Warm-up: 1 token in <ms> ms over <n> prompt tokens (discarded)`. The driver waits for that line
57before it counts a daemon as started, so it falls inside S0 (daemon 1) and S7 (restart, report
58only). The receipt records `warm_up_ms` for both daemon starts. Whether the penalty is per
59process (paid by any first call) or per prompt shape is UNKNOWN; attempt 1's measured time
60shows which.
61
62**(3) Per-attempt budget recomputed from the v3 measurement.** Unchanged inputs (v3 Section 2,
63MEASURED): first 128-token prefill chunk 2 839 ms warm; remainder chunk 136 ms + 16.9 ms per
64token (INFERRED line through the 7- and 15-token chunks); decode 166.6 ms per token; 60 ms wall
65overhead. `max_tokens` = 48 counts generated tokens only, so the 3 prefix tokens leave decode
66(47 steps after the first token) unchanged and move into prefill.
67- Retry attempt (176 prompt tokens = 128 + 48): 2 839 + (136 + 48 x 16.9 = 947) + 47 x 166.6
68 = 7 830 + 60 = **11 676 ms**; per-attempt budget A = **12 000 ms** (rounded up, unchanged
69 value; the prefix adds 3 x 16.9 = 51 ms to v3's 11 625 ms).
70- Attempt 1 after warm-up (138 = 128 + 10): 2 839 + (136 + 10 x 16.9 = 305) + 7 830 + 60
71 = 11 034 ms.
72- Skill budget B = 29 000 ms (30 000 ms quiescence wait at omega 62b6a28
73 `src/runtime/rx_compose.c:1192`, not raised, less 1 000 ms). Rule unchanged from v3: attempt
74 1 always starts; attempt k > 1 starts only if at least A is left; limit = what is left.
75- Expected: attempt 1 about 11.0 s leaves 18.0 s, attempt 2 about 11.7 s leaves 6.3 s < 12 s,
76 so no attempt 3 unless an attempt ends early at end of sequence. Retry cap stays 3.
77
78**(4) Reply bytes logged.** Every attempt's full reply (prefix + generated text, UTF-8 as
79decoded) is written next to the receipts as `replies/<sha256>.txt`, named by its own sha256,
80which equals `text_sha256` in the receipt. Never edited afterwards.
81
82## 3. Summary on FAIL
83
84If v4 fails, the receipt summary gets a section "Conclusion on the frozen model input" stating
85what the mechanics proved (v1 attempt 4) and what the TinyLlama input cannot do under free
86generation, for the handoff to cite.
87
88## 4. Binding and run conditions
89
90As ACCEPTANCE-v3 Section 4: omega.lock 62b6a28 for the GPU engine and librx_compose; GB10 hold
91through `quietlock hold --minutes <= 20` with start and release whispers; one driver launch;
92the verdict is whatever the rows give; performance is an observation (tokens/s, warm_up_ms).