Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aien-sovereign-core-mv/patches/80f33ff4fb58f40f # 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 Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers ## GitHub aien-dev/aien-sovereign-core-mv#454 (code only) closed derived `80f33ff4fb58f40f` #454 Imported from GitHub aien-dev/aien-sovereign-core-mv#454 (code only) GitHub's metadata for this pull request is unavailable: its state is DERIVED from the commits (merged: the head is reachable from this project's main; open: GitHub kept a merge ref; else closed). Base `87b48e7e4bc901a330b25c9752871ed3d41b9d71` · Head `390b5effcff2d8ae9f0543320e6638f4a9a5a39b` ### Apply it ``` git checkout -b patch-80f33ff4fb58f40f 87b48e7e4bc901a330b25c9752871ed3d41b9d71 curl -fsSL https://interplane.io/drakestapleton/aien-sovereign-core-mv/patches/80f33ff4fb58f40f.patch | git am ``` Raw patch (mbox) · Diff ### Provenance This proposal is imported from GitHub; it is not signed by its author. Its import statement and source record: ``` github-import 1 aien-dev/aien-sovereign-core-mv 454 390b5effcff2d8ae9f0543320e6638f4a9a5a39b ``` ``` {"kind":"github-import","owner":"aien-dev","repo":"aien-sovereign-core-mv","number":454,"url":"https://github.com/aien-dev/aien-sovereign-core-mv/pull/454","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:37:13Z","metadata":"unavailable","state_derived":true} ``` ### Changes ``` diff --git a/.crumb b/.crumb index ee0d962b..76c9e019 100644 --- a/.crumb +++ b/.crumb @@ -119,14 +119,14 @@ } ], "children_root": "sha256:a99206c1ace0afb823facb1b5490dc9130965e4d4b57a95e83977aa4a4862be0", - "compiled_at": "2026-10-11T23:06:33Z", + "compiled_at": "2026-10-11T23:18:22Z", "compiler": "crumb-compile/1", - "digest": "sha256:0ef361d4600c99eb3b637ba4859cca77a89536108464a7e3ae2e95b4870a29d7", + "digest": "sha256:f68eef0417b21099372feee7824eb2f6e63f20f64d8886fd9587458c6053423e", "evidence_files": 187, "evidence_root": "sha256:27ee0353cb4d4aae2b7dbce2bfe0d9f4ef2a94cd7a4555b84684d59372503280", "files": 3872, - "generated_at_commit": "44b4049765bf3b8309ffdf7a05b7ea7d130c0aeb", - "source_tree": "sha256:ca1ba04351ef0474dad572ea2abcca88cc06c717a5bba5f6e6730983cb7fc7c3" + "generated_at_commit": "1f50b106c8b6fb6e2805cf7c8235eac9143cc8d4", + "source_tree": "sha256:26eda304711c9c5efbed2f664fa81dd8305c0b5e85f3a8d744cfd543c0ae3a83" } }, "history": [], diff --git a/crates/aien-runtime/src/generation.rs b/crates/aien-runtime/src/generation.rs index db09e2fa..d841456c 100644 --- a/crates/aien-runtime/src/generation.rs +++ b/crates/aien-runtime/src/generation.rs @@ -118,12 +118,19 @@ fn with_ops(record: &mut Value, o: Option<&aien_abi_core::OpEvidence>) { } /// The line the daemon logs at the end of every model call (sc#337): the -/// backend's `OP_REPORT ...` line with ` backend=` appended (and, before -/// it, ` gpu_executions=` when the backend counts chip calls, sc#402). None -/// when the backend does not account its ops. +/// backend's `OP_REPORT ...` line with ` backend=` appended and, after it, +/// ` gpu_executions=` when the backend counts chip calls (sc#402). None when +/// the backend does not account its ops. +/// +/// Layout contract (sc#384, 2026-10-11): the frozen OPEN-MODEL-QWEN3 v5 row +/// `-OPR` parses `OP_REPORT native=[..] reference=[..] native_fallbacks=[..] +/// reference_runs=[..] backend=` to the end of the line; any new field +/// goes AFTER `backend=`, never between the bracketed fields and `backend=`. +/// Putting `gpu_executions` before `backend=` (sc#405) made every v7 dry +/// launch fail that row. pub fn op_report_line(o: Option<&aien_abi_core::OpEvidence>) -> Option { o.map(|o| match o.gpu_executions { - Some(n) => format!("{} gpu_executions={n} backend={}", o.report, o.backend), + Some(n) => format!("{} backend={} gpu_executions={n}", o.report, o.backend), None => format!("{} backend={}", o.report, o.backend), }) } diff --git a/crates/aien-runtime/tests/ops_evidence_test.rs b/crates/aien-runtime/tests/ops_evidence_test.rs index f0aa24ae..479229b0 100644 --- a/crates/aien-runtime/tests/ops_evidence_test.rs +++ b/crates/aien-runtime/tests/ops_evidence_test.rs @@ -303,7 +303,7 @@ async fn chip_calls_are_reported_and_absent_without_a_chip() { let line = aien_runtime::generation::op_report_line(Some(&ops)).unwrap(); assert!( line.ends_with(&format!( - " gpu_executions={counted} backend=forced-fallback" + " backend=forced-fallback gpu_executions={counted}" )), "{line}" ); @@ -355,3 +355,33 @@ fn record_carries_gpu_executions_only_when_counted() { assert_eq!(rec["ops"]["gpu_executions"], serde_json::json!(156)); assert_eq!(rec["ops"]["scope"], serde_json::json!("process")); } + +/// sc#384 (2026-10-11): the frozen OPEN-MODEL-QWEN3 v5 row `-OPR` parses the +/// daemon's OP_REPORT line as `... reference_runs=[..] backend=`. The chip +/// call count (sc#402) must come after `backend=`, or every qualification launch +/// fails that product row (v7 dry attempt 2 did). +#[test] +fn op_report_line_keeps_backend_right_after_reference_runs() { + let ops = aien_abi_core::OpEvidence { + report: "OP_REPORT native=[matmul_vec] reference=[] native_fallbacks=[] reference_runs=[]" + .into(), + backend: "OmegaGb10Backend (native Omega engine)".into(), + gpu_executions: Some(7), + ..Default::default() + }; + let line = aien_runtime::generation::op_report_line(Some(&ops)).unwrap(); + // The v5 regex reads the four bracketed fields and then ` backend=` directly; + // the same check without a regex dependency: the bracketed prefix is intact + // and ` backend=` follows `reference_runs=[]` immediately. + assert!( + line.starts_with( + "OP_REPORT native=[matmul_vec] reference=[] native_fallbacks=[] reference_runs=[] backend=OmegaGb10" + ), + "{line}" + ); + assert!( + !line[..line.find(" backend=").unwrap()].contains("gpu_executions"), + "{line}" + ); + assert!(line.ends_with(" gpu_executions=7"), "{line}"); +} ```