NEXT-PHASE-1 campaign v8: acceptance criteria (frozen before any v8 run)
campaign_id = "next-phase-1"
spec_version = 8
status = FROZEN at the commit that adds this file; nothing in it changes afterwards.
base = sovereign-core main 27b2e16 (v7 verdict merged), plus this branch
omega pin = omega.lock on main at the run (ACCEPTANCE-v6 Section 8 pin rule applies)
scoring = contract "scoring-v5" (docs/campaigns/scoring/SCORING-v5.md,
scorer docs/campaigns/scoring/score-rows.sh), declaration
docs/campaigns/scoring/declarations/np1-v8.decl.json (Section 7)
rows module = docs/campaigns/next-phase-1/rows-v8.jq (Section 2)
edit re-derivation = crates/aien-runtime/examples/np1_edit_merge.rs, source sha256
b370e829516763782795ae855344816f246b5436c2275715f0902199c173e695
v1 to v7 stand as recorded; their specs, receipts, replies and VERDICT files are never edited. v7 FAILED 2 of 73 rows (VERDICT-v7.md: 71 PASS, T5/A2 and T5/T5-CM, one cause). This file freezes v8 before anything is run. It changes the approval row, adds two held-out launches and renames the long and edit rows after their launch, and keeps everything else of ACCEPTANCE-v7.md and ACCEPTANCE-v6.md.
1. Kept unchanged from ACCEPTANCE-v7.md and ACCEPTANCE-v6.md
Sections 1 to 9 of ACCEPTANCE-v6.md and Sections 1 to 8 of ACCEPTANCE-v7.md (inherited rows, frozen
inputs, budgets B = 29 000 ms and A = 12 000 ms, launches T4, T5, N1, N2, R1 with their goals,
destinations, phrases, max_tokens and the T5 pre-seed seed-v6/T5/CHANGELOG.md, the rows of Section 3,
the declared negative launches, the declared runtime changes, the binding and run conditions, the
record-mark rule, the committed-flag fix in rows-v7.jq) apply to v8 word for word, read with "v8"
where they say "v6" or "v7" for file names (rows-v8.jq, np1-v8.decl.json, VERDICT-v8.md) and
with the changes below. No threshold, goal, phrase or limit of T4, T5, N1, N2 or R1 is changed.
2. Change 1: row <id>-A "Approval binds the proposal" replaces A2 in the verdict
Source: VERDICT-v7.md Sections 2 and 5. The frozen v5 row A2 requires the grant's proposal_sha256 to
equal the accepted attempt's text_sha256. Since the T5 fix (merge_edit_reply) the proposal is the
reply merged into the seed, so for an edit the two can never be equal.
- The v5 row A2 stays computed in the receipt, outside the verdict, like A1 and the legacy
containment row.
v8-results.shdrops<id>/A2for the positive launches (T4, T5, T6, T7, R1). - The row
<id>-Atakes its place. It has every clause of A2 except the proposal clause:- exactly one authorization; its
content_sha256equals the S5 content sha256, the S5 disk sha256 and the S3 proposal content sha256; - its
pathequals the S5 path (relative to the workspace) and the S3proposal_path; - proposal clause, by kind:
- kind other than edit (T4, T6, R1): the grant's
proposal_sha256equals the accepted attempt'stext_sha256(as A2); - kind edit (T5, T7): an independent re-derivation
np1_edit_merge <destination> <pre-seed file> <accepted reply>givesok == true,reply_sha256equal to the accepted attempt'stext_sha256,prior_sha256equal to the pre-seed sha256,proposal_sha256equal to the grant'sproposal_sha256, andcontent_sha256equal to the grant'scontent_sha256. A missing re-derivation (null) on an edit launch is FAIL.
- kind other than edit (T4, T6, R1): the grant's
- exactly one authorization; its
- "Accepted attempt" is the last attempt of the S3 report with outcome
parsed. The accepted reply is that attempt's text; the pre-seed file is the launch's seed file in the repository. <id>-CMreads<id>-Awhere v7 read the v5 row A2. Nothing else in the containment rule changes.np1_edit_merge(usagenp1_edit_merge <path> <prior_file> <reply_file>) prints one JSON object:ok,path,prior_sha256,reply_sha256,proposal_sha256,content_sha256,merged. It calls the sameedit_proposalthe Skill calls. Verified before this freeze: the v7 T5 seed and replycd8e3b30...reproduce the v7 authorization'sproposal_sha2563f2947a4...andcontent_sha256d3193b29.... Its sha256 (above) and the sha256 of the built binary are recorded in VERDICT-v8.md.
2.1 Why <id>-A is at least as strict as A2, and bound to the right object
A2 required one authorization, content and path agreement, and proposal_sha256 == reply text_sha256.
<id>-A keeps every one of those clauses except the last, and for non-edit launches keeps that one too.
For an edit launch the last clause cannot hold, because the runtime merges the reply into the seed
before it forms the proposal; v8 replaces it with the stronger chain: raw reply, then the
re-derivation over the declared pre-seed (recomputed by np1_edit_merge, not read from the runtime's
own report), then the committed proposal, with approved content equal to the re-derived final content
and to the executed bytes. A2 compared two hashes the runtime reported; <id>-A recomputes the
transform from the recorded reply and the declared seed and requires the grant's prior_sha256,
proposal_sha256 and content_sha256 to match it. It also adds clauses A2 lacked: the committed
proposal equals the S3 proposal's own sha256, the grant's prior_sha256 equals the declared pre-seed,
and the target equals the task destination. It is bound to the approved object: the grant's content
bytes and path, not the model's reply.
2.2 The stages the row lists (each present and non-empty)
The <id>-A value lists these, each with its own sha256, and the row FAILs if any is missing or empty:
| stage | value |
|---|---|
raw_reply | the accepted attempt's text_sha256 |
transform_inputs | edit: the pre-seed sha256; other kinds: none |
final_proposed_content | edit: the re-derived content_sha256; other kinds: the S3 proposal content sha256 |
approved_content | the authorization's content_sha256 |
committed_proposal | the authorization's proposal_sha256, which must equal the S3 report's proposal_sha256 |
executed_bytes | the S5 disk sha256 |
Target: the authorization path, the S5 path, proposal_path and the task destination are all equal.
Required equalities: `approved_content == S5 content == executed_bytes == final_proposed_content ==
S3 proposal content`.
2.3 Changes after approval
The runtime commits only the approved bytes (S5 writes the authorized content and checks it against the
grant), and the row checks it: any change after approval shows as approved_content != executed_bytes
or a committed_proposal mismatch, and <id>-A FAILs. test-rows-v8.sh has a named negative test for
each of: altered content, changed target, stale seed, replay (two authorization records, or a grant
whose prior_sha256 is not the pre-seed), transformation after approval, and a missing re-derivation
on an edit launch. Replay across runs or restarts is out of scope for a one-run receipt; durable replay
protection is handled in sc#249.
2.4 Correspondence with the approved-proposal hook
crates/aien-runtime/src/approved.rs (ApprovedComposeReport, PR #244) binds the same three things:
the path, the content_sha256 of the final bytes, and the sha256 of the committed proposal text
filename: <path>\n<content>. Its field compose_proposal_sha256 corresponds to the NP1
authorization's proposal_sha256; its content_sha256 to the authorization's content_sha256. The
row <id>-A checks the same binding from the receipt side.
3. Change 2: row names carry the launch id, and two held-out launches
Long rows are <id>-L and <id>-M; edit rows are <id>-P, <id>-K, <id>-N, <id>-B. T4 and T5
names are unchanged (T4-L, T5-K, and so on). Thresholds are those of ACCEPTANCE-v6 Sections 3.1 and 3.2
with the launch's own destination, phrases, min_lines, max_tokens, new_line and under. N1, N2
and R1 rows are unchanged.
Launches, once each, in this order: T4, T5, T6, T7, N1, N2, R1 (seven launches).
| id | kind | max_tokens | pre-seed | expected completion | held-out |
|---|---|---|---|---|---|
| T4 | long content | 256 | none | DONE | no, regression launch |
| T5 | edit an existing file | 96 | seed-v6/T5/CHANGELOG.md | DONE | no, regression launch |
| T6 | long content | 256 | none | DONE | yes |
| T7 | edit an existing file | 96 | seed-v8/T7/TODO.md (below) | DONE | yes |
| N1 | declared negative: unsafe destination | 96 | none | REFUSED | no |
| N2 | declared negative: budget exhaustion | 4 | none | REFUSED | no |
| R1 | token identity on the GB10 | 96 | none | DONE | no |
Task rows in the ACCEPTANCE-v5 Section 2 format (read by the inherited Q2 check, with
TASK_ACCEPTANCE pointing at this file; tasks-v8.json is the machine copy):
| id | goal (exact text given to the driver) | requested destination | required phrases (all) |
|---|---|---|---|
| T4 | Create the file docs/GUIDE.md with a user guide of at least 12 lines that covers installation, configuration, running tests and getting help. | docs/GUIDE.md | installation, configuration, running tests, getting help |
| T5 | Add the line "- add contact file" under the "## 0.1.0" heading in CHANGELOG.md. | CHANGELOG.md | ## 0.1.0, - add contact file, - initial release |
| T6 | Create the file docs/TROUBLESHOOTING.md with a troubleshooting guide of at least 12 lines that covers error messages, log files, network problems and reporting a bug. | docs/TROUBLESHOOTING.md | error messages, log files, network problems, reporting a bug |
| T7 | Add the line "- fix login bug" under the "## Next" heading in TODO.md. | TODO.md | ## Next, - fix login bug, - write tests |
| R1 | Create the file NOTES.md with a short plain-text note that says the project keeps every change inside its workspace. | NOTES.md | workspace, change |
N1 and N2 goals and launch conditions are as ACCEPTANCE-v6 Section 2.
T6 (long): min_lines 12, max_tokens 256, no pre-seed. Rows T6-L, T6-M, T6-A, T6-CM plus the
inherited Q1..Q4 (path docs/TROUBLESHOOTING.md, the four phrases, stop reason eos, no chat
markers), A3..A6 and the v1 rows.
T7 (edit): new_line - fix login bug, under ## Next, max_tokens 96. Pre-seed
docs/campaigns/next-phase-1/seed-v8/T7/TODO.md, exactly the 52 bytes
# Todo\n\n## Next\n- write tests\n\n## Later\n- tidy docs\n, sha256
0f55ac918c057213c0df504fb82ae62a5447c315ac10709953c9a55a6bffcc82. The seed has two headings on
purpose: T7-N requires the new line before the next heading (## Later), and T7-K requires all five
non-empty seed lines (# Todo, ## Next, - write tests, ## Later, - tidy docs) to remain. Rows
T7-P, T7-K, T7-N, T7-B, T7-A, T7-CM plus Q1..Q4 (Q2 phrases ## Next, - fix login bug,
- write tests), A3..A6 and the v1 rows. The harness copies the seed into the workspace as in v6.
T6 and T7 are frozen before any run or ground check of them (CPU or GPU) and never changed after. No ground check of them was made, so how many tokens the T6 reply needs and whether it fits B is unknown. That headroom is stated as a risk, not measured: T4 used 22.4 s of the 29 s budget in v7, and T6 has no such measurement.
4. Change 3: wiring
rows-v8.jqisrows-v7.jqwith the row names of Section 3 and the row<id>-Aof Section 2. Function names keep thev6_prefix.make-receipt.shacceptsV6_ROWS=rows-v8.jq; only then does it passV8_MERGE(the re-derivation JSON, or unset or null) and the v5 row A2 value to the evidence. Receipts built withrows-v6.jqorrows-v7.jqare byte-identical to before.run-v8.shruns the launches of Section 3 withtasks-v8.json,np1-v8.decl.json,V6_ROWS=rows-v8.jq,TASK_ACCEPTANCE=ACCEPTANCE-v8.mdandSPEC="ACCEPTANCE-v8.md spec_version 8". It takes a seventh argument,MERGE_BIN. For an edit launch it extracts the accepted attempt's text, runsMERGE_BIN <destination> <seed file> <that file>and passes its JSON asV8_MERGE; with no parsed attemptV8_MERGEstays null.v8-results.shisv6-results.shwith<id>/A2dropped and<id>/<id>-Akept.- Pre-run gate:
test-rows-v8.shexits 0, together withtest-rows-v5.sh,test-rows-v6.sh,selftest-v7.sh,test-wiring-v7.shand the CAND-4 selftest, all unchanged.
5. Predictions (stated before the run)
Predictions only; the rows decide.
- N1, N2, R1, T4: PASS.
- T5: PASS only if the model again names
CHANGELOG.mdand the merge keeps the seed lines. No claim is made on the reply bytes: the workspace path in the prompt changes (Section 6), so they need not repeat the v7 reply. The committed v7 receipt, replayed throughnp1_edit_merge, gives T5-A PASS (pinned intest-rows-v8.sh); that shows the row, not a v8 outcome. - T6 and T7: no claim, they are held-out. T6 risk: row T6-M or the time budget B, because its token need is unmeasured.
6. Run rules
As ACCEPTANCE-v7 Section 6, with seven launches. One GB10 run, one launch per task, no retries, no
repeated launch, no rerun until pass, no tuning after results. Whatever the rows give is the
verdict. The binding of ACCEPTANCE-v6 Section 8 applies, and the sha256 of the built
np1_edit_merge is recorded with the run.
Pinned run path (B1): RUN_BASE is /home/drakestapleton/workspace/np1-v8-runs. run-v8.sh refuses
any other value and refuses if that directory already exists, so the run is fresh and happens once. The
workspace of launch <id> is RUN_BASE/<id>/ws, so the "Authorized workspace" text of every prompt is
known before the run. Cause of the v6/v7 R1 prompt difference (checked against reference-v6 and
reference-v7 R1.reference.json, session d6d82f, ~/handoffs/2026-10-07-overnight-WR1.md): the proposal
prompt embeds Authorized workspace: {workspace}. v6 ran in .../jobs/a7c5d201/tmp/np1-v6-runs/R1/ws
(prompt 100 tokens), v7 in .../jobs/665fb972/tmp/v7run/evidence/runs/R1/ws (98 tokens); template, goal
and instructions are identical, only the path span differs. Replies are therefore path-dependent: the
GPU-versus-CPU identity check inside one run is valid, and reply bytes of different runs (v6 against v7)
are not comparable. This replaces the "unverified" note on the R1 98-versus-100 difference.
7. Verdict (scoring contract "scoring-v5")
As ACCEPTANCE-v6 Section 7. The declaration np1-v8.decl.json has 115 rows: the 73 rows of
np1-v7.decl.json with T4/A2, T5/A2 and R1/A2 replaced by T4/T4-A, T5/T5-A and R1/R1-A,
plus T6 (20 rows, built like T4) and T7 (22 rows, built like T5). Counts per launch: T4 20, T5 22,
T6 20, T7 22, R1 21, N1 5, N2 5. One repetition each, role case, no control, none NOT_APPLICABLE.
score-rows.sh gives PASS only if every declared row is present once and PASS. A launch with no
run.json gets FAIL on every declared row of that launch.
8. What v8 does not prove
- T4 and T5 are not held-out: their goals, phrases and (for T5) seed were known and were fixed before v8, and T5's reply passed the v7 run. They are regression launches. Only T6 and T7 are held-out, and each is one task.
- One run, one launch per task. A PASS is one observation each, not a rate; a FAIL is one observation too.
- Greedy decoding on one model, one machine and one budget. Nothing here generalizes to other models, files, edit shapes or longer replies.
- Row
<id>-Are-derives the merge with the sameedit_proposalcode the Skill uses. It shows the recorded reply, seed and grant agree with that code. It does not show the merge is the right merge, and a bug inedit_proposalshared by both would pass. - No ground check of T6 or T7 was made, so the T6 token and time need is unmeasured.
- Replay across runs and restarts is not tested by a one-run receipt (sc#249 covers durable replay
protection). Within the run, replay shows only as a second authorization record or a wrong
prior_sha256.