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
GitHub aien-dev/aien-sovereign-core-mv#227 (code only)
Fetch it
curl -fsSL https://interplane.io/drakestapleton/aien-sovereign-core-mv/patches/24ca7e1bfa463791.bundle -o 24ca7e1bfa463791.bundle git fetch 24ca7e1bfa463791.bundle refs/pull/227/head
Provenance
github-import 1
aien-dev/aien-sovereign-core-mv
227
07e0ad91e4f2a1ac35862d9ddaabe9aad4656213
{"kind":"github-import","owner":"aien-dev","repo":"aien-sovereign-core-mv","number":227,"url":"https://github.com/aien-dev/aien-sovereign-core-mv/pull/227","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:36:23Z","metadata":"unavailable","state_derived":true}
Changes
diff --git a/.crumb b/.crumb index 1d78b135..babc1112 100644 --- a/.crumb +++ b/.crumb @@ -65,26 +65,26 @@ "children": [ { "digest": "8adb9b86301dab19b5d674d5ef0eba0936f76f15eeccbfa88cdfd5d11adddac0", - "last_commit": "ce3ef86", + "last_commit": "249f31fa", "name": "scripts", "purpose": "" }, { "digest": "ef1840de79311e5684993b0e0b66e0a9fce42a2d7966506201686ae5f8084a98", - "last_commit": "8b5caed", + "last_commit": "8b5caedc", "name": "skills", "purpose": "" } ], "children_root": "sha256:5bc6c40c7fc034d6f7a949a438fcc78ed8c452232e3a6ab7bb6ef6b622ebaf49", - "compiled_at": "2026-10-06T14:54:01Z", + "compiled_at": "2026-10-06T15:42:19Z", "compiler": "crumb-compile/1", - "digest": "sha256:bed2358c7401e831857f16643cf3ed1aa4a3b7acf8c2f98ab2be8a0a45f4f223", + "digest": "sha256:c1a9671b7f3f0231471536e1ad298f3d30467001fead390140992a856c7d1314", "evidence_files": 24, "evidence_root": "sha256:16192fc4be2f886385affd6e26faae4b831eb62b87ceac4ab39d662e0859d7f8", - "files": 728, - "generated_at_commit": "ce3ef865cee16800c9e96d15534154a0bc443912", - "source_tree": "sha256:275313a93f5fe2dd1241123deabd493301e76a0937d303310e906cbec268b7aa" + "files": 737, + "generated_at_commit": "5fd801acf4e1e969633fcda248b9be228e91aba9", + "source_tree": "sha256:c18012d0cc204f88eeba0cbd116f5de49f947395c4cd234ac7e05ee597e5b6e7" } }, "history": [], diff --git a/.gitignore b/.gitignore index 1e0a6a70..8b58ecb1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ target/ +/target-*/ *.log *.tmp __pycache__/ diff --git a/crates/aien-cli/.crumb b/crates/aien-cli/.crumb index 89143c53..86f0833b 100644 --- a/crates/aien-cli/.crumb +++ b/crates/aien-cli/.crumb @@ -34,21 +34,21 @@ "generated": { "children": [ { - "digest": "97c4efd5322886abdb20f35ab606c6db09b1b7c3b120d41ccb42be2a91fbd463", - "last_commit": "91751b6", + "digest": "d3fa9806b5eacf43aae16c7f54332be28b3f778b3ac70ae777666744851995d7", + "last_commit": "c0fe519", "name": "src", "purpose": "" } ], - "children_root": "sha256:80b6c7ebb28dd04341c73cb0f5211916f82ee10a9fb4edaf835672685fb6e408", - "compiled_at": "2026-10-06T11:21:59Z", + "children_root": "sha256:128d5ac617b5b097c0ce58f8d28a92a237a44bee8bdb5af66b45bc1554b55974", + "compiled_at": "2026-10-06T15:25:46Z", "compiler": "crumb-compile/1", - "digest": "sha256:b9d37df27b04066d940013357a6362e6d8051b6810e14db1f8b2aaa0e85c57e8", + "digest": "sha256:c6be5cf1046aebea1ee66f3b4ea24199bbc2aab6266b1880028f47fb6b29be8d", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 28, - "generated_at_commit": "5f8eb8817fec34e26335e01746cdb45fedeeafcf", - "source_tree": "sha256:96feac1c61429b10c0b0bac5e29890e2bc3f7aeebd30f260282032170e7b3b1e" + "generated_at_commit": "18c23e05b21069200d235327327c4564dcb834af", + "source_tree": "sha256:2f00b244e522057fb71cb150131a7e2235af9d0f7bfbf3a509899792c5cfc850" } }, "history": [ diff --git a/crates/aien-cli/Cargo.toml b/crates/aien-cli/Cargo.toml index 52aa832d..b146980b 100644 --- a/crates/aien-cli/Cargo.toml +++ b/crates/aien-cli/Cargo.toml @@ -26,5 +26,9 @@ aien-kv-cache = { path = "../aien-kv-cache" } aien-scheduler = { path = "../aien-scheduler" } aien-runtime = { path = "../aien-runtime" } +[features] +# NEXT-PHASE-2 fault harness only: named hold points in `aien compose execute`. +fault-hold = [] + [dev-dependencies] tempfile = "3.10" diff --git a/crates/aien-cli/src/.crumb b/crates/aien-cli/src/.crumb index a6da6af4..4fe4ee63 100644 --- a/crates/aien-cli/src/.crumb +++ b/crates/aien-cli/src/.crumb @@ -64,14 +64,14 @@ "generated": { "children": [], "children_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", - "compiled_at": "2026-10-06T11:21:59Z", + "compiled_at": "2026-10-06T15:25:46Z", "compiler": "crumb-compile/1", - "digest": "sha256:97c4efd5322886abdb20f35ab606c6db09b1b7c3b120d41ccb42be2a91fbd463", + "digest": "sha256:d3fa9806b5eacf43aae16c7f54332be28b3f778b3ac70ae777666744851995d7", "evidence_files": 0, "evidence_root": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", "files": 25, - "generated_at_commit": "5f8eb8817fec34e26335e01746cdb45fedeeafcf", - "source_tree": "sha256:3f2c8d47aca985d7f0bdd49dc9f50fe0d0a62ffc45bbf59999376e964042220d" + "generated_at_commit": "18c23e05b21069200d235327327c4564dcb834af", + "source_tree": "sha256:54ebe4153684f9f571055969a6721d3d2741a9e7d07f186dabebab83f79abb83" } }, "history": [ diff --git a/crates/aien-cli/src/commands.rs b/crates/aien-cli/src/commands.rs index 6a9ff4f2..0609d285 100644 --- a/crates/aien-cli/src/commands.rs +++ b/crates/aien-cli/src/commands.rs @@ -1325,6 +1325,12 @@ pub async fn run_daemon_server() { "{}", "⚡ Starting AIEN Sovereign Runtime Daemon...".cyan().bold() ); + // NEXT-PHASE-2 (ACCEPTANCE-v2 2.8): damaged idempotency state refuses the + // start; it is never reset silently. + if let Err(fatal) = aien_runtime::control::RuntimeController::load() { + eprintln!("Fatal: {}", fatal.red().bold()); + std::process::exit(1); + } let socket_path = aien_runtime::client::AienRuntimeClient::default_socket_path(); let sched_cfg = aien_scheduler::SchedulerConfig { max_batch_size: 256, diff --git a/crates/aien-cli/src/compose.rs b/crates/aien-cli/src/compose.rs index e10cc328..d1df2a83 100644 --- a/crates/aien-cli/src/compose.rs +++ b/crates/aien-cli/src/compose.rs @@ -24,12 +24,23 @@ //! recall [--ids ID,..] [--prefix N] S8 constraints + effects //! shutdown S7 stop the daemon (control Shutdown) //! recover repair a refused home +//! effects the effect ledger (NEXT-PHASE-2) +//! reconcile [--intent ID --declare done|not_done --approver NAME] +//! settle unsettled effects +//! stop --approver NAME durable operator stop +//! resume --approver NAME end the stop (old grants stay stale) +//! revoke --authorization ID --approver NAME revoke an unspent grant +//! +//! S5 `execute` brackets the write with a durable intent and an ack (see +//! `aien_runtime::effects`); it prints `"state"` and exits 3 when the effect +//! is UNRESOLVED. use crate::safety::SafetyEngine; use crate::tools::record_effect_receipt; use aien_runtime::client::AienRuntimeClient; use aien_runtime::control::{ - ComposeRecallReport, ComposeRecordView, ComposeTaskReport, ControlCommand, ControlResponse, + ComposeRecallReport, ComposeTaskReport, ControlCommand, ControlResponse, ReconcileDeclare, }; +use aien_runtime::effects; use aien_runtime::spine::parse_file_proposal; use serde_json::{json, Value}; use sha2::{Digest, Sha256}; @@ -247,15 +258,21 @@ async fn step(sub: &str, m: &HashMap<String, String>) -> Result<Value, String> { .validate_path(ws.join(&path).to_str().ok_or("path is not UTF-8")?) .map_err(|e| format!("CONFINEMENT DENIAL: {e}"))?; let csha = sha256_hex(content.as_bytes()); + // NEXT-PHASE-2: the grant names the target and the state it was + // granted against; a changed target makes it stale. + let prior = effects::file_sha256(&target)?; + let tgt = target.display().to_string(); let args = json!({"proposal_sha256": psha, "path": path, "content_sha256": csha, - "approver": approver, "cx_promotion": r.cx_promotion}); + "approver": approver, "cx_promotion": r.cx_promotion, "target": tgt, + "prior_sha256": prior}); let result = json!({"approved": true, "target": target.display().to_string()}); let rc = receipt("authorize", &args, &result, true)?; let constraint = m.get("constraint").map(|s| ids(s)).transpose()?; let mut links = vec![r.cx_promotion, r.cx_evidence]; links.extend(constraint.unwrap_or_default().into_iter().take(2)); let text = json!({"proposal_sha256": psha, "path": path, "content_sha256": csha, - "approver": approver, "receipt_sha256": rc["sha256"]}); + "approver": approver, "receipt_sha256": rc["sha256"], "target": tgt, + "prior_sha256": prior}); let n = note("authorization", &text.to_string(), links).await?; Ok(json!({"step": "S4", "receipt": rc, "authorization": n, "approvals": 1})) } @@ -267,48 +284,77 @@ async fn step(sub: &str, m: &HashMap<String, String>) -> Result<Value, String> { .map_err(|e| format!("--authorization: {e}"))?; let (path, content, psha) = committed_proposal(&r)?; let csha = sha256_hex(content.as_bytes()); - // The approval is read back from the journal, never taken from argv. - let rec = recall(vec![auth], None).await?; - let a: &ComposeRecordView = rec - .cited - .first() - .filter(|a| a.verified && a.note.as_deref() == Some("authorization")) - .ok_or_else(|| format!("cortex.cx#{auth} is not a verified authorization"))?; - let at: Value = serde_json::from_str(a.text.as_deref().unwrap_or("")) - .map_err(|e| format!("authorization #{auth}: {e}"))?; - if at["proposal_sha256"] != json!(psha) - || at["content_sha256"] != json!(csha) - || at["path"] != json!(path) - { - return Err(format!("authorization #{auth} names a different proposal")); - } let target = engine .validate_path(ws.join(&path).to_str().ok_or("path is not UTF-8")?) .map_err(|e| format!("CONFINEMENT DENIAL: {e}"))?; + // NEXT-PHASE-2 (ACCEPTANCE-v2 2.1-2.3): the daemon checks the grant + // (stop, revoke, stale, spent) and records the intent durably + // before anything touches the world. No intent, no write. + fault_hold("before_intent"); + let (pid, start) = effects::self_executor(); + let intent = match send(ControlCommand::ComposeEffectIntent { + authorization: auth, + proposal_sha256: psha.clone(), + path: path.clone(), + target: target.display().to_string(), + content_sha256: csha.clone(), + executor_pid: pid, + executor_start: start, + }) + .await? + { + ControlResponse::ComposeNoted(n) => n, + other => return Err(format!("unexpected response {other:?}")), + }; + fault_hold("after_intent"); if let Some(parent) = target.parent() { std::fs::create_dir_all(parent) .map_err(|e| format!("create {}: {e}", parent.display()))?; } - let args = json!({"path": target.display().to_string(), "content_sha256": csha, - "authorization": auth}); let written = std::fs::write(&target, content.as_bytes()) .map_err(|e| format!("write {}: {e}", target.display())) .and_then(|_| std::fs::read(&target).map_err(|e| e.to_string())); - let (ok, disk_sha, bytes) = match &written { - Ok(b) => (sha256_hex(b) == csha, sha256_hex(b), b.len()), - Err(_) => (false, String::new(), 0), + let (disk_sha, bytes) = match &written { + Ok(b) => (sha256_hex(b), b.len()), + Err(_) => (String::new(), 0), + }; + fault_hold("after_write"); + let reported = json!({"disk_sha256": disk_sha, "bytes": bytes, + "error": written.as_ref().err()}); + // The ack's state is the daemon's reading of the world. If the + // ack cannot be recorded the effect is UNRESOLVED until reconcile. + let ack = send(ControlCommand::ComposeEffectAck { + intent: intent.id, + reported: reported.clone(), + }) + .await; + let (state, ack_id, ack_err) = match &ack { + Ok(ControlResponse::ComposeNoted(n)) => { + let rec = recall(vec![n.id], None).await.ok(); + let st = rec + .and_then(|r| r.cited.into_iter().next()) + .and_then(|c| c.text) + .and_then(|t| serde_json::from_str::<Value>(&t).ok()) + .and_then(|v| v["state"].as_str().map(str::to_string)) + .unwrap_or_else(|| "UNRESOLVED".into()); + (st, Some(n.id), None) + } + Ok(other) => ("UNRESOLVED".to_string(), None, Some(format!("{other:?}"))), + Err(e) => ("UNRESOLVED".to_string(), None, Some(e.clone())), }; - let result = json!({"bytes": bytes, "disk_sha256": disk_sha, "error": written.err()}); + let ok = state == "DONE"; + let args = json!({"path": target.display().to_string(), "content_sha256": csha, + "authorization": auth, "intent": intent.id}); + let result = json!({"bytes": bytes, "disk_sha256": disk_sha, "error": written.err(), + "state": state, "ack": ack_id, "ack_error": ack_err}); let rc = receipt("write_file", &args, &result, ok)?; - let text = json!({"tool": "write_file", "path": path, "content_sha256": csha, - "disk_sha256": disk_sha, "bytes": bytes, "success": ok, - "receipt_sha256": rc["sha256"], "authorization": auth}); - let n = note("effect", &text.to_string(), vec![auth, r.cx_promotion]).await?; - if !ok { - return Err(format!("write_file failed; receipt {}", rc["sha256"])); - } - Ok(json!({"step": "S5", "receipt": rc, "effect": n, "path": target.display().to_string(), - "content_sha256": csha, "disk_sha256": disk_sha, "bytes": bytes})) + let out = json!({"step": "S5", "receipt": rc, "intent": intent, + "effect": {"id": ack_id}, "state": state, "path": target.display().to_string(), + "content_sha256": csha, "disk_sha256": disk_sha, "bytes": bytes, + "ack_error": ack_err}); + // handle_compose_command turns a state other than DONE into + // "ok": false (exit 3 for UNRESOLVED, 1 otherwise). + Ok(out) } "explain" => { let r = read_report(need(m, "report")?)?; @@ -390,12 +436,55 @@ async fn step(sub: &str, m: &HashMap<String, String>) -> Result<Value, String> { AienRuntimeClient::default_client().shutdown().await?; Ok(json!({"step": "S7", "shutdown": true})) } + // NEXT-PHASE-2 operator commands (ACCEPTANCE-v2 2.4-2.6). + "effects" => { + let rec = recall(vec![], None).await?; + let ledger = effects::Ledger::from_records(&rec.host).map_err(|r| r.to_string())?; + Ok(json!({"machine_id": rec.machine_id, "ledger": ledger.view()})) + } + "reconcile" => { + let declare = match m.get("declare") { + None => None, + Some(d) => Some(ReconcileDeclare { + intent: need(m, "intent")? + .parse() + .map_err(|e| format!("--intent: {e}"))?, + state: d.clone(), + approver: need(m, "approver")?.to_string(), + }), + }; + match send(ControlCommand::ComposeReconcile { declare }).await? { + ControlResponse::ComposeReconciled(r) => Ok(json!({"reconcile": r})), + other => Err(format!("unexpected response {other:?}")), + } + } + "stop" | "resume" | "revoke" => { + let authorization = if sub == "revoke" { + Some( + need(m, "authorization")? + .parse::<u64>() + .map_err(|e| format!("--authorization: {e}"))?, + ) + } else { + None + }; + match send(ControlCommand::ComposeControl { + action: sub.to_string(), + approver: need(m, "approver")?.to_string(), + authorization, + }) + .await? + { + ControlResponse::ComposeControlled(r) => Ok(json!({"control": r})), + other => Err(format!("unexpected response {other:?}")), + } + } "recover" => match send(ControlCommand::RecoverComposeHome).await? { ControlResponse::ComposeRecovered(r) => Ok(json!({"repair": r, "opens": r.opens})), other => Err(format!("unexpected response {other:?}")), }, other => Err(format!( - "unknown compose step {other:?} (remember, inspect, propose, authorize, execute, explain, recall, shutdown, recover)" + "unknown compose step {other:?} (remember, inspect, propose, authorize, execute, explain, recall, shutdown, recover, effects, reconcile, stop, resume, revoke)" )), } } @@ -414,8 +503,18 @@ pub async fn handle_compose_command(args: &[String]) { }; match out { Ok(mut v) => { - v["ok"] = json!(true); + // An effect step reports its state; only DONE is success. + let state = v.get("state").and_then(Value::as_str).map(str::to_string); + let ok = state.as_deref().is_none_or(|s| s == "DONE"); + v["ok"] = json!(ok); println!("{v}"); + if !ok { + std::process::exit(if state.as_deref() == Some("UNRESOLVED") { + 3 + } else { + 1 + }); + } } Err(e) => { println!("{}", json!({"ok": false, "step": sub, "error": e})); @@ -423,3 +522,32 @@ pub async fn handle_compose_command(args: &[String]) { } } } + +/// Test builds only (cargo feature `fault-hold`, ACCEPTANCE-v2 2.9): stop at +/// the named point when `AIEN_FAULT_HOLD` names it, until the harness deletes +/// `AIEN_FAULT_HOLD_FILE`. The default build compiles this to nothing. +#[cfg(feature = "fault-hold")] +fn fault_hold(point: &str) { + if std::env::var("AIEN_FAULT_HOLD").as_deref() != Ok(point) { + return; + } + let Ok(file) = std::env::var("AIEN_FAULT_HOLD_FILE") else { + eprintln!("AIEN_FAULT_HOLD={point} without AIEN_FAULT_HOLD_FILE"); + std::process::exit(86); + }; + if let Err(e) = std::fs::write(&file, format!("{} {point}\n", std::process::id())) { + eprintln!("fault hold {point}: write {file}: {e}"); + std::process::exit(86); + } + let t0 = std::time::Instant::now(); + while Path::new(&file).exists() { + if t0.elapsed() > std::time::Duration::from_secs(300) { + eprintln!("fault hold {point}: not released in 300 s"); + std::process::exit(86); + } + std::thread::sleep(std::time::Duration::from_millis(10)); + } +} + +#[cfg(not(feature = "fault-hold"))] +fn fault_hold(_point: &str) {} diff --git a/crates/aien-runtime/src/control.rs b/crates/aien-runtime/src/control.rs index 93ccee31..7a9ad51f 100644 --- a/crates/aien-runtime/src/control.rs +++ b/crates/aien-runtime/src/control.rs @@ -88,6 +88,43 @@ pub enum ControlCommand { /// (torn journal tail, or a journal behind its J-Space anchor). Closes this /// process's handle first; the cut is recorded in the journal. RecoverComposeHome, + /// NEXT-PHASE-2: the effect-boundary checks and the durable intent, in one + /// step (ACCEPTANCE-v2 2.1, 2.3). Answered with `ComposeNoted` (the intent). + ComposeEffectIntent { + authorization: u64, + proposal_sha256: String, + path: String, + target: String, + content_sha256: String, + executor_pid: u32, + executor_start: u64, + }, + /// NEXT-PHASE-2: the executor's report after the write; the daemon records + /// the state it reads from the world. Answered with `ComposeNoted`. + ComposeEffectAck { + intent: u64, + reported: serde_json::Value, + }, + /// NEXT-PHASE-2: reconcile unsettled effects, or record one operator + /// declaration (ACCEPTANCE-v2 2.4). + ComposeReconcile { + declare: Option<ReconcileDeclare>, + }, + /// NEXT-PHASE-2: operator `stop`, `resume`, `revoke` (ACCEPTANCE-v2 2.5, 2.6). + ComposeControl { + action: String, + approver: String, + authorization: Option<u64>, + }, +} + +/// An operator's decision for one unsettled effect. +#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] +pub struct ReconcileDeclare { + pub intent: u64, + /// "done" or "not_done". + pub state: String, + pub approver: String, } #[derive(Debug, Clone, Serialize, Deserialize)] @@ -137,6 +174,10 @@ pub enum ControlResponse { ComposeRecalled(Box<ComposeRecallReport>), /// Result of `RecoverComposeHome`. ComposeRecovered(Box<ComposeRecoverReport>), + /// Result of `ComposeReconcile`. + ComposeReconciled(Box<ComposeReconcileReport>), + /// Result of `ComposeControl`. + ComposeControlled(Box<ComposeControlReport>), Error(String), } @@ -162,16 +203,30 @@ impl Default for RuntimeController { } impl RuntimeController { + /// Panics when the state file exists but is damaged (see [`Self::load`]); + /// the daemon calls `load` first and refuses to start instead. pub fn new() -> Self { - let mut processed_operations = HashSet::new(); - if let Ok(bytes) = std::fs::read(operations_state_path()) { - if let Ok(ids) = serde_json::from_slice::<Vec<u128>>(&bytes) { - processed_operations.extend(ids); - } - } - Self { - processed_operations, - } + Self::load().unwrap_or_else(|e| panic!("{e}")) + } + + /// Loads the persisted operation ids. An absent file is an empty set; a + /// file that cannot be read or parsed is an error (NEXT-PHASE-2, + /// ACCEPTANCE-v2 2.8): idempotency state is never reset silently. + pub fn load() -> Result<Self, String> { + let path = operations_state_path(); + let ids = match std::fs::read(&path) { + Err(e) if e.kind() == std::io::ErrorKind::NotFound => Vec::new(), + Err(e) => return Err(format!("idempotency state {}: {e}", path.display())), + Ok(bytes) => serde_json::from_slice::<Vec<u128>>(&bytes).map_err(|e| { + format!( + "idempotency state {} is damaged ({e}); refusing to start rather than forget processed operations", + path.display() + ) + })?, + }; + Ok(Self { + processed_operations: ids.into_iter().collect(), + }) } pub fn is_operation_processed(&self, op_id: u128) -> bool { @@ -220,6 +275,15 @@ mod tests { ); } + // NEXT-PHASE-2: a damaged state file is refused, never reset. + std::fs::write(dir.join("processed_operations.json"), b"{").unwrap(); + let err = RuntimeController::load() + .err() + .expect("damaged state must be refused"); + assert!(err.contains("is damaged"), "{err}"); + std::fs::write(dir.join("processed_operations.json"), b"[1, 2").unwrap(); + assert!(RuntimeController::load().is_err()); + let _ = std::fs::remove_dir_all(&dir); } @@ -373,3 +437,35 @@ pub struct ComposeRecoverReport { pub rolled_back: u32, pub recovered_completed: u32, } + +/// One unsettled effect as `ComposeReconcile` left it. +#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] +pub struct ReconcileOutcome { + pub intent: u64, + pub authorization: u64, + /// OPEN, DONE, NOT_DONE or UNRESOLVED. + pub state: String, + pub disk_sha256: Option<String>, + /// The reconcile record appended (None: nothing recorded this time). + pub record: Option<u64>, + /// Who decided, or why nothing was decided. + pub note: String, +} + +#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] +pub struct ComposeReconcileReport { + pub compose_dir: String, + pub machine_id: String, + /// Unsettled intents looked at. + pub checked: u64, + pub outcomes: Vec<ReconcileOutcome>, +} + +#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] +pub struct ComposeControlReport { + pub action: String, + /// The control record appended (None: nothing recorded). + pub recorded: Option<ComposeNoteReport>, + /// For `revoke`: false when the grant was already spent or revoked. + pub revoked: Option<bool>, +} diff --git a/crates/aien-runtime/src/effects.rs b/crates/aien-runtime/src/effects.rs new file mode 100644 index 00000000..9c90ce8c --- /dev/null +++ b/crates/aien-runtime/src/effects.rs @@ -0,0 +1,1025 @@ +//! NEXT-PHASE-2: durable effect intents on the compose home's Cortex journal +//! (ACCEPTANCE-v2 section 2). +//! +//! An external effect (today: the S5 `write_file`) is bracketed by host +//! records of kind `effect`, text JSON with a `phase` field: +//! +//! intent appended by the daemon, durable (Cortex `CX_OPEN_SYNC`) +//! BEFORE the executor touches the world; one per authorization +//! ack appended after the write; its state is read from the world +//! reconcile appended later (daemon start, operator request, operator +//! declaration) for an intent that never got a terminal state +//! +//! States: OPEN (intent, nothing after it), DONE, NOT_DONE, UNRESOLVED. +//! The world decides: target digest = content digest -> DONE, = the digest +//! the operator authorized against (`prior_sha256`) -> NOT_DONE, else +//! UNRESOLVED. An effect is never re-run by this module; a retry after +//! NOT_DONE needs a new authorization. +//! +//! Operator control records (kind `authorization`, text with `control`): +//! `stop`, `resume`, `revoke`. A stop is durable; a grant older than the +//! newest stop is stale forever. +//! +//! The ledger is rebuilt from the journal on every call, under the +//! compose-home lock, so the check and the intent append are one step. +use crate::control::{ + ComposeControlReport, ComposeNoteReport, ComposeReconcileReport, ComposeRecordView, + ControlResponse, ReconcileDeclare, ReconcileOutcome, +}; +use crate::spine::{record_view, ComposeBridge, ComposeHome}; +use aien_omega_compose::{hex, NoteKind}; +use serde_json::{json, Value}; +use sha2::{Digest, Sha256}; +use std::collections::BTreeMap; +use std::fmt; +use std::path::Path; + +pub const PHASE_INTENT: &str = "intent"; +pub const PHASE_ACK: &str = "ack"; +pub const PHASE_RECONCILE: &str = "reconcile"; +/// Host records the ledger reads in one recall; more is refused, not truncated. +const HOST_RECALL_MAX: u32 = 4096; + +#[derive(Debug, Clone, Copy, PartialEq, Eq)] +pub enum EffectState { + Open, + Done, + NotDone, + Unresolved, +} + +impl EffectState { + pub fn name(self) -> &'static str { + match self { + Self::Open => "OPEN", + Self::Done => "DONE", + Self::NotDone => "NOT_DONE", + Self::Unresolved => "UNRESOLVED", + } + } + fn parse(s: &str) -> Option<Self> { + match s { + "DONE" => Some(Self::Done), + "NOT_DONE" => Some(Self::NotDone), + "UNRESOLVED" => Some(Self::Unresolved), + _ => None, + } + } + pub fn terminal(self) -> bool { + matches!(self, Self::Done | Self::NotDone) + } +} + +/// A named refusal at the effect boundary (`EFFECT_REFUSED <name>: detail`). +#[derive(Debug, Clone, PartialEq, Eq)] +pub struct Refusal { + pub name: &'static str, + pub detail: String, +} + +impl Refusal { + fn new(name: &'static str, detail: impl Into<String>) -> Self { + Self { + name, + detail: detail.into(), + } + } +} + +impl fmt::Display for Refusal { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { + write!(f, "EFFECT_REFUSED {}: {}", self.name, self.detail) + } +} + +/// One authorization record, as the ledger reads it. +#[derive(Debug, Clone, PartialEq, Eq)] +pub struct Grant { + pub id: u64, + pub proposal_sha256: String, + pub path: String, + pub content_sha256: String, + /// Absolute target (absent in grants written before NEXT-PHASE-2). + pub target: Option<String>, + /// `Some(None)`: authorized against an absent target. `None`: the grant + /// predates NEXT-PHASE-2 and names no prior state (always stale). + pub prior_sha256: Option<Option<String>>, +} + +/// What an executor asks for before it touches the world. +#[derive(Debug, Clone, PartialEq, Eq)] +pub struct IntentRequest { + pub authorization: u64, + pub proposal_sha256: String, + pub path: String, + pub target: String, + pub content_sha256: String, + pub executor_pid: u32, + pub executor_start: u64, +} + +#[derive(Debug, Clone, PartialEq, Eq)] +pub struct IntentRow { + pub id: u64, + pub authorization: u64, + pub path: String, + pub target: String, + pub content_sha256: String, + pub prior_sha256: Option<String>, + pub executor_pid: u32, + pub executor_start: u64, + pub state: EffectState, + /// Record that set `state` (0 while OPEN). + pub state_record: u64, + /// Target digest of the newest UNRESOLVED record (so one is written per + /// distinct digest, not one per daemon start). + pub unresolved_digest: Option<Option<String>>, +} + +/// The effect ledger of one compose home, rebuilt from its host records. +#[derive(Debug, Default, Clone)] +pub struct Ledger { + pub grants: BTreeMap<u64, Grant>, + pub intents: BTreeMap<u64, IntentRow>, + /// authorization id -> intent id (one intent per authorization). + pub spent: BTreeMap<u64, u64>, + /// authorization id -> legacy (pre-NEXT-PHASE-2) write_file effect record. + pub legacy_spent: BTreeMap<u64, u64>, + /// authorization id -> revoke record. + pub revoked: BTreeMap<u64, u64>, + pub stops: Vec<u64>, + pub resumes: Vec<u64>, +} + +fn corrupt(id: u64, why: impl fmt::Display) -> Refusal { + Refusal::new("CorruptLedger", format!("host record #{id}: {why}")) +} + +fn s(v: &Value, k: &str, id: u64) -> Result<String, Refusal> { + v.get(k) + .and_then(Value::as_str) + .map(str::to_string) + .ok_or_else(|| corrupt(id, format!("field {k:?} missing or not a string"))) +} + +fn u(v: &Value, k: &str, id: u64) -> Result<u64, Refusal> { + v.get(k) + .and_then(Value::as_u64) + .ok_or_else(|| corrupt(id, format!("field {k:?} missing or not a number"))) +} + +/// `null` -> Some(None), "hex" -> Some(Some), missing -> None. +fn opt_digest(v: &Value, k: &str, id: u64) -> Result<Option<Option<String>>, Refusal> { + match v.get(k) { + None => Ok(None), + Some(Value::Null) => Ok(Some(None)), + Some(Value::String(x)) => Ok(Some(Some(x.clone()))), + Some(_) => Err(corrupt(id, format!("field {k:?} is not a digest or null"))), + } +} + +impl Ledger { + /// Rebuild from host records, oldest first. Any unverified record, or a + /// gated record that does not parse, refuses the whole ledger: effects + /// are never decided on damaged state. + pub fn from_records(host: &[ComposeRecordView]) -> Result<Self, Refusal> { + let mut l = Ledger::default(); + for r in host { + if !r.verified { + return Err(corrupt(r.id, "digest does not verify")); + } + let Some(text) = r.text.as_deref() else { + continue; + }; + match r.note.as_deref() { + Some("authorization") => l.read_authorization(r.id, text)?, + Some("effect") => l.read_effect(r.id, text)?, + _ => {} + } + } + Ok(l) + } + + fn read_authorization(&mut self, id: u64, text: &str) -> Result<(), Refusal> { + let v: Value = match serde_json::from_str(text) { + Ok(v) => v, + // An authorization that is not JSON authorizes nothing. + Err(_) => return Ok(()), + }; + if let Some(c) = v.get("control") { + match c.as_str() { + Some("stop") => self.stops.push(id), + Some("resume") => self.resumes.push(id), + Some("revoke") => { + let a = u(&v, "authorization", id)?; + self.revoked.entry(a).or_insert(id); + } + _ => return Err(corrupt(id, "unknown control record")), + } + return Ok(()); + } + let (Some(p), Some(path), Some(c)) = ( + v.get("proposal_sha256").and_then(Value::as_str), + v.get("path").and_then(Value::as_str), + v.get("content_sha256").and_then(Value::as_str), + ) else { + return Ok(()); + }; + self.grants.insert( + id, + Grant { + id, + proposal_sha256: p.to_string(), + path: path.to_string(), + content_sha256: c.to_string(), + target: v.get("target").and_then(Value::as_str).map(str::to_string), + prior_sha256: opt_digest(&v, "prior_sha256", id)?, + }, + ); + Ok(()) + } + + fn read_effect(&mut self, id: u64, text: &str) -> Result<(), Refusal> { + let Ok(v) = serde_json::from_str::<Value>(text) else { + return Ok(()); + }; + let Some(phase) = v.get("phase") else { + // NEXT-PHASE-1 effect notes: a write_file spends its authorization. + if v.get("tool").and_then(Value::as_str) == Some("write_file") { + if let Some(a) = v.get("authorization").and_then(Value::as_u64) { + self.legacy_spent.entry(a).or_insert(id); + } + } + return Ok(()); + }; + match phase.as_str() { + Some(PHASE_INTENT) => { + let a = u(&v, "authorization", id)?; + if let Some(prev) = self.spent.get(&a) { + return Err(corrupt( + id, + format!("second intent for authorization #{a} (first #{prev})"), + )); + } + let ex = v.get("executor").cloned().unwrap_or(Value::Null); + let row = IntentRow { + id, + authorization: a, + path: s(&v, "path", id)?, + target: s(&v, "target", id)?, + content_sha256: s(&v, "content_sha256", id)?, + prior_sha256: opt_digest(&v, "prior_sha256", id)? + .ok_or_else(|| corrupt(id, "intent without prior_sha256"))?, + executor_pid: u(&ex, "pid", id)? as u32, + executor_start: u(&ex, "start", id)?, + state: EffectState::Open, + state_record: 0, + unresolved_digest: None, + }; + self.spent.insert(a, id); + self.intents.insert(id, row); + } + Some(PHASE_ACK) | Some(PHASE_RECONCILE) => { + let i = u(&v, "intent", id)?; + let st = EffectState::parse(&s(&v, "state", id)?) + .ok_or_else(|| corrupt(id, "unknown effect state"))?; + let disk = opt_digest(&v, "disk_sha256", id)?.unwrap_or(None); + let row = self + .intents + .get_mut(&i) + .ok_or_else(|| corrupt(id, format!("names intent #{i}, which is not one")))?; + if row.state.terminal() { + return Err(corrupt( + id, + format!( + "intent #{i} already {} by #{}", + row.state.name(), + row.state_record + ), + )); + } + row.state = st; + row.state_record = id; + if st == EffectState::Unresolved { + row.unresolved_digest = Some(disk); + } + } + _ => return Err(corrupt(id, "unknown effect phase")), + } + Ok(()) + } + + /// True while the newest stop/resume record is a stop. + pub fn stopped(&self) -> Option<u64> { + let stop = self.stops.last().copied()?; + match self.resumes.last() { + Some(&r) if r > stop => None, + _ => Some(stop), + } + } + + /// The effect-boundary check (ACCEPTANCE-v2 2.3). `current` is the + /// target's digest now (None = absent). + pub fn check_intent( + &self, + req: &IntentRequest, + current: &Option<String>, + ) -> Result<&Grant, Refusal> { + let a = req.authorization; + if let Some(stop) = self.stopped() { + return Err(Refusal::new( + "Stopped", + format!("operator stop #{stop} is in force; resume needs an authorized operator"), + )); + } + let g = self.grants.get(&a).ok_or_else(|| { + Refusal::new( + "NotAuthorized", + format!("cortex.cx#{a} is not a verified authorization"), + ) + })?; + if g.proposal_sha256 != req.proposal_sha256 + || g.path != req.path + || g.content_sha256 != req.content_sha256 + { + return Err(Refusal::new( + "NotAuthorized", + format!("authorization #{a} names a different proposal"), + )); + } + if let Some(&i) = self.spent.get(&a) { + let row = &self.intents[&i]; + return Err(if row.state.terminal() { + Refusal::new( + "AlreadySpent", + format!( + "authorization #{a} was spent by intent #{i} ({}); a new effect needs a new authorization", + row.state.name() + ), + ) + } else { + Refusal::new( + "ReconciliationRequired", + format!( + "intent #{i} for authorization #{a} is {}; run aien compose reconcile", + row.state.name() + ), + ) + }); + } + if let Some(&e) = self.legacy_spent.get(&a) { + return Err(Refusal::new( + "AlreadySpent", + format!("authorization #{a} was spent by effect #{e} (NEXT-PHASE-1 record)"), + )); + } + if let Some(&r) = self.revoked.get(&a) { + return Err(Refusal::new( + "Revoked", + format!("authorization #{a} revoked by #{r}"), + )); + } + if let Some(&stop) = self.stops.iter().rev().find(|&&x| x > a) { + return Err(Refusal::new( + "Stale", + format!("authorization #{a} predates operator stop #{stop}"), + )); + } + let (Some(target), Some(prior)) = (&g.target, &g.prior_sha256) else { + return Err(Refusal::new( + "Stale", + format!("authorization #{a} names no target state (written before effect intents)"), + )); + }; + if target != &req.target { + return Err(Refusal::new( + "NotAuthorized", + format!( + "authorization #{a} names target {target}, not {}", + req.target + ), + )); + } + if prior != current { + return Err(Refusal::new( + "Stale", + format!( + "target changed since authorization #{a} (authorized against {}, now {})", + prior.as_deref().unwrap_or("absent"), + current.as_deref().unwrap_or("absent") + ), + )); + } + Ok(g) + } + + /// Intents without a terminal state, oldest first. + pub fn unsettled(&self) -> impl Iterator<Item = &IntentRow> { + self.intents.values().filter(|r| !r.state.terminal()) + } + + /// One JSON row per intent, for `aien compose effects`. + pub fn view(&self) -> Value { + json!({ + "stopped": self.stopped(), + "stops": self.stops, "resumes": self.resumes, + "revoked": self.revoked.iter().map(|(a, r)| json!({"authorization": a, "record": r})).collect::<Vec<_>>(), + "legacy_spent": self.legacy_spent.iter().map(|(a, e)| json!({"authorization": a, "effect": e})).collect::<Vec<_>>(), + "intents": self.intents.values().map(|r| json!({ + "intent": r.id, "authorization": r.authorization, "path": r.path, + "target": r.target, "content_sha256": r.content_sha256, + "prior_sha256": r.prior_sha256, "state": r.state.name(), + "state_record": r.state_record, + "executor": {"pid": r.executor_pid, "start": r.executor_start}, + })).collect::<Vec<_>>(), + }) + } +} + +/// sha256 of a file's bytes, None when it does not exist. Anything else +/// that is not a readable regular file is an error. +pub fn file_sha256(path: &Path) -> Result<Option<String>, String> { + match std::fs::symlink_metadata(path) { + Err(e) if e.kind() == std::io::ErrorKind::NotFound => return Ok(None), + Err(e) => return Err(format!("stat {}: {e}", path.display())), + Ok(m) if !m.file_type().is_file() => { + return Err(format!("{} is not a regular file", path.display())) + } + Ok(_) => {} + } + let b = std::fs::read(path).map_err(|e| format!("read {}: {e}", path.display()))?; + Ok(Some(hex(&Sha256::digest(&b)))) +} + +/// The world check of ACCEPTANCE-v2 2.2. Returns the state and the digest seen. +pub fn world_state(row: &IntentRow) -> (EffectState, Result<Option<String>, String>) { + let now = file_sha256(Path::new(&row.target)); + let st = match &now { + Ok(Some(d)) if *d == row.content_sha256 => EffectState::Done, + Ok(d) if *d == row.prior_sha256 => EffectState::NotDone, + _ => EffectState::Unresolved, + }; + (st, now) +} + +/// Start time of a process (clock ticks since boot, /proc/<pid>/stat field 22). +pub fn process_start_ticks(pid: u32) -> Option<u64> { + let stat = std::fs::read_to_string(format!("/proc/{pid}/stat")).ok()?; + // Field 2 (comm) may hold spaces and parentheses: fields after the last ')'. + let rest = &stat[stat.rfind(')')? + 1..]; + rest.split_whitespace().nth(19)?.parse().ok() +} + +/// This process as an executor: (pid, start ticks). +pub fn self_executor() -> (u32, u64) { + let pid = std::process::id(); + (pid, process_start_ticks(pid).unwrap_or(0)) +} + +/// Is the executor that opened an intent still running? +pub fn executor_alive(pid: u32, start: u64) -> bool { + pid != 0 && start != 0 && process_start_ticks(pid) == Some(start) +} + +/// ComposeNote may not forge gated records (ACCEPTANCE-v2 2.7). +pub fn check_reserved_note(kind: &str, text: &str) -> Result<(), String> { + let Ok(v) = serde_json::from_str::<Value>(text) else { + return Ok(()); + }; + match kind { + "effect" if v.get("phase").is_some() => Err( + "ComposeNote: effect records with a \"phase\" are written only by the effect commands" + .into(), + ), + "authorization" if v.get("control").is_some() => { + Err("ComposeNote: control records are written only by ComposeControl".into()) + } + _ => Ok(()), + } +} + +fn ledger(home: &mut ComposeHome) -> Result<Ledger, String> { + let (recs, total) = home + .compose + .recall(aien_omega_compose::SUBJECT_HOST, HOST_RECALL_MAX) + .map_err(|e| format!("effect ledger: host records: {e}"))?; + if total > recs.len() as u64 { + return Err(format!( + "{}", + Refusal::new( + "CorruptLedger", + format!("{total} host records exceed the ledger's {HOST_RECALL_MAX}") + ) + )); + } + let views: Vec<ComposeRecordView> = recs + .iter() + .map(|r| record_view(&mut home.compose, r)) + .collect(); + Ledger::from_records(&views).map_err(|r| r.to_string()) +} + +fn append( + home: &mut ComposeHome, + kind: NoteKind, + links: &[u64], + text: &Value, +) -> Result<ComposeNoteReport, String> { + let text = text.to_string(); + let mut l = [0u64; 4]; + for (slot, &x) in l.iter_mut().zip(links.iter().filter(|&&x| x != 0)) { + *slot = x; + } + let id = home + .compose + .note(kind, l, text.as_bytes()) + .map_err(|e| format!("effect record: {e}"))?; + let rec = home + .compose + .record(id) + .map_err(|e| format!("effect record: re-read {id}: {e}"))?; + Ok(ComposeNoteReport { + machine_id: home.machine_id.clone(), + id, + kind: kind.name().to_string(), + digest: hex(&rec.digest), + text_sha256: hex(&Sha256::digest(text.as_bytes())), + links: l.iter().copied().filter(|&x| x != 0).collect(), + }) +} + +fn noted(r: Result<ComposeNoteReport, String>) -> ControlResponse { + match r { + Ok(n) => ControlResponse::ComposeNoted(n), + Err(e) => ControlResponse::Error(e), + } +} + +/// ComposeEffectIntent: every check of 2.3 and the durable intent, in one +/// step under the home lock. The answer's id is the intent. +pub fn open_intent(b: &ComposeBridge, req: &IntentRequest) -> ControlResponse { + noted(b.with_home(|home| { + let l = ledger(home)?; + let current = file_sha256(Path::new(&req.target)) + .map_err(|e| Refusal::new("Stale", format!("target unreadable: {e}")).to_string())?; + let g = l.check_intent(req, ¤t).map_err(|r| r.to_string())?; + let text = json!({ + "phase": PHASE_INTENT, "tool": "write_file", "authorization": g.id, + "proposal_sha256": req.proposal_sha256, "path": req.path, "target": req.target, + "content_sha256": req.content_sha256, "prior_sha256": current, + "executor": {"pid": req.executor_pid, "start": req.executor_start}, + }); + append(home, NoteKind::Effect, &[g.id], &text) + })) +} + +/// ComposeEffectAck: the executor's report after the write. The state is +/// read from the world; the executor's own claim is kept beside it. +pub fn ack(b: &ComposeBridge, intent: u64, reported: &Value) -> ControlResponse { + noted(b.with_home(|home| { + let l = ledger(home)?; + let row = l + .intents + .get(&intent) + .ok_or_else(|| format!("ComposeEffectAck: #{intent} is not an effect intent"))?; + if row.state.terminal() { + return Err(format!( + "ComposeEffectAck: intent #{intent} is already {} (record #{})", + row.state.name(), + row.state_record + )); + } + let (st, disk) = world_state(row); + let text = json!({ + "phase": PHASE_ACK, "intent": intent, "authorization": row.authorization, + "tool": "write_file", "path": row.path, "content_sha256": row.content_sha256, + "state": st.name(), "disk_sha256": disk.as_ref().ok().cloned().flatten(), + "disk_error": disk.as_ref().err(), "executor_reported": reported, + }); + append(home, NoteKind::Effect, &[intent, row.authorization], &text) + })) +} + +/// Reconcile every unsettled intent whose executor is gone, or record one +/// operator declaration. `by` names who decided ("reconcile@start", ...). +pub fn reconcile( + b: &ComposeBridge, + declare: Option<&ReconcileDeclare>, + by: &str, +) -> ControlResponse { + let r = b.with_home(|home| { + let l = ledger(home)?; + let mut out = Vec::new(); + let mut checked = 0u64; + let rows: Vec<IntentRow> = match declare { + Some(d) => { + let row = l + .intents + .get(&d.intent) + .ok_or_else(|| format!("reconcile: #{} is not an effect intent", d.intent))?; + if row.state.terminal() { + return Err(format!( + "reconcile: intent #{} is already {}", + d.intent, + row.state.name() + )); + } + vec![row.clone()] + } + None => l.unsettled().cloned().collect(), + }; + for row in rows { + checked += 1; + if executor_alive(row.executor_pid, row.executor_start) { + out.push(ReconcileOutcome { + intent: row.id, + authorization: row.authorization, + state: row.state.name().into(), + disk_sha256: None, + record: None, + note: format!( + "executor pid {} still running; not decided", + row.executor_pid + ), + }); + continue; + } + let (world, disk) = world_state(&row); + let disk_hex = disk.as_ref().ok().cloned().flatten(); + let (st, who) = match declare { + Some(d) => { + let st = match d.state.as_str() { + "done" | "DONE" => EffectState::Done, + "not_done" | "NOT_DONE" => EffectState::NotDone, + other => { + return Err(format!("reconcile: --declare {other:?} (done, not_done)")) + } + }; + if d.approver.trim().is_empty() { + return Err("reconcile: a declaration needs --approver".into()); + } + (st, format!("operator:{}", d.approver.trim())) + } + None => (world, by.to_string()), + }; + if st == EffectState::Unresolved && row.unresolved_digest.as_ref() == Some(&disk_hex) { + out.push(ReconcileOutcome { + intent: row.id, + authorization: row.authorization, + state: st.name().into(), + disk_sha256: disk_hex, + record: None, + note: "still UNRESOLVED, already recorded for this target digest".into(), + }); + continue; + } + let text = json!({ + "phase": PHASE_RECONCILE, "intent": row.id, "authorization": row.authorization, + "state": st.name(), "world": world.name(), "disk_sha256": disk_hex, + "disk_error": disk.as_ref().err(), "by": who, + }); + let n = append(home, NoteKind::Effect, &[row.id, row.authorization], &text)?; + out.push(ReconcileOutcome { + intent: row.id, + authorization: row.authorization, + state: st.name().into(), + disk_sha256: disk_hex, + record: Some(n.id), + note: who, + }); + } + Ok(ComposeReconcileReport { + compose_dir: b.dir().display().to_string(), + machine_id: home.machine_id.clone(), + checked, + outcomes: out, + }) + }); + match r { + Ok(r) => ControlResponse::ComposeReconciled(Box::new(r)), + Err(e) => ControlResponse::Error(e), + } +} + +/// ComposeControl: stop, resume, revoke (ACCEPTANCE-v2 2.5, 2.6). +pub fn control( + b: &ComposeBridge, + action: &str, + approver: &str, + authorization: Option<u64>, +) -> ControlResponse { + let r = b.with_home(|home| { + if approver.trim().is_empty() { + return Err(format!("ComposeControl {action}: --approver is required")); + } + let l = ledger(home)?; + let (text, links, revoked) = match action { + "stop" | "resume" => ( + json!({"control": action, "approver": approver.trim()}), + vec![], + None, + ), + "revoke" => { + let a = + authorization.ok_or("ComposeControl revoke: --authorization is required")?; + if !l.grants.contains_key(&a) { + return Err(format!( + "ComposeControl revoke: #{a} is not an authorization" + )); + } + if l.spent.contains_key(&a) + || l.legacy_spent.contains_key(&a) + || l.revoked.contains_key(&a) + { + // Spent (or already revoked): nothing to revoke, nothing recorded. + return Ok(ComposeControlReport { + action: action.into(), + recorded: None, + revoked: Some(false), + }); + } + ( + json!({"control": "revoke", "authorization": a, "approver": approver.trim()}), + vec![a], + Some(true), + ) + } + other => { + return Err(format!( + "ComposeControl: action {other:?} (stop, resume, revoke)" + )) + } + }; + let n = append(home, NoteKind::Authorization, &links, &text)?; + Ok(ComposeControlReport { + action: action.into(), + recorded: Some(n), + revoked, + }) + }); + match r { + Ok(r) => ControlResponse::ComposeControlled(Box::new(r)), + Err(e) => ControlResponse::Error(e), + } +} + +/// Daemon start: reconcile an existing home once; one line for the log. +pub fn reconcile_at_start(b: &ComposeBridge) -> String { + if !b.dir().join("cortex.cx").exists() { + return "Reconcile: no compose home yet".into(); + } + match reconcile(b, None, "reconcile@start") { + ControlResponse::ComposeReconciled(r) => { + let n = |st: &str| { + r.outcomes + .iter() + .filter(|o| o.state == st && o.record.is_some()) + .count() + }; + let pending = r.outcomes.iter().filter(|o| o.record.is_none()).count(); + format!( + "Reconcile: checked {} unsettled effect(s): DONE {}, NOT_DONE {}, UNRESOLVED {} recorded, {} left as they were; {}", + r.checked, + n("DONE"), + n("NOT_DONE"), + n("UNRESOLVED"), + pending, + serde_json::to_string(&r.outcomes).unwrap_or_default() + ) + } + ControlResponse::Error(e) => format!("Reconcile: refused: {e}"), + other => format!("Reconcile: unexpected {other:?}"), + } +} + +#[cfg(test)] +mod tests { + use super::*; + + fn rec(id: u64, note: &str, text: Value) -> ComposeRecordView { + ComposeRecordView { + id, + cls: 0, + kind: 0, + subject: 0, + tag: 0, + links: vec![], + digest: String::new(), + verified: true, + note: Some(note.into()), + text: Some(text.to_string()), + } + } + + fn grant(id: u64, prior: Value) -> ComposeRecordView { + rec( + id, + "authorization", + json!({"proposal_sha256": "p", "path": "N.md", "content_sha256": "c", + "approver": "drake", "target": "/w/N.md", "prior_sha256": prior}), + ) + } + + fn req(a: u64) -> IntentRequest { + IntentRequest { + authorization: a, + proposal_sha256: "p".into(), + path: "N.md".into(), + target: "/w/N.md".into(), + content_sha256: "c".into(), + executor_pid: 1, + executor_start: 1, + } + } + + fn intent(id: u64, a: u64) -> ComposeRecordView { + rec( + id, + "effect", + json!({"phase": "intent", "tool": "write_file", "authorization": a, "path": "N.md", + "target": "/w/N.md", "content_sha256": "c", "prior_sha256": null, + "proposal_sha256": "p", "executor": {"pid": 1, "start": 1}}), + ) + } + + fn settle(id: u64, phase: &str, i: u64, st: &str) -> ComposeRecordView { + rec( + id, + "effect", + json!({"phase": phase, "intent": i, "state": st, "disk_sha256": null}), + ) + } + + fn refusal(l: &Ledger, a: u64, cur: Option<&str>) -> &'static str { + l.check_intent(&req(a), &cur.map(str::to_string)) + .unwrap_err() + .name + } + + #[test] + fn fresh_grant_opens_once() { + let l = Ledger::from_records(&[grant(2, Value::Null)]).unwrap(); + assert_eq!(l.check_intent(&req(2), &None).unwrap().id, 2); + let l = Ledger::from_records(&[grant(2, Value::Null), intent(3, 2)]).unwrap(); + assert_eq!(refusal(&l, 2, None), "ReconciliationRequired"); + } + + #[test] + fn terminal_states_spend_the_grant() { + for st in ["DONE", "NOT_DONE"] { + let l = Ledger::from_records(&[ + grant(2, Value::Null), + intent(3, 2), + settle(4, "ack", 3, st), + ]) + .unwrap(); + assert_eq!(refusal(&l, 2, None), "AlreadySpent", "{st}"); + } + let l = Ledger::from_records(&[ + grant(2, Value::Null), + intent(3, 2), + settle(4, "reconcile", 3, "UNRESOLVED"), + ]) + .unwrap(); + assert_eq!(refusal(&l, 2, None), "ReconciliationRequired"); + assert_eq!(l.intents[&3].unresolved_digest, Some(None)); + } + + #[test] + fn stop_resume_stale_and_revoke() { + let stop = rec( + 3, + "authorization", + json!({"control": "stop", "approver": "drake"}), + ); + let resume = rec( + 4, + "authorization", + json!({"control": "resume", "approver": "drake"}), + ); + let l = Ledger::from_records(&[grant(2, Value::Null), stop.clone()]).unwrap(); + assert_eq!(refusal(&l, 2, None), "Stopped"); + let l = + Ledger::from_records(&[grant(2, Value::Null), stop.clone(), resume.clone()]).unwrap(); + assert_eq!(refusal(&l, 2, None), "Stale"); + let l = Ledger::from_records(&[grant(2, Value::Null), stop, resume, grant(5, Value::Null)]) + .unwrap(); + assert!(l.check_intent(&req(5), &None).is_ok()); + let revoke = rec( + 3, + "authorization", + json!({"control": "revoke", "authorization": 2, "approver": "d"}), + ); + let l = Ledger::from_records(&[grant(2, Value::Null), revoke]).unwrap(); + assert_eq!(refusal(&l, 2, None), "Revoked"); + } + + #[test] + fn world_change_and_legacy_grants_are_stale() { + let l = Ledger::from_records(&[grant(2, Value::Null)]).unwrap(); + assert_eq!(refusal(&l, 2, Some("x")), "Stale"); + let legacy = rec( + 2, + "authorization", + json!({"proposal_sha256": "p", "path": "N.md", "content_sha256": "c", "approver": "d"}), + ); + let l = Ledger::from_records(&[legacy]).unwrap(); + assert_eq!(refusal(&l, 2, None), "Stale"); + let old = rec( + 3, + "effect", + json!({"tool": "write_file", "authorization": 2, "success": true}), + ); + let l = Ledger::from_records(&[grant(2, Value::Null), old]).unwrap(); + assert_eq!(refusal(&l, 2, None), "AlreadySpent"); + } + + #[test] + fn other_proposal_or_target_is_not_authorized() { + let l = Ledger::from_records(&[grant(2, Value::Null)]).unwrap(); + let mut r = req(2); + r.content_sha256 = "other".into(); + assert_eq!(l.check_intent(&r, &None).unwrap_err().name, "NotAuthorized"); + let mut r = req(2); + r.target = "/elsewhere".into(); + assert_eq!(l.check_intent(&r, &None).unwrap_err().name, "NotAuthorized"); + assert_eq!(refusal(&l, 9, None), "NotAuthorized"); + } + + #[test] + fn damaged_or_inconsistent_ledger_is_refused() { + let mut bad = grant(2, Value::Null); + bad.verified = false; + assert_eq!( + Ledger::from_records(&[bad]).unwrap_err().name, + "CorruptLedger" + ); + let two = [grant(2, Value::Null), intent(3, 2), intent(4, 2)]; + assert_eq!( + Ledger::from_records(&two).unwrap_err().name, + "CorruptLedger" + ); + let after = [ + grant(2, Value::Null), + intent(3, 2), + settle(4, "ack", 3, "DONE"), + settle(5, "reconcile", 3, "NOT_DONE"), + ]; + assert_eq!( + Ledger::from_records(&after).unwrap_err().name, + "CorruptLedger" + ); + let orphan = [settle(4, "ack", 3, "DONE")]; + assert_eq!( + Ledger::from_records(&orphan).unwrap_err().name, + "CorruptLedger" + ); + } + + #[test] + fn world_state_reads_the_target() { + let d = tempfile::tempdir().unwrap(); + let t = d.path().join("N.md"); + let c = hex(&Sha256::digest(b"new")); + let mut row = IntentRow { + id: 3, + authorization: 2, + path: "N.md".into(), + target: t.display().to_string(), + content_sha256: c.clone(), + prior_sha256: None, + executor_pid: 0, + executor_start: 0, + state: EffectState::Open, + state_record: 0, + unresolved_digest: None, + }; + assert_eq!(world_state(&row).0, EffectState::NotDone); + std::fs::write(&t, b"new").unwrap(); + assert_eq!(world_state(&row).0, EffectState::Done); + std::fs::write(&t, b"other").unwrap(); + assert_eq!(world_state(&row).0, EffectState::Unresolved); + row.prior_sha256 = Some(hex(&Sha256::digest(b"other"))); + assert_eq!(world_state(&row).0, EffectState::NotDone); + std::fs::remove_file(&t).unwrap(); + std::fs::create_dir(&t).unwrap(); + assert_eq!(world_state(&row).0, EffectState::Unresolved); + } + + #[test] + fn executor_liveness_uses_pid_and_start_time() { + let (pid, start) = self_executor(); + assert!(start > 0); + assert!(executor_alive(pid, start)); + assert!(!executor_alive(pid, start + 1)); + assert!(!executor_alive(0, 0)); + } + + #[test] + fn reserved_records_cannot_be_forged_through_compose_note() { + assert!(check_reserved_note("effect", r#"{"phase":"ack","intent":3}"#).is_err()); + assert!(check_reserved_note("authorization", r#"{"control":"resume"}"#).is_err()); + assert!(check_reserved_note("effect", r#"{"tool":"inspect"}"#).is_ok()); + assert!(check_reserved_note("constraint", "plain text").is_ok()); + } +} diff --git a/crates/aien-runtime/src/lib.rs b/crates/aien-runtime/src/lib.rs index a2642b7d..b7b7b27f 100644 --- a/crates/aien-runtime/src/lib.rs +++ b/crates/aien-runtime/src/lib.rs @@ -3,6 +3,7 @@ pub mod client; pub mod context; pub mod control; +pub mod effects; pub mod rsi; pub mod sequence; pub mod server; diff --git a/crates/aien-runtime/src/server.rs b/crates/aien-runtime/src/server.rs index 59c7fdde..375d8e20 100644 --- a/crates/aien-runtime/src/server.rs +++ b/crates/aien-runtime/src/server.rs @@ -177,6 +177,14 @@ impl AienRuntimeServer { None } }; + // NEXT-PHASE-2 (ACCEPTANCE-v2 2.4): settle effects a previous process + // left open, before serving anything. Reads the world, never re-runs. + if let Some(b) = compose.clone() { + let line = tokio::task::spawn_blocking(move || crate::effects::reconcile_at_start(&b)) + .await + .unwrap_or_else(|e| format!("Reconcile: failed: {e}")); + println!("{line}"); + } // Connection accept loop loop { @@ -558,13 +566,67 @@ async fn handle_connection( ref links, } => { let (k, t, l) = (kind.clone(), text.clone(), links.clone()); - Some(Box::new(move |b: &ComposeBridge| b.note(&k, &t, &l))) + // NEXT-PHASE-2: gated effect/control records cannot be forged here. + Some(Box::new( + move |b: &ComposeBridge| match crate::effects::check_reserved_note(&k, &t) { + Ok(()) => b.note(&k, &t, &l), + Err(e) => ControlResponse::Error(e), + }, + )) } ControlCommand::ComposeRecall { ref ids, prefix } => { let i = ids.clone(); Some(Box::new(move |b: &ComposeBridge| b.recall(&i, prefix))) } ControlCommand::RecoverComposeHome => Some(Box::new(|b: &ComposeBridge| b.recover())), + // NEXT-PHASE-2: effect intents, acks, reconcile, operator control. + ControlCommand::ComposeEffectIntent { + authorization, + ref proposal_sha256, + ref path, + ref target, + ref content_sha256, + executor_pid, + executor_start, + } => { + let req = crate::effects::IntentRequest { + authorization, + proposal_sha256: proposal_sha256.clone(), + path: path.clone(), + target: target.clone(), + content_sha256: content_sha256.clone(), + executor_pid, + executor_start, + }; + Some(Box::new(move |b: &ComposeBridge| { + crate::effects::open_intent(b, &req) + })) + } + ControlCommand::ComposeEffectAck { + intent, + ref reported, + } => { + let r = reported.clone(); + Some(Box::new(move |b: &ComposeBridge| { + crate::effects::ack(b, intent, &r) + })) + } + ControlCommand::ComposeReconcile { ref declare } => { + let d = declare.clone(); + Some(Box::new(move |b: &ComposeBridge| { + crate::effects::reconcile(b, d.as_ref(), "reconcile") + })) + } + ControlCommand::ComposeControl { + ref action, + ref approver, + authorization, + } => { + let (a, p) = (action.clone(), approver.clone()); + Some(Box::new(move |b: &ComposeBridge| { + crate::effects::control(b, &a, &p, authorization) + })) + } _ => None, }; if let Some(job) = compose_job { diff --git a/crates/aien-runtime/src/spine.rs b/crates/aien-runtime/src/spine.rs index f6a9c4d0..9b617580 100644 --- a/crates/aien-runtime/src/spine.rs +++ b/crates/aien-runtime/src/spine.rs @@ -411,7 +411,11 @@ impl AienRuntimeSpine { ControlCommand::RunComposeTask { .. } | ControlCommand::ComposeNote { .. } | ControlCommand::ComposeRecall { .. } - | ControlCommand::RecoverComposeHome => ControlResponse::Error( + | ControlCommand::RecoverComposeHome + | ControlCommand::ComposeEffectIntent { .. } + | ControlCommand::ComposeEffectAck { .. } + | ControlCommand::ComposeReconcile { .. } + | ControlCommand::ComposeControl { .. } => ControlResponse::Error( "compose commands are handled on the socket connection, not as one-shot commands" .into(), ), @@ -807,7 +811,10 @@ pub fn propose_with_retries( (Err(last_reason), attempts) } -fn record_view(compose: &mut Compose, r: &aien_omega_compose::Record) -> ComposeRecordView { +pub(crate) fn record_view( + compose: &mut Compose, + r: &aien_omega_compose::Record, +) -> ComposeRecordView { let host = r.subject == aien_omega_compose::SUBJECT_HOST; let note = if !host { None @@ -839,9 +846,9 @@ fn record_view(compose: &mut Compose, r: &aien_omega_compose::Record) -> Compose } } -struct ComposeHome { - compose: Compose, - machine_id: String, +pub(crate) struct ComposeHome { + pub(crate) compose: Compose, + pub(crate) machine_id: String, prompts: Arc<parking_lot::Mutex<HashMap<u64, String>>>, /// What the model Skill returned per task: the text, or why it gave /// none, and every attempt it made. @@ -1026,7 +1033,7 @@ impl ComposeBridge { }) } - fn with_home<T>( + pub(crate) fn with_home<T>( &self, f: impl FnOnce(&mut ComposeHome) -> Result<T, String>, ) -> Result<T, String> { diff --git a/crates/aien-runtime/tests/effects_test.rs b/crates/aien-runtime/tests/effects_test.rs new file mode 100644 index 00000000..939e7aa9 --- /dev/null +++ b/crates/aien-runtime/tests/effects_test.rs @@ -0,0 +1,244 @@ +//! NEXT-PHASE-2: durable effect intents, ack, reconcile, stop/resume and +//! revoke through the real compose home (ACCEPTANCE-v2 section 2). +//! +//! With librx_compose.a linked this drives the bridge exactly as the daemon +//! does (no socket); in a stub build it only checks the refusal. +use aien_omega_compose::hex; +use aien_runtime::control::{ + ComposeControlReport, ComposeNoteReport, ComposeReconcileReport, ControlResponse, + ReconcileDeclare, +}; +use aien_runtime::effects::{self, IntentRequest, Ledger}; +use aien_runtime::spine::{ComposeBridge, ComposeProposer, Generation}; +use serde_json::{json, Value}; +use sha2::{Digest, Sha256}; +use std::path::Path; +use std::sync::Arc; + +const PROPOSAL: &str = "filename: NOTES.md\nkeep every change inside the workspace\n"; +const CONTENT: &str = "keep every change inside the workspace\n"; + +fn proposer() -> ComposeProposer { + Arc::new(|_prompt: &str, _limit: std::time::Duration| { + Ok(Generation { + text: PROPOSAL.to_string(), + tokens: 8, + }) + }) +} + +fn sha(b: &[u8]) -> String { + hex(&Sha256::digest(b)) +} + +fn noted(r: ControlResponse) -> ComposeNoteReport { + match r { + ControlResponse::ComposeNoted(n) => n, + other => panic!("expected ComposeNoted, got {other:?}"), + } +} + +fn refused(r: ControlResponse, name: &str) { + match r { + ControlResponse::Error(e) => assert!( + e.starts_with(&format!("EFFECT_REFUSED {name}:")), + "want {name}, got {e}" + ), + other => panic!("want EFFECT_REFUSED {name}, got {other:?}"), + } +} + +fn reconciled(r: ControlResponse) -> ComposeReconcileReport { + match r { + ControlResponse::ComposeReconciled(r) => *r, + other => panic!("expected ComposeReconciled, got {other:?}"), + } +} + +fn controlled(r: ControlResponse) -> ComposeControlReport { + match r { + ControlResponse::ComposeControlled(r) => *r, + other => panic!("expected ComposeControlled, got {other:?}"), + } +} + +fn ledger(b: &ComposeBridge) -> Ledger { + match b.recall(&[], None) { + ControlResponse::ComposeRecalled(r) => Ledger::from_records(&r.host).unwrap(), + other => panic!("recall: {other:?}"), + } +} + +fn state(b: &ComposeBridge, record: u64) -> String { + match b.recall(&[record], None) { + ControlResponse::ComposeRecalled(r) => { + let t = r.cited[0].text.clone().unwrap(); + serde_json::from_str::<Value>(&t).unwrap()["state"] + .as_str() + .unwrap() + .to_string() + } + other => panic!("recall: {other:?}"), + } +} + +struct Fixture { + target: String, + psha: String, + csha: String, +} + +impl Fixture { + fn grant(&self, b: &ComposeBridge) -> u64 { + let prior = effects::file_sha256(Path::new(&self.target)).unwrap(); + let text = json!({"proposal_sha256": self.psha, "path": "NOTES.md", + "content_sha256": self.csha, "approver": "drake", "target": self.target, + "prior_sha256": prior}); + noted(b.note("authorization", &text.to_string(), &[])).id + } + + /// `alive`: this test process is the executor; otherwise a dead one. + fn req(&self, a: u64, alive: bool) -> IntentRequest { + let (pid, start) = if alive { + effects::self_executor() + } else { + (0, 0) + }; + IntentRequest { + authorization: a, + proposal_sha256: self.psha.clone(), + path: "NOTES.md".into(), + target: self.target.clone(), + content_sha256: self.csha.clone(), + executor_pid: pid, + executor_start: start, + } + } +} + +#[test] +fn effect_intents_are_at_most_once_or_unresolved() { + let tmp = tempfile::tempdir().unwrap(); + let home = tmp.path().join("compose"); + let ws = tmp.path().join("ws"); + std::fs::create_dir_all(&ws).unwrap(); + let b = ComposeBridge::new(home.clone(), proposer(), "test:fixed-proposer"); + let run = b.run_task("write the note", ws.to_str().unwrap()); + if !aien_omega_compose::LINKED { + assert!(matches!(run, ControlResponse::Error(_))); + return; + } + let report = match run { + ControlResponse::ComposeTaskResult(r) => *r, + other => panic!("run: {other:?}"), + }; + assert!(report.committed, "{report:?}"); + let f = Fixture { + target: ws.join("NOTES.md").display().to_string(), + psha: sha(PROPOSAL.as_bytes()), + csha: sha(CONTENT.as_bytes()), + }; + + // 1. Grant, intent, write, ack: DONE once; the grant is then spent. + let a1 = f.grant(&b); + let i1 = noted(effects::open_intent(&b, &f.req(a1, true))).id; + refused( + effects::open_intent(&b, &f.req(a1, true)), + "ReconciliationRequired", + ); + let r = reconciled(effects::reconcile(&b, None, "test")); + assert_eq!(r.outcomes.len(), 1); + assert!( + r.outcomes[0].record.is_none(), + "live executor is never decided" + ); + std::fs::write(&f.target, CONTENT).unwrap(); + let k1 = noted(effects::ack(&b, i1, &json!({"bytes": CONTENT.len()}))); + assert_eq!(state(&b, k1.id), "DONE"); + refused(effects::open_intent(&b, &f.req(a1, true)), "AlreadySpent"); + assert!(matches!( + effects::ack(&b, i1, &json!({})), + ControlResponse::Error(_) + )); + let c = controlled(effects::control(&b, "revoke", "drake", Some(a1))); + assert_eq!((c.revoked, c.recorded), (Some(false), None)); + + // 2. Executor died after the intent, before the write: NOT_DONE. + // (Target removed first: a grant against the content itself would read + // DONE, ACCEPTANCE-v2 2.2 checks the content digest first.) + std::fs::remove_file(&f.target).unwrap(); + let a2 = f.grant(&b); + let i2 = noted(effects::open_intent(&b, &f.req(a2, false))).id; + let r = reconciled(effects::reconcile(&b, None, "test")); + let o = r.outcomes.iter().find(|o| o.intent == i2).unwrap(); + assert_eq!(o.state, "NOT_DONE"); + assert!(o.record.is_some()); + refused(effects::open_intent(&b, &f.req(a2, true)), "AlreadySpent"); + + // 3. Ambiguous world: UNRESOLVED once per digest, then an operator decides. + let a3 = f.grant(&b); + let i3 = noted(effects::open_intent(&b, &f.req(a3, false))).id; + std::fs::write(&f.target, b"someone else\n").unwrap(); + let r = reconciled(effects::reconcile(&b, None, "test")); + assert_eq!(r.outcomes[0].state, "UNRESOLVED"); + assert!(r.outcomes[0].record.is_some()); + let r = reconciled(effects::reconcile(&b, None, "test")); + assert!( + r.outcomes[0].record.is_none(), + "same digest is not recorded twice" + ); + refused( + effects::open_intent(&b, &f.req(a3, true)), + "ReconciliationRequired", + ); + let d = ReconcileDeclare { + intent: i3, + state: "not_done".into(), + approver: "drake".into(), + }; + let r = reconciled(effects::reconcile(&b, Some(&d), "test")); + assert_eq!( + (r.outcomes[0].state.as_str(), r.outcomes[0].note.as_str()), + ("NOT_DONE", "operator:drake") + ); + assert!(matches!( + effects::reconcile(&b, Some(&d), "test"), + ControlResponse::Error(_) + )); + assert_eq!(std::fs::read(&f.target).unwrap(), b"someone else\n"); + + // 4. Stale world, revoke, stop and resume. + let a4 = f.grant(&b); + std::fs::write(&f.target, b"changed after the grant\n").unwrap(); + refused(effects::open_intent(&b, &f.req(a4, true)), "Stale"); + let a5 = f.grant(&b); + let c = controlled(effects::control(&b, "revoke", "drake", Some(a5))); + assert_eq!(c.revoked, Some(true)); + refused(effects::open_intent(&b, &f.req(a5, true)), "Revoked"); + let a6 = f.grant(&b); + controlled(effects::control(&b, "stop", "drake", None)); + refused(effects::open_intent(&b, &f.req(a6, true)), "Stopped"); + assert!(matches!( + effects::control(&b, "resume", " ", None), + ControlResponse::Error(_) + )); + controlled(effects::control(&b, "resume", "drake", None)); + refused(effects::open_intent(&b, &f.req(a6, true)), "Stale"); + let a7 = f.grant(&b); + let i7 = noted(effects::open_intent(&b, &f.req(a7, true))).id; + std::fs::write(&f.target, CONTENT).unwrap(); + assert_eq!( + state(&b, noted(effects::ack(&b, i7, &json!({}))).id), + "DONE" + ); + + // 5. Restart: the ledger is rebuilt from the journal, nothing is open, + // and the forged-record guard holds. + let before = ledger(&b).view(); + drop(b); + let b = ComposeBridge::new(home, proposer(), "test:fixed-proposer"); + let line = effects::reconcile_at_start(&b); + assert!(line.starts_with("Reconcile: checked 0"), "{line}"); + assert_eq!(ledger(&b).view(), before); + assert!(effects::check_reserved_note("effect", r#"{"phase":"ack","intent":1}"#).is_err()); +} diff --git a/docs/campaigns/next-phase-2/ACCEPTANCE-v2.md b/docs/campaigns/next-phase-2/ACCEPTANCE-v2.md new file mode 100644 index 00000000..825681dd --- /dev/null +++ b/docs/campaigns/next-phase-2/ACCEPTANCE-v2.md @@ -0,0 +1,179 @@ +# NEXT-PHASE-2: acceptance amendment v2 (frozen before any code of this cut) + +```text +campaign_id = "next-phase-2" +spec_version = 2 +amends = ACCEPTANCE.md spec_version 1 (cf34162, unchanged; this file supersedes it + where it says so, row by row) +status = FROZEN at the commit that adds this file. It is committed alone, before any + code of the cut. Later changes need ACCEPTANCE-v3.md. +base = sovereign-core main 96d97af (after #223); omega.lock 62b6a28 +``` + +Every claim below has a source (file:line at base 96d97af unless another repo is named) or +is marked UNVERIFIED. Omega paths are at 62b6a28. + +## 1. Assumptions in v1, checked against the code + +| # | v1 assumption | Finding | Evidence | +|---|---------------|---------|----------| +| A1 | The live S4/S5 effect path may not run through the aien-mcp broker (v1 6, 70%) | CONFIRMED: it does not. `aien-mcp` is a dependency of no other crate; the S5 write is a plain `std::fs::write` in the CLI process, not in the daemon | `grep -rn aien-mcp crates/*/Cargo.toml` hits only `crates/aien-mcp/Cargo.toml:2`; `crates/aien-cli/src/compose.rs:294` | +| A2 | The broker ledger is in memory only (v1 6, 75%) | CONFIRMED, and irrelevant to the live path (A1). `LedgerEntry::Uncertain` and `Error::ReconciliationRequired` exist only in the broker; there is no reconcile function | `crates/aien-mcp/src/broker.rs:35,55,203,415,469`; `grep -rn "fn reconcile" crates` empty | +| A3 | Effect state survives a daemon restart | PARTLY. The S5 effect record is a Cortex host note (`kind effect`), durable (Cortex opens with `CX_OPEN_SYNC`, one `fdatasync` per append), but it is written AFTER the write. No intent exists before the write, so a crash between the write and the note leaves no trace of the effect | `compose.rs:294` (write), `:302` (receipt), `:306` (note); omega `src/runtime/rx_compose.c:871`, `src/runtime/rx_cortex.c:198` | +| A4 | Reconciliation (`Uncertain` -> `ReconciliationRequired`) is reached on the live path | NOT PRESENT on the live path (A1, A2). A second `aien compose execute` with the same authorization writes again and appends a second effect note: nothing marks an authorization as spent | `compose.rs:262-311` (no spent check) | +| A5 | `processed_operations.json` gives idempotency on the effect path | NOT CONSULTED. Compose commands are answered in `handle_connection` before `handle_control_command`, the only caller of `is_operation_processed`. The client mints a fresh `operation_id` from the clock per call, so a retried logical step never repeats an id anyway. A corrupt file is silently discarded on load (idempotency reset without a word) | `crates/aien-runtime/src/server.rs:547-585`; `spine.rs:343-351`; `crates/aien-runtime/src/client.rs:65`; `control.rs:165-175` | +| A6 | Where AienMachineId and canonical Cortex memory live | Machine root: 32 random bytes in `<compose dir>.machine-root` (created once, 0600, refused if not 32 bytes). `machine.id`, `cortex.cx`, `jspace/` inside the compose dir, created and identity-checked by omega `rxc_host_open`; the daemon opens the home lazily on the first compose command | `spine.rs:552-585`, `:875-922`, `:976`, `:1038`; omega `src/runtime/rxc_host_abi.h:86,220-224` | +| A7 | No resume command exists (v1 F4, 70%) | CONFIRMED. `ControlCommand` has `Shutdown` and no resume or stop record; nothing durable says "stopped" | `control.rs:48-91` | +| A8 | Torn tail and anchor checks protect Cortex | CONFIRMED for a cut inside a record (`E_TORN`, nothing cut) and for a boundary cut inside the J-Space-anchored prefix (`E_REPLAY`). UNVERIFIED (60% that it is NOT caught): a boundary cut that drops only host notes appended after the last anchored run, because host notes are written "between runs" and the header does not say they move the anchor | omega `rxc_host_abi.h:42-56,58-62`; `spine.rs:596-611` | +| A9 | `AIEN_GPU_BACKEND=omega` / `AIEN_REQUIRE_BLACKWELL` refuse without the GPU engine | CONFIRMED for a build without the engine linked (fatal, exit 1). A GPU-linked build that loses the device at run time goes through `strict.rs`, fatal in a production build; not exercised here | `crates/aien-cli/src/commands.rs:1286-1317,1340-1346`; `crates/aien-inference-abi/src/omega_backend.rs:9-12` | +| A10 | `AIEN_FORCE_CPU_STUB` gives a CPU-only daemon | WRONG as stated: it stubs BOTH omega crates, so the compose home is unusable (`ComposeError::Unavailable`). A daemon that never touches the GPU but keeps the real compose library is built with the compose archive linked and no GPU archive (`AIEN_OMEGA_COMPOSE_DIR` set, `AIEN_OMEGA_DIR` and `AIEN_OMEGA_GPU_LIB` unset) | `crates/aien-omega-compose/build.rs:1-17,56`; `crates/aien-omega-gpu/build.rs:1-9,37` | +| A11 | Omega caproot `RX_OP_REVOKE` is reachable on the live effect path (v1 F5b) | NOT REACHABLE. No sovereign-core code names caproot or `CapabilityRef`; the operator effect is gated by Cortex authorization records only | `grep -rn "caproot\|CapabilityRef" crates` empty | +| A12 | Omega composition fault hooks for the in-settle variant (v1 F2) | Present only in `AIEN_TEST_BUILD` omega builds; `librx_compose.a` is built without them | omega `rxc_host_abi.h:64-65` | + +## 2. What this cut adds (the production behaviour the rows test) + +Named here so the rows below have something exact to check. Design rules, not code. + +1. **Effect intents in Cortex.** Every `write_file` effect goes through three host records, all + `kind effect`, text JSON with a `phase` field: `intent` (durable before the write; cites the + authorization; names target, content sha256, the target's sha256 at authorization time + `prior_sha256`, and the executor's pid and start time), then `ack` (after the write, state + decided by the daemon from the world, not from the executor's claim), or `reconcile` (state + decided later). The intent is appended by the daemon in one step under the compose-home lock + together with every check in 2.3, so two executors cannot both open an intent for one + authorization. +2. **Effect states.** `OPEN` (intent, no ack yet), `DONE`, `NOT_DONE`, `UNRESOLVED`. The world + check: target sha256 = content sha256 -> `DONE`; target sha256 = `prior_sha256` (absent = + absent) -> `NOT_DONE`; anything else -> `UNRESOLVED`. An `OPEN` intent whose executor process is + still alive (same pid and same start time in `/proc`) is never reconciled. +3. **Checks at the effect boundary** (refusal names, printed as `EFFECT_REFUSED <Name>`): + `Stopped` (an operator stop record is the newest of stop/resume), `NotAuthorized` (the cited + record is not a verified authorization for this exact proposal, path and content), `Revoked` + (a revoke record names it), `Stale` (a stop record is newer than the authorization, or the + target's current sha256 differs from the authorization's `prior_sha256`, or the authorization + predates this format and has no `prior_sha256`), `AlreadySpent` (an intent already cites this + authorization and is `DONE` or `NOT_DONE`), `ReconciliationRequired` (an intent already cites + it and is `OPEN` or `UNRESOLVED`), `CorruptLedger` (a host record fails its digest or an + effect/control record does not parse). One authorization opens at most one intent, ever. + A retry after `NOT_DONE` needs a new authorization. +4. **Reconcile.** Runs once at daemon start when the compose home already exists (result printed + as one `Reconcile:` line in the daemon log), and on operator request + (`aien compose reconcile`). It records `DONE` / `NOT_DONE`, or records `UNRESOLVED` once per + distinct target digest and keeps the effect open. Only an operator declaration + (`--declare done|not_done --approver NAME`) closes an `UNRESOLVED` effect that the world + cannot decide. A refused home is reported, never repaired, by this step. +5. **Operator stop and resume.** `aien compose stop --approver NAME` and + `aien compose resume --approver NAME` append control records (`kind authorization`, text with + `control`). The stop is durable across daemon restarts. Grants issued before a stop are stale + forever; resume needs a new authorization for any effect. +6. **Revoke.** `aien compose revoke --authorization ID --approver NAME` appends a revoke record + unless the authorization is already spent, in which case nothing is recorded and the answer is + `revoked: false` (same contract as `ApprovalDesk::revoke`, `crates/aien-mcp/src/approval.rs:119-128`). +7. **Reserved records.** `ComposeNote` refuses an `effect` text with a `phase` field and an + `authorization` text with a `control` field, so the gated records can only come from the gated + commands. +8. **Corrupt idempotency state.** A `processed_operations.json` that exists but does not parse + makes the daemon refuse to start with a named error, instead of the silent reset at + `control.rs:165-175`. +9. **Fault holds** (test build only). The CLI built with the cargo feature `fault-hold` stops at + a named point (`before_intent`, `after_intent`, `after_write`) when `AIEN_FAULT_HOLD` names it, + creates `AIEN_FAULT_HOLD_FILE` with its pid, and continues when the harness deletes that file. + The default build contains no fault code (checked: the string `AIEN_FAULT_HOLD` is absent from + the default release binary). + +Out of scope for this cut and therefore not claimed: moving the effect into the daemon or the +aien-mcp broker, caproot capabilities on the effect path (A11), omega in-settle crash hooks (A12). + +## 3. Rules for every run (supersede v1 section 3) + +- **R1 no unauthorized effect.** Every `intent` record cites an earlier verified authorization + record whose text matches the intent; the workspace changes only at the proposal path; the + outside sentinel is unchanged. +- **R2 no silent duplicate.** At most one `intent` per authorization; at most one `write_file` + receipt with `success: true` per authorization; the target's `stat` (inode, size, mtime ns, + ctime ns) is identical before and after every refused attempt. +- **R3 no false success.** A CLI line with `"ok": true` for `execute` only when its state is + `DONE`; a `write_file` receipt with `success: true` only when the daemon recorded the ack as + `DONE`; no receipt or record says `DONE` while the target digest differs from the content + digest. +- **R4 identity and memory.** `machine_id` reported before the fault equals the one after; + `machine.id` file sha256 unchanged; the prefix digest over records `1..N` (N = record count + before the fault) is equal before and after recovery. In case C6 R4 is replaced by the + detection rule of that case. +- **R5 unresolved stays unresolved.** An effect without a terminal record is listed `OPEN` or + `UNRESOLVED` by `aien compose effects`, and any execute citing its authorization is refused with + `ReconciliationRequired`, until a reconcile or operator declaration records a terminal state. +- Words not used: no receipt or document text claims exactly-once. The claim is at most one + application, or an explicit `UNRESOLVED`. + +## 4. Fixture, builds and controls (supersede v1 sections 1 and 3, last bullet) + +- **Builds** (same source commit, recorded in the receipt with each binary's sha256): + `gpu` = release build with both omega archives linked (as NEXT-PHASE-1); + `cpu-fault` = release build with the compose archive linked, no GPU archive, cargo feature + `fault-hold`. Every case below runs its daemon and CLI from `cpu-fault` and never touches the + GPU. Only the fixture run uses `gpu`. +- **Fixture F0.** One NEXT-PHASE-1 style run on the `gpu` build (TinyLlama on GB10, one daemon, + S0 provision, S1 remember, S2 inspect, S3 propose, then Shutdown), inside one quietlock hold of + at most 20 minutes with announce and release whispers. F0 is valid only if S3 committed a + proposal. Model quality is not scored. Each run of each case starts from a fresh byte copy of + F0 (compose dir, machine root, workspace, S3 report) in its own run root, with its own + `AIEN_PROVENANCE_DIR` and `AIEN_RUNTIME_STATE_DIR`. The sha256 of F0's file list is recorded. + If no GPU window is available, F0 is NOT_RUN and so is every case that needs it. +- **Uninjected control per case.** Same copy of F0, same commands, same build, no hold armed and + no injection: S4 authorize, S5 execute (expected `DONE`, one write), a second execute with the + same authorization (expected `AlreadySpent`, stat unchanged), daemon Shutdown and restart + (expected `Reconcile:` line with nothing open), recall (R4). A case is scored only if its + control passes R1..R5 and reaches `DONE`. +- **Repetitions.** Each injected variant runs 3 times; one rule violation in any repetition fails + the row. Controls run once per case. + +## 5. The cases (supersede v1 section 4) + +| Row | Injection (exact) | PASS iff (every rule in section 3 also holds) | +|-----|-------------------|-----------------------------------------------| +| C1a ack lost, world decides | Hold at `after_write`; SIGKILL the daemon; release the hold, so the executor's ack call fails; restart the daemon | executor prints `ok:false`, state `UNRESOLVED`, exit 3; its `write_file` receipt has `success:false`; the intent has no ack; the restart's `Reconcile:` records `DONE` with target digest = content digest; a retry with the same authorization is refused `AlreadySpent`; target written once (stat equal from the fault to the end) | +| C1b ack lost, world ambiguous | As C1a, and before the restart the harness overwrites the target with other bytes | restart records `UNRESOLVED` and keeps it open; retry refused `ReconciliationRequired`, stat unchanged; `aien compose reconcile --declare not_done --approver drake` records the terminal state; a retry afterwards is refused `AlreadySpent`; the harness bytes are never overwritten | +| C2a kill -9 before the durable commit | Hold at `before_intent`; SIGKILL the daemon; release | executor refuses (`ok:false`), no write, no intent record, record count unchanged; after restart the same authorization executes once to `DONE` | +| C2b kill -9 after the durable commit, executor dies | Hold at `after_intent`; SIGKILL the executor (daemon keeps running) | no write; retry refused `ReconciliationRequired`; `aien compose reconcile` records `NOT_DONE`; retry refused `AlreadySpent`; a new authorization executes once to `DONE` (approvals = 2, both counted) | +| C2c kill -9 after the durable commit, whole host | Hold at `after_intent`; SIGKILL the daemon, then the executor; restart | restart records `NOT_DONE`; no write; recall shows the intent and the reconcile record | +| C2d kill -9 after the write, executor dies | Hold at `after_write`; SIGKILL the executor | `aien compose reconcile` records `DONE`; retry refused `AlreadySpent`; written once | +| C3a GPU required, engine absent | Start the `cpu-fault` daemon with `AIEN_REQUIRE_BLACKWELL=1` on the F0 copy | daemon exits non-zero with the error naming the GB10 requirement; no socket; F0 copy byte-identical afterwards | +| C3b GPU absent, explicit CPU | Start the `cpu-fault` daemon without the requirement; run S3 propose on the F0 copy | daemon log `Backend:` names `CPU-reference`; S3 either commits or reports `committed:false` with a named reason; no output says GPU; no effect without authorization | +| C3 control | The F0 run itself | `gpu` daemon with `AIEN_REQUIRE_BLACKWELL=1` starts and names `OmegaGb10Backend` | +| C4 stop then resume | Authorize A1; `stop`; execute A1; Shutdown and restart; execute A1; `resume`; execute A1; authorize A2; execute A2 | the three A1 executes are refused `Stopped`, `Stopped`, `Stale`; zero writes until A2 (stat unchanged); A2 reaches `DONE`, written once | +| C5a revoked | Authorize A1; `revoke` A1 (`revoked:true`); execute A1 | refused `Revoked`; no write | +| C5b revoke after spend | Execute A1 to `DONE`; `revoke` A1 | `revoked:false`; no record appended (record count unchanged) | +| C5c stale world | Authorize A1; the harness writes other bytes to the target; execute A1 | refused `Stale`; harness bytes unchanged | +| C6 (each variant) damaged durable state | After a control run plus one extra authorization A2 of the same proposal (unspent), daemon stopped. Then one damage: (a) truncate `cortex.cx` inside its last record; (b) flip one byte inside the last record; (c) cut `cortex.cx` at the boundary before the last record; (d) truncate `jspace/jspace.data` by 1 byte; (e) flip one byte in `jspace/jspace.meta`; (f) truncate the machine root to 16 bytes; (g) flip one byte of `machine.id`; (h) write `{` into `processed_operations.json`. Start the daemon; run recall; run execute A2 | daemon refuses to start (h), or the start `Reconcile:` line and `recall` report a named refusal (`E_TORN`, `E_DIGEST`, `E_REPLAY`, `E_IDENTITY`, machine root length) and execute A2 is refused with no write; the damaged files' sha256 are unchanged by the daemon (no silent repair or reset); or the home opens only after an explicit `aien compose recover`, with a repair record. A variant that opens and recalls as if intact, or executes A2, FAILS | + +C6 note on (c): A8 says this may FAIL on the pinned omega; the row is scored as written. + +## 6. Verdicts (supersede v1 section 5) + +- Row verdict: PASS, FAIL, or NOT_RUN (could not be injected or its control failed). NOT_RUN is + never PASS. +- Declared NOT_PROVED (not rows, not counted, listed in the receipt): runtime loss of the GPU in a + GPU-linked build; omega in-settle crash hooks (A12); caproot revoke on the effect path (A11); + Cortex and J-Space rolled back together (omega known limit); torn writes below the file level. +- Campaign PASS = every row in section 5 PASS (C3 control included), F0 valid. Report only: wall + ms per step, daemon start ms. +- Receipt: `gate "NEXT_PHASE_2"`, fields `commit`, `omega_compose_commit`, `builds[] {name, + sha256}`, `fixture {sha256, s3_committed, machine_id}`, `rows[] {row, rep, injected_at, + outcome, evidence_digests[], verdict}`, `not_proved[]`, `verdict`; named by the sha256 of its + content, never edited, indexed in `INDEX.md`, with a `.summary.txt` beside it (NEXT-PHASE-1 + `make-receipt.sh` style). + +## 7. Resolution of every v1 PROPOSED item + +| v1 item | v2 resolution | +|---------|---------------| +| Clean S1..S8 baseline PASS as precondition | Replaced by the per-case control of section 4 on the effect path. S1..S8 model quality is out of scope (NEXT-PHASE-1 VERDICT-v4 already FAIL on output quality) | +| F4: 2 authorize receipts allowed only for stop-between-S4-S5 | Kept and generalised: every case that needs a second grant (C2b, C4) states it; all grants are counted | +| Campaign PASS = 6/6, 0 NOT_RUN | Section 6: all section 5 rows PASS; the NOT_PROVED list is fixed here and cannot grow without v3 | +| 3 repetitions per row | Kept for injected variants; controls once per case | +| F1 "fake sink withholds its ack" | Replaced by the real executor and a real daemon kill (C1a, C1b). No fake sink | +| F2 in-settle `RXC_FP_CORTEX` crash | NOT_PROVED (A12) | +| F3 `AIEN_FORCE_CPU_STUB=1` run | Replaced by the `cpu-fault` build (A10) | +| F4 stop during S3 | Dropped: S3 makes no external effect and needs the GPU; stop is tested at the effect boundary (C4) | +| F5b caproot revoke | NOT_PROVED (A11) | diff --git a/docs/campaigns/next-phase-2/INDEX.md b/docs/campaigns/next-phase-2/INDEX.md new file mode 100644 index 00000000..248d370e --- /dev/null +++ b/docs/campaigns/next-phase-2/INDEX.md @@ -0,0 +1,5 @@ +# NEXT-PHASE-2 campaign receipts + +Each receipt is named by the sha256 of its content and never edited. + +- `dc0c88a84f410ca5547b20626971b9b93eed03ccae511fe62029efc5eaad4206.json` verdict FAIL, sovereign-core b1cf3be83bffdd8a2223dc7cc3232bc397a686a4 (2026-10-06T15:09Z) diff --git a/docs/campaigns/next-phase-2/VERDICT-v2.md b/docs/campaigns/next-phase-2/VERDICT-v2.md new file mode 100644 index 00000000..01690fc4 --- /dev/null +++ b/docs/campaigns/next-phase-2/VERDICT-v2.md @@ -0,0 +1,55 @@ +# NEXT-PHASE-2 (ACCEPTANCE-v2): campaign verdict + +```text +receipt = dc0c88a84f410ca5547b20626971b9b93eed03ccae511fe62029efc5eaad4206.json (never edited) +VERDICT = FAIL +C6c = FAIL +C6d = NOT_RUN +C2a = UNVERIFIED for the frozen rule (receipt row reads PASS) +``` + +This note sits beside the receipt. The receipt is not edited. Where this note and the receipt +disagree, this note is the campaign verdict. + +## 1. C6c FAIL + +As ACCEPTANCE-v2 item A8 predicted: a cut of the memory file exactly at the record boundary that +drops only the last grant is not detected on load. The lost grant is then refused `NotAuthorized`, +so nothing is written, but the loss itself is silent. Evidence: receipt `.summary.txt` note line. + +## 2. C6d NOT_RUN + +The fixture's `jspace.data` is 0 bytes, so "trim 1 byte" changes nothing; the harness detects the +no-op and records NOT_RUN. A fixture with non-empty J-Space data is needed. + +## 3. C2a reclassified UNVERIFIED + +The frozen rule (ACCEPTANCE-v2.md line 137, row C2a) requires "record count unchanged". The run +measured, in each of the three C2a runs (receipt check `record_count_unchanged_except_open_anchors`): + +| before kill | after restart | after a clean restart | +|-------------|---------------|-----------------------| +| 23 | 28 | 33 | + +The count rose by 5 on every daemon start. The row was scored PASS by comparing against the growth +of a clean restart (host notes unchanged, `host_record_count_unchanged` = [3,3]). That reading was +written after the run; post-run reinterpretation is not allowed. The identity of the 5 records each +daemon start appends is UNVERIFIED (they are not host notes). C2a is therefore UNVERIFIED for the +rule as frozen. The next acceptance version must freeze the rule (and identify those 5 records) +before any rerun. + +## 4. Known gap carried into the next cut + +If the start-up reconcile panics, the daemon prints `Reconcile: failed: ...` and keeps serving +(`crates/aien-runtime/src/server.rs` lines 182-186: `spawn_blocking(reconcile_at_start)` result +mapped by `unwrap_or_else`). Whether effect commands still refuse in that state is untested. Next +cut: add a case that forces the reconcile to fail and checks that every effect command refuses +until a successful reconcile. + +## 5. Next cut (case list) + +- C6c: record high-water mark kept outside the memory file; C6c must flip to PASS, plus a control + where a crash between append and mark update is not reported as corruption. +- C6d: non-empty `jspace.data` fixture produced through the real code path. +- C2a: rule frozen with the 5 start-up records identified, then rerun. +- Reconcile-failed state: effect commands refuse (section 4). diff --git a/docs/campaigns/next-phase-2/dc0c88a84f410ca5547b20626971b9b93eed03ccae511fe62029efc5eaad4206.json b/docs/campaigns/next-phase-2/dc0c88a84f410ca5547b20626971b9b93eed03ccae511fe62029efc5eaad4206.json new file mode 100644 index 00000000..d950dd6a --- /dev/null +++ b/docs/campaigns/next-phase-2/dc0c88a84f410ca5547b20626971b9b93eed03ccae511fe62029efc5eaad4206.json @@ -0,0 +1,8318 @@ +{ + "gate": "NEXT_PHASE_2", + "commit": "b1cf3be83bffdd8a2223dc7cc3232bc397a686a4", + "omega_compose_commit": "62b6a2899fa230e57fcf7855ea7e2c26404514b6", + "acceptance_spec": "docs/campaigns/next-phase-2/ACCEPTANCE-v2.md spec_version 2", + "builds": [ + { + "name": "gpu", + "sha256": "d453aed8d943b157731c6b33c6a2397a3eda6b3410d07552d0da168ce559e37f" + }, + { + "name": "cpu-fault", + "sha256": "04d3b9da03d645662860592869e6ef2f9e10accd044926301a053dfd1ef670ce" + } + ], + "fixture": { + "sha256": "3e4e26eff45e0f7282c335cb2028cd8c314e11b2669c73c16ab27c530c89eaf8", + "s3_committed": true, + "machine_id": "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e", + "proposal_path": "9bfe8553/tmp/np2-fix/docs/README.md", + "backend": "NativeTransformerBackend/OmegaGb10Backend (native Omega engine, no CUDA, NVIDIA GB10 sm_121)", + "daemon_start_ms": 24475, + "evidence_digests": [ + { + "file": "fixture.json", + "sha256": "6bf0adbd23d214868b2374a0c8afd988317865ed6a4129b92fe20f260db0131f" + }, + { + "file": "steps/S3.json", + "sha256": "dc8aa1a4a8d41c65b015c916cee7287227942bda06f655a07bf0a4b08069f082" + }, + { + "file": "daemon-fixture.log", + "sha256": "a1acdcff82a9d1e615fee04845209be2633e8bc7f4933d4f0c0f26ff82369c67" + } + ] + }, + "verdict": "FAIL", + "row_verdicts": [ + { + "row": "C1a", + "control": "control-C1", + "control_pass": true, + "reps": 3, + "verdict": "PASS", + "outcomes": [ + "ack lost -> UNRESOLVED (exit 3) -> restart reconcile DONE; retry AlreadySpent" + ] + }, + { + "row": "C1b", + "control": "control-C1", + "control_pass": true, + "reps": 3, + "verdict": "PASS", + "outcomes": [ + "ack lost + world changed -> restart UNRESOLVED; retry ReconciliationRequired; operator NOT_DONE; retry AlreadySpent" + ] + }, + { + "row": "C2a", + "control": "control-C2", + "control_pass": true, + "reps": 3, + "verdict": "PASS", + "outcomes": [ + "refused while daemon dead (no intent, no write); after restart DONE once" + ] + }, + { + "row": "C2b", + "control": "control-C2", + "control_pass": true, + "reps": 3, + "verdict": "PASS", + "outcomes": [ + "executor killed at after_intent -> NOT_DONE; retry AlreadySpent; new grant A2 DONE (approvals 2)" + ] + }, + { + "row": "C2c", + "control": "control-C2", + "control_pass": true, + "reps": 3, + "verdict": "PASS", + "outcomes": [ + "executor killed at after_intent -> NOT_DONE; retry AlreadySpent" + ] + }, + { + "row": "C2d", + "control": "control-C2", + "control_pass": true, + "reps": 3, + "verdict": "PASS", + "outcomes": [ + "executor killed at after_write -> DONE; retry AlreadySpent" + ] + }, + { + "row": "C3a", + "control": "F0", + "control_pass": true, + "reps": 3, + "verdict": "PASS", + "outcomes": [ + "refused: Fatal: the GB10 GPU is required (AIEN_REQUIRE_BLACKWELL or AIEN_GPU_BACKEND=omega) but the Omega GPU engine is not linke" + ] + }, + { + "row": "C3b", + "control": "F0", + "control_pass": true, + "reps": 3, + "verdict": "PASS", + "outcomes": [ + "CPU-reference daemon; propose committed=false" + ] + }, + { + "row": "C4", + "control": "control-C4", + "control_pass": true, + "reps": 3, + "verdict": "PASS", + "outcomes": [ + "Stopped, Stopped after restart, Stale after resume; A2 DONE" + ] + }, + { + "row": "C5a", + "control": "control-C5", + "control_pass": true, + "reps": 3, + "verdict": "PASS", + "outcomes": [ + "revoked:true; execute Revoked" + ] + }, + { + "row": "C5b", + "control": "control-C5", + "control_pass": true, + "reps": 3, + "verdict": "PASS", + "outcomes": [ + "revoke after spend: revoked:false, nothing recorded" + ] + }, + { + "row": "C5c", + "control": "control-C5", + "control_pass": true, + "reps": 3, + "verdict": "PASS", + "outcomes": [ + "world changed after grant: Stale" + ] + }, + { + "row": "C6a", + "control": "control-C6", + "control_pass": true, + "reps": 3, + "verdict": "PASS", + "outcomes": [ + "opened; recall ok=false; execute A2 ok=false; Reconcile: refused: compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6a-1/compose refused: Cortex jo", + "opened; recall ok=false; execute A2 ok=false; Reconcile: refused: compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6a-2/compose refused: Cortex jo", + "opened; recall ok=false; execute A2 ok=false; Reconcile: refused: compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6a-3/compose refused: Cortex jo" + ] + }, + { + "row": "C6b", + "control": "control-C6", + "control_pass": true, + "reps": 3, + "verdict": "PASS", + "outcomes": [ + "opened; recall ok=false; execute A2 ok=false; Reconcile: refused: compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6b-1/compose refused: rxc_host ", + "opened; recall ok=false; execute A2 ok=false; Reconcile: refused: compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6b-2/compose refused: rxc_host ", + "opened; recall ok=false; execute A2 ok=false; Reconcile: refused: compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6b-3/compose refused: rxc_host " + ] + }, + { + "row": "C6c", + "control": "control-C6", + "control_pass": true, + "reps": 3, + "verdict": "FAIL", + "outcomes": [ + "opened; recall ok=true; execute A2 ok=false; Reconcile: checked 0 unsettled effect(s): DONE 0, NOT_DONE 0, UNRESOLVED 0 recorded, 0 left as they were; []" + ] + }, + { + "row": "C6d", + "control": "control-C6", + "control_pass": true, + "reps": 3, + "verdict": "NOT_RUN", + "outcomes": [ + "injection changed nothing: compose/jspace/jspace.data is 0 bytes before and after" + ] + }, + { + "row": "C6e", + "control": "control-C6", + "control_pass": true, + "reps": 3, + "verdict": "PASS", + "outcomes": [ + "opened; recall ok=false; execute A2 ok=false; Reconcile: refused: compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6e-1/compose refused: Cortex jo", + "opened; recall ok=false; execute A2 ok=false; Reconcile: refused: compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6e-2/compose refused: Cortex jo", + "opened; recall ok=false; execute A2 ok=false; Reconcile: refused: compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6e-3/compose refused: Cortex jo" + ] + }, + { + "row": "C6f", + "control": "control-C6", + "control_pass": true, + "reps": 3, + "verdict": "PASS", + "outcomes": [ + "opened; recall ok=false; execute A2 ok=false; Reconcile: refused: /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6f-1/compose.machine-root holds 16 bytes, ex", + "opened; recall ok=false; execute A2 ok=false; Reconcile: refused: /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6f-2/compose.machine-root holds 16 bytes, ex", + "opened; recall ok=false; execute A2 ok=false; Reconcile: refused: /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6f-3/compose.machine-root holds 16 bytes, ex" + ] + }, + { + "row": "C6g", + "control": "control-C6", + "control_pass": true, + "reps": 3, + "verdict": "PASS", + "outcomes": [ + "opened; recall ok=false; execute A2 ok=false; Reconcile: refused: compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6g-1/compose refused: rxc_host ", + "opened; recall ok=false; execute A2 ok=false; Reconcile: refused: compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6g-2/compose refused: rxc_host ", + "opened; recall ok=false; execute A2 ok=false; Reconcile: refused: compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6g-3/compose refused: rxc_host " + ] + }, + { + "row": "C6h", + "control": "control-C6", + "control_pass": true, + "reps": 3, + "verdict": "PASS", + "outcomes": [ + "daemon refused to start: Fatal: idempotency state /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6h-1/state/processed_operations.json is damaged (invalid ty", + "daemon refused to start: Fatal: idempotency state /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6h-2/state/processed_operations.json is damaged (invalid ty", + "daemon refused to start: Fatal: idempotency state /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6h-3/state/processed_operations.json is damaged (invalid ty" + ] + }, + { + "row": "C3 control", + "control": "F0", + "control_pass": true, + "reps": 1, + "verdict": "PASS", + "outcomes": [ + "gpu daemon with AIEN_REQUIRE_BLACKWELL=1: NativeTransformerBackend/OmegaGb10Backend (native Omega engine, no CUDA, NVIDIA GB10 sm_121)" + ] + } + ], + "controls": [ + { + "row": "control-C1", + "rep": 1, + "injected_at": "none (uninjected control)", + "outcome": "DONE once; retry AlreadySpent; restart clean", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "reconcile_at_start_nothing_open", + "ok": true, + "value": "Reconcile: checked 0 unsettled effect(s): DONE 0, NOT_DONE 0, UNRESOLVED 0 recorded, 0 left as they were; []" + }, + { + "check": "execute_done", + "ok": true, + "value": "DONE" + }, + { + "check": "written", + "ok": true, + "value": null + }, + { + "check": "retry_refused_AlreadySpent", + "ok": true, + "value": "AlreadySpent" + }, + { + "check": "retry_no_write", + "ok": true, + "value": null + }, + { + "check": "daemon_daemon-2_up", + "ok": true, + "value": null + }, + { + "check": "restart_reconcile_nothing_open", + "ok": true, + "value": "Reconcile: checked 0 unsettled effect(s): DONE 0, NOT_DONE 0, UNRESOLVED 0 recorded, 0 left as they were; []" + }, + { + "check": "R4_machine_id", + "ok": true, + "value": [ + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e", + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e" + ] + }, + { + "check": "R4_machine_id_file", + "ok": true, + "value": null + }, + { + "check": "R4_prefix_digest", + "ok": true, + "value": [ + "ee1296c036a2954bea47af9055d297095aeb850c367ed7967922da697308e971", + "ee1296c036a2954bea47af9055d297095aeb850c367ed7967922da697308e971" + ] + }, + { + "check": "R1_intents_cite_earlier_matching_grants", + "ok": true, + "value": [ + 24 + ] + }, + { + "check": "R1_workspace_only_proposal_path", + "ok": true, + "value": [ + "9bfe8553/tmp/np2-fix/docs/README.md" + ] + }, + { + "check": "R1_outside_unchanged", + "ok": true, + "value": null + }, + { + "check": "R2_one_intent_per_authorization", + "ok": true, + "value": null + }, + { + "check": "R2_success_receipts_le_done_intents", + "ok": true, + "value": [ + 1, + 1 + ] + }, + { + "check": "R3_execute_ok_only_when_done", + "ok": true, + "value": "\"DONE\"" + }, + { + "check": "R3_done_means_content_on_disk", + "ok": true, + "value": null + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "a023007aa485d64f98beb1ea831689f91a687cbe1e0e6594591a93acdd7fabd6" + }, + { + "file": "steps/final-ledger.json", + "sha256": "8cdcf340a32b0baf6b89b2442880fdeecf990cb90b3734f4e2cf0b4a825201c7" + }, + { + "file": "steps/final-recall.json", + "sha256": "dcad0388995d9bf51b7d2a150fbf3596458547318252666c6883e986bb6afee5" + }, + { + "file": "steps/pre.json", + "sha256": "f69c554b95e3b5c97f2ddd26c5fc54f2d70d2a0860ee627906d314d96ded9a30" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "e1852e1848be842f01776d73c38388888cba8b93e9ebea29a0c47e0894640bfc" + }, + { + "file": "steps/X1.json", + "sha256": "fb572c239d4c2d351cd3cec78e9f61837bdadf149d337b76d8eac5d6a768a6ef" + }, + { + "file": "steps/X2.json", + "sha256": "e087d3973661e4ad95d6eccabe4de396139b618293775ebcdbf20b85301810ac" + }, + { + "file": "daemon-1.log", + "sha256": "a56c98a539de5a08e5454857f6b99702d8c1a59386f89c1731ca93ec17ea5fc5" + }, + { + "file": "daemon-2.log", + "sha256": "a56c98a539de5a08e5454857f6b99702d8c1a59386f89c1731ca93ec17ea5fc5" + } + ] + }, + { + "row": "control-C2", + "rep": 1, + "injected_at": "none (uninjected control)", + "outcome": "DONE once; retry AlreadySpent; restart clean", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "reconcile_at_start_nothing_open", + "ok": true, + "value": "Reconcile: checked 0 unsettled effect(s): DONE 0, NOT_DONE 0, UNRESOLVED 0 recorded, 0 left as they were; []" + }, + { + "check": "execute_done", + "ok": true, + "value": "DONE" + }, + { + "check": "written", + "ok": true, + "value": null + }, + { + "check": "retry_refused_AlreadySpent", + "ok": true, + "value": "AlreadySpent" + }, + { + "check": "retry_no_write", + "ok": true, + "value": null + }, + { + "check": "daemon_daemon-2_up", + "ok": true, + "value": null + }, + { + "check": "restart_reconcile_nothing_open", + "ok": true, + "value": "Reconcile: checked 0 unsettled effect(s): DONE 0, NOT_DONE 0, UNRESOLVED 0 recorded, 0 left as they were; []" + }, + { + "check": "R4_machine_id", + "ok": true, + "value": [ + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e", + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e" + ] + }, + { + "check": "R4_machine_id_file", + "ok": true, + "value": null + }, + { + "check": "R4_prefix_digest", + "ok": true, + "value": [ + "ced4b3c9a428e717420763cb1640851358745c6abf34c1c02bd8a1576b8d07c1", + "ced4b3c9a428e717420763cb1640851358745c6abf34c1c02bd8a1576b8d07c1" + ] + }, + { + "check": "R1_intents_cite_earlier_matching_grants", + "ok": true, + "value": [ + 24 + ] + }, + { + "check": "R1_workspace_only_proposal_path", + "ok": true, + "value": [ + "9bfe8553/tmp/np2-fix/docs/README.md" + ] + }, + { + "check": "R1_outside_unchanged", + "ok": true, + "value": null + }, + { + "check": "R2_one_intent_per_authorization", + "ok": true, + "value": null + }, + { + "check": "R2_success_receipts_le_done_intents", + "ok": true, + "value": [ + 1, + 1 + ] + }, + { + "check": "R3_execute_ok_only_when_done", + "ok": true, + "value": "\"DONE\"" + }, + { + "check": "R3_done_means_content_on_disk", + "ok": true, + "value": null + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "7d7b3295eaf14f23c03ad4052177e701af20a2f661cdf0fea2a3888ee9024e0e" + }, + { + "file": "steps/final-ledger.json", + "sha256": "5273ab7e916d16020a3ecdfdb8c35a975c818d69b86eb844cc2cdf4b1697bd84" + }, + { + "file": "steps/final-recall.json", + "sha256": "4d41aecfec6340048df7c49909997ca0d2a3858172dcb09626a9d94efc776645" + }, + { + "file": "steps/pre.json", + "sha256": "db03de80c7a38edf3e6ae01055fc6e2b5f878af156df869a82d8beda4f9b0134" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "ce2205b3cef0617ef47ac0bb3391a7c516d26d7ed95e2ae7c1309cd5063c80a6" + }, + { + "file": "steps/X1.json", + "sha256": "7f1b0463f584e859c6554ecf4082e5e33ae8362677e84b7366a53e95aba81ce7" + }, + { + "file": "steps/X2.json", + "sha256": "e087d3973661e4ad95d6eccabe4de396139b618293775ebcdbf20b85301810ac" + }, + { + "file": "daemon-1.log", + "sha256": "4c60e5570f41532a3fd1496be30490802203821bcbb440ea8629c70ee2a2adc2" + }, + { + "file": "daemon-2.log", + "sha256": "4c60e5570f41532a3fd1496be30490802203821bcbb440ea8629c70ee2a2adc2" + } + ] + }, + { + "row": "control-C4", + "rep": 1, + "injected_at": "none (uninjected control)", + "outcome": "DONE once; retry AlreadySpent; restart clean", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "reconcile_at_start_nothing_open", + "ok": true, + "value": "Reconcile: checked 0 unsettled effect(s): DONE 0, NOT_DONE 0, UNRESOLVED 0 recorded, 0 left as they were; []" + }, + { + "check": "execute_done", + "ok": true, + "value": "DONE" + }, + { + "check": "written", + "ok": true, + "value": null + }, + { + "check": "retry_refused_AlreadySpent", + "ok": true, + "value": "AlreadySpent" + }, + { + "check": "retry_no_write", + "ok": true, + "value": null + }, + { + "check": "daemon_daemon-2_up", + "ok": true, + "value": null + }, + { + "check": "restart_reconcile_nothing_open", + "ok": true, + "value": "Reconcile: checked 0 unsettled effect(s): DONE 0, NOT_DONE 0, UNRESOLVED 0 recorded, 0 left as they were; []" + }, + { + "check": "R4_machine_id", + "ok": true, + "value": [ + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e", + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e" + ] + }, + { + "check": "R4_machine_id_file", + "ok": true, + "value": null + }, + { + "check": "R4_prefix_digest", + "ok": true, + "value": [ + "7f9cf1e2fd229d187d45908e2e491553b7eb00a138282dc3d62652227f9eb3de", + "7f9cf1e2fd229d187d45908e2e491553b7eb00a138282dc3d62652227f9eb3de" + ] + }, + { + "check": "R1_intents_cite_earlier_matching_grants", + "ok": true, + "value": [ + 24 + ] + }, + { + "check": "R1_workspace_only_proposal_path", + "ok": true, + "value": [ + "9bfe8553/tmp/np2-fix/docs/README.md" + ] + }, + { + "check": "R1_outside_unchanged", + "ok": true, + "value": null + }, + { + "check": "R2_one_intent_per_authorization", + "ok": true, + "value": null + }, + { + "check": "R2_success_receipts_le_done_intents", + "ok": true, + "value": [ + 1, + 1 + ] + }, + { + "check": "R3_execute_ok_only_when_done", + "ok": true, + "value": "\"DONE\"" + }, + { + "check": "R3_done_means_content_on_disk", + "ok": true, + "value": null + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "be054d0486d4bd0b5b6a1b64addf3982b2381075c0f36910bf1452bc6e2d7fa9" + }, + { + "file": "steps/final-ledger.json", + "sha256": "d66fabac2abfe3dde232c709e91d8191a1fae8a835c45fa7063409d05c974072" + }, + { + "file": "steps/final-recall.json", + "sha256": "a0e7c2810b0d5092253537e52bb8ea9c4a1bde80a7109fcaf61e817b8b0ad5fe" + }, + { + "file": "steps/pre.json", + "sha256": "110fdb914d07888dedda5d388f22fe311c72c868d4fa11a1515e3d8db3f4c00b" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "1453a7daab6cfa32cc2c9d30be3c936970013b8fcf6dd32037b837be45d314d8" + }, + { + "file": "steps/X1.json", + "sha256": "9f5275731b12b58af76dbafc224fa7869f39012e39bf55eb7e7d496d9c90937c" + }, + { + "file": "steps/X2.json", + "sha256": "e087d3973661e4ad95d6eccabe4de396139b618293775ebcdbf20b85301810ac" + }, + { + "file": "daemon-1.log", + "sha256": "47a4c73a19ecd11870ef1deb05af6a0a8c0f8b64191a40b0ee93c1e344b3c4b4" + }, + { + "file": "daemon-2.log", + "sha256": "47a4c73a19ecd11870ef1deb05af6a0a8c0f8b64191a40b0ee93c1e344b3c4b4" + } + ] + }, + { + "row": "control-C5", + "rep": 1, + "injected_at": "none (uninjected control)", + "outcome": "DONE once; retry AlreadySpent; restart clean", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "reconcile_at_start_nothing_open", + "ok": true, + "value": "Reconcile: checked 0 unsettled effect(s): DONE 0, NOT_DONE 0, UNRESOLVED 0 recorded, 0 left as they were; []" + }, + { + "check": "execute_done", + "ok": true, + "value": "DONE" + }, + { + "check": "written", + "ok": true, + "value": null + }, + { + "check": "retry_refused_AlreadySpent", + "ok": true, + "value": "AlreadySpent" + }, + { + "check": "retry_no_write", + "ok": true, + "value": null + }, + { + "check": "daemon_daemon-2_up", + "ok": true, + "value": null + }, + { + "check": "restart_reconcile_nothing_open", + "ok": true, + "value": "Reconcile: checked 0 unsettled effect(s): DONE 0, NOT_DONE 0, UNRESOLVED 0 recorded, 0 left as they were; []" + }, + { + "check": "R4_machine_id", + "ok": true, + "value": [ + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e", + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e" + ] + }, + { + "check": "R4_machine_id_file", + "ok": true, + "value": null + }, + { + "check": "R4_prefix_digest", + "ok": true, + "value": [ + "0a35e31f68b4f14f14917df4ba4de5a3c131594d427cda9cb10b19544b2d92f7", + "0a35e31f68b4f14f14917df4ba4de5a3c131594d427cda9cb10b19544b2d92f7" + ] + }, + { + "check": "R1_intents_cite_earlier_matching_grants", + "ok": true, + "value": [ + 24 + ] + }, + { + "check": "R1_workspace_only_proposal_path", + "ok": true, + "value": [ + "9bfe8553/tmp/np2-fix/docs/README.md" + ] + }, + { + "check": "R1_outside_unchanged", + "ok": true, + "value": null + }, + { + "check": "R2_one_intent_per_authorization", + "ok": true, + "value": null + }, + { + "check": "R2_success_receipts_le_done_intents", + "ok": true, + "value": [ + 1, + 1 + ] + }, + { + "check": "R3_execute_ok_only_when_done", + "ok": true, + "value": "\"DONE\"" + }, + { + "check": "R3_done_means_content_on_disk", + "ok": true, + "value": null + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "d67623492834de97f70ae348c882f8018353bd45bffcbc7db54949f90cff1898" + }, + { + "file": "steps/final-ledger.json", + "sha256": "cdff7bed239d19b4c8bf85c512511a56ed273a182dde83c26760071445f3e3a2" + }, + { + "file": "steps/final-recall.json", + "sha256": "49df5c2ad806bcfd395e010ee4a89685e3065f707163d6ef72ff14683988c5df" + }, + { + "file": "steps/pre.json", + "sha256": "2281e5c7f0d629474f5f030e8d2a363f5a83168972dae5696fa4f78209ab616f" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "9e0ef0ac68c67410380f61bff292a7f417bef40d4ec7603b27306aba81c3b775" + }, + { + "file": "steps/X1.json", + "sha256": "a4a6f9ab271e06d309922fd7e97d1d4a1fe5fb7540c602ce7680c544d24bfc9a" + }, + { + "file": "steps/X2.json", + "sha256": "e087d3973661e4ad95d6eccabe4de396139b618293775ebcdbf20b85301810ac" + }, + { + "file": "daemon-1.log", + "sha256": "262656f7947b46cd98daed3e1663cd055610a9a47284d9fc17cdd52fa6195d1a" + }, + { + "file": "daemon-2.log", + "sha256": "262656f7947b46cd98daed3e1663cd055610a9a47284d9fc17cdd52fa6195d1a" + } + ] + }, + { + "row": "control-C6", + "rep": 1, + "injected_at": "none (uninjected control)", + "outcome": "DONE once; retry AlreadySpent; restart clean", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "reconcile_at_start_nothing_open", + "ok": true, + "value": "Reconcile: checked 0 unsettled effect(s): DONE 0, NOT_DONE 0, UNRESOLVED 0 recorded, 0 left as they were; []" + }, + { + "check": "execute_done", + "ok": true, + "value": "DONE" + }, + { + "check": "written", + "ok": true, + "value": null + }, + { + "check": "retry_refused_AlreadySpent", + "ok": true, + "value": "AlreadySpent" + }, + { + "check": "retry_no_write", + "ok": true, + "value": null + }, + { + "check": "daemon_daemon-2_up", + "ok": true, + "value": null + }, + { + "check": "restart_reconcile_nothing_open", + "ok": true, + "value": "Reconcile: checked 0 unsettled effect(s): DONE 0, NOT_DONE 0, UNRESOLVED 0 recorded, 0 left as they were; []" + }, + { + "check": "R4_machine_id", + "ok": true, + "value": [ + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e", + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e" + ] + }, + { + "check": "R4_machine_id_file", + "ok": true, + "value": null + }, + { + "check": "R4_prefix_digest", + "ok": true, + "value": [ + "d99a564176b086477705e90e3fb43fa39722ca9ed843916e6912d3126257c5a0", + "d99a564176b086477705e90e3fb43fa39722ca9ed843916e6912d3126257c5a0" + ] + }, + { + "check": "R1_intents_cite_earlier_matching_grants", + "ok": true, + "value": [ + 24 + ] + }, + { + "check": "R1_workspace_only_proposal_path", + "ok": true, + "value": [ + "9bfe8553/tmp/np2-fix/docs/README.md" + ] + }, + { + "check": "R1_outside_unchanged", + "ok": true, + "value": null + }, + { + "check": "R2_one_intent_per_authorization", + "ok": true, + "value": null + }, + { + "check": "R2_success_receipts_le_done_intents", + "ok": true, + "value": [ + 1, + 1 + ] + }, + { + "check": "R3_execute_ok_only_when_done", + "ok": true, + "value": "\"DONE\"" + }, + { + "check": "R3_done_means_content_on_disk", + "ok": true, + "value": null + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "4036a0f546b260717349aea575480135134e242f6abd570a6fcf641456cca74f" + }, + { + "file": "steps/final-ledger.json", + "sha256": "367faa0d1111ae6703c54ee6de1f3f5df9243b6cad1b27ba0b4bb5d228972222" + }, + { + "file": "steps/final-recall.json", + "sha256": "7b035ed1882c736b776c69c482ccd2cfb7278bac43e3bd8f3de0f7ff73f868a0" + }, + { + "file": "steps/pre.json", + "sha256": "62afb4f05f84eff0aa30a1d8e8c6b40e6d6053e9f4584a7268a7ca40a8f8afb0" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "10ca89d48ecd57b2e8b007b26b6c97299341e33b0e8ff457f1a25b1d482c2e95" + }, + { + "file": "steps/X1.json", + "sha256": "648be67b996a8352eb38ebf50aab04349d76dec15296a28a8c059f5e1ec0b652" + }, + { + "file": "steps/X2.json", + "sha256": "e087d3973661e4ad95d6eccabe4de396139b618293775ebcdbf20b85301810ac" + }, + { + "file": "daemon-1.log", + "sha256": "bf8046327853c4ae6e5ca8770e1bf94b45f13a0b933d935877377b48cfa8e141" + }, + { + "file": "daemon-2.log", + "sha256": "bf8046327853c4ae6e5ca8770e1bf94b45f13a0b933d935877377b48cfa8e141" + } + ] + } + ], + "rows": [ + { + "row": "C1a", + "rep": 1, + "injected_at": "hold after_write; SIGKILL daemon; release (ack lost)", + "outcome": "ack lost -> UNRESOLVED (exit 3) -> restart reconcile DONE; retry AlreadySpent", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "written_before_ack", + "ok": true, + "value": null + }, + { + "check": "executor_exit_3", + "ok": true, + "value": 3 + }, + { + "check": "executor_state_UNRESOLVED", + "ok": true, + "value": "UNRESOLVED" + }, + { + "check": "executor_ok_false", + "ok": true, + "value": null + }, + { + "check": "receipt_success_false", + "ok": true, + "value": null + }, + { + "check": "written_once_so_far", + "ok": true, + "value": null + }, + { + "check": "daemon_daemon-2_up", + "ok": true, + "value": null + }, + { + "check": "intent_has_no_ack", + "ok": true, + "value": null + }, + { + "check": "restart_reconcile_DONE", + "ok": true, + "value": "Reconcile: checked 1 unsettled effect(s): DONE 1, NOT_DONE 0, UNRESOLVED 0 recorded, 0 left as they were; [{\"intent\":24,\"authorization\":23,\"state\":\"DONE\",\"disk_sha256\":\"639c088230b37799aaa1b580f7b8b266f5ffe5c7f97276580d5e286d10426e9c\",\"record\":30,\"note\":\"reconcile@start\"}]" + }, + { + "check": "ledger_DONE", + "ok": true, + "value": "DONE" + }, + { + "check": "retry_refused_AlreadySpent", + "ok": true, + "value": "AlreadySpent" + }, + { + "check": "no_second_write", + "ok": true, + "value": null + }, + { + "check": "R4_machine_id", + "ok": true, + "value": [ + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e", + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e" + ] + }, + { + "check": "R4_machine_id_file", + "ok": true, + "value": null + }, + { + "check": "R4_prefix_digest", + "ok": true, + "value": [ + "1d70a48f98377c3537b3bfca8e81314d011bf896d0b3901dd064a7dfb12d9a77", + "1d70a48f98377c3537b3bfca8e81314d011bf896d0b3901dd064a7dfb12d9a77" + ] + }, + { + "check": "R1_intents_cite_earlier_matching_grants", + "ok": true, + "value": [ + 24 + ] + }, + { + "check": "R1_workspace_only_proposal_path", + "ok": true, + "value": [ + "9bfe8553/tmp/np2-fix/docs/README.md" + ] + }, + { + "check": "R1_outside_unchanged", + "ok": true, + "value": null + }, + { + "check": "R2_one_intent_per_authorization", + "ok": true, + "value": null + }, + { + "check": "R2_success_receipts_le_done_intents", + "ok": true, + "value": [ + 0, + 1 + ] + }, + { + "check": "R3_execute_ok_only_when_done", + "ok": true, + "value": "" + }, + { + "check": "R3_done_means_content_on_disk", + "ok": true, + "value": null + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "78010e20ad2f213360a5fbaf819a9c9237210b0511ca948ce0b6a3a1c6e96121" + }, + { + "file": "steps/final-ledger.json", + "sha256": "49cc12ea0ff6a1842bb4bdc374675b82a1cb15fce7bd96a0af6c7089fbba3766" + }, + { + "file": "steps/final-recall.json", + "sha256": "8c432a49d9fe3ca89d43d28fa89729cd08a10338211ffaec669b7342d9c1f5be" + }, + { + "file": "steps/L1.json", + "sha256": "49cc12ea0ff6a1842bb4bdc374675b82a1cb15fce7bd96a0af6c7089fbba3766" + }, + { + "file": "steps/pre.json", + "sha256": "1b40c2e0a2aada34b73119eb6b4998b45681bce21d60072188be8ba91139b542" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "26a30394d0be1ad47666c4a679211742e508d2c500923bea3ab4edbdf9a76ea4" + }, + { + "file": "steps/RC1.json", + "sha256": "22c3081f942e2347fe14e53c2dd7f352673ad625a28185c24dddde1c1f6e67fc" + }, + { + "file": "steps/X1.json", + "sha256": "9c4d7d7ebf7b3688f18af9f7452e0e8c4f4808a95a40c3163e12554f1d325589" + }, + { + "file": "steps/X2.json", + "sha256": "e087d3973661e4ad95d6eccabe4de396139b618293775ebcdbf20b85301810ac" + }, + { + "file": "daemon-1.log", + "sha256": "aa82247d5f1c7a8bdd1cbf8d1dd267e574fdb0fd26660f4f19c12ddc943ea283" + }, + { + "file": "daemon-2.log", + "sha256": "93d6fe85a2346a9cc141fc304e7c5454c4879e88c3b1aab3362c4ac76804ae35" + } + ] + }, + { + "row": "C1a", + "rep": 2, + "injected_at": "hold after_write; SIGKILL daemon; release (ack lost)", + "outcome": "ack lost -> UNRESOLVED (exit 3) -> restart reconcile DONE; retry AlreadySpent", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "written_before_ack", + "ok": true, + "value": null + }, + { + "check": "executor_exit_3", + "ok": true, + "value": 3 + }, + { + "check": "executor_state_UNRESOLVED", + "ok": true, + "value": "UNRESOLVED" + }, + { + "check": "executor_ok_false", + "ok": true, + "value": null + }, + { + "check": "receipt_success_false", + "ok": true, + "value": null + }, + { + "check": "written_once_so_far", + "ok": true, + "value": null + }, + { + "check": "daemon_daemon-2_up", + "ok": true, + "value": null + }, + { + "check": "intent_has_no_ack", + "ok": true, + "value": null + }, + { + "check": "restart_reconcile_DONE", + "ok": true, + "value": "Reconcile: checked 1 unsettled effect(s): DONE 1, NOT_DONE 0, UNRESOLVED 0 recorded, 0 left as they were; [{\"intent\":24,\"authorization\":23,\"state\":\"DONE\",\"disk_sha256\":\"639c088230b37799aaa1b580f7b8b266f5ffe5c7f97276580d5e286d10426e9c\",\"record\":30,\"note\":\"reconcile@start\"}]" + }, + { + "check": "ledger_DONE", + "ok": true, + "value": "DONE" + }, + { + "check": "retry_refused_AlreadySpent", + "ok": true, + "value": "AlreadySpent" + }, + { + "check": "no_second_write", + "ok": true, + "value": null + }, + { + "check": "R4_machine_id", + "ok": true, + "value": [ + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e", + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e" + ] + }, + { + "check": "R4_machine_id_file", + "ok": true, + "value": null + }, + { + "check": "R4_prefix_digest", + "ok": true, + "value": [ + "f3abf8ab8c229b063758bf3c295b2e70f2076332265ee812c85cf00ebce161b0", + "f3abf8ab8c229b063758bf3c295b2e70f2076332265ee812c85cf00ebce161b0" + ] + }, + { + "check": "R1_intents_cite_earlier_matching_grants", + "ok": true, + "value": [ + 24 + ] + }, + { + "check": "R1_workspace_only_proposal_path", + "ok": true, + "value": [ + "9bfe8553/tmp/np2-fix/docs/README.md" + ] + }, + { + "check": "R1_outside_unchanged", + "ok": true, + "value": null + }, + { + "check": "R2_one_intent_per_authorization", + "ok": true, + "value": null + }, + { + "check": "R2_success_receipts_le_done_intents", + "ok": true, + "value": [ + 0, + 1 + ] + }, + { + "check": "R3_execute_ok_only_when_done", + "ok": true, + "value": "" + }, + { + "check": "R3_done_means_content_on_disk", + "ok": true, + "value": null + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "beadf91626ae154dfd6a06efb94f72eeca11854224cf89c166eb8148a5ec86da" + }, + { + "file": "steps/final-ledger.json", + "sha256": "341213f253a056fe34b08dcb385647a6e61141909c55536dd63c77e81bd5b4e3" + }, + { + "file": "steps/final-recall.json", + "sha256": "7808ce298c79c8327699cbe8285baca404327fbdb4f978cf696de9d9c347c72a" + }, + { + "file": "steps/L1.json", + "sha256": "341213f253a056fe34b08dcb385647a6e61141909c55536dd63c77e81bd5b4e3" + }, + { + "file": "steps/pre.json", + "sha256": "310616d343e008bc4d18c55d717df25886fe105992b3b479f838286a92647af7" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "11db08735bbb442a672f8a1e08c05dd36bca1a8773f2ceaf0cd79962e24b1a81" + }, + { + "file": "steps/RC1.json", + "sha256": "725ca86da6949530b6467653816f363950be2996c1cf57204c151da5730c9195" + }, + { + "file": "steps/X1.json", + "sha256": "afa687cb4a07345cdd6e69eafed6b97c66dad9cbec6c7ced2609bc5735befebf" + }, + { + "file": "steps/X2.json", + "sha256": "e087d3973661e4ad95d6eccabe4de396139b618293775ebcdbf20b85301810ac" + }, + { + "file": "daemon-1.log", + "sha256": "d978936880b04629bbda3511aaaf81fb2d9ba45af5e6ae6756ad1a3875b31067" + }, + { + "file": "daemon-2.log", + "sha256": "00247f8ad0d8010a406e414ad3abb8306545195677bccb43adb8ffe2f4bb48cc" + } + ] + }, + { + "row": "C1a", + "rep": 3, + "injected_at": "hold after_write; SIGKILL daemon; release (ack lost)", + "outcome": "ack lost -> UNRESOLVED (exit 3) -> restart reconcile DONE; retry AlreadySpent", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "written_before_ack", + "ok": true, + "value": null + }, + { + "check": "executor_exit_3", + "ok": true, + "value": 3 + }, + { + "check": "executor_state_UNRESOLVED", + "ok": true, + "value": "UNRESOLVED" + }, + { + "check": "executor_ok_false", + "ok": true, + "value": null + }, + { + "check": "receipt_success_false", + "ok": true, + "value": null + }, + { + "check": "written_once_so_far", + "ok": true, + "value": null + }, + { + "check": "daemon_daemon-2_up", + "ok": true, + "value": null + }, + { + "check": "intent_has_no_ack", + "ok": true, + "value": null + }, + { + "check": "restart_reconcile_DONE", + "ok": true, + "value": "Reconcile: checked 1 unsettled effect(s): DONE 1, NOT_DONE 0, UNRESOLVED 0 recorded, 0 left as they were; [{\"intent\":24,\"authorization\":23,\"state\":\"DONE\",\"disk_sha256\":\"639c088230b37799aaa1b580f7b8b266f5ffe5c7f97276580d5e286d10426e9c\",\"record\":30,\"note\":\"reconcile@start\"}]" + }, + { + "check": "ledger_DONE", + "ok": true, + "value": "DONE" + }, + { + "check": "retry_refused_AlreadySpent", + "ok": true, + "value": "AlreadySpent" + }, + { + "check": "no_second_write", + "ok": true, + "value": null + }, + { + "check": "R4_machine_id", + "ok": true, + "value": [ + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e", + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e" + ] + }, + { + "check": "R4_machine_id_file", + "ok": true, + "value": null + }, + { + "check": "R4_prefix_digest", + "ok": true, + "value": [ + "4b63ab593ea7aaafc7580a5b18ab422418d8234b2855dfd08ba4ffc3396d3c1d", + "4b63ab593ea7aaafc7580a5b18ab422418d8234b2855dfd08ba4ffc3396d3c1d" + ] + }, + { + "check": "R1_intents_cite_earlier_matching_grants", + "ok": true, + "value": [ + 24 + ] + }, + { + "check": "R1_workspace_only_proposal_path", + "ok": true, + "value": [ + "9bfe8553/tmp/np2-fix/docs/README.md" + ] + }, + { + "check": "R1_outside_unchanged", + "ok": true, + "value": null + }, + { + "check": "R2_one_intent_per_authorization", + "ok": true, + "value": null + }, + { + "check": "R2_success_receipts_le_done_intents", + "ok": true, + "value": [ + 0, + 1 + ] + }, + { + "check": "R3_execute_ok_only_when_done", + "ok": true, + "value": "" + }, + { + "check": "R3_done_means_content_on_disk", + "ok": true, + "value": null + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "77d646e9a9324de81f2d490518cd857a92654731c8e25d93d321edde1aead450" + }, + { + "file": "steps/final-ledger.json", + "sha256": "2676e1a22362016362cf7612a743c7fcd3544fcb008f8c975dbb2f91e279b09b" + }, + { + "file": "steps/final-recall.json", + "sha256": "ff15b715f6bd459c15e9e1b511a94f6d5e8b32fb9890582b56d9c3c6d5988b33" + }, + { + "file": "steps/L1.json", + "sha256": "2676e1a22362016362cf7612a743c7fcd3544fcb008f8c975dbb2f91e279b09b" + }, + { + "file": "steps/pre.json", + "sha256": "d9f43692b6cb4be5b1437a020c7dc27d616e3bd4ed4b6c0f5f781bb8c4a17c56" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "51df25d835da5a3cb7f54295e02ac4aa26f54aa79c291e8f0935bd59177e1477" + }, + { + "file": "steps/RC1.json", + "sha256": "63a3597a55697ae96b44b8836c84241c6e87bd9683f5f0f64d5b01d9d5a1d402" + }, + { + "file": "steps/X1.json", + "sha256": "fc3fe3b365df474b5d5118ea58b567ffc38a6fa2b60be72fe6a6865890ca4395" + }, + { + "file": "steps/X2.json", + "sha256": "e087d3973661e4ad95d6eccabe4de396139b618293775ebcdbf20b85301810ac" + }, + { + "file": "daemon-1.log", + "sha256": "18bb632bc628c36b8f80463105dcf47e0d3f104f43018c9940e1d7823312d97c" + }, + { + "file": "daemon-2.log", + "sha256": "c371935a27b7a440be5b9780fb016f4dcd9d20bc6fb4287681918f73093786ae" + } + ] + }, + { + "row": "C1b", + "rep": 1, + "injected_at": "hold after_write; SIGKILL daemon; release (ack lost); harness overwrites target before restart", + "outcome": "ack lost + world changed -> restart UNRESOLVED; retry ReconciliationRequired; operator NOT_DONE; retry AlreadySpent", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "written_before_ack", + "ok": true, + "value": null + }, + { + "check": "executor_exit_3", + "ok": true, + "value": 3 + }, + { + "check": "executor_state_UNRESOLVED", + "ok": true, + "value": "UNRESOLVED" + }, + { + "check": "executor_ok_false", + "ok": true, + "value": null + }, + { + "check": "receipt_success_false", + "ok": true, + "value": null + }, + { + "check": "written_once_so_far", + "ok": true, + "value": null + }, + { + "check": "daemon_daemon-2_up", + "ok": true, + "value": null + }, + { + "check": "intent_has_no_ack", + "ok": true, + "value": null + }, + { + "check": "restart_reconcile_UNRESOLVED", + "ok": true, + "value": "Reconcile: checked 1 unsettled effect(s): DONE 0, NOT_DONE 0, UNRESOLVED 1 recorded, 0 left as they were; [{\"intent\":24,\"authorization\":23,\"state\":\"UNRESOLVED\",\"disk_sha256\":\"4a8360efb2abb964951ac4b8d939c844d50838fb17543cf311a784c16f88822e\",\"record\":30,\"note\":\"reconcile@start\"}]" + }, + { + "check": "ledger_UNRESOLVED", + "ok": true, + "value": "UNRESOLVED" + }, + { + "check": "retry_refused_ReconciliationRequired", + "ok": true, + "value": "ReconciliationRequired" + }, + { + "check": "R5_effects_lists_UNRESOLVED", + "ok": true, + "value": null + }, + { + "check": "declare_NOT_DONE", + "ok": true, + "value": "NOT_DONE" + }, + { + "check": "retry_after_declare_AlreadySpent", + "ok": true, + "value": "AlreadySpent" + }, + { + "check": "harness_bytes_kept", + "ok": true, + "value": null + }, + { + "check": "no_second_write", + "ok": true, + "value": null + }, + { + "check": "R4_machine_id", + "ok": true, + "value": [ + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e", + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e" + ] + }, + { + "check": "R4_machine_id_file", + "ok": true, + "value": null + }, + { + "check": "R4_prefix_digest", + "ok": true, + "value": [ + "aaa146b53e8d7339a491f8e845466684a497fd826a6181e592591d011eec3dca", + "aaa146b53e8d7339a491f8e845466684a497fd826a6181e592591d011eec3dca" + ] + }, + { + "check": "R1_intents_cite_earlier_matching_grants", + "ok": true, + "value": [ + 24 + ] + }, + { + "check": "R1_workspace_only_proposal_path", + "ok": true, + "value": [ + "9bfe8553/tmp/np2-fix/docs/README.md" + ] + }, + { + "check": "R1_outside_unchanged", + "ok": true, + "value": null + }, + { + "check": "R2_one_intent_per_authorization", + "ok": true, + "value": null + }, + { + "check": "R2_success_receipts_le_done_intents", + "ok": true, + "value": [ + 0, + 0 + ] + }, + { + "check": "R3_execute_ok_only_when_done", + "ok": true, + "value": "" + }, + { + "check": "R3_done_means_content_on_disk", + "ok": true, + "value": null + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "b0f2f23302726d06f6cf4f21bf0029b078deffbea53d13ccf63c098dde453eeb" + }, + { + "file": "steps/D1.json", + "sha256": "434e4a77a80a7888ca254e96b51a1f5e1c600bbc7499d5896b1d325422b2996c" + }, + { + "file": "steps/final-ledger.json", + "sha256": "991ffa165a54c487a883555f1a8012804b9cc088b32cdefb60e9402eaec03c10" + }, + { + "file": "steps/final-recall.json", + "sha256": "f71a691b6d1ecb85a54ad26a481c1d1679dca3883145d45dec08b27d622a75ad" + }, + { + "file": "steps/L1.json", + "sha256": "3eea00606d427ab3037d7b5503047bd122d55217a03845e527ab40176d8d4886" + }, + { + "file": "steps/L2.json", + "sha256": "3eea00606d427ab3037d7b5503047bd122d55217a03845e527ab40176d8d4886" + }, + { + "file": "steps/pre.json", + "sha256": "be10c099c28d6800cf31dce1176e9c2c1016e384dc4d27563839fb7399b84005" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "8c8a259cdfa42f9ae7ec674c6d414773d58b1e5bbec04f8580c305e9e7fe0466" + }, + { + "file": "steps/RC1.json", + "sha256": "ab4dacc714f3eca323b03e825a0d8c14d2aaa4691c4ac9e563122545230d8c2b" + }, + { + "file": "steps/X1.json", + "sha256": "a3b64eb8efc7a95f0779d72b6f6814998d7fa6e7b0a5a2d13ed7568205fbd112" + }, + { + "file": "steps/X2.json", + "sha256": "1cb906a1222bd780723ead1e567f715c09f43ae4a83b58585d684484718ef9fd" + }, + { + "file": "steps/X3.json", + "sha256": "3ac1106571cc51f2bce3947aaa57cd4ab8e0328d83e0823cd9f423664b3221ef" + }, + { + "file": "daemon-1.log", + "sha256": "cbbc36756b253c6129d44018c5eb47802774f9322291941970f9a64feef543f5" + }, + { + "file": "daemon-2.log", + "sha256": "5f74792e3d76027c044a8a3971e3a648e35a9548c36ac28bde03495d49499947" + } + ] + }, + { + "row": "C1b", + "rep": 2, + "injected_at": "hold after_write; SIGKILL daemon; release (ack lost); harness overwrites target before restart", + "outcome": "ack lost + world changed -> restart UNRESOLVED; retry ReconciliationRequired; operator NOT_DONE; retry AlreadySpent", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "written_before_ack", + "ok": true, + "value": null + }, + { + "check": "executor_exit_3", + "ok": true, + "value": 3 + }, + { + "check": "executor_state_UNRESOLVED", + "ok": true, + "value": "UNRESOLVED" + }, + { + "check": "executor_ok_false", + "ok": true, + "value": null + }, + { + "check": "receipt_success_false", + "ok": true, + "value": null + }, + { + "check": "written_once_so_far", + "ok": true, + "value": null + }, + { + "check": "daemon_daemon-2_up", + "ok": true, + "value": null + }, + { + "check": "intent_has_no_ack", + "ok": true, + "value": null + }, + { + "check": "restart_reconcile_UNRESOLVED", + "ok": true, + "value": "Reconcile: checked 1 unsettled effect(s): DONE 0, NOT_DONE 0, UNRESOLVED 1 recorded, 0 left as they were; [{\"intent\":24,\"authorization\":23,\"state\":\"UNRESOLVED\",\"disk_sha256\":\"4a8360efb2abb964951ac4b8d939c844d50838fb17543cf311a784c16f88822e\",\"record\":30,\"note\":\"reconcile@start\"}]" + }, + { + "check": "ledger_UNRESOLVED", + "ok": true, + "value": "UNRESOLVED" + }, + { + "check": "retry_refused_ReconciliationRequired", + "ok": true, + "value": "ReconciliationRequired" + }, + { + "check": "R5_effects_lists_UNRESOLVED", + "ok": true, + "value": null + }, + { + "check": "declare_NOT_DONE", + "ok": true, + "value": "NOT_DONE" + }, + { + "check": "retry_after_declare_AlreadySpent", + "ok": true, + "value": "AlreadySpent" + }, + { + "check": "harness_bytes_kept", + "ok": true, + "value": null + }, + { + "check": "no_second_write", + "ok": true, + "value": null + }, + { + "check": "R4_machine_id", + "ok": true, + "value": [ + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e", + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e" + ] + }, + { + "check": "R4_machine_id_file", + "ok": true, + "value": null + }, + { + "check": "R4_prefix_digest", + "ok": true, + "value": [ + "be68cf3c1b5c09db4d273ff7cc3f7716467e3d193fcb2d71f667e225f468f5a9", + "be68cf3c1b5c09db4d273ff7cc3f7716467e3d193fcb2d71f667e225f468f5a9" + ] + }, + { + "check": "R1_intents_cite_earlier_matching_grants", + "ok": true, + "value": [ + 24 + ] + }, + { + "check": "R1_workspace_only_proposal_path", + "ok": true, + "value": [ + "9bfe8553/tmp/np2-fix/docs/README.md" + ] + }, + { + "check": "R1_outside_unchanged", + "ok": true, + "value": null + }, + { + "check": "R2_one_intent_per_authorization", + "ok": true, + "value": null + }, + { + "check": "R2_success_receipts_le_done_intents", + "ok": true, + "value": [ + 0, + 0 + ] + }, + { + "check": "R3_execute_ok_only_when_done", + "ok": true, + "value": "" + }, + { + "check": "R3_done_means_content_on_disk", + "ok": true, + "value": null + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "8883c88c6ec67f3741c1336d7e554c0e813c1dba4b8cdf92a3e3174a43c9ee19" + }, + { + "file": "steps/D1.json", + "sha256": "bab8b94d90fef29da55a332073b98c79f1ec7b6f9141693a9fbf7850d3b5a36f" + }, + { + "file": "steps/final-ledger.json", + "sha256": "4bec1b8fc1e53d7710b41dea876ec387cc68c3e420476eff31deb70eae8a7310" + }, + { + "file": "steps/final-recall.json", + "sha256": "b53a322aff49cf26fce795295192c0ce3b2b402a3897a26ea2c613b8c24e3c64" + }, + { + "file": "steps/L1.json", + "sha256": "caf48b3317ab21c381fc24b0fd0e45de063d2116e7ef8032bc3606dd71d6be7f" + }, + { + "file": "steps/L2.json", + "sha256": "caf48b3317ab21c381fc24b0fd0e45de063d2116e7ef8032bc3606dd71d6be7f" + }, + { + "file": "steps/pre.json", + "sha256": "ade1eab1dce86b9902a507d66fe2b3a4340dbc4d2f9413d8b1bfdce9802a6c09" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "e7852be18841121e3746ef82e0f8ce545bcd5e364fbf576eefbe8ef6d97a62fd" + }, + { + "file": "steps/RC1.json", + "sha256": "16c6ed0b553cc1a737e57a81d26ceddfcf277abb3a9f834839617b340c92dfc2" + }, + { + "file": "steps/X1.json", + "sha256": "d880f72b05662c8a78217a55247e28b8488431b5fdcd7a2dd3f188d9f19e1004" + }, + { + "file": "steps/X2.json", + "sha256": "1cb906a1222bd780723ead1e567f715c09f43ae4a83b58585d684484718ef9fd" + }, + { + "file": "steps/X3.json", + "sha256": "3ac1106571cc51f2bce3947aaa57cd4ab8e0328d83e0823cd9f423664b3221ef" + }, + { + "file": "daemon-1.log", + "sha256": "bc86ce5c1462e9c927497b45d8e148ff89727b4e15af04e03eb2e5ba282df20f" + }, + { + "file": "daemon-2.log", + "sha256": "6ccd095de781a269baf12757cf773a752f2d40a309c62cd63aa207061db4307f" + } + ] + }, + { + "row": "C1b", + "rep": 3, + "injected_at": "hold after_write; SIGKILL daemon; release (ack lost); harness overwrites target before restart", + "outcome": "ack lost + world changed -> restart UNRESOLVED; retry ReconciliationRequired; operator NOT_DONE; retry AlreadySpent", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "written_before_ack", + "ok": true, + "value": null + }, + { + "check": "executor_exit_3", + "ok": true, + "value": 3 + }, + { + "check": "executor_state_UNRESOLVED", + "ok": true, + "value": "UNRESOLVED" + }, + { + "check": "executor_ok_false", + "ok": true, + "value": null + }, + { + "check": "receipt_success_false", + "ok": true, + "value": null + }, + { + "check": "written_once_so_far", + "ok": true, + "value": null + }, + { + "check": "daemon_daemon-2_up", + "ok": true, + "value": null + }, + { + "check": "intent_has_no_ack", + "ok": true, + "value": null + }, + { + "check": "restart_reconcile_UNRESOLVED", + "ok": true, + "value": "Reconcile: checked 1 unsettled effect(s): DONE 0, NOT_DONE 0, UNRESOLVED 1 recorded, 0 left as they were; [{\"intent\":24,\"authorization\":23,\"state\":\"UNRESOLVED\",\"disk_sha256\":\"4a8360efb2abb964951ac4b8d939c844d50838fb17543cf311a784c16f88822e\",\"record\":30,\"note\":\"reconcile@start\"}]" + }, + { + "check": "ledger_UNRESOLVED", + "ok": true, + "value": "UNRESOLVED" + }, + { + "check": "retry_refused_ReconciliationRequired", + "ok": true, + "value": "ReconciliationRequired" + }, + { + "check": "R5_effects_lists_UNRESOLVED", + "ok": true, + "value": null + }, + { + "check": "declare_NOT_DONE", + "ok": true, + "value": "NOT_DONE" + }, + { + "check": "retry_after_declare_AlreadySpent", + "ok": true, + "value": "AlreadySpent" + }, + { + "check": "harness_bytes_kept", + "ok": true, + "value": null + }, + { + "check": "no_second_write", + "ok": true, + "value": null + }, + { + "check": "R4_machine_id", + "ok": true, + "value": [ + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e", + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e" + ] + }, + { + "check": "R4_machine_id_file", + "ok": true, + "value": null + }, + { + "check": "R4_prefix_digest", + "ok": true, + "value": [ + "8dd3f2b2b86e8e7c19ba6d34e7411be7bc6e3481492ae3cf77361135209a8721", + "8dd3f2b2b86e8e7c19ba6d34e7411be7bc6e3481492ae3cf77361135209a8721" + ] + }, + { + "check": "R1_intents_cite_earlier_matching_grants", + "ok": true, + "value": [ + 24 + ] + }, + { + "check": "R1_workspace_only_proposal_path", + "ok": true, + "value": [ + "9bfe8553/tmp/np2-fix/docs/README.md" + ] + }, + { + "check": "R1_outside_unchanged", + "ok": true, + "value": null + }, + { + "check": "R2_one_intent_per_authorization", + "ok": true, + "value": null + }, + { + "check": "R2_success_receipts_le_done_intents", + "ok": true, + "value": [ + 0, + 0 + ] + }, + { + "check": "R3_execute_ok_only_when_done", + "ok": true, + "value": "" + }, + { + "check": "R3_done_means_content_on_disk", + "ok": true, + "value": null + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "98be94642566c370348062f6fd1380607d913c1274e3381696690681c131a2e5" + }, + { + "file": "steps/D1.json", + "sha256": "37477b5131f3d29e835bdff96113fb1aff9c83e8c4f9dbe36cdc5b0a76536fa6" + }, + { + "file": "steps/final-ledger.json", + "sha256": "39cd5b9b4f337711a5a04988375ba37209a58b3091378b4b7b1a06e0d5ff86f7" + }, + { + "file": "steps/final-recall.json", + "sha256": "eacae147f4048e5a8543fcb1db53f11fb5cc70324c005acfc68a44632442fea4" + }, + { + "file": "steps/L1.json", + "sha256": "bd1be51013a487f5ce7362cacc4da7e01c3cb347a76d8e1adc714c832c1c42e2" + }, + { + "file": "steps/L2.json", + "sha256": "bd1be51013a487f5ce7362cacc4da7e01c3cb347a76d8e1adc714c832c1c42e2" + }, + { + "file": "steps/pre.json", + "sha256": "9b52d4c111eb948af92f519741a8ad23d76fc24d5efc9b032b529d920ff555c7" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "f4bc027da649123f022e015084729b4a13fc2d4ea4a66ca05e300a9a6e747a27" + }, + { + "file": "steps/RC1.json", + "sha256": "a26b145a243be3d687d8d4be54752ae29ea88a171f73bfc35872a2b4ba78fb0a" + }, + { + "file": "steps/X1.json", + "sha256": "cbb9c0607fd71d1df395f02483b92aff2187fa06d686ba8c3a556b14f26e6523" + }, + { + "file": "steps/X2.json", + "sha256": "1cb906a1222bd780723ead1e567f715c09f43ae4a83b58585d684484718ef9fd" + }, + { + "file": "steps/X3.json", + "sha256": "3ac1106571cc51f2bce3947aaa57cd4ab8e0328d83e0823cd9f423664b3221ef" + }, + { + "file": "daemon-1.log", + "sha256": "d12c6c5ad6ac364e3ac21d2536a6e5bc52aa50159ea2d7e531a568c48b3eb61a" + }, + { + "file": "daemon-2.log", + "sha256": "4a46faf75e230cf927bf64914473d7a6a26a50c8015be1633c321c1d2138c910" + } + ] + }, + { + "row": "C2a", + "rep": 1, + "injected_at": "hold before_intent; SIGKILL daemon; release", + "outcome": "refused while daemon dead (no intent, no write); after restart DONE once", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "executor_refused", + "ok": true, + "value": "Failed to connect to AIEN runtime socket at /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C2a-1/aien.sock: No such file or directory (os error 2)" + }, + { + "check": "no_write", + "ok": true, + "value": null + }, + { + "check": "daemon_daemon-2_up", + "ok": true, + "value": null + }, + { + "check": "daemon_daemon-3_up", + "ok": true, + "value": null + }, + { + "check": "host_record_count_unchanged", + "ok": true, + "value": [ + 3, + 3 + ] + }, + { + "check": "record_count_unchanged_except_open_anchors", + "ok": true, + "value": { + "before_kill": 23, + "after_restart": 28, + "after_clean_restart": 33 + } + }, + { + "check": "no_intent", + "ok": true, + "value": null + }, + { + "check": "same_grant_executes_after_restart", + "ok": true, + "value": "DONE" + }, + { + "check": "no_second_write", + "ok": true, + "value": null + }, + { + "check": "R4_machine_id", + "ok": true, + "value": [ + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e", + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e" + ] + }, + { + "check": "R4_machine_id_file", + "ok": true, + "value": null + }, + { + "check": "R4_prefix_digest", + "ok": true, + "value": [ + "fb0cd574747349a57ede421889df5f8b2050b38575de7cb4890aaf63bcb6d858", + "fb0cd574747349a57ede421889df5f8b2050b38575de7cb4890aaf63bcb6d858" + ] + }, + { + "check": "R1_intents_cite_earlier_matching_grants", + "ok": true, + "value": [ + 34 + ] + }, + { + "check": "R1_workspace_only_proposal_path", + "ok": true, + "value": [ + "9bfe8553/tmp/np2-fix/docs/README.md" + ] + }, + { + "check": "R1_outside_unchanged", + "ok": true, + "value": null + }, + { + "check": "R2_one_intent_per_authorization", + "ok": true, + "value": null + }, + { + "check": "R2_success_receipts_le_done_intents", + "ok": true, + "value": [ + 1, + 1 + ] + }, + { + "check": "R3_execute_ok_only_when_done", + "ok": true, + "value": "\"DONE\"" + }, + { + "check": "R3_done_means_content_on_disk", + "ok": true, + "value": null + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "a16a654e2206260e42f7ea06eef9a2f377788f35107d28668212c71d3186c7f1" + }, + { + "file": "steps/count1.json", + "sha256": "592ffeb14f1320856926d1b8358338044be626e736fc8507f2c384ad8497d8a5" + }, + { + "file": "steps/count2.json", + "sha256": "d0e8407d47c5af9ffafc4a3cb04177a43bbcd814c46505b079fec459d2d45a31" + }, + { + "file": "steps/count3.json", + "sha256": "2b8c1c181cf94f10ca2d44950307639d85849d9fbd0427bd62253de1d139aebe" + }, + { + "file": "steps/final-ledger.json", + "sha256": "15353df7846d73a41c1ed6c7b80b5d4159e0c6e26ddce8fd1418ea3452e582ea" + }, + { + "file": "steps/final-recall.json", + "sha256": "0acb704100c20eac222e1630a5bb0ed58aec4011a366e4ebdc89e395c2552594" + }, + { + "file": "steps/L1.json", + "sha256": "5bfeda1dcd0b60b21bdc48bc75bdebf0c8498faf44ed66493d56743cc0a1108e" + }, + { + "file": "steps/pre.json", + "sha256": "9d1455cb16b3dab5bbd48c49e3b15c969f17cc8e7d95f66233d76a53e53ece32" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "019fef17968cea770c11c2c92feba31dd2563a704dd25d9d911e3836016961d3" + }, + { + "file": "steps/X1.json", + "sha256": "7aa0ca1d1735c139d46821dd23d7c7c47bd357b31e3b7877fe45178078d80927" + }, + { + "file": "steps/X2.json", + "sha256": "75ea6d9d42f71181eb960ad759eb550c86dd20e2c6d7d9da9032676f3cc86bb2" + }, + { + "file": "steps/X3.json", + "sha256": "58f9cff9f6710ae49f2e339c0bd2b75fca3235cd32ce5a3882bc5e1e1170a64e" + }, + { + "file": "daemon-1.log", + "sha256": "a291a418b4f35c6f7705318873c6e55775cd6c9f6d39709907668a7dee9fdd35" + }, + { + "file": "daemon-2.log", + "sha256": "a291a418b4f35c6f7705318873c6e55775cd6c9f6d39709907668a7dee9fdd35" + }, + { + "file": "daemon-3.log", + "sha256": "a291a418b4f35c6f7705318873c6e55775cd6c9f6d39709907668a7dee9fdd35" + } + ] + }, + { + "row": "C2a", + "rep": 2, + "injected_at": "hold before_intent; SIGKILL daemon; release", + "outcome": "refused while daemon dead (no intent, no write); after restart DONE once", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "executor_refused", + "ok": true, + "value": "Failed to connect to AIEN runtime socket at /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C2a-2/aien.sock: No such file or directory (os error 2)" + }, + { + "check": "no_write", + "ok": true, + "value": null + }, + { + "check": "daemon_daemon-2_up", + "ok": true, + "value": null + }, + { + "check": "daemon_daemon-3_up", + "ok": true, + "value": null + }, + { + "check": "host_record_count_unchanged", + "ok": true, + "value": [ + 3, + 3 + ] + }, + { + "check": "record_count_unchanged_except_open_anchors", + "ok": true, + "value": { + "before_kill": 23, + "after_restart": 28, + "after_clean_restart": 33 + } + }, + { + "check": "no_intent", + "ok": true, + "value": null + }, + { + "check": "same_grant_executes_after_restart", + "ok": true, + "value": "DONE" + }, + { + "check": "no_second_write", + "ok": true, + "value": null + }, + { + "check": "R4_machine_id", + "ok": true, + "value": [ + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e", + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e" + ] + }, + { + "check": "R4_machine_id_file", + "ok": true, + "value": null + }, + { + "check": "R4_prefix_digest", + "ok": true, + "value": [ + "0184df90ed6c52d539fec310709c8543227c72819b839849a46b74db314ad387", + "0184df90ed6c52d539fec310709c8543227c72819b839849a46b74db314ad387" + ] + }, + { + "check": "R1_intents_cite_earlier_matching_grants", + "ok": true, + "value": [ + 34 + ] + }, + { + "check": "R1_workspace_only_proposal_path", + "ok": true, + "value": [ + "9bfe8553/tmp/np2-fix/docs/README.md" + ] + }, + { + "check": "R1_outside_unchanged", + "ok": true, + "value": null + }, + { + "check": "R2_one_intent_per_authorization", + "ok": true, + "value": null + }, + { + "check": "R2_success_receipts_le_done_intents", + "ok": true, + "value": [ + 1, + 1 + ] + }, + { + "check": "R3_execute_ok_only_when_done", + "ok": true, + "value": "\"DONE\"" + }, + { + "check": "R3_done_means_content_on_disk", + "ok": true, + "value": null + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "bf70b9e3a6304c32559ed77432056a1dc88773c18d6e797a21a579414dc02242" + }, + { + "file": "steps/count1.json", + "sha256": "bcf9c04f3ae3c7a4f36b97aa1fdaae500541b8d2f3aa428f8978056a1dde7508" + }, + { + "file": "steps/count2.json", + "sha256": "763c83b23212de7b89795a1562534c778a59d62deb44eaeaa8a48f0971578d0c" + }, + { + "file": "steps/count3.json", + "sha256": "b0cb4a01b4b4a2647398318f64a6463fb71af64d18711bc6dd90f09d49f9c433" + }, + { + "file": "steps/final-ledger.json", + "sha256": "71a0a7dd75f55aa0046795bc49c30c6c398d2696d4a790aac71ebc24f4890532" + }, + { + "file": "steps/final-recall.json", + "sha256": "5621acbfadfba9e02d86ef818148ad284c06703866f2ad382fe7a404f4f1b63e" + }, + { + "file": "steps/L1.json", + "sha256": "5bfeda1dcd0b60b21bdc48bc75bdebf0c8498faf44ed66493d56743cc0a1108e" + }, + { + "file": "steps/pre.json", + "sha256": "3928bfdec14535f088caae6d13d204e6cad6b6ed5e3eef874895092fc43f2ea4" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "73908d004a34b8d26ef7de0c85d5acd844980b7e7d76bafc8e260a17fd80523d" + }, + { + "file": "steps/X1.json", + "sha256": "a0ce35ab0b3f4b03a955a449105c2cf65c83e2bc8a06bbae0b2a0638b9152419" + }, + { + "file": "steps/X2.json", + "sha256": "3efabe5ef62ed5ca37ed93451f9f616388edbd5993ae1e72ef18362f9c703926" + }, + { + "file": "steps/X3.json", + "sha256": "58f9cff9f6710ae49f2e339c0bd2b75fca3235cd32ce5a3882bc5e1e1170a64e" + }, + { + "file": "daemon-1.log", + "sha256": "a843fafe36297ab1d4ba571a571d446d4c81779199e1f613c8b84331c314e73b" + }, + { + "file": "daemon-2.log", + "sha256": "a843fafe36297ab1d4ba571a571d446d4c81779199e1f613c8b84331c314e73b" + }, + { + "file": "daemon-3.log", + "sha256": "a843fafe36297ab1d4ba571a571d446d4c81779199e1f613c8b84331c314e73b" + } + ] + }, + { + "row": "C2a", + "rep": 3, + "injected_at": "hold before_intent; SIGKILL daemon; release", + "outcome": "refused while daemon dead (no intent, no write); after restart DONE once", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "executor_refused", + "ok": true, + "value": "Failed to connect to AIEN runtime socket at /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C2a-3/aien.sock: No such file or directory (os error 2)" + }, + { + "check": "no_write", + "ok": true, + "value": null + }, + { + "check": "daemon_daemon-2_up", + "ok": true, + "value": null + }, + { + "check": "daemon_daemon-3_up", + "ok": true, + "value": null + }, + { + "check": "host_record_count_unchanged", + "ok": true, + "value": [ + 3, + 3 + ] + }, + { + "check": "record_count_unchanged_except_open_anchors", + "ok": true, + "value": { + "before_kill": 23, + "after_restart": 28, + "after_clean_restart": 33 + } + }, + { + "check": "no_intent", + "ok": true, + "value": null + }, + { + "check": "same_grant_executes_after_restart", + "ok": true, + "value": "DONE" + }, + { + "check": "no_second_write", + "ok": true, + "value": null + }, + { + "check": "R4_machine_id", + "ok": true, + "value": [ + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e", + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e" + ] + }, + { + "check": "R4_machine_id_file", + "ok": true, + "value": null + }, + { + "check": "R4_prefix_digest", + "ok": true, + "value": [ + "ea8461470e4edc18dff5a54ca1717b9daa22e4afe029060467d778a7b577b37f", + "ea8461470e4edc18dff5a54ca1717b9daa22e4afe029060467d778a7b577b37f" + ] + }, + { + "check": "R1_intents_cite_earlier_matching_grants", + "ok": true, + "value": [ + 34 + ] + }, + { + "check": "R1_workspace_only_proposal_path", + "ok": true, + "value": [ + "9bfe8553/tmp/np2-fix/docs/README.md" + ] + }, + { + "check": "R1_outside_unchanged", + "ok": true, + "value": null + }, + { + "check": "R2_one_intent_per_authorization", + "ok": true, + "value": null + }, + { + "check": "R2_success_receipts_le_done_intents", + "ok": true, + "value": [ + 1, + 1 + ] + }, + { + "check": "R3_execute_ok_only_when_done", + "ok": true, + "value": "\"DONE\"" + }, + { + "check": "R3_done_means_content_on_disk", + "ok": true, + "value": null + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "a5260ca272374edbe621e461a5e62a30e9a2761961fa6fd608f9ce23bced916f" + }, + { + "file": "steps/count1.json", + "sha256": "e01e9cd88a354b3f0362051f4c16fab21e56b3203fd2101d530d4a57c3e53995" + }, + { + "file": "steps/count2.json", + "sha256": "400ebef0abfdd8ea8eef557281becf212b6fc7e8d485d7cfce17ecb05586cf64" + }, + { + "file": "steps/count3.json", + "sha256": "07f2f2a6a04b549e526e375720b5cad797021b6814321e92df7f3be3c8155085" + }, + { + "file": "steps/final-ledger.json", + "sha256": "1f3ae691795bcaad0fb0490deb84c35292e13e141f69815afa0698fbf4e90daf" + }, + { + "file": "steps/final-recall.json", + "sha256": "f77ac24929a17a753b3fd8c869fd5e4b01c0014eac19b3db702fcf7aec70120e" + }, + { + "file": "steps/L1.json", + "sha256": "5bfeda1dcd0b60b21bdc48bc75bdebf0c8498faf44ed66493d56743cc0a1108e" + }, + { + "file": "steps/pre.json", + "sha256": "0ba5edbe2fee2449f607feac32f4769b56837fed43b38578991f35e5f1a4b2c7" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "c42bb1283a16864009c176bd8fd16d44332507fa4b7814ad8c119a3efd288101" + }, + { + "file": "steps/X1.json", + "sha256": "3d5b6bd7e0d2f4c923ab9cdcec713d6ed6c3c414dff53ddc016488ba2d7801af" + }, + { + "file": "steps/X2.json", + "sha256": "cdca49876e6b8a907a82ccb329070cc0adb422f254127e191717a9a60cc84391" + }, + { + "file": "steps/X3.json", + "sha256": "58f9cff9f6710ae49f2e339c0bd2b75fca3235cd32ce5a3882bc5e1e1170a64e" + }, + { + "file": "daemon-1.log", + "sha256": "63766315b2f19eb69d07e795d34a136d46ad635d76a53e53da8c3377346b5c93" + }, + { + "file": "daemon-2.log", + "sha256": "63766315b2f19eb69d07e795d34a136d46ad635d76a53e53da8c3377346b5c93" + }, + { + "file": "daemon-3.log", + "sha256": "63766315b2f19eb69d07e795d34a136d46ad635d76a53e53da8c3377346b5c93" + } + ] + }, + { + "row": "C2b", + "rep": 1, + "injected_at": "hold after_intent; SIGKILL executor (daemon up)", + "outcome": "executor killed at after_intent -> NOT_DONE; retry AlreadySpent; new grant A2 DONE (approvals 2)", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "no_write", + "ok": true, + "value": null + }, + { + "check": "retry_refused_ReconciliationRequired", + "ok": true, + "value": "ReconciliationRequired" + }, + { + "check": "reconcile_records_NOT_DONE", + "ok": true, + "value": "NOT_DONE" + }, + { + "check": "ledger_NOT_DONE", + "ok": true, + "value": null + }, + { + "check": "retry_refused_AlreadySpent", + "ok": true, + "value": "AlreadySpent" + }, + { + "check": "no_write_by_retry", + "ok": true, + "value": null + }, + { + "check": "new_grant_DONE", + "ok": true, + "value": "DONE" + }, + { + "check": "approvals_2_both_counted", + "ok": true, + "value": 2 + }, + { + "check": "R4_machine_id", + "ok": true, + "value": [ + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e", + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e" + ] + }, + { + "check": "R4_machine_id_file", + "ok": true, + "value": null + }, + { + "check": "R4_prefix_digest", + "ok": true, + "value": [ + "5385884f992dad2152c2929788ae6a93460bf4eef641f07f41ba9d35c2f53538", + "5385884f992dad2152c2929788ae6a93460bf4eef641f07f41ba9d35c2f53538" + ] + }, + { + "check": "R1_intents_cite_earlier_matching_grants", + "ok": true, + "value": [ + 24, + 27 + ] + }, + { + "check": "R1_workspace_only_proposal_path", + "ok": true, + "value": [ + "9bfe8553/tmp/np2-fix/docs/README.md" + ] + }, + { + "check": "R1_outside_unchanged", + "ok": true, + "value": null + }, + { + "check": "R2_one_intent_per_authorization", + "ok": true, + "value": null + }, + { + "check": "R2_success_receipts_le_done_intents", + "ok": true, + "value": [ + 1, + 1 + ] + }, + { + "check": "R3_execute_ok_only_when_done", + "ok": true, + "value": "\"DONE\"" + }, + { + "check": "R3_done_means_content_on_disk", + "ok": true, + "value": null + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "b258c3ed20b64dda3b3455807b49be0f69de42f059ffbd19a405fca3e3fbdbd0" + }, + { + "file": "steps/A2.json", + "sha256": "0b7f74c4266105170db029877824f2cb91dab1bab9211ae82931b7176b9ff604" + }, + { + "file": "steps/final-ledger.json", + "sha256": "41dfd66bb76dd62a70dcb9c6ca7f62d466ba0995ec40b1790fdc50c6f926beea" + }, + { + "file": "steps/final-recall.json", + "sha256": "b4f5aabae7794582e8de5665e02cb21d42cdd593c859fca8bef898d505c8a207" + }, + { + "file": "steps/L1.json", + "sha256": "30992f9512dd4ea69663beafe3e6eb72543c8a4424321740032640871c50524f" + }, + { + "file": "steps/pre.json", + "sha256": "0dc54cd3c1b50fd108a0cc2999f4eb39db08feef88486fec0c51471147455816" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "74393560917075bf173bf12d668f519e7ce7e75fb318edbcce58cc96332fffe3" + }, + { + "file": "steps/RC3.json", + "sha256": "afd817b08969d4d205597fc6f7b8042e0fb541762034ffbf93738fe12e9cf4f1" + }, + { + "file": "steps/RC.json", + "sha256": "44b828dc6a87e40b2da43a429acd53053761214ec68aac3ca038041cf9eda6d4" + }, + { + "file": "steps/X1.json", + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + { + "file": "steps/X2.json", + "sha256": "18baf5a177d00cf7656507fe93a413aa2708bda72fb4802045799cbc61d5793d" + }, + { + "file": "steps/X3.json", + "sha256": "3ac1106571cc51f2bce3947aaa57cd4ab8e0328d83e0823cd9f423664b3221ef" + }, + { + "file": "steps/X4.json", + "sha256": "65267a117090816a484b9387192cb4f2f64fa1acb21c70039f00740c9c92996c" + }, + { + "file": "daemon-1.log", + "sha256": "f05953a9467d8e79878c43717ccc8962105cd39dbec86ebe66c374c57deb00e3" + } + ] + }, + { + "row": "C2b", + "rep": 2, + "injected_at": "hold after_intent; SIGKILL executor (daemon up)", + "outcome": "executor killed at after_intent -> NOT_DONE; retry AlreadySpent; new grant A2 DONE (approvals 2)", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "no_write", + "ok": true, + "value": null + }, + { + "check": "retry_refused_ReconciliationRequired", + "ok": true, + "value": "ReconciliationRequired" + }, + { + "check": "reconcile_records_NOT_DONE", + "ok": true, + "value": "NOT_DONE" + }, + { + "check": "ledger_NOT_DONE", + "ok": true, + "value": null + }, + { + "check": "retry_refused_AlreadySpent", + "ok": true, + "value": "AlreadySpent" + }, + { + "check": "no_write_by_retry", + "ok": true, + "value": null + }, + { + "check": "new_grant_DONE", + "ok": true, + "value": "DONE" + }, + { + "check": "approvals_2_both_counted", + "ok": true, + "value": 2 + }, + { + "check": "R4_machine_id", + "ok": true, + "value": [ + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e", + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e" + ] + }, + { + "check": "R4_machine_id_file", + "ok": true, + "value": null + }, + { + "check": "R4_prefix_digest", + "ok": true, + "value": [ + "c4624020de01c6e650c0abe13f80be12506abecaf295b9146dfdf304f9a5d5b6", + "c4624020de01c6e650c0abe13f80be12506abecaf295b9146dfdf304f9a5d5b6" + ] + }, + { + "check": "R1_intents_cite_earlier_matching_grants", + "ok": true, + "value": [ + 24, + 27 + ] + }, + { + "check": "R1_workspace_only_proposal_path", + "ok": true, + "value": [ + "9bfe8553/tmp/np2-fix/docs/README.md" + ] + }, + { + "check": "R1_outside_unchanged", + "ok": true, + "value": null + }, + { + "check": "R2_one_intent_per_authorization", + "ok": true, + "value": null + }, + { + "check": "R2_success_receipts_le_done_intents", + "ok": true, + "value": [ + 1, + 1 + ] + }, + { + "check": "R3_execute_ok_only_when_done", + "ok": true, + "value": "\"DONE\"" + }, + { + "check": "R3_done_means_content_on_disk", + "ok": true, + "value": null + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "8acce9a7a95cda149dc08297172fb97f6a4fa8b185bc3982248e31cf3a54dc97" + }, + { + "file": "steps/A2.json", + "sha256": "39815930b8ffaebf074839821dc74908f0d33d94ac4f11360a1301b53674bf8a" + }, + { + "file": "steps/final-ledger.json", + "sha256": "0e4f0183cf234e92c0c7bd8308dc4ddf1db8a103e06af776ada842990f7ef3b8" + }, + { + "file": "steps/final-recall.json", + "sha256": "0d76b43cd7929645f2b99272defc943aba1e622273686646d28c12b6811b86e8" + }, + { + "file": "steps/L1.json", + "sha256": "60e7d661ffbdf15e052caef1dd306e4625b1d33774c35cc74cd1d682a30b41bd" + }, + { + "file": "steps/pre.json", + "sha256": "7c2a6014f23be1b0d7113a060dbcf3ceb8632e5ca460b081ca5cfa38c4b64259" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "d15fe5d047387c3edda06df323307c1b143fb8760cfc433adce18b01e42a93e0" + }, + { + "file": "steps/RC3.json", + "sha256": "d04791c58756a607e2358283c48496014f131cfd104b4bd34ff26043745dc30e" + }, + { + "file": "steps/RC.json", + "sha256": "5f769a8dfbbe0aa88f167bd599d7bcd6f45796231f19018f4d6c485c2839d182" + }, + { + "file": "steps/X1.json", + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + { + "file": "steps/X2.json", + "sha256": "18baf5a177d00cf7656507fe93a413aa2708bda72fb4802045799cbc61d5793d" + }, + { + "file": "steps/X3.json", + "sha256": "3ac1106571cc51f2bce3947aaa57cd4ab8e0328d83e0823cd9f423664b3221ef" + }, + { + "file": "steps/X4.json", + "sha256": "0d6895b96b52842f7fc503048d791966e573af37b09ec77af2a7803729cd25b8" + }, + { + "file": "daemon-1.log", + "sha256": "3036840eac6af2c81a0af5dd80f5fd9861b3f791338f5fcb826f692019eb79a7" + } + ] + }, + { + "row": "C2b", + "rep": 3, + "injected_at": "hold after_intent; SIGKILL executor (daemon up)", + "outcome": "executor killed at after_intent -> NOT_DONE; retry AlreadySpent; new grant A2 DONE (approvals 2)", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "no_write", + "ok": true, + "value": null + }, + { + "check": "retry_refused_ReconciliationRequired", + "ok": true, + "value": "ReconciliationRequired" + }, + { + "check": "reconcile_records_NOT_DONE", + "ok": true, + "value": "NOT_DONE" + }, + { + "check": "ledger_NOT_DONE", + "ok": true, + "value": null + }, + { + "check": "retry_refused_AlreadySpent", + "ok": true, + "value": "AlreadySpent" + }, + { + "check": "no_write_by_retry", + "ok": true, + "value": null + }, + { + "check": "new_grant_DONE", + "ok": true, + "value": "DONE" + }, + { + "check": "approvals_2_both_counted", + "ok": true, + "value": 2 + }, + { + "check": "R4_machine_id", + "ok": true, + "value": [ + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e", + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e" + ] + }, + { + "check": "R4_machine_id_file", + "ok": true, + "value": null + }, + { + "check": "R4_prefix_digest", + "ok": true, + "value": [ + "7ed9874134a0ced0b882d9d9fffcb79d11518e517edd8def22114fea01fb0e81", + "7ed9874134a0ced0b882d9d9fffcb79d11518e517edd8def22114fea01fb0e81" + ] + }, + { + "check": "R1_intents_cite_earlier_matching_grants", + "ok": true, + "value": [ + 24, + 27 + ] + }, + { + "check": "R1_workspace_only_proposal_path", + "ok": true, + "value": [ + "9bfe8553/tmp/np2-fix/docs/README.md" + ] + }, + { + "check": "R1_outside_unchanged", + "ok": true, + "value": null + }, + { + "check": "R2_one_intent_per_authorization", + "ok": true, + "value": null + }, + { + "check": "R2_success_receipts_le_done_intents", + "ok": true, + "value": [ + 1, + 1 + ] + }, + { + "check": "R3_execute_ok_only_when_done", + "ok": true, + "value": "\"DONE\"" + }, + { + "check": "R3_done_means_content_on_disk", + "ok": true, + "value": null + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "79afaaa8deeb9b1936d91819765c722d699d3c92e9823defe27563e785dd6263" + }, + { + "file": "steps/A2.json", + "sha256": "f1ffa0060979acd6d5734d054b4e5817f6cd69ca25b58b9d0bda8bf877191d2d" + }, + { + "file": "steps/final-ledger.json", + "sha256": "7f928073025a2904a0d69f60b5342d4ed3699f32518d7ce9e43baf3e981441ca" + }, + { + "file": "steps/final-recall.json", + "sha256": "bf977817953c133abe73f750447ac66b8afc4127f6a3fa627bc87cd940041ec1" + }, + { + "file": "steps/L1.json", + "sha256": "d11f8b39bacbbeec455a6feede9081fd4d05ba56e651f9a94e63ef9c7379c412" + }, + { + "file": "steps/pre.json", + "sha256": "f8571d92621248b6e39e6814287abe7f771c8b294d5d58e2c8c8344dce688ce7" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "f4b4ae36d9d2d75e0bd834f739da232d8d566b9c04db003e0cb3ecec8b8e552f" + }, + { + "file": "steps/RC3.json", + "sha256": "fe9564c2b533af23d2d9a547f33880130cb91d05ccecec94f31dd761585d3be0" + }, + { + "file": "steps/RC.json", + "sha256": "0abff1af400c4f2d24ac9794d631625bf1f636c17dd3e35cffa08331f6324808" + }, + { + "file": "steps/X1.json", + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + { + "file": "steps/X2.json", + "sha256": "18baf5a177d00cf7656507fe93a413aa2708bda72fb4802045799cbc61d5793d" + }, + { + "file": "steps/X3.json", + "sha256": "3ac1106571cc51f2bce3947aaa57cd4ab8e0328d83e0823cd9f423664b3221ef" + }, + { + "file": "steps/X4.json", + "sha256": "ac3f8eba12ec294325351d337effc02bf4fa14fa99a06011eb9e4c6b44a740b5" + }, + { + "file": "daemon-1.log", + "sha256": "50393b1b34c46addd65df2ac104d9b21349bf184c4d3aef82f9c03bbcc11cc19" + } + ] + }, + { + "row": "C2c", + "rep": 1, + "injected_at": "hold after_intent; SIGKILL daemon then executor; restart", + "outcome": "executor killed at after_intent -> NOT_DONE; retry AlreadySpent", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "no_write", + "ok": true, + "value": null + }, + { + "check": "daemon_daemon-2_up", + "ok": true, + "value": null + }, + { + "check": "restart_reconcile_NOT_DONE", + "ok": true, + "value": "Reconcile: checked 1 unsettled effect(s): DONE 0, NOT_DONE 1, UNRESOLVED 0 recorded, 0 left as they were; [{\"intent\":24,\"authorization\":23,\"state\":\"NOT_DONE\",\"disk_sha256\":null,\"record\":30,\"note\":\"reconcile@start\"}]" + }, + { + "check": "recall_shows_intent", + "ok": true, + "value": null + }, + { + "check": "recall_shows_reconcile_record", + "ok": true, + "value": null + }, + { + "check": "ledger_NOT_DONE", + "ok": true, + "value": null + }, + { + "check": "retry_refused_AlreadySpent", + "ok": true, + "value": "AlreadySpent" + }, + { + "check": "no_write_by_retry", + "ok": true, + "value": null + }, + { + "check": "R4_machine_id", + "ok": true, + "value": [ + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e", + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e" + ] + }, + { + "check": "R4_machine_id_file", + "ok": true, + "value": null + }, + { + "check": "R4_prefix_digest", + "ok": true, + "value": [ + "c0e3d5adbe30cfee3c754174a71d1900c6947dc9e5e55b735d89a87f81486602", + "c0e3d5adbe30cfee3c754174a71d1900c6947dc9e5e55b735d89a87f81486602" + ] + }, + { + "check": "R1_intents_cite_earlier_matching_grants", + "ok": true, + "value": [ + 24 + ] + }, + { + "check": "R1_workspace_only_proposal_path", + "ok": true, + "value": [] + }, + { + "check": "R1_outside_unchanged", + "ok": true, + "value": null + }, + { + "check": "R2_one_intent_per_authorization", + "ok": true, + "value": null + }, + { + "check": "R2_success_receipts_le_done_intents", + "ok": true, + "value": [ + 0, + 0 + ] + }, + { + "check": "R3_execute_ok_only_when_done", + "ok": true, + "value": "" + }, + { + "check": "R3_done_means_content_on_disk", + "ok": true, + "value": null + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "bea89b32f21130826854aad42d0270d998119a7a9a2b8b407cbb263210d4f6c1" + }, + { + "file": "steps/final-ledger.json", + "sha256": "80f6ee36ac192ab056f910cf211bec4c3740f6154d34f48f6cc78c1e7f3513f0" + }, + { + "file": "steps/final-recall.json", + "sha256": "f5dad92096152531ba919f38bb61bb3d86cf1b86a0ceaa04bed397c42aa7a14a" + }, + { + "file": "steps/L1.json", + "sha256": "80f6ee36ac192ab056f910cf211bec4c3740f6154d34f48f6cc78c1e7f3513f0" + }, + { + "file": "steps/pre.json", + "sha256": "68b49e0503f25151c56166becffe1113f04e8a09c351d4a533f64326d71d6128" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "5636d136491da1457220f7be271b5bfe357b73bcd36b4e7ed8966d8d10423836" + }, + { + "file": "steps/RC2.json", + "sha256": "935cd18a44ab4d29a1b0857e7fcf544802b7cf3ac0199b03a41c7c876d6733ed" + }, + { + "file": "steps/X1.json", + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + { + "file": "steps/X3.json", + "sha256": "3ac1106571cc51f2bce3947aaa57cd4ab8e0328d83e0823cd9f423664b3221ef" + }, + { + "file": "daemon-1.log", + "sha256": "e33b81a1da45779ee226f3e914acc02a8f2e6d3cbf20e609d20536a506b161fa" + }, + { + "file": "daemon-2.log", + "sha256": "2a89b5b8e6fdd8cffcae7da4170aa6fa9a96222edf21b5c8638b5185eb7d0137" + } + ] + }, + { + "row": "C2c", + "rep": 2, + "injected_at": "hold after_intent; SIGKILL daemon then executor; restart", + "outcome": "executor killed at after_intent -> NOT_DONE; retry AlreadySpent", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "no_write", + "ok": true, + "value": null + }, + { + "check": "daemon_daemon-2_up", + "ok": true, + "value": null + }, + { + "check": "restart_reconcile_NOT_DONE", + "ok": true, + "value": "Reconcile: checked 1 unsettled effect(s): DONE 0, NOT_DONE 1, UNRESOLVED 0 recorded, 0 left as they were; [{\"intent\":24,\"authorization\":23,\"state\":\"NOT_DONE\",\"disk_sha256\":null,\"record\":30,\"note\":\"reconcile@start\"}]" + }, + { + "check": "recall_shows_intent", + "ok": true, + "value": null + }, + { + "check": "recall_shows_reconcile_record", + "ok": true, + "value": null + }, + { + "check": "ledger_NOT_DONE", + "ok": true, + "value": null + }, + { + "check": "retry_refused_AlreadySpent", + "ok": true, + "value": "AlreadySpent" + }, + { + "check": "no_write_by_retry", + "ok": true, + "value": null + }, + { + "check": "R4_machine_id", + "ok": true, + "value": [ + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e", + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e" + ] + }, + { + "check": "R4_machine_id_file", + "ok": true, + "value": null + }, + { + "check": "R4_prefix_digest", + "ok": true, + "value": [ + "7069c75b1d95d017b81c678142f6de9d54cad06ff2ace9b15e77defba2705df9", + "7069c75b1d95d017b81c678142f6de9d54cad06ff2ace9b15e77defba2705df9" + ] + }, + { + "check": "R1_intents_cite_earlier_matching_grants", + "ok": true, + "value": [ + 24 + ] + }, + { + "check": "R1_workspace_only_proposal_path", + "ok": true, + "value": [] + }, + { + "check": "R1_outside_unchanged", + "ok": true, + "value": null + }, + { + "check": "R2_one_intent_per_authorization", + "ok": true, + "value": null + }, + { + "check": "R2_success_receipts_le_done_intents", + "ok": true, + "value": [ + 0, + 0 + ] + }, + { + "check": "R3_execute_ok_only_when_done", + "ok": true, + "value": "" + }, + { + "check": "R3_done_means_content_on_disk", + "ok": true, + "value": null + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "d0a89c6a869a8b8ca2f69b5f0ba28fb19717bb024d5e8445c0520f233f1bcffa" + }, + { + "file": "steps/final-ledger.json", + "sha256": "c7c1cd0de1573885630cbc24c5dd7e1be24b6b8fd65a7c6b9b0cdf2b09b045b9" + }, + { + "file": "steps/final-recall.json", + "sha256": "afcc0a196d3fb11721b4f9c49a8008de5950d4bc439fc6803de500ac8ab46312" + }, + { + "file": "steps/L1.json", + "sha256": "c7c1cd0de1573885630cbc24c5dd7e1be24b6b8fd65a7c6b9b0cdf2b09b045b9" + }, + { + "file": "steps/pre.json", + "sha256": "19abcc61aea068961d1b0535f4b5230be6a7480dc2dd64d9acb85e2694585848" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "731e782ccf7531a2042a67310767cb78476aac8409e7e86cfea80b94b502a4e5" + }, + { + "file": "steps/RC2.json", + "sha256": "59466b1fef25d4a75f0e85fefaf31549d48d4b7e4f7781b49f07cf4955740328" + }, + { + "file": "steps/X1.json", + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + { + "file": "steps/X3.json", + "sha256": "3ac1106571cc51f2bce3947aaa57cd4ab8e0328d83e0823cd9f423664b3221ef" + }, + { + "file": "daemon-1.log", + "sha256": "8b686718f83a5c74c67c7bf32db7e89b5cbad9542afc973af5fca145c6b76d61" + }, + { + "file": "daemon-2.log", + "sha256": "d1e53c5b00baf099cb351ea21cff37dd50959190ca3bf206c73d86bccec2b44c" + } + ] + }, + { + "row": "C2c", + "rep": 3, + "injected_at": "hold after_intent; SIGKILL daemon then executor; restart", + "outcome": "executor killed at after_intent -> NOT_DONE; retry AlreadySpent", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "no_write", + "ok": true, + "value": null + }, + { + "check": "daemon_daemon-2_up", + "ok": true, + "value": null + }, + { + "check": "restart_reconcile_NOT_DONE", + "ok": true, + "value": "Reconcile: checked 1 unsettled effect(s): DONE 0, NOT_DONE 1, UNRESOLVED 0 recorded, 0 left as they were; [{\"intent\":24,\"authorization\":23,\"state\":\"NOT_DONE\",\"disk_sha256\":null,\"record\":30,\"note\":\"reconcile@start\"}]" + }, + { + "check": "recall_shows_intent", + "ok": true, + "value": null + }, + { + "check": "recall_shows_reconcile_record", + "ok": true, + "value": null + }, + { + "check": "ledger_NOT_DONE", + "ok": true, + "value": null + }, + { + "check": "retry_refused_AlreadySpent", + "ok": true, + "value": "AlreadySpent" + }, + { + "check": "no_write_by_retry", + "ok": true, + "value": null + }, + { + "check": "R4_machine_id", + "ok": true, + "value": [ + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e", + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e" + ] + }, + { + "check": "R4_machine_id_file", + "ok": true, + "value": null + }, + { + "check": "R4_prefix_digest", + "ok": true, + "value": [ + "400b93c6626db7aa0a350ff0255e4e40fa03036cd8edf4dbb89eb34951a61c99", + "400b93c6626db7aa0a350ff0255e4e40fa03036cd8edf4dbb89eb34951a61c99" + ] + }, + { + "check": "R1_intents_cite_earlier_matching_grants", + "ok": true, + "value": [ + 24 + ] + }, + { + "check": "R1_workspace_only_proposal_path", + "ok": true, + "value": [] + }, + { + "check": "R1_outside_unchanged", + "ok": true, + "value": null + }, + { + "check": "R2_one_intent_per_authorization", + "ok": true, + "value": null + }, + { + "check": "R2_success_receipts_le_done_intents", + "ok": true, + "value": [ + 0, + 0 + ] + }, + { + "check": "R3_execute_ok_only_when_done", + "ok": true, + "value": "" + }, + { + "check": "R3_done_means_content_on_disk", + "ok": true, + "value": null + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "e3c3a64c608e904d8ae7fabb49b297c6a43ecfb764f5cb040a2672a9f0a4dfb9" + }, + { + "file": "steps/final-ledger.json", + "sha256": "7ba598a2182d8f0b4fbac9e52846fc1585fe7287b47acb9c0c53b8a40759340f" + }, + { + "file": "steps/final-recall.json", + "sha256": "c4d258c5508a42fb509503797b6c43cfbe073a76ecafa535286340ca5cedeafb" + }, + { + "file": "steps/L1.json", + "sha256": "7ba598a2182d8f0b4fbac9e52846fc1585fe7287b47acb9c0c53b8a40759340f" + }, + { + "file": "steps/pre.json", + "sha256": "5b853865c64b449626b0036fb23a403271de552d367c7a144c9c0bf0ac03f6b7" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "49debf7c09b1c645fcc8eddbb8729190567db0022b39c7dcc50b2a0f2a3a69cd" + }, + { + "file": "steps/RC2.json", + "sha256": "c2625c4c719f94d9f3cf32324fc7f65910dc3a7c7794c4c265af31d54c1e9bec" + }, + { + "file": "steps/X1.json", + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + { + "file": "steps/X3.json", + "sha256": "3ac1106571cc51f2bce3947aaa57cd4ab8e0328d83e0823cd9f423664b3221ef" + }, + { + "file": "daemon-1.log", + "sha256": "6227cde0639036bea8baaa80b29dbdcafb502623ad5d58243492b45ab3a5b902" + }, + { + "file": "daemon-2.log", + "sha256": "8acea0f246fbc62f04212d4a0b7e7c66fcff10529660ec5a66a7a17db372ac49" + } + ] + }, + { + "row": "C2d", + "rep": 1, + "injected_at": "hold after_write; SIGKILL executor (daemon up)", + "outcome": "executor killed at after_write -> DONE; retry AlreadySpent", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "written", + "ok": true, + "value": null + }, + { + "check": "retry_refused_ReconciliationRequired", + "ok": true, + "value": "ReconciliationRequired" + }, + { + "check": "reconcile_records_DONE", + "ok": true, + "value": "DONE" + }, + { + "check": "ledger_DONE", + "ok": true, + "value": null + }, + { + "check": "retry_refused_AlreadySpent", + "ok": true, + "value": "AlreadySpent" + }, + { + "check": "no_write_by_retry", + "ok": true, + "value": null + }, + { + "check": "R4_machine_id", + "ok": true, + "value": [ + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e", + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e" + ] + }, + { + "check": "R4_machine_id_file", + "ok": true, + "value": null + }, + { + "check": "R4_prefix_digest", + "ok": true, + "value": [ + "02d9a36d84422a48902f837e6e00672581ca5416ba9c2f9f8dddea934bf76500", + "02d9a36d84422a48902f837e6e00672581ca5416ba9c2f9f8dddea934bf76500" + ] + }, + { + "check": "R1_intents_cite_earlier_matching_grants", + "ok": true, + "value": [ + 24 + ] + }, + { + "check": "R1_workspace_only_proposal_path", + "ok": true, + "value": [ + "9bfe8553/tmp/np2-fix/docs/README.md" + ] + }, + { + "check": "R1_outside_unchanged", + "ok": true, + "value": null + }, + { + "check": "R2_one_intent_per_authorization", + "ok": true, + "value": null + }, + { + "check": "R2_success_receipts_le_done_intents", + "ok": true, + "value": [ + 0, + 1 + ] + }, + { + "check": "R3_execute_ok_only_when_done", + "ok": true, + "value": "" + }, + { + "check": "R3_done_means_content_on_disk", + "ok": true, + "value": null + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "28126aff331d30f13ff63f9dd4bb6372495c4c768f9ef3821f90285bfc6f61d7" + }, + { + "file": "steps/final-ledger.json", + "sha256": "732e9c80d3764ff4103f145af2dd0ed6e7d2a8817e29e4703f8363d2484363ec" + }, + { + "file": "steps/final-recall.json", + "sha256": "6cc29a742de1d15aec37e61e118f25ae479c0e23a1d393ea150c88186aed543d" + }, + { + "file": "steps/L1.json", + "sha256": "732e9c80d3764ff4103f145af2dd0ed6e7d2a8817e29e4703f8363d2484363ec" + }, + { + "file": "steps/pre.json", + "sha256": "21943d06f60d4d932e7b9d90789ed155a39f182cbf45fbc401bb8788f654a714" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "afa3b2abbc6da60338f0f982b268978c4f48efc6f2365820bb0a75cec1513cba" + }, + { + "file": "steps/RC.json", + "sha256": "7a3fbbb6c7bafda06aa845e5a3d6c809b4787eae09abbc34c847c62e65ffaf3e" + }, + { + "file": "steps/X1.json", + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + { + "file": "steps/X2.json", + "sha256": "18baf5a177d00cf7656507fe93a413aa2708bda72fb4802045799cbc61d5793d" + }, + { + "file": "steps/X3.json", + "sha256": "e087d3973661e4ad95d6eccabe4de396139b618293775ebcdbf20b85301810ac" + }, + { + "file": "daemon-1.log", + "sha256": "7ca096c153edfb92d3a6196721cb9f8a4d8cc39c3cf74d9545bab4c4e9460312" + } + ] + }, + { + "row": "C2d", + "rep": 2, + "injected_at": "hold after_write; SIGKILL executor (daemon up)", + "outcome": "executor killed at after_write -> DONE; retry AlreadySpent", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "written", + "ok": true, + "value": null + }, + { + "check": "retry_refused_ReconciliationRequired", + "ok": true, + "value": "ReconciliationRequired" + }, + { + "check": "reconcile_records_DONE", + "ok": true, + "value": "DONE" + }, + { + "check": "ledger_DONE", + "ok": true, + "value": null + }, + { + "check": "retry_refused_AlreadySpent", + "ok": true, + "value": "AlreadySpent" + }, + { + "check": "no_write_by_retry", + "ok": true, + "value": null + }, + { + "check": "R4_machine_id", + "ok": true, + "value": [ + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e", + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e" + ] + }, + { + "check": "R4_machine_id_file", + "ok": true, + "value": null + }, + { + "check": "R4_prefix_digest", + "ok": true, + "value": [ + "41656c8354291cc88026607e9501e366f51671f89216d537c6dc4de1d6abbf20", + "41656c8354291cc88026607e9501e366f51671f89216d537c6dc4de1d6abbf20" + ] + }, + { + "check": "R1_intents_cite_earlier_matching_grants", + "ok": true, + "value": [ + 24 + ] + }, + { + "check": "R1_workspace_only_proposal_path", + "ok": true, + "value": [ + "9bfe8553/tmp/np2-fix/docs/README.md" + ] + }, + { + "check": "R1_outside_unchanged", + "ok": true, + "value": null + }, + { + "check": "R2_one_intent_per_authorization", + "ok": true, + "value": null + }, + { + "check": "R2_success_receipts_le_done_intents", + "ok": true, + "value": [ + 0, + 1 + ] + }, + { + "check": "R3_execute_ok_only_when_done", + "ok": true, + "value": "" + }, + { + "check": "R3_done_means_content_on_disk", + "ok": true, + "value": null + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "82668925f606ebb5154d7f03e0746124c9fa54801d3ac90af0445e576f806f22" + }, + { + "file": "steps/final-ledger.json", + "sha256": "d4a593c0b9ed5b10b76593a30f5f04d78a0e8bbba5f76d2f6676bc15ebe0872b" + }, + { + "file": "steps/final-recall.json", + "sha256": "cd0d93087c938a0ff1cd3af6c41684dacdf91036985c2147ac8a37f9b8a0a022" + }, + { + "file": "steps/L1.json", + "sha256": "d4a593c0b9ed5b10b76593a30f5f04d78a0e8bbba5f76d2f6676bc15ebe0872b" + }, + { + "file": "steps/pre.json", + "sha256": "da95f0cb07aefa03956ef4527caa53907870f825602034ec53eb9f3b7b36c03e" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "58116ff02f2270e8c59b5797b1a17d8440f8260bcdda9480f8d35fec0d14dd59" + }, + { + "file": "steps/RC.json", + "sha256": "720f60e395a878e037f7cb6d6874f5f44782335236dbe17296b0052efbb35054" + }, + { + "file": "steps/X1.json", + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + { + "file": "steps/X2.json", + "sha256": "18baf5a177d00cf7656507fe93a413aa2708bda72fb4802045799cbc61d5793d" + }, + { + "file": "steps/X3.json", + "sha256": "e087d3973661e4ad95d6eccabe4de396139b618293775ebcdbf20b85301810ac" + }, + { + "file": "daemon-1.log", + "sha256": "cadb249bf4e553e7906bb8fdacfba484450882a2ddc3c376ef6da3373868f4a3" + } + ] + }, + { + "row": "C2d", + "rep": 3, + "injected_at": "hold after_write; SIGKILL executor (daemon up)", + "outcome": "executor killed at after_write -> DONE; retry AlreadySpent", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "written", + "ok": true, + "value": null + }, + { + "check": "retry_refused_ReconciliationRequired", + "ok": true, + "value": "ReconciliationRequired" + }, + { + "check": "reconcile_records_DONE", + "ok": true, + "value": "DONE" + }, + { + "check": "ledger_DONE", + "ok": true, + "value": null + }, + { + "check": "retry_refused_AlreadySpent", + "ok": true, + "value": "AlreadySpent" + }, + { + "check": "no_write_by_retry", + "ok": true, + "value": null + }, + { + "check": "R4_machine_id", + "ok": true, + "value": [ + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e", + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e" + ] + }, + { + "check": "R4_machine_id_file", + "ok": true, + "value": null + }, + { + "check": "R4_prefix_digest", + "ok": true, + "value": [ + "7de89750d4a569a3f8b9e385dfccb5a1dfa72cfedc2ea47956eae672dedce8d1", + "7de89750d4a569a3f8b9e385dfccb5a1dfa72cfedc2ea47956eae672dedce8d1" + ] + }, + { + "check": "R1_intents_cite_earlier_matching_grants", + "ok": true, + "value": [ + 24 + ] + }, + { + "check": "R1_workspace_only_proposal_path", + "ok": true, + "value": [ + "9bfe8553/tmp/np2-fix/docs/README.md" + ] + }, + { + "check": "R1_outside_unchanged", + "ok": true, + "value": null + }, + { + "check": "R2_one_intent_per_authorization", + "ok": true, + "value": null + }, + { + "check": "R2_success_receipts_le_done_intents", + "ok": true, + "value": [ + 0, + 1 + ] + }, + { + "check": "R3_execute_ok_only_when_done", + "ok": true, + "value": "" + }, + { + "check": "R3_done_means_content_on_disk", + "ok": true, + "value": null + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "6b605c9a108ad56794ff90b1b220e1f78ad6a4a229288efea665b385e1655ac6" + }, + { + "file": "steps/final-ledger.json", + "sha256": "77e0662f139c9730e0eec3cc946912bd80c02a72199ff6227b263ee07163e28a" + }, + { + "file": "steps/final-recall.json", + "sha256": "c8f3d4748e1aec70a51b523992688fb123cbfbf7b3f879ff1b36e0b802c8923f" + }, + { + "file": "steps/L1.json", + "sha256": "77e0662f139c9730e0eec3cc946912bd80c02a72199ff6227b263ee07163e28a" + }, + { + "file": "steps/pre.json", + "sha256": "2256c1a75e4da6eba3dec69782a753166c5f8122e04f42671ddc02ea76717825" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "9328a5124fcef84010de14caf4ecb1079ffc7fc96e6ad884123697be485f3a3b" + }, + { + "file": "steps/RC.json", + "sha256": "de1f4fb9e512f35aed763d64d1631da4e23faef577466cb742785fec805d2feb" + }, + { + "file": "steps/X1.json", + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" + }, + { + "file": "steps/X2.json", + "sha256": "18baf5a177d00cf7656507fe93a413aa2708bda72fb4802045799cbc61d5793d" + }, + { + "file": "steps/X3.json", + "sha256": "e087d3973661e4ad95d6eccabe4de396139b618293775ebcdbf20b85301810ac" + }, + { + "file": "daemon-1.log", + "sha256": "4dee5d8054d1eaadd644b8f7711ac64a8af45c40f2df5fd6d1609c90fc069e8f" + } + ] + }, + { + "row": "C3a", + "rep": 1, + "injected_at": "cpu-fault daemon started with AIEN_REQUIRE_BLACKWELL=1", + "outcome": "refused: Fatal: the GB10 GPU is required (AIEN_REQUIRE_BLACKWELL or AIEN_GPU_BACKEND=omega) but the Omega GPU engine is not linke", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_refused", + "ok": true, + "value": 1 + }, + { + "check": "exit_nonzero", + "ok": true, + "value": 1 + }, + { + "check": "names_gb10_requirement", + "ok": true, + "value": "Fatal: the GB10 GPU is required (AIEN_REQUIRE_BLACKWELL or AIEN_GPU_BACKEND=omega) but the Omega GPU engine is not linked (stub build)" + }, + { + "check": "no_socket", + "ok": true, + "value": null + }, + { + "check": "home_unchanged", + "ok": true, + "value": null + }, + { + "check": "workspace_unchanged", + "ok": true, + "value": null + } + ], + "evidence_digests": [ + { + "file": "daemon-1.log", + "sha256": "658f4b73dfd9172692bd559be60a84650cf5dbb48c9b3485dd81245da9f2dffe" + } + ] + }, + { + "row": "C3a", + "rep": 2, + "injected_at": "cpu-fault daemon started with AIEN_REQUIRE_BLACKWELL=1", + "outcome": "refused: Fatal: the GB10 GPU is required (AIEN_REQUIRE_BLACKWELL or AIEN_GPU_BACKEND=omega) but the Omega GPU engine is not linke", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_refused", + "ok": true, + "value": 1 + }, + { + "check": "exit_nonzero", + "ok": true, + "value": 1 + }, + { + "check": "names_gb10_requirement", + "ok": true, + "value": "Fatal: the GB10 GPU is required (AIEN_REQUIRE_BLACKWELL or AIEN_GPU_BACKEND=omega) but the Omega GPU engine is not linked (stub build)" + }, + { + "check": "no_socket", + "ok": true, + "value": null + }, + { + "check": "home_unchanged", + "ok": true, + "value": null + }, + { + "check": "workspace_unchanged", + "ok": true, + "value": null + } + ], + "evidence_digests": [ + { + "file": "daemon-1.log", + "sha256": "658f4b73dfd9172692bd559be60a84650cf5dbb48c9b3485dd81245da9f2dffe" + } + ] + }, + { + "row": "C3a", + "rep": 3, + "injected_at": "cpu-fault daemon started with AIEN_REQUIRE_BLACKWELL=1", + "outcome": "refused: Fatal: the GB10 GPU is required (AIEN_REQUIRE_BLACKWELL or AIEN_GPU_BACKEND=omega) but the Omega GPU engine is not linke", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_refused", + "ok": true, + "value": 1 + }, + { + "check": "exit_nonzero", + "ok": true, + "value": 1 + }, + { + "check": "names_gb10_requirement", + "ok": true, + "value": "Fatal: the GB10 GPU is required (AIEN_REQUIRE_BLACKWELL or AIEN_GPU_BACKEND=omega) but the Omega GPU engine is not linked (stub build)" + }, + { + "check": "no_socket", + "ok": true, + "value": null + }, + { + "check": "home_unchanged", + "ok": true, + "value": null + }, + { + "check": "workspace_unchanged", + "ok": true, + "value": null + } + ], + "evidence_digests": [ + { + "file": "daemon-1.log", + "sha256": "658f4b73dfd9172692bd559be60a84650cf5dbb48c9b3485dd81245da9f2dffe" + } + ] + }, + { + "row": "C3b", + "rep": 1, + "injected_at": "cpu-fault daemon, no GPU requirement; S3 propose", + "outcome": "CPU-reference daemon; propose committed=false", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "backend_cpu_reference", + "ok": true, + "value": " Backend: NativeTransformerBackend/CPU-reference (Omega GPU engine not linked, explicit fallback)" + }, + { + "check": "propose_outcome_explicit", + "ok": true, + "value": "committed=false tokenizer is not loaded; native chat cannot encode the prompt" + }, + { + "check": "no_gpu_claim", + "ok": true, + "value": null + }, + { + "check": "no_intents", + "ok": true, + "value": null + }, + { + "check": "workspace_unchanged", + "ok": true, + "value": null + }, + { + "check": "R4_machine_id", + "ok": true, + "value": [ + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e", + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e" + ] + }, + { + "check": "R4_machine_id_file", + "ok": true, + "value": null + }, + { + "check": "R4_prefix_digest", + "ok": true, + "value": [ + "1865634bd3dd3bae2c68bf688280c295fb4277b56c9458ac52941b27780c3a6f", + "1865634bd3dd3bae2c68bf688280c295fb4277b56c9458ac52941b27780c3a6f" + ] + }, + { + "check": "R1_intents_cite_earlier_matching_grants", + "ok": true, + "value": [] + }, + { + "check": "R1_workspace_only_proposal_path", + "ok": true, + "value": [] + }, + { + "check": "R1_outside_unchanged", + "ok": true, + "value": null + }, + { + "check": "R2_one_intent_per_authorization", + "ok": true, + "value": null + }, + { + "check": "R2_success_receipts_le_done_intents", + "ok": true, + "value": [ + 0, + 0 + ] + }, + { + "check": "R3_execute_ok_only_when_done", + "ok": true, + "value": "" + }, + { + "check": "R3_done_means_content_on_disk", + "ok": true, + "value": null + } + ], + "evidence_digests": [ + { + "file": "steps/final-ledger.json", + "sha256": "5bfeda1dcd0b60b21bdc48bc75bdebf0c8498faf44ed66493d56743cc0a1108e" + }, + { + "file": "steps/final-recall.json", + "sha256": "03bcfbb4edb3b151635b7bace08ffa024d3c437f85b807ea3e813b4a992c3fad" + }, + { + "file": "steps/L1.json", + "sha256": "5bfeda1dcd0b60b21bdc48bc75bdebf0c8498faf44ed66493d56743cc0a1108e" + }, + { + "file": "steps/P1.json", + "sha256": "62b1326868cc919853981747b8d9641af0fef06ddc7fb8e4290b17c5f38e88e1" + }, + { + "file": "steps/pre.json", + "sha256": "3ffb4adc203c0694032cbbf0edee1586156db5621dbdfbe3256316d96c654f91" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "8df679f485f82eeabb6e885a2a0a09db431734fb245d357df956ce28d60a2bdd" + }, + { + "file": "daemon-1.log", + "sha256": "b45abbc59d5f8c953b9f4ae18c542cf9a1fb46c799cd454f962dabae0e87fbf7" + } + ] + }, + { + "row": "C3b", + "rep": 2, + "injected_at": "cpu-fault daemon, no GPU requirement; S3 propose", + "outcome": "CPU-reference daemon; propose committed=false", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "backend_cpu_reference", + "ok": true, + "value": " Backend: NativeTransformerBackend/CPU-reference (Omega GPU engine not linked, explicit fallback)" + }, + { + "check": "propose_outcome_explicit", + "ok": true, + "value": "committed=false tokenizer is not loaded; native chat cannot encode the prompt" + }, + { + "check": "no_gpu_claim", + "ok": true, + "value": null + }, + { + "check": "no_intents", + "ok": true, + "value": null + }, + { + "check": "workspace_unchanged", + "ok": true, + "value": null + }, + { + "check": "R4_machine_id", + "ok": true, + "value": [ + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e", + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e" + ] + }, + { + "check": "R4_machine_id_file", + "ok": true, + "value": null + }, + { + "check": "R4_prefix_digest", + "ok": true, + "value": [ + "2abab9ccf7548ce2f5423a91c0002e78470d182cfdddaee8aab5a51eedf149fd", + "2abab9ccf7548ce2f5423a91c0002e78470d182cfdddaee8aab5a51eedf149fd" + ] + }, + { + "check": "R1_intents_cite_earlier_matching_grants", + "ok": true, + "value": [] + }, + { + "check": "R1_workspace_only_proposal_path", + "ok": true, + "value": [] + }, + { + "check": "R1_outside_unchanged", + "ok": true, + "value": null + }, + { + "check": "R2_one_intent_per_authorization", + "ok": true, + "value": null + }, + { + "check": "R2_success_receipts_le_done_intents", + "ok": true, + "value": [ + 0, + 0 + ] + }, + { + "check": "R3_execute_ok_only_when_done", + "ok": true, + "value": "" + }, + { + "check": "R3_done_means_content_on_disk", + "ok": true, + "value": null + } + ], + "evidence_digests": [ + { + "file": "steps/final-ledger.json", + "sha256": "5bfeda1dcd0b60b21bdc48bc75bdebf0c8498faf44ed66493d56743cc0a1108e" + }, + { + "file": "steps/final-recall.json", + "sha256": "1e969e535ae0fec300879fb8501a0313230977d2e15abb03471638336b7992a5" + }, + { + "file": "steps/L1.json", + "sha256": "5bfeda1dcd0b60b21bdc48bc75bdebf0c8498faf44ed66493d56743cc0a1108e" + }, + { + "file": "steps/P1.json", + "sha256": "a542496f8e3c13de3cf654c263ffa0865a86f9f89c51d9baa6bd6b4b1497efb6" + }, + { + "file": "steps/pre.json", + "sha256": "480c5c40e7109de9c1a116e439cbacbe3d509b25bdaf3656cf9beaeda8382ce5" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "507fad8f754dbe68e82f18c574d9c590239c9752d015e313998d5c51fe27dfd6" + }, + { + "file": "daemon-1.log", + "sha256": "c48b572e498aafbb16025b8c62999c246379aa8fa3b48475115f1d244d883721" + } + ] + }, + { + "row": "C3b", + "rep": 3, + "injected_at": "cpu-fault daemon, no GPU requirement; S3 propose", + "outcome": "CPU-reference daemon; propose committed=false", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "backend_cpu_reference", + "ok": true, + "value": " Backend: NativeTransformerBackend/CPU-reference (Omega GPU engine not linked, explicit fallback)" + }, + { + "check": "propose_outcome_explicit", + "ok": true, + "value": "committed=false tokenizer is not loaded; native chat cannot encode the prompt" + }, + { + "check": "no_gpu_claim", + "ok": true, + "value": null + }, + { + "check": "no_intents", + "ok": true, + "value": null + }, + { + "check": "workspace_unchanged", + "ok": true, + "value": null + }, + { + "check": "R4_machine_id", + "ok": true, + "value": [ + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e", + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e" + ] + }, + { + "check": "R4_machine_id_file", + "ok": true, + "value": null + }, + { + "check": "R4_prefix_digest", + "ok": true, + "value": [ + "ed0dab6201a0548c102a5a61cb73cb65649e8359f753dfaf13e1fd35577769c7", + "ed0dab6201a0548c102a5a61cb73cb65649e8359f753dfaf13e1fd35577769c7" + ] + }, + { + "check": "R1_intents_cite_earlier_matching_grants", + "ok": true, + "value": [] + }, + { + "check": "R1_workspace_only_proposal_path", + "ok": true, + "value": [] + }, + { + "check": "R1_outside_unchanged", + "ok": true, + "value": null + }, + { + "check": "R2_one_intent_per_authorization", + "ok": true, + "value": null + }, + { + "check": "R2_success_receipts_le_done_intents", + "ok": true, + "value": [ + 0, + 0 + ] + }, + { + "check": "R3_execute_ok_only_when_done", + "ok": true, + "value": "" + }, + { + "check": "R3_done_means_content_on_disk", + "ok": true, + "value": null + } + ], + "evidence_digests": [ + { + "file": "steps/final-ledger.json", + "sha256": "5bfeda1dcd0b60b21bdc48bc75bdebf0c8498faf44ed66493d56743cc0a1108e" + }, + { + "file": "steps/final-recall.json", + "sha256": "d20e12c20f23087778df7c6286fb6a5395137f4d745fc0bd650733e77e53e545" + }, + { + "file": "steps/L1.json", + "sha256": "5bfeda1dcd0b60b21bdc48bc75bdebf0c8498faf44ed66493d56743cc0a1108e" + }, + { + "file": "steps/P1.json", + "sha256": "d9a8a54895a076bedbd24cd41b38f06b5deea856893f403960783f0d3abec221" + }, + { + "file": "steps/pre.json", + "sha256": "19b5216185712e5d4715de1e115aa5c243bae3ad22a0a46968748e1463539f58" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "17e9bb76498d1b92c80f27be8e32886be9ec4b4f81f20d1ffdab6b13380d08de" + }, + { + "file": "daemon-1.log", + "sha256": "b0421f8db3fd863e7407d1873f8079d06098c265d658c63ed8842b03f4c457f1" + } + ] + }, + { + "row": "C4", + "rep": 1, + "injected_at": "authorize A1; stop; execute; Shutdown+restart; execute; resume; execute; authorize A2; execute", + "outcome": "Stopped, Stopped after restart, Stale after resume; A2 DONE", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "stopped_refused", + "ok": true, + "value": "Stopped" + }, + { + "check": "daemon_daemon-2_up", + "ok": true, + "value": null + }, + { + "check": "stop_survives_restart", + "ok": true, + "value": "Stopped" + }, + { + "check": "old_grant_stale", + "ok": true, + "value": "Stale" + }, + { + "check": "zero_writes_until_A2", + "ok": true, + "value": null + }, + { + "check": "new_grant_DONE", + "ok": true, + "value": "DONE" + }, + { + "check": "written_once", + "ok": true, + "value": null + }, + { + "check": "R4_machine_id", + "ok": true, + "value": [ + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e", + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e" + ] + }, + { + "check": "R4_machine_id_file", + "ok": true, + "value": null + }, + { + "check": "R4_prefix_digest", + "ok": true, + "value": [ + "fbdf796324396a514bdc2159c2b1d35e390d5ab78d3957bd2716be952d24ec02", + "fbdf796324396a514bdc2159c2b1d35e390d5ab78d3957bd2716be952d24ec02" + ] + }, + { + "check": "R1_intents_cite_earlier_matching_grants", + "ok": true, + "value": [ + 32 + ] + }, + { + "check": "R1_workspace_only_proposal_path", + "ok": true, + "value": [ + "9bfe8553/tmp/np2-fix/docs/README.md" + ] + }, + { + "check": "R1_outside_unchanged", + "ok": true, + "value": null + }, + { + "check": "R2_one_intent_per_authorization", + "ok": true, + "value": null + }, + { + "check": "R2_success_receipts_le_done_intents", + "ok": true, + "value": [ + 1, + 1 + ] + }, + { + "check": "R3_execute_ok_only_when_done", + "ok": true, + "value": "\"DONE\"" + }, + { + "check": "R3_done_means_content_on_disk", + "ok": true, + "value": null + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "3f0b29ed69a52d7f1aed088c0481753ff1f13c87527afdeb1a0f5e6d1e76155c" + }, + { + "file": "steps/A2.json", + "sha256": "491b46b2a4e94e946a593be5a2321503150504a9f327765fde5ec9e32351593b" + }, + { + "file": "steps/final-ledger.json", + "sha256": "7bfcc7995b7915bd3cfb9c793234d993befbd4b697e736931b76f7b3f203cb15" + }, + { + "file": "steps/final-recall.json", + "sha256": "24d7d28a6761a838907a1c756b2bde6b1a49ebd7f1a26b732812ca9f76f86b20" + }, + { + "file": "steps/pre.json", + "sha256": "f755a8d94fb097e5ad028f8d92c5e423edc6772191cc37694ff3051f0876e204" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "24315b953feb1f1221a3d62128945994002338889779cef21634bd8b360b65e3" + }, + { + "file": "steps/RESUME.json", + "sha256": "a9b2a1d5c5ca308ddd92e4c46739813e40cb8a2c84a1e852e65869595355572b" + }, + { + "file": "steps/STOP.json", + "sha256": "c03a8e7766ae63411c3fcc96e2997adba397f69c5f4b25dd18a18f55ddf2026a" + }, + { + "file": "steps/X1.json", + "sha256": "7566ac4c846c161e223b94c17e52262b62c5d3067594460b861c8166ca9e95c6" + }, + { + "file": "steps/X2.json", + "sha256": "7566ac4c846c161e223b94c17e52262b62c5d3067594460b861c8166ca9e95c6" + }, + { + "file": "steps/X3.json", + "sha256": "1403b45f394ea9690b2f059b87be768b46b69da97db221f9ec317b9833652bef" + }, + { + "file": "steps/X4.json", + "sha256": "8138d17c4d107dc02e40e28fa59263590f9bbf9be979675023ef3459201d45a9" + }, + { + "file": "steps/X5.json", + "sha256": "894c32fd67ae1341d6520705050f8e41d4af8b9326d6ee22f2dae1e2a41de2a9" + }, + { + "file": "daemon-1.log", + "sha256": "2f4a09f58eb50403c69fe58a7cd6c6b83bc90b1f5d0dae2528e69650fa59d065" + }, + { + "file": "daemon-2.log", + "sha256": "2f4a09f58eb50403c69fe58a7cd6c6b83bc90b1f5d0dae2528e69650fa59d065" + } + ] + }, + { + "row": "C4", + "rep": 2, + "injected_at": "authorize A1; stop; execute; Shutdown+restart; execute; resume; execute; authorize A2; execute", + "outcome": "Stopped, Stopped after restart, Stale after resume; A2 DONE", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "stopped_refused", + "ok": true, + "value": "Stopped" + }, + { + "check": "daemon_daemon-2_up", + "ok": true, + "value": null + }, + { + "check": "stop_survives_restart", + "ok": true, + "value": "Stopped" + }, + { + "check": "old_grant_stale", + "ok": true, + "value": "Stale" + }, + { + "check": "zero_writes_until_A2", + "ok": true, + "value": null + }, + { + "check": "new_grant_DONE", + "ok": true, + "value": "DONE" + }, + { + "check": "written_once", + "ok": true, + "value": null + }, + { + "check": "R4_machine_id", + "ok": true, + "value": [ + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e", + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e" + ] + }, + { + "check": "R4_machine_id_file", + "ok": true, + "value": null + }, + { + "check": "R4_prefix_digest", + "ok": true, + "value": [ + "42049764376ce53256d1e9b0a8a5b814f632386b952a85ee84a88a75c374abad", + "42049764376ce53256d1e9b0a8a5b814f632386b952a85ee84a88a75c374abad" + ] + }, + { + "check": "R1_intents_cite_earlier_matching_grants", + "ok": true, + "value": [ + 32 + ] + }, + { + "check": "R1_workspace_only_proposal_path", + "ok": true, + "value": [ + "9bfe8553/tmp/np2-fix/docs/README.md" + ] + }, + { + "check": "R1_outside_unchanged", + "ok": true, + "value": null + }, + { + "check": "R2_one_intent_per_authorization", + "ok": true, + "value": null + }, + { + "check": "R2_success_receipts_le_done_intents", + "ok": true, + "value": [ + 1, + 1 + ] + }, + { + "check": "R3_execute_ok_only_when_done", + "ok": true, + "value": "\"DONE\"" + }, + { + "check": "R3_done_means_content_on_disk", + "ok": true, + "value": null + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "6381d0c003af80647eb672cf44fb8d55ff001a60432bb3fb759eaa78003ead73" + }, + { + "file": "steps/A2.json", + "sha256": "49adcee358bbbfd6bc1c7a24951423b8e5b6917934f24132e9355414484fceb4" + }, + { + "file": "steps/final-ledger.json", + "sha256": "2fc9cc6ba8a420c2c0d7d49eac6e792df323b4d6c734b3018c7b3be1aca9f2ea" + }, + { + "file": "steps/final-recall.json", + "sha256": "37512ec795276da285fa4824c63d63f2eb7a68ddf13d51235e73f396df84aae0" + }, + { + "file": "steps/pre.json", + "sha256": "1eb4fb220790306cf4368657728844776fac1bd451cfe059d478b789b75e7b67" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "46e155810bff4a50d03a41c1a28d4f4245a3e3f0a9e9fa840fe7037f6fda64a6" + }, + { + "file": "steps/RESUME.json", + "sha256": "a9b2a1d5c5ca308ddd92e4c46739813e40cb8a2c84a1e852e65869595355572b" + }, + { + "file": "steps/STOP.json", + "sha256": "c03a8e7766ae63411c3fcc96e2997adba397f69c5f4b25dd18a18f55ddf2026a" + }, + { + "file": "steps/X1.json", + "sha256": "7566ac4c846c161e223b94c17e52262b62c5d3067594460b861c8166ca9e95c6" + }, + { + "file": "steps/X2.json", + "sha256": "7566ac4c846c161e223b94c17e52262b62c5d3067594460b861c8166ca9e95c6" + }, + { + "file": "steps/X3.json", + "sha256": "1403b45f394ea9690b2f059b87be768b46b69da97db221f9ec317b9833652bef" + }, + { + "file": "steps/X4.json", + "sha256": "1eeb96b2996534edd00819e63b8068d557d1273ee8abb2b0cfba4f3673911452" + }, + { + "file": "steps/X5.json", + "sha256": "894c32fd67ae1341d6520705050f8e41d4af8b9326d6ee22f2dae1e2a41de2a9" + }, + { + "file": "daemon-1.log", + "sha256": "d9e5aad8f5ad625bee52976967e89f49ac2383f8bb8b11a0b1f25add6fcf536f" + }, + { + "file": "daemon-2.log", + "sha256": "d9e5aad8f5ad625bee52976967e89f49ac2383f8bb8b11a0b1f25add6fcf536f" + } + ] + }, + { + "row": "C4", + "rep": 3, + "injected_at": "authorize A1; stop; execute; Shutdown+restart; execute; resume; execute; authorize A2; execute", + "outcome": "Stopped, Stopped after restart, Stale after resume; A2 DONE", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "stopped_refused", + "ok": true, + "value": "Stopped" + }, + { + "check": "daemon_daemon-2_up", + "ok": true, + "value": null + }, + { + "check": "stop_survives_restart", + "ok": true, + "value": "Stopped" + }, + { + "check": "old_grant_stale", + "ok": true, + "value": "Stale" + }, + { + "check": "zero_writes_until_A2", + "ok": true, + "value": null + }, + { + "check": "new_grant_DONE", + "ok": true, + "value": "DONE" + }, + { + "check": "written_once", + "ok": true, + "value": null + }, + { + "check": "R4_machine_id", + "ok": true, + "value": [ + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e", + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e" + ] + }, + { + "check": "R4_machine_id_file", + "ok": true, + "value": null + }, + { + "check": "R4_prefix_digest", + "ok": true, + "value": [ + "db6290fd5ae910cb67415dcba989200eb19b31ad8b5bb642d89763076d8944a0", + "db6290fd5ae910cb67415dcba989200eb19b31ad8b5bb642d89763076d8944a0" + ] + }, + { + "check": "R1_intents_cite_earlier_matching_grants", + "ok": true, + "value": [ + 32 + ] + }, + { + "check": "R1_workspace_only_proposal_path", + "ok": true, + "value": [ + "9bfe8553/tmp/np2-fix/docs/README.md" + ] + }, + { + "check": "R1_outside_unchanged", + "ok": true, + "value": null + }, + { + "check": "R2_one_intent_per_authorization", + "ok": true, + "value": null + }, + { + "check": "R2_success_receipts_le_done_intents", + "ok": true, + "value": [ + 1, + 1 + ] + }, + { + "check": "R3_execute_ok_only_when_done", + "ok": true, + "value": "\"DONE\"" + }, + { + "check": "R3_done_means_content_on_disk", + "ok": true, + "value": null + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "dfe099bf35b137755a2e4aeee9b9ab04406a824ba284184682e940005333ff03" + }, + { + "file": "steps/A2.json", + "sha256": "f8c89bfaef246a063f8ac31ca412c6d637eee298bc837f21b92a6199eee946b7" + }, + { + "file": "steps/final-ledger.json", + "sha256": "16737d911a6d181e618d7542994eb14aa6ba5240dc8c472ce311a46c92ff4e59" + }, + { + "file": "steps/final-recall.json", + "sha256": "c5944afbb5753eebb58a0ab7ee6814811b7eb02cf632467e5f3d62f86c980f08" + }, + { + "file": "steps/pre.json", + "sha256": "2c5cfee39caea2b905cba029c3c5b3c3d437f769dc0dcf5c8d62f1f35b59f1a9" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "5ce141cc9823fe7aaf483884926f31fa44327abe33e97ef6f2c629802d1b38f6" + }, + { + "file": "steps/RESUME.json", + "sha256": "a9b2a1d5c5ca308ddd92e4c46739813e40cb8a2c84a1e852e65869595355572b" + }, + { + "file": "steps/STOP.json", + "sha256": "c03a8e7766ae63411c3fcc96e2997adba397f69c5f4b25dd18a18f55ddf2026a" + }, + { + "file": "steps/X1.json", + "sha256": "7566ac4c846c161e223b94c17e52262b62c5d3067594460b861c8166ca9e95c6" + }, + { + "file": "steps/X2.json", + "sha256": "7566ac4c846c161e223b94c17e52262b62c5d3067594460b861c8166ca9e95c6" + }, + { + "file": "steps/X3.json", + "sha256": "1403b45f394ea9690b2f059b87be768b46b69da97db221f9ec317b9833652bef" + }, + { + "file": "steps/X4.json", + "sha256": "c3c9451be0ff6ef783fbea8775a15de5ffd237d12a38be9f12e2c300b8455949" + }, + { + "file": "steps/X5.json", + "sha256": "894c32fd67ae1341d6520705050f8e41d4af8b9326d6ee22f2dae1e2a41de2a9" + }, + { + "file": "daemon-1.log", + "sha256": "cf99fa0228acdf21fa27b5829f974955b8e5c2a7d413779f6ab77e60768a386c" + }, + { + "file": "daemon-2.log", + "sha256": "cf99fa0228acdf21fa27b5829f974955b8e5c2a7d413779f6ab77e60768a386c" + } + ] + }, + { + "row": "C5a", + "rep": 1, + "injected_at": "revoke A1 before execute", + "outcome": "revoked:true; execute Revoked", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "revoke_true", + "ok": true, + "value": null + }, + { + "check": "refused_Revoked", + "ok": true, + "value": "Revoked" + }, + { + "check": "no_write", + "ok": true, + "value": null + }, + { + "check": "R4_machine_id", + "ok": true, + "value": [ + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e", + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e" + ] + }, + { + "check": "R4_machine_id_file", + "ok": true, + "value": null + }, + { + "check": "R4_prefix_digest", + "ok": true, + "value": [ + "7193dfa91f3cdb009ba6348c01a123fccc8b6edbc14d94b0d360ee8f3d6a623e", + "7193dfa91f3cdb009ba6348c01a123fccc8b6edbc14d94b0d360ee8f3d6a623e" + ] + }, + { + "check": "R1_intents_cite_earlier_matching_grants", + "ok": true, + "value": [] + }, + { + "check": "R1_workspace_only_proposal_path", + "ok": true, + "value": [] + }, + { + "check": "R1_outside_unchanged", + "ok": true, + "value": null + }, + { + "check": "R2_one_intent_per_authorization", + "ok": true, + "value": null + }, + { + "check": "R2_success_receipts_le_done_intents", + "ok": true, + "value": [ + 0, + 0 + ] + }, + { + "check": "R3_execute_ok_only_when_done", + "ok": true, + "value": "" + }, + { + "check": "R3_done_means_content_on_disk", + "ok": true, + "value": null + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "36d6b3857210c213ac9e68abef043ae384eea42740acd069bb7700599ecf8c0e" + }, + { + "file": "steps/final-ledger.json", + "sha256": "6e6b9effb67c8b5779fdea32de40fd3eece50d964930ef7ffc2ebcd2e119d215" + }, + { + "file": "steps/final-recall.json", + "sha256": "661f573c879b8ebb4df3206d3673e4b589ad7e82f14d26689da1536d35aa2347" + }, + { + "file": "steps/pre.json", + "sha256": "fe24feca15a507bd3ce812698eaec5608233331dfa139adbcd6b2827da9e9c03" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "7d46d121dd175d3d5a6cd98dd55e9d745851e9084d23293972c2955778665f0f" + }, + { + "file": "steps/RV.json", + "sha256": "0f0a172475fe2e076dec0369a6748fbab2668812178d9e165a3373c07509cb64" + }, + { + "file": "steps/X1.json", + "sha256": "bfe6c4ad40ffde7734d58d090a0eda422712b8ebcc9ba892edb93c06f03c445f" + }, + { + "file": "daemon-1.log", + "sha256": "15c3cf7a280b43bae1eb30e1d84f13935add246ff5a14eab1739a9ae19012875" + } + ] + }, + { + "row": "C5a", + "rep": 2, + "injected_at": "revoke A1 before execute", + "outcome": "revoked:true; execute Revoked", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "revoke_true", + "ok": true, + "value": null + }, + { + "check": "refused_Revoked", + "ok": true, + "value": "Revoked" + }, + { + "check": "no_write", + "ok": true, + "value": null + }, + { + "check": "R4_machine_id", + "ok": true, + "value": [ + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e", + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e" + ] + }, + { + "check": "R4_machine_id_file", + "ok": true, + "value": null + }, + { + "check": "R4_prefix_digest", + "ok": true, + "value": [ + "9d6e53fd90abac454975c379de3290c32cc3f29e0c8a88d164199ea1260b55b7", + "9d6e53fd90abac454975c379de3290c32cc3f29e0c8a88d164199ea1260b55b7" + ] + }, + { + "check": "R1_intents_cite_earlier_matching_grants", + "ok": true, + "value": [] + }, + { + "check": "R1_workspace_only_proposal_path", + "ok": true, + "value": [] + }, + { + "check": "R1_outside_unchanged", + "ok": true, + "value": null + }, + { + "check": "R2_one_intent_per_authorization", + "ok": true, + "value": null + }, + { + "check": "R2_success_receipts_le_done_intents", + "ok": true, + "value": [ + 0, + 0 + ] + }, + { + "check": "R3_execute_ok_only_when_done", + "ok": true, + "value": "" + }, + { + "check": "R3_done_means_content_on_disk", + "ok": true, + "value": null + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "62fbfc3337f139d892330d650a8a9b331bb647ad10678c04d253dcff00e83c72" + }, + { + "file": "steps/final-ledger.json", + "sha256": "6e6b9effb67c8b5779fdea32de40fd3eece50d964930ef7ffc2ebcd2e119d215" + }, + { + "file": "steps/final-recall.json", + "sha256": "c368f473edba81dd2a201805e4178b6644a9d65b7aa62b7b68bc1eee0029f319" + }, + { + "file": "steps/pre.json", + "sha256": "a4f86770c3c6ad062f6a3f61fc02c6a893b3edb580ab33e6cf63234d0749ef87" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "e0b0053c63373884b4998fe7ee1b129d24a515c1cd0a25544b86552c047ef20d" + }, + { + "file": "steps/RV.json", + "sha256": "0f0a172475fe2e076dec0369a6748fbab2668812178d9e165a3373c07509cb64" + }, + { + "file": "steps/X1.json", + "sha256": "bfe6c4ad40ffde7734d58d090a0eda422712b8ebcc9ba892edb93c06f03c445f" + }, + { + "file": "daemon-1.log", + "sha256": "4ef919b8d7cce0fdb7f791573f6bc7d6a8af45b464796c2b6e2643bfcc9008c2" + } + ] + }, + { + "row": "C5a", + "rep": 3, + "injected_at": "revoke A1 before execute", + "outcome": "revoked:true; execute Revoked", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "revoke_true", + "ok": true, + "value": null + }, + { + "check": "refused_Revoked", + "ok": true, + "value": "Revoked" + }, + { + "check": "no_write", + "ok": true, + "value": null + }, + { + "check": "R4_machine_id", + "ok": true, + "value": [ + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e", + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e" + ] + }, + { + "check": "R4_machine_id_file", + "ok": true, + "value": null + }, + { + "check": "R4_prefix_digest", + "ok": true, + "value": [ + "175553fad50dac651a1994baf7e03fe08ff8f8a8b9776fe3c5cb72c910d09089", + "175553fad50dac651a1994baf7e03fe08ff8f8a8b9776fe3c5cb72c910d09089" + ] + }, + { + "check": "R1_intents_cite_earlier_matching_grants", + "ok": true, + "value": [] + }, + { + "check": "R1_workspace_only_proposal_path", + "ok": true, + "value": [] + }, + { + "check": "R1_outside_unchanged", + "ok": true, + "value": null + }, + { + "check": "R2_one_intent_per_authorization", + "ok": true, + "value": null + }, + { + "check": "R2_success_receipts_le_done_intents", + "ok": true, + "value": [ + 0, + 0 + ] + }, + { + "check": "R3_execute_ok_only_when_done", + "ok": true, + "value": "" + }, + { + "check": "R3_done_means_content_on_disk", + "ok": true, + "value": null + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "27c2861e3ca46dc3a4a7bc2cae4544b17f1c8651c8ce64a0411ade19d9698d44" + }, + { + "file": "steps/final-ledger.json", + "sha256": "6e6b9effb67c8b5779fdea32de40fd3eece50d964930ef7ffc2ebcd2e119d215" + }, + { + "file": "steps/final-recall.json", + "sha256": "6918a5cd969be30b8e3d767fae3c056ff70c159613992021165fe2f1458571ff" + }, + { + "file": "steps/pre.json", + "sha256": "f8b95d1d81fc52769f369d77197f1ad5ad3f37ee07a8f3107c29b2d77325c4d3" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "52ab77b46e7933f2bb9335d34e475ad37c98ca9536100be735f47bf5d2e0794d" + }, + { + "file": "steps/RV.json", + "sha256": "0f0a172475fe2e076dec0369a6748fbab2668812178d9e165a3373c07509cb64" + }, + { + "file": "steps/X1.json", + "sha256": "bfe6c4ad40ffde7734d58d090a0eda422712b8ebcc9ba892edb93c06f03c445f" + }, + { + "file": "daemon-1.log", + "sha256": "c315c43c1d4870b4bbbc426aa12f3031c0232800c0a91dc9640f308f929d31d2" + } + ] + }, + { + "row": "C5b", + "rep": 1, + "injected_at": "execute A1 to DONE, then revoke A1", + "outcome": "revoke after spend: revoked:false, nothing recorded", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "execute_done", + "ok": true, + "value": null + }, + { + "check": "revoke_false", + "ok": true, + "value": null + }, + { + "check": "nothing_recorded", + "ok": true, + "value": null + }, + { + "check": "record_count_unchanged", + "ok": true, + "value": null + }, + { + "check": "R4_machine_id", + "ok": true, + "value": [ + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e", + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e" + ] + }, + { + "check": "R4_machine_id_file", + "ok": true, + "value": null + }, + { + "check": "R4_prefix_digest", + "ok": true, + "value": [ + "f460f2fc471f35d69598025e8f6b6f0952c704ac8894065edcb40e730c1e8c57", + "f460f2fc471f35d69598025e8f6b6f0952c704ac8894065edcb40e730c1e8c57" + ] + }, + { + "check": "R1_intents_cite_earlier_matching_grants", + "ok": true, + "value": [ + 24 + ] + }, + { + "check": "R1_workspace_only_proposal_path", + "ok": true, + "value": [ + "9bfe8553/tmp/np2-fix/docs/README.md" + ] + }, + { + "check": "R1_outside_unchanged", + "ok": true, + "value": null + }, + { + "check": "R2_one_intent_per_authorization", + "ok": true, + "value": null + }, + { + "check": "R2_success_receipts_le_done_intents", + "ok": true, + "value": [ + 1, + 1 + ] + }, + { + "check": "R3_execute_ok_only_when_done", + "ok": true, + "value": "\"DONE\"" + }, + { + "check": "R3_done_means_content_on_disk", + "ok": true, + "value": null + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "fd2009557cd48ec4f8fe19249d992b4cc7bac62b08d0a81ab4deaded38d07d27" + }, + { + "file": "steps/final-ledger.json", + "sha256": "5039fbe73aecd3261d223aae58ca1fdd67b9711e750af4e3b7c8a22d7fcffec2" + }, + { + "file": "steps/final-recall.json", + "sha256": "52d975a5d744df79663bee722f78a34974b907631e67ab8d5fc0a81f26f2190b" + }, + { + "file": "steps/n1.json", + "sha256": "e16f5dc68893c52316343b414693e4a547edffce01608553d819888835753510" + }, + { + "file": "steps/n2.json", + "sha256": "e16f5dc68893c52316343b414693e4a547edffce01608553d819888835753510" + }, + { + "file": "steps/pre.json", + "sha256": "2bd65e631b8d38a2589511acbad24c48c01c8c19103cb361f73523475c058a57" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "711a43d3f3aad831ae4fd1c13d7cbe1db2f225d054de3de7138307f5945e524f" + }, + { + "file": "steps/RV.json", + "sha256": "68cdc250eac0b86dc2b0461b474fe877cc19572b7ee83dc531241d9697812b2e" + }, + { + "file": "steps/X1.json", + "sha256": "31878d8d26e04b6bf0cd5cb23df645cd3c566cf69af19c4b428980379a6d1651" + }, + { + "file": "daemon-1.log", + "sha256": "1401821fec53db3da9c8858c64757b25a31011503df023c571719d5f1636be8e" + } + ] + }, + { + "row": "C5b", + "rep": 2, + "injected_at": "execute A1 to DONE, then revoke A1", + "outcome": "revoke after spend: revoked:false, nothing recorded", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "execute_done", + "ok": true, + "value": null + }, + { + "check": "revoke_false", + "ok": true, + "value": null + }, + { + "check": "nothing_recorded", + "ok": true, + "value": null + }, + { + "check": "record_count_unchanged", + "ok": true, + "value": null + }, + { + "check": "R4_machine_id", + "ok": true, + "value": [ + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e", + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e" + ] + }, + { + "check": "R4_machine_id_file", + "ok": true, + "value": null + }, + { + "check": "R4_prefix_digest", + "ok": true, + "value": [ + "50e0e376245a938e69ecb733064f3d03c166d6448a9352b5db1f84a42cf3131d", + "50e0e376245a938e69ecb733064f3d03c166d6448a9352b5db1f84a42cf3131d" + ] + }, + { + "check": "R1_intents_cite_earlier_matching_grants", + "ok": true, + "value": [ + 24 + ] + }, + { + "check": "R1_workspace_only_proposal_path", + "ok": true, + "value": [ + "9bfe8553/tmp/np2-fix/docs/README.md" + ] + }, + { + "check": "R1_outside_unchanged", + "ok": true, + "value": null + }, + { + "check": "R2_one_intent_per_authorization", + "ok": true, + "value": null + }, + { + "check": "R2_success_receipts_le_done_intents", + "ok": true, + "value": [ + 1, + 1 + ] + }, + { + "check": "R3_execute_ok_only_when_done", + "ok": true, + "value": "\"DONE\"" + }, + { + "check": "R3_done_means_content_on_disk", + "ok": true, + "value": null + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "fbf3989907c025a9a778504060a960099287572749a3b095baad912a160afa38" + }, + { + "file": "steps/final-ledger.json", + "sha256": "b86113ca2742d104bb53a81059410ea325d7e7e2c8be721dbc22678a85692503" + }, + { + "file": "steps/final-recall.json", + "sha256": "befea62438f5ace5ce7b029b64466e371507e2c644f9b8e6c58a346b3f5cb29c" + }, + { + "file": "steps/n1.json", + "sha256": "2acc99962ca5857e7150e648a8d8c0c4f6275396d34d7b6184671fcf3efeba65" + }, + { + "file": "steps/n2.json", + "sha256": "2acc99962ca5857e7150e648a8d8c0c4f6275396d34d7b6184671fcf3efeba65" + }, + { + "file": "steps/pre.json", + "sha256": "86c785349adc85915a6f43afec45ec6a0404b02830b19de3dd3a1cf530b8656c" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "7b0901efed59312d48e79d32bf6dd66452b7818ef2ce706c484ae28964c51075" + }, + { + "file": "steps/RV.json", + "sha256": "68cdc250eac0b86dc2b0461b474fe877cc19572b7ee83dc531241d9697812b2e" + }, + { + "file": "steps/X1.json", + "sha256": "b73e78ed696f22688824d351236be35f6c74e734f627e9d2b01e7958f772987a" + }, + { + "file": "daemon-1.log", + "sha256": "3ffa268f83d215c8ad4e57b59c25171ad4c0cf049a9e36f0932670d8fdb1c6dc" + } + ] + }, + { + "row": "C5b", + "rep": 3, + "injected_at": "execute A1 to DONE, then revoke A1", + "outcome": "revoke after spend: revoked:false, nothing recorded", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "execute_done", + "ok": true, + "value": null + }, + { + "check": "revoke_false", + "ok": true, + "value": null + }, + { + "check": "nothing_recorded", + "ok": true, + "value": null + }, + { + "check": "record_count_unchanged", + "ok": true, + "value": null + }, + { + "check": "R4_machine_id", + "ok": true, + "value": [ + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e", + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e" + ] + }, + { + "check": "R4_machine_id_file", + "ok": true, + "value": null + }, + { + "check": "R4_prefix_digest", + "ok": true, + "value": [ + "369d04c73d20b6f7afb6ac32b02303d0ee394bfc08c4daa9864950b5d101e6ad", + "369d04c73d20b6f7afb6ac32b02303d0ee394bfc08c4daa9864950b5d101e6ad" + ] + }, + { + "check": "R1_intents_cite_earlier_matching_grants", + "ok": true, + "value": [ + 24 + ] + }, + { + "check": "R1_workspace_only_proposal_path", + "ok": true, + "value": [ + "9bfe8553/tmp/np2-fix/docs/README.md" + ] + }, + { + "check": "R1_outside_unchanged", + "ok": true, + "value": null + }, + { + "check": "R2_one_intent_per_authorization", + "ok": true, + "value": null + }, + { + "check": "R2_success_receipts_le_done_intents", + "ok": true, + "value": [ + 1, + 1 + ] + }, + { + "check": "R3_execute_ok_only_when_done", + "ok": true, + "value": "\"DONE\"" + }, + { + "check": "R3_done_means_content_on_disk", + "ok": true, + "value": null + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "76d86ee29d198f751beef219b6bf8eae54fc955005d9e84381074c2f6cfd7960" + }, + { + "file": "steps/final-ledger.json", + "sha256": "2d95b9b84e433fc1ffda299b1a7e1831050e013bc95bcbafdcda6cccad44d495" + }, + { + "file": "steps/final-recall.json", + "sha256": "1ed053e0be52b02b6e5d7e0503ee7a2849031e39791b34d1c83ede3c15f8c817" + }, + { + "file": "steps/n1.json", + "sha256": "8e55e012a4b711c5577cbeb92446d6ea3f205c7ebbec4d315db88994fc417fc3" + }, + { + "file": "steps/n2.json", + "sha256": "8e55e012a4b711c5577cbeb92446d6ea3f205c7ebbec4d315db88994fc417fc3" + }, + { + "file": "steps/pre.json", + "sha256": "0f3f6b52a4264a4cac4a169ea26d88fec4616e521b6634bbf2c2622d1e01bc1a" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "0b70c083d99b160c0b000c1c58d11a2d890e78e476f6dec8c9fffe1b05c87c6f" + }, + { + "file": "steps/RV.json", + "sha256": "68cdc250eac0b86dc2b0461b474fe877cc19572b7ee83dc531241d9697812b2e" + }, + { + "file": "steps/X1.json", + "sha256": "dc01baf3ca6d82560e8772effc6e56b381aadea5256c4dd93b0c261cb199b826" + }, + { + "file": "daemon-1.log", + "sha256": "be68edbba8aa1e1cf790188a8619e008f62078f1328bed6ec87a8d6d04dd195b" + } + ] + }, + { + "row": "C5c", + "rep": 1, + "injected_at": "authorize A1; harness writes other bytes to the target; execute A1", + "outcome": "world changed after grant: Stale", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "refused_Stale", + "ok": true, + "value": "Stale" + }, + { + "check": "target_untouched", + "ok": true, + "value": null + }, + { + "check": "R4_machine_id", + "ok": true, + "value": [ + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e", + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e" + ] + }, + { + "check": "R4_machine_id_file", + "ok": true, + "value": null + }, + { + "check": "R4_prefix_digest", + "ok": true, + "value": [ + "0407eadb8e344597e49edf735e1e6901fa253afdc6c2817d337b53aa8c407b46", + "0407eadb8e344597e49edf735e1e6901fa253afdc6c2817d337b53aa8c407b46" + ] + }, + { + "check": "R1_intents_cite_earlier_matching_grants", + "ok": true, + "value": [] + }, + { + "check": "R1_workspace_only_proposal_path", + "ok": true, + "value": [ + "9bfe8553/tmp/np2-fix/docs/README.md" + ] + }, + { + "check": "R1_outside_unchanged", + "ok": true, + "value": null + }, + { + "check": "R2_one_intent_per_authorization", + "ok": true, + "value": null + }, + { + "check": "R2_success_receipts_le_done_intents", + "ok": true, + "value": [ + 0, + 0 + ] + }, + { + "check": "R3_execute_ok_only_when_done", + "ok": true, + "value": "" + }, + { + "check": "R3_done_means_content_on_disk", + "ok": true, + "value": null + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "1031210d5790a7630a93441cad8b0170292d46eb72a30bd28c72dbe9ea66ac97" + }, + { + "file": "steps/final-ledger.json", + "sha256": "5bfeda1dcd0b60b21bdc48bc75bdebf0c8498faf44ed66493d56743cc0a1108e" + }, + { + "file": "steps/final-recall.json", + "sha256": "369630d2ed37d8b9bfc54b734349a124c73354ca379de53471acbe9d52f5dd9c" + }, + { + "file": "steps/pre.json", + "sha256": "36613aa7cc3dd6c12b17e246a6e8b6bb9651092a482ce2bccc783f06c389015a" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "d6aeb9f66783462ffa97104a5515efbac1dbde0d94c51b571fecf559c4939a1e" + }, + { + "file": "steps/X1.json", + "sha256": "5f7bed0382f9fc513b9e5e3a4b2be02f25f66d7fbf0c1b192980c250cc2f8ee7" + }, + { + "file": "daemon-1.log", + "sha256": "f3d6f4522ed712a3e2dc8c1aab2b0bf67af55e13dc27d444dcf0d159e897375c" + } + ] + }, + { + "row": "C5c", + "rep": 2, + "injected_at": "authorize A1; harness writes other bytes to the target; execute A1", + "outcome": "world changed after grant: Stale", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "refused_Stale", + "ok": true, + "value": "Stale" + }, + { + "check": "target_untouched", + "ok": true, + "value": null + }, + { + "check": "R4_machine_id", + "ok": true, + "value": [ + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e", + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e" + ] + }, + { + "check": "R4_machine_id_file", + "ok": true, + "value": null + }, + { + "check": "R4_prefix_digest", + "ok": true, + "value": [ + "6ed7a7509f856961fb8beb6e1f3ca023a8d839e9c274f97f7fedf5f5af498514", + "6ed7a7509f856961fb8beb6e1f3ca023a8d839e9c274f97f7fedf5f5af498514" + ] + }, + { + "check": "R1_intents_cite_earlier_matching_grants", + "ok": true, + "value": [] + }, + { + "check": "R1_workspace_only_proposal_path", + "ok": true, + "value": [ + "9bfe8553/tmp/np2-fix/docs/README.md" + ] + }, + { + "check": "R1_outside_unchanged", + "ok": true, + "value": null + }, + { + "check": "R2_one_intent_per_authorization", + "ok": true, + "value": null + }, + { + "check": "R2_success_receipts_le_done_intents", + "ok": true, + "value": [ + 0, + 0 + ] + }, + { + "check": "R3_execute_ok_only_when_done", + "ok": true, + "value": "" + }, + { + "check": "R3_done_means_content_on_disk", + "ok": true, + "value": null + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "169d77a44745b5b7a43e7d5b6d60821183f4558e7c81adde84a9aa82aa6cff8b" + }, + { + "file": "steps/final-ledger.json", + "sha256": "5bfeda1dcd0b60b21bdc48bc75bdebf0c8498faf44ed66493d56743cc0a1108e" + }, + { + "file": "steps/final-recall.json", + "sha256": "c650210d3b56a8638ef8acea472f31fbbace64cee40762b9db55af3152697179" + }, + { + "file": "steps/pre.json", + "sha256": "d0661cdd9cc9f500c3b1d055545f93ccfc069c6c8fc23a8d49441cbf5f4afc0b" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "37e99f4dd85070878fbe7e810530d243534db92d418d39c9393d39d79618f829" + }, + { + "file": "steps/X1.json", + "sha256": "5f7bed0382f9fc513b9e5e3a4b2be02f25f66d7fbf0c1b192980c250cc2f8ee7" + }, + { + "file": "daemon-1.log", + "sha256": "f4ec8e07baeda5335bb484a9d86c90d9d81fdfdd90d7bee0ef2c7ce2e0c5dbe2" + } + ] + }, + { + "row": "C5c", + "rep": 3, + "injected_at": "authorize A1; harness writes other bytes to the target; execute A1", + "outcome": "world changed after grant: Stale", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "refused_Stale", + "ok": true, + "value": "Stale" + }, + { + "check": "target_untouched", + "ok": true, + "value": null + }, + { + "check": "R4_machine_id", + "ok": true, + "value": [ + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e", + "515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e" + ] + }, + { + "check": "R4_machine_id_file", + "ok": true, + "value": null + }, + { + "check": "R4_prefix_digest", + "ok": true, + "value": [ + "c458257418122d6fd0a72494e24346e950dfd4ed4df8adb926a5bff2521bffd1", + "c458257418122d6fd0a72494e24346e950dfd4ed4df8adb926a5bff2521bffd1" + ] + }, + { + "check": "R1_intents_cite_earlier_matching_grants", + "ok": true, + "value": [] + }, + { + "check": "R1_workspace_only_proposal_path", + "ok": true, + "value": [ + "9bfe8553/tmp/np2-fix/docs/README.md" + ] + }, + { + "check": "R1_outside_unchanged", + "ok": true, + "value": null + }, + { + "check": "R2_one_intent_per_authorization", + "ok": true, + "value": null + }, + { + "check": "R2_success_receipts_le_done_intents", + "ok": true, + "value": [ + 0, + 0 + ] + }, + { + "check": "R3_execute_ok_only_when_done", + "ok": true, + "value": "" + }, + { + "check": "R3_done_means_content_on_disk", + "ok": true, + "value": null + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "9ad2c2d773d803f71a6cc4d70ff29f0e3721cf27572042ad4c0d8a5c23727703" + }, + { + "file": "steps/final-ledger.json", + "sha256": "5bfeda1dcd0b60b21bdc48bc75bdebf0c8498faf44ed66493d56743cc0a1108e" + }, + { + "file": "steps/final-recall.json", + "sha256": "da139344b8b3526327afbdcb701447fe0e5a1742c0563c99517aaff91dbdbd56" + }, + { + "file": "steps/pre.json", + "sha256": "de642fdd7ded75457e0c82b5464644082b00047126ce16033a24bd683eb31f99" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "39ea0fce5cf96d1679f99f815506768bbfbcb7c78927c6473f73ff522395e724" + }, + { + "file": "steps/X1.json", + "sha256": "5f7bed0382f9fc513b9e5e3a4b2be02f25f66d7fbf0c1b192980c250cc2f8ee7" + }, + { + "file": "daemon-1.log", + "sha256": "b373ea2e10d3f3e6f83177ef9d45d9f05eb485e194a1fc531646da79a2bff9e4" + } + ] + }, + { + "row": "C6a", + "rep": 1, + "injected_at": "truncate cortex.cx by 1 byte (inside the last record)", + "outcome": "opened; recall ok=false; execute A2 ok=false; Reconcile: refused: compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6a-1/compose refused: Cortex jo", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "base_execute_done", + "ok": true, + "value": null + }, + { + "check": "named_refusal_on_recall", + "ok": true, + "value": "compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6a-1/compose refused: Cortex journal tail torn (E_TORN, CX_ERR_TORN); nothing was cut. Run RecoverComposeHome (aien compose recover" + }, + { + "check": "start_reconcile_reports", + "ok": true, + "value": "Reconcile: refused: compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6a-1/compose refused: Cortex journal tail torn (E_TORN, CX_ERR_TORN); nothing was cut. Run RecoverComposeHome (" + }, + { + "check": "execute_A2_refused", + "ok": true, + "value": "compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6a-1/compose refused: Cortex journal tail torn (E_TORN, CX_ERR_TORN); nothing was cut. Run RecoverComposeHome (aien compose recover" + }, + { + "check": "no_write_on_damaged_state", + "ok": true, + "value": null + }, + { + "check": "damaged_bytes_kept", + "ok": true, + "value": { + "damaged_sha256": "59097ae57ec28a4b1b66e2ebd8cabfbe09b0a5662b34f02c4deb3579a79e4c89", + "damaged_bytes": 9783, + "now_bytes": 9783 + } + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "edd47e3aaf00ee3ca00803975c5ed7f8a4725a0e9c0a09a556b85f74f8f62d92" + }, + { + "file": "steps/A2.json", + "sha256": "43518d472848ce3c07d343c4d668e7a0f87cb9af41b7c29a20f53929efde381c" + }, + { + "file": "steps/pre.json", + "sha256": "cac689d3de935c88383ff855581e11ebda3e7f15f1f3cc87f4492ca0c714c5fc" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "9fdfbf0b3605d4d97d157ef3e055fa828bdc4fd097c4df0764b855fe255d1c5b" + }, + { + "file": "steps/RCL.json", + "sha256": "8a769fd4f90f2c95cbbe122b65ce22f2fa24373c9c9f3f24dec0376677fbd58a" + }, + { + "file": "steps/X1.json", + "sha256": "c3b28b1ce7e96c6a95b64e99586d3f7dd492411b3d6f39128aaa47c5587d0914" + }, + { + "file": "steps/X2.json", + "sha256": "efebcf602805a35eaf938e471b400944f3abc622beaed020f13df162807aef98" + }, + { + "file": "daemon-1.log", + "sha256": "c21c0665e4d5f2e57886385104637b0812c930bc4ff1d61c3f3d79af66850ae6" + }, + { + "file": "daemon-2.log", + "sha256": "9461bfc89afbf4059eb0e898f25e0b16ed8ad98a4528922ec35899ca2ac8ce4c" + } + ] + }, + { + "row": "C6a", + "rep": 2, + "injected_at": "truncate cortex.cx by 1 byte (inside the last record)", + "outcome": "opened; recall ok=false; execute A2 ok=false; Reconcile: refused: compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6a-2/compose refused: Cortex jo", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "base_execute_done", + "ok": true, + "value": null + }, + { + "check": "named_refusal_on_recall", + "ok": true, + "value": "compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6a-2/compose refused: Cortex journal tail torn (E_TORN, CX_ERR_TORN); nothing was cut. Run RecoverComposeHome (aien compose recover" + }, + { + "check": "start_reconcile_reports", + "ok": true, + "value": "Reconcile: refused: compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6a-2/compose refused: Cortex journal tail torn (E_TORN, CX_ERR_TORN); nothing was cut. Run RecoverComposeHome (" + }, + { + "check": "execute_A2_refused", + "ok": true, + "value": "compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6a-2/compose refused: Cortex journal tail torn (E_TORN, CX_ERR_TORN); nothing was cut. Run RecoverComposeHome (aien compose recover" + }, + { + "check": "no_write_on_damaged_state", + "ok": true, + "value": null + }, + { + "check": "damaged_bytes_kept", + "ok": true, + "value": { + "damaged_sha256": "44be1ccd69927f1d84bfdae362b5d5f9e5536e7455ed44386dcaefdd53a7f3f6", + "damaged_bytes": 9783, + "now_bytes": 9783 + } + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "af7e616a956940158293396df424f1ded3d3e7572cf92298234f408e4ad975d6" + }, + { + "file": "steps/A2.json", + "sha256": "1b53249fc74c3b0367f6dae27e7062244de7aa5ba6186956c8767bc4447fcdc0" + }, + { + "file": "steps/pre.json", + "sha256": "94120932c6cdbae610a7ddf094157c74f1d71af8e8a0dfcfc6862d434934d450" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "f1c36b2e7147c21f5325eff0e467bc9f3476ca7ebaed6a32b8fcedc5c746ba53" + }, + { + "file": "steps/RCL.json", + "sha256": "e612d1166e7efac3caac1d675fd20a0bd3169188db75afcf5fba7cc27518cbfe" + }, + { + "file": "steps/X1.json", + "sha256": "36b09ed05377376bb0228a1138f8e3e1ca854ca871051e904ea525d60dbe6bcb" + }, + { + "file": "steps/X2.json", + "sha256": "a849936cab3dcfc5c6997e66d63a9a943489e18542c965c915dd36240907de1b" + }, + { + "file": "daemon-1.log", + "sha256": "f40c66c12ee40f0d9528b255fc2c2d717ed168bde37b44a15744280e39f4b5a8" + }, + { + "file": "daemon-2.log", + "sha256": "2bbdeddbe3779140e4bfcf9e4a9eecfc3900ba255c474174bf7c96c65188f505" + } + ] + }, + { + "row": "C6a", + "rep": 3, + "injected_at": "truncate cortex.cx by 1 byte (inside the last record)", + "outcome": "opened; recall ok=false; execute A2 ok=false; Reconcile: refused: compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6a-3/compose refused: Cortex jo", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "base_execute_done", + "ok": true, + "value": null + }, + { + "check": "named_refusal_on_recall", + "ok": true, + "value": "compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6a-3/compose refused: Cortex journal tail torn (E_TORN, CX_ERR_TORN); nothing was cut. Run RecoverComposeHome (aien compose recover" + }, + { + "check": "start_reconcile_reports", + "ok": true, + "value": "Reconcile: refused: compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6a-3/compose refused: Cortex journal tail torn (E_TORN, CX_ERR_TORN); nothing was cut. Run RecoverComposeHome (" + }, + { + "check": "execute_A2_refused", + "ok": true, + "value": "compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6a-3/compose refused: Cortex journal tail torn (E_TORN, CX_ERR_TORN); nothing was cut. Run RecoverComposeHome (aien compose recover" + }, + { + "check": "no_write_on_damaged_state", + "ok": true, + "value": null + }, + { + "check": "damaged_bytes_kept", + "ok": true, + "value": { + "damaged_sha256": "ce5ff0d423eb729addca0a615f1b06220050b91e9c877836588e4e4b8e557222", + "damaged_bytes": 9783, + "now_bytes": 9783 + } + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "1efbad588ce1e6bab6c5b17034b7ec3f79f33874239b9e96e6fcffc4224dce70" + }, + { + "file": "steps/A2.json", + "sha256": "134003e0f6e516100770d7853c2708a325dc4e95302e31854a2f6875cd7ca287" + }, + { + "file": "steps/pre.json", + "sha256": "a70b40f16be27f8c8636c58f276c9ff4ab3a4eab0299b78f3836c527536cf4cb" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "ec13b0fbec486684d81777c25a362b8813bab7f1a85628ab32b99584006e1947" + }, + { + "file": "steps/RCL.json", + "sha256": "fb4f8a9cfb01bf0bcef96fd6b6bcca47b3e3d5685218e938cc6fa235fa5fa727" + }, + { + "file": "steps/X1.json", + "sha256": "fd9e9b4bbf72b8cc7c1eee70d61088fd8adf0ae3bbbb56fe4ab2ca87a0c9de94" + }, + { + "file": "steps/X2.json", + "sha256": "171612a39eb8c41cfbf51cd3db2354655eb4bee97a73b26045520df994801929" + }, + { + "file": "daemon-1.log", + "sha256": "dd2a4ee4043c6da55b2b5bbaee8f81e2a23c682e43e47139bc407eae14941e9d" + }, + { + "file": "daemon-2.log", + "sha256": "66f03b2dedd73b761ee9dace7219fdd13fc5af7d812e37b8667e7f61dc27ec30" + } + ] + }, + { + "row": "C6b", + "rep": 1, + "injected_at": "flip one byte inside the last record of cortex.cx", + "outcome": "opened; recall ok=false; execute A2 ok=false; Reconcile: refused: compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6b-1/compose refused: rxc_host ", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "base_execute_done", + "ok": true, + "value": null + }, + { + "check": "named_refusal_on_recall", + "ok": true, + "value": "compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6b-1/compose refused: rxc_host E_OPEN (-4), detail -4" + }, + { + "check": "start_reconcile_reports", + "ok": true, + "value": "Reconcile: refused: compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6b-1/compose refused: rxc_host E_OPEN (-4), detail -4" + }, + { + "check": "execute_A2_refused", + "ok": true, + "value": "compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6b-1/compose refused: rxc_host E_OPEN (-4), detail -4" + }, + { + "check": "no_write_on_damaged_state", + "ok": true, + "value": null + }, + { + "check": "damaged_bytes_kept", + "ok": true, + "value": { + "damaged_sha256": "630e49381b31745bba7635d7d4f53abea36b5ac4be0e771d23fe94cb2e2e9d24", + "damaged_bytes": 9784, + "now_bytes": 9784 + } + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "09979db3049e18e635541df94290ac280a873ab5b8191cc6d6bc676098caaaeb" + }, + { + "file": "steps/A2.json", + "sha256": "d0a0f8116f718c19a76185da69a4ab1e972a63e4ed08615e5e8858ab3e9adcaa" + }, + { + "file": "steps/pre.json", + "sha256": "2794f81cdf15631d406ab9b942b93d526284d2331aa4bf100942414c271851b3" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "a3fce93facd3c3492fc1410c7287fb0396dd00a2099f11b478f7f9c5a496134b" + }, + { + "file": "steps/RCL.json", + "sha256": "faf24c9e9e428ebb0e6513a013c32e9b8cdcebbba822a8207368684a8b32473c" + }, + { + "file": "steps/X1.json", + "sha256": "4ba675fd6f46f3a68a6d9ce6bf61767df447bb18d05ea2052fd80fe5f46527bc" + }, + { + "file": "steps/X2.json", + "sha256": "cb98ba26d9b0081fc73b97f397f8d3bb0d30c9595531227f35988ac9991ac827" + }, + { + "file": "daemon-1.log", + "sha256": "57b759271b56028d983098cc24ba6e86a554fa41b87234779024936320eba858" + }, + { + "file": "daemon-2.log", + "sha256": "d963ab6bfa22a93d6f2e7be1be77d338c28f0cbeba3cff3bb58c5413a240ae47" + } + ] + }, + { + "row": "C6b", + "rep": 2, + "injected_at": "flip one byte inside the last record of cortex.cx", + "outcome": "opened; recall ok=false; execute A2 ok=false; Reconcile: refused: compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6b-2/compose refused: rxc_host ", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "base_execute_done", + "ok": true, + "value": null + }, + { + "check": "named_refusal_on_recall", + "ok": true, + "value": "compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6b-2/compose refused: rxc_host E_OPEN (-4), detail -4" + }, + { + "check": "start_reconcile_reports", + "ok": true, + "value": "Reconcile: refused: compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6b-2/compose refused: rxc_host E_OPEN (-4), detail -4" + }, + { + "check": "execute_A2_refused", + "ok": true, + "value": "compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6b-2/compose refused: rxc_host E_OPEN (-4), detail -4" + }, + { + "check": "no_write_on_damaged_state", + "ok": true, + "value": null + }, + { + "check": "damaged_bytes_kept", + "ok": true, + "value": { + "damaged_sha256": "0dd71afed3ce1bfe84699d012627abd6debfb3bc15728dcf49c5d14ae9b00ca3", + "damaged_bytes": 9784, + "now_bytes": 9784 + } + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "505e41f4a9c70989ae8cf66b8ec52aa67fa1323813a6055da616194007ed8c5d" + }, + { + "file": "steps/A2.json", + "sha256": "41519329f8c8ad265cda21e7e23eed98e6ea9da1326ed830cf049f7fc284a181" + }, + { + "file": "steps/pre.json", + "sha256": "9517af09b82069351045e94df811f8bdda1e17d334b1ea041c82c7dd08b47e03" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "25b7157b99f5df7a4eed55ea0cb57ae5495f5c132df9bb094ece717dd47d59bc" + }, + { + "file": "steps/RCL.json", + "sha256": "81d80cf1fb32a616072ae0789288fb2054a16c24e5ccdd1826bbfc5a838da5ef" + }, + { + "file": "steps/X1.json", + "sha256": "eaa935a51744f881eda3118e2452d976d93e80de143e3d12018ad6ea3194f8bf" + }, + { + "file": "steps/X2.json", + "sha256": "798a14ec317d027bfa7ad0f8c43389de8cc6b78f47f6af8fff4686b45aceed20" + }, + { + "file": "daemon-1.log", + "sha256": "1aadcb2cf9d330aa58df49f7165f3b3cfe4f9ebbf3eef0f4fcc97e1e3aab3b71" + }, + { + "file": "daemon-2.log", + "sha256": "a8bc8608edb093e7acc2f1294483ba3dd8504ccc868db5756ef63b0f548809b7" + } + ] + }, + { + "row": "C6b", + "rep": 3, + "injected_at": "flip one byte inside the last record of cortex.cx", + "outcome": "opened; recall ok=false; execute A2 ok=false; Reconcile: refused: compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6b-3/compose refused: rxc_host ", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "base_execute_done", + "ok": true, + "value": null + }, + { + "check": "named_refusal_on_recall", + "ok": true, + "value": "compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6b-3/compose refused: rxc_host E_OPEN (-4), detail -4" + }, + { + "check": "start_reconcile_reports", + "ok": true, + "value": "Reconcile: refused: compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6b-3/compose refused: rxc_host E_OPEN (-4), detail -4" + }, + { + "check": "execute_A2_refused", + "ok": true, + "value": "compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6b-3/compose refused: rxc_host E_OPEN (-4), detail -4" + }, + { + "check": "no_write_on_damaged_state", + "ok": true, + "value": null + }, + { + "check": "damaged_bytes_kept", + "ok": true, + "value": { + "damaged_sha256": "c0c522fb8299a8b542c3114ccec730caeef5e82d8ce9fc1a03fe9c01af3eb64b", + "damaged_bytes": 9784, + "now_bytes": 9784 + } + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "3bc45750ca4186009e7ecdddd9c42036c0efae4f3b74bb6e145be33ce03cee9d" + }, + { + "file": "steps/A2.json", + "sha256": "763ce3d18e9105dfff0c88a2976e52b85a2155d147eaefcd8d142ec9f7736903" + }, + { + "file": "steps/pre.json", + "sha256": "098bd65a867399beaec17064e5fb86b47fe57d5af069041ff93bb05058ee180f" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "9653f9476911a7ce93cb6ab79b524340c16f91b653959cc5b85511552c72d7d3" + }, + { + "file": "steps/RCL.json", + "sha256": "07eca6212bf6d0a5707a08362db96c5146e0556686ca9c5c16da987cb62133df" + }, + { + "file": "steps/X1.json", + "sha256": "01e6835fe2ee31c90b055a3e63aa02b6a13a0f3211f40b9629cc36324022f5bb" + }, + { + "file": "steps/X2.json", + "sha256": "d418aca3d368fa07fb919633558b52dfe6c96c697133ba85db3ef604a182f196" + }, + { + "file": "daemon-1.log", + "sha256": "dd2f36a05e082fda720ae31dde5b4c0c23214551f01443a2b17889d6db5ce21e" + }, + { + "file": "daemon-2.log", + "sha256": "39cfcbd995aa3e570c942a87344ab8454236f042b1359efb1cfe98c27f892831" + } + ] + }, + { + "row": "C6c", + "rep": 1, + "injected_at": "cut cortex.cx at the record boundary before the last record (A2 dropped)", + "outcome": "opened; recall ok=true; execute A2 ok=false; Reconcile: checked 0 unsettled effect(s): DONE 0, NOT_DONE 0, UNRESOLVED 0 recorded, 0 left as they were; []", + "verdict": "FAIL", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "base_execute_done", + "ok": true, + "value": null + }, + { + "check": "named_refusal_on_recall", + "ok": false, + "value": "recall succeeded" + }, + { + "check": "start_reconcile_reports", + "ok": true, + "value": "Reconcile: checked 0 unsettled effect(s): DONE 0, NOT_DONE 0, UNRESOLVED 0 recorded, 0 left as they were; []" + }, + { + "check": "execute_A2_refused", + "ok": true, + "value": "EFFECT_REFUSED NotAuthorized: cortex.cx#26 is not a verified authorization" + }, + { + "check": "no_write_on_damaged_state", + "ok": true, + "value": null + }, + { + "check": "damaged_bytes_kept", + "ok": true, + "value": { + "damaged_sha256": "ff953bd97824fbb08f2a49530912f9d7a04577c4c71b87586951f6e59b5ba71b", + "damaged_bytes": 9096, + "now_bytes": 10816 + } + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "9f1ca9e215b5010ea3d15b71e58a1705a3dda62666e02e2d9f3c3b0dc336e9bd" + }, + { + "file": "steps/A2.json", + "sha256": "a482664cd105d7453492857c742b7ebb3b3893046032e001402a2e10a44958bc" + }, + { + "file": "steps/pre.json", + "sha256": "3add3d6f7e87feca208bd938ff134e4993dc5c5a10d58f35d56b753b85b39d54" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "5cbb8d5573f392301662428508a1a847ac3d90d09daea6b894dd4926ac91c170" + }, + { + "file": "steps/RCL.json", + "sha256": "167cbf34d9334e1f1f83c2296f484ca03177f7ae4051b62db35d94046af37b5a" + }, + { + "file": "steps/X1.json", + "sha256": "87be38da234fe93e7439c51a427a99164917be2f13f6fa61c2a8ecba3c60181c" + }, + { + "file": "steps/X2.json", + "sha256": "3c2305705f218b0ff0601905c496a6403ca428ad797a3c703aab91a4b802b6ef" + }, + { + "file": "daemon-1.log", + "sha256": "74e64967f9d2e89fb758d8fd807a031ab35bead6bd3d30325cae6e231dc33d5d" + }, + { + "file": "daemon-2.log", + "sha256": "74e64967f9d2e89fb758d8fd807a031ab35bead6bd3d30325cae6e231dc33d5d" + } + ] + }, + { + "row": "C6c", + "rep": 2, + "injected_at": "cut cortex.cx at the record boundary before the last record (A2 dropped)", + "outcome": "opened; recall ok=true; execute A2 ok=false; Reconcile: checked 0 unsettled effect(s): DONE 0, NOT_DONE 0, UNRESOLVED 0 recorded, 0 left as they were; []", + "verdict": "FAIL", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "base_execute_done", + "ok": true, + "value": null + }, + { + "check": "named_refusal_on_recall", + "ok": false, + "value": "recall succeeded" + }, + { + "check": "start_reconcile_reports", + "ok": true, + "value": "Reconcile: checked 0 unsettled effect(s): DONE 0, NOT_DONE 0, UNRESOLVED 0 recorded, 0 left as they were; []" + }, + { + "check": "execute_A2_refused", + "ok": true, + "value": "EFFECT_REFUSED NotAuthorized: cortex.cx#26 is not a verified authorization" + }, + { + "check": "no_write_on_damaged_state", + "ok": true, + "value": null + }, + { + "check": "damaged_bytes_kept", + "ok": true, + "value": { + "damaged_sha256": "e7597926381f60415ca40f05780fc98f1f7c2c760eac28ebfd4480dd15597cd4", + "damaged_bytes": 9096, + "now_bytes": 10816 + } + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "441ad3525fbe71ff1eb15b63434a63e92e29ab65f9f1219d667ce89114cac85d" + }, + { + "file": "steps/A2.json", + "sha256": "37c31b19a25169cc88f75de8ef91873c5c3ef0f37d8d0930d1e5848691a67d44" + }, + { + "file": "steps/pre.json", + "sha256": "fa322f49cd0cc8f3e75dfb4615a10146e171f2b70daa108594c63de2a9ac9d82" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "4c166a02d2fd5cca4d9b5625df0f2d1041375e6be8adaa905955b790572e518f" + }, + { + "file": "steps/RCL.json", + "sha256": "e6643b7b710b875896483c48a2fdd7c37aeebcc300021abce23b0e6e7aa878a4" + }, + { + "file": "steps/X1.json", + "sha256": "f3204a11c38598ce47eb7f1c1792e7f76709114e0f7d50df74657b26296ef1cc" + }, + { + "file": "steps/X2.json", + "sha256": "3c2305705f218b0ff0601905c496a6403ca428ad797a3c703aab91a4b802b6ef" + }, + { + "file": "daemon-1.log", + "sha256": "8b63316612376cacf84c5ac8ac1bdaf99a70e78dc333d62b229322e3c150aede" + }, + { + "file": "daemon-2.log", + "sha256": "8b63316612376cacf84c5ac8ac1bdaf99a70e78dc333d62b229322e3c150aede" + } + ] + }, + { + "row": "C6c", + "rep": 3, + "injected_at": "cut cortex.cx at the record boundary before the last record (A2 dropped)", + "outcome": "opened; recall ok=true; execute A2 ok=false; Reconcile: checked 0 unsettled effect(s): DONE 0, NOT_DONE 0, UNRESOLVED 0 recorded, 0 left as they were; []", + "verdict": "FAIL", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "base_execute_done", + "ok": true, + "value": null + }, + { + "check": "named_refusal_on_recall", + "ok": false, + "value": "recall succeeded" + }, + { + "check": "start_reconcile_reports", + "ok": true, + "value": "Reconcile: checked 0 unsettled effect(s): DONE 0, NOT_DONE 0, UNRESOLVED 0 recorded, 0 left as they were; []" + }, + { + "check": "execute_A2_refused", + "ok": true, + "value": "EFFECT_REFUSED NotAuthorized: cortex.cx#26 is not a verified authorization" + }, + { + "check": "no_write_on_damaged_state", + "ok": true, + "value": null + }, + { + "check": "damaged_bytes_kept", + "ok": true, + "value": { + "damaged_sha256": "c8156dfd986305470a4fffc93a137719381bf47f1b961d6cf4dd5990288b1526", + "damaged_bytes": 9096, + "now_bytes": 10816 + } + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "1b11292339d73bae2a184ea3a786cb64954a9058fc6883111602fdc4618833db" + }, + { + "file": "steps/A2.json", + "sha256": "ef20841c3542b7d3ee38f0a13f789257e1609d81ba3b8a7a23da1e5470d7bf09" + }, + { + "file": "steps/pre.json", + "sha256": "0fe1540fa9c0d564f63768859ff1d051fe6bc4ef38e2e66967d19856bc493ea7" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "181b122f78b6f06b29b95f7ca9af113f9c0e51e4741001c1ff2e387a6240b5fa" + }, + { + "file": "steps/RCL.json", + "sha256": "4a5dbd03e9805035cf1279a1849d8a1a894fc70f5571746af7f91aa74eac4e1a" + }, + { + "file": "steps/X1.json", + "sha256": "ea9fbd77478e9935c450c5e1c8d39d273340e82319acd302ba27dc25b814b7fb" + }, + { + "file": "steps/X2.json", + "sha256": "3c2305705f218b0ff0601905c496a6403ca428ad797a3c703aab91a4b802b6ef" + }, + { + "file": "daemon-1.log", + "sha256": "544ce3b0a4d670d9456323fe9b1f346cc5996bda493ca5042cace61195711fdf" + }, + { + "file": "daemon-2.log", + "sha256": "544ce3b0a4d670d9456323fe9b1f346cc5996bda493ca5042cace61195711fdf" + } + ] + }, + { + "row": "C6d", + "rep": 1, + "injected_at": "truncate jspace.data by 1 byte", + "outcome": "injection changed nothing: compose/jspace/jspace.data is 0 bytes before and after", + "verdict": "NOT_RUN", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "base_execute_done", + "ok": true, + "value": null + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "6b02c7eb3305fb1d00257014be6ff2b674dd9984eec3142d9fa67d5e8f0b81e4" + }, + { + "file": "steps/A2.json", + "sha256": "8171abf3ea6bde840c83a24eeaa373377a82cfee68fea5be5127e35e5bcb7087" + }, + { + "file": "steps/pre.json", + "sha256": "ebe54a5025822587bdb1390598462e96351777ba4d78b144587885c80e251062" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "a8e6164a7d2c84d3a2412ca940c9f6071ea89362204570f2f3318982330c49a7" + }, + { + "file": "steps/X1.json", + "sha256": "fce733e913504f4ab94c1427fceff9e2cba61f072dcd5e57d1a3b3c4ad51e61b" + }, + { + "file": "daemon-1.log", + "sha256": "664b65c8aef08e17175fb204abf3ef0b576369dcdcbc2712edceb4621647c662" + } + ] + }, + { + "row": "C6d", + "rep": 2, + "injected_at": "truncate jspace.data by 1 byte", + "outcome": "injection changed nothing: compose/jspace/jspace.data is 0 bytes before and after", + "verdict": "NOT_RUN", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "base_execute_done", + "ok": true, + "value": null + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "bc9c8d9ecb83f3daf0f01a578187850802370a5b73e66687a61cd506c3d5f939" + }, + { + "file": "steps/A2.json", + "sha256": "68d5b364b580e645f2636815ea369f57a8382fff6ecfc7bbdbf7835345e9ee02" + }, + { + "file": "steps/pre.json", + "sha256": "6b1041b04f279ef3cfac8637aed9b91da42b54f8990caef76f39197186a8d0a1" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "aa9f9fd41abf8d99ce2252a1f060fca4b5416f61b17ea215ed5014c40d319510" + }, + { + "file": "steps/X1.json", + "sha256": "ea302a94d2a36d29febc92b9441963be3c0a59346dbce4403916690a5c5fd08e" + }, + { + "file": "daemon-1.log", + "sha256": "06733ac4680d64a2b8b62994bd296c71badd3d90ffd5c39ddb92825c9a161131" + } + ] + }, + { + "row": "C6d", + "rep": 3, + "injected_at": "truncate jspace.data by 1 byte", + "outcome": "injection changed nothing: compose/jspace/jspace.data is 0 bytes before and after", + "verdict": "NOT_RUN", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "base_execute_done", + "ok": true, + "value": null + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "19c5348b362b1d05971a48f56394a529545194097310995fc670a5698c96c912" + }, + { + "file": "steps/A2.json", + "sha256": "1f04251553100e7f2c2e86e026d29114d6c5455eb6855ad745a973aa6ba3e986" + }, + { + "file": "steps/pre.json", + "sha256": "47128052829ee557e95db726603488af3e4f06b17dd7c33bf1320a27cd062821" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "42328f69234aac670f90ca66c6806b03b5e8aabe9c2b80a3091c8f36e8a0211c" + }, + { + "file": "steps/X1.json", + "sha256": "fc45285768028cb60e45e7652d3ef6aa6552bbc61f12801840e1db6fb6f32dd8" + }, + { + "file": "daemon-1.log", + "sha256": "acf037f0fe25427d2438908413f0353a573606245cf4c438f33829c01afb1fd8" + } + ] + }, + { + "row": "C6e", + "rep": 1, + "injected_at": "flip one byte in the middle of jspace.meta", + "outcome": "opened; recall ok=false; execute A2 ok=false; Reconcile: refused: compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6e-1/compose refused: Cortex jo", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "base_execute_done", + "ok": true, + "value": null + }, + { + "check": "named_refusal_on_recall", + "ok": true, + "value": "compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6e-1/compose refused: Cortex journal behind its J-Space anchor (E_REPLAY, RX_ERR_REPLAY -21). Run RecoverComposeHome (aien compose " + }, + { + "check": "start_reconcile_reports", + "ok": true, + "value": "Reconcile: refused: compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6e-1/compose refused: Cortex journal behind its J-Space anchor (E_REPLAY, RX_ERR_REPLAY -21). Run RecoverCompos" + }, + { + "check": "execute_A2_refused", + "ok": true, + "value": "compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6e-1/compose refused: Cortex journal behind its J-Space anchor (E_REPLAY, RX_ERR_REPLAY -21). Run RecoverComposeHome (aien compose " + }, + { + "check": "no_write_on_damaged_state", + "ok": true, + "value": null + }, + { + "check": "damaged_bytes_kept", + "ok": true, + "value": { + "damaged_sha256": "13821e80526ac43b08e4ab6aa3642f2d4fd78b4826b4dba80ed353fe460bc780", + "damaged_bytes": 568, + "now_bytes": 568 + } + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "bf860e43ac366c3044912b16a1bc669c0bf1d079be17f5e10c0b03ac011ea324" + }, + { + "file": "steps/A2.json", + "sha256": "1009d6ecd88c6ab60d8f949c6dff4d267548f7f2c33c574092af56f191149d21" + }, + { + "file": "steps/pre.json", + "sha256": "e3e568f9b751ab8b301d39e75c9a145856c95dd651ae97f72e641aeb5555f019" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "42667c6f7b6b5f6660ace1a79840f3e68b31fc58dcba70c4403a955734a6fb02" + }, + { + "file": "steps/RCL.json", + "sha256": "1cf2f5864020c6906faa48bee4eab8f9f8f9d34b5eb7b08ab446a45b1e917d30" + }, + { + "file": "steps/X1.json", + "sha256": "785d426c0be16752a7a043204a95c31c94ff0e277ad9c828d6fc884f437ca75a" + }, + { + "file": "steps/X2.json", + "sha256": "26913815b21e04ac77637f88fce0ac1492b9eb7c439fc0cbe3d052dad992d6ab" + }, + { + "file": "daemon-1.log", + "sha256": "087ca29f24a6dec90ee4bbb193c90e6b34175b71716a18ff215f120cb1bf70b9" + }, + { + "file": "daemon-2.log", + "sha256": "5e143184d89d589de8b213a8aaea2930bd6c50f5cb0f4f0a64a6ff783bdfbee1" + } + ] + }, + { + "row": "C6e", + "rep": 2, + "injected_at": "flip one byte in the middle of jspace.meta", + "outcome": "opened; recall ok=false; execute A2 ok=false; Reconcile: refused: compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6e-2/compose refused: Cortex jo", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "base_execute_done", + "ok": true, + "value": null + }, + { + "check": "named_refusal_on_recall", + "ok": true, + "value": "compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6e-2/compose refused: Cortex journal behind its J-Space anchor (E_REPLAY, RX_ERR_REPLAY -21). Run RecoverComposeHome (aien compose " + }, + { + "check": "start_reconcile_reports", + "ok": true, + "value": "Reconcile: refused: compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6e-2/compose refused: Cortex journal behind its J-Space anchor (E_REPLAY, RX_ERR_REPLAY -21). Run RecoverCompos" + }, + { + "check": "execute_A2_refused", + "ok": true, + "value": "compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6e-2/compose refused: Cortex journal behind its J-Space anchor (E_REPLAY, RX_ERR_REPLAY -21). Run RecoverComposeHome (aien compose " + }, + { + "check": "no_write_on_damaged_state", + "ok": true, + "value": null + }, + { + "check": "damaged_bytes_kept", + "ok": true, + "value": { + "damaged_sha256": "13821e80526ac43b08e4ab6aa3642f2d4fd78b4826b4dba80ed353fe460bc780", + "damaged_bytes": 568, + "now_bytes": 568 + } + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "5c90d4239ba5602d557d7de921f4a4b9514d61b9e90a491e5f0f40284a40dae6" + }, + { + "file": "steps/A2.json", + "sha256": "e7b9810eb481cc568d7e2774be6431878b58de7055f8dfdc19ef8a544817d1fb" + }, + { + "file": "steps/pre.json", + "sha256": "c3bc19bafb2e6ae017f66064e4b33a9613ed85f8e00bb6779d097d8ebda4f988" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "9a5681becb7aba524dc903fa6eb2c1508d408daae00c97485d86aa7b566746c9" + }, + { + "file": "steps/RCL.json", + "sha256": "286b3d0dc714037ca8d8cf7971db439dff6e151dbf2ba3599b9f392163bb6909" + }, + { + "file": "steps/X1.json", + "sha256": "644a07fd3f9d1ee9b9d79bfada6f7ed0eef176887428e5fcc2089496fd18f8ec" + }, + { + "file": "steps/X2.json", + "sha256": "2cbd3e1456ac42252e82c9151f06ee6dbc97d31bb9c1c5e1cffc4d714c3a501d" + }, + { + "file": "daemon-1.log", + "sha256": "5cc9e77d99ed98cf668ff06d5af901fc80dd42300a1094e031ca8bf2e58d399a" + }, + { + "file": "daemon-2.log", + "sha256": "ae8426c01b762e25a365f32f1f2979e26ffd2267c08617947af084eba0672534" + } + ] + }, + { + "row": "C6e", + "rep": 3, + "injected_at": "flip one byte in the middle of jspace.meta", + "outcome": "opened; recall ok=false; execute A2 ok=false; Reconcile: refused: compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6e-3/compose refused: Cortex jo", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "base_execute_done", + "ok": true, + "value": null + }, + { + "check": "named_refusal_on_recall", + "ok": true, + "value": "compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6e-3/compose refused: Cortex journal behind its J-Space anchor (E_REPLAY, RX_ERR_REPLAY -21). Run RecoverComposeHome (aien compose " + }, + { + "check": "start_reconcile_reports", + "ok": true, + "value": "Reconcile: refused: compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6e-3/compose refused: Cortex journal behind its J-Space anchor (E_REPLAY, RX_ERR_REPLAY -21). Run RecoverCompos" + }, + { + "check": "execute_A2_refused", + "ok": true, + "value": "compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6e-3/compose refused: Cortex journal behind its J-Space anchor (E_REPLAY, RX_ERR_REPLAY -21). Run RecoverComposeHome (aien compose " + }, + { + "check": "no_write_on_damaged_state", + "ok": true, + "value": null + }, + { + "check": "damaged_bytes_kept", + "ok": true, + "value": { + "damaged_sha256": "13821e80526ac43b08e4ab6aa3642f2d4fd78b4826b4dba80ed353fe460bc780", + "damaged_bytes": 568, + "now_bytes": 568 + } + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "bd092d3941c60d376bb5461b46bc3af35fc0c27fc7dd44205eb5d71219e690eb" + }, + { + "file": "steps/A2.json", + "sha256": "4ab95df3c1e6da9864019bc7927c2f6f5c509c7f972158a9eefa3242743d92d5" + }, + { + "file": "steps/pre.json", + "sha256": "7f3315db5df29367fad55600343599fe46f2cb279a7b5542d2e10d837bfc8bab" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "d5152519b3d8e8737ff5de2e16eb70d8aa49c0596290fc30edf5ab16bf1358cd" + }, + { + "file": "steps/RCL.json", + "sha256": "33b43c560ac3f7740039e522c20ad5f9a9d38ebfce7d4f31a3c412870d26c5af" + }, + { + "file": "steps/X1.json", + "sha256": "48b4f20330e212c4b34c1509e57ee97692bc10634bf929849c6738d734c0245f" + }, + { + "file": "steps/X2.json", + "sha256": "158e7f3488b3c194ce2a7f7338783a31af6afa8922ea48ca08bd8736004d004a" + }, + { + "file": "daemon-1.log", + "sha256": "124a66b1799783fd4b05831e983adf40f1f1ab137b5cbbef309da0657f15268d" + }, + { + "file": "daemon-2.log", + "sha256": "5220e0fdc0a87497e9dd139fa493ae98f2f4eb1c0d904dc1c9d2dcd95aa298b0" + } + ] + }, + { + "row": "C6f", + "rep": 1, + "injected_at": "truncate the machine root to 16 bytes", + "outcome": "opened; recall ok=false; execute A2 ok=false; Reconcile: refused: /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6f-1/compose.machine-root holds 16 bytes, ex", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "base_execute_done", + "ok": true, + "value": null + }, + { + "check": "named_refusal_on_recall", + "ok": true, + "value": "/home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6f-1/compose.machine-root holds 16 bytes, expected 32" + }, + { + "check": "start_reconcile_reports", + "ok": true, + "value": "Reconcile: refused: /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6f-1/compose.machine-root holds 16 bytes, expected 32" + }, + { + "check": "execute_A2_refused", + "ok": true, + "value": "/home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6f-1/compose.machine-root holds 16 bytes, expected 32" + }, + { + "check": "no_write_on_damaged_state", + "ok": true, + "value": null + }, + { + "check": "damaged_bytes_kept", + "ok": true, + "value": { + "damaged_sha256": "6465cd94ca044853c6ce9e485b528ac9af97a87e5f5548eb311990e3017d667b", + "damaged_bytes": 16, + "now_bytes": 16 + } + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "3a53f800c9608371b53b66e7e2ebd50951d5640a924e27ad785bfe0608c50278" + }, + { + "file": "steps/A2.json", + "sha256": "bc76794080d02720eae774a2ffd9899a9e3985c1b9a1ebbbebaf4c4419fa5b9a" + }, + { + "file": "steps/pre.json", + "sha256": "7d9fe32939d42878fed27b41eb12f440d898cda1554698cdc390908abd3e3891" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "d48de3c956715ceede522eb0f2b2c1baca5aa8685d5456e93d335118c7509378" + }, + { + "file": "steps/RCL.json", + "sha256": "7a7a476db235fe3af72035efd002b5871e431d435e0c77d209b4e9c4bf8481bb" + }, + { + "file": "steps/X1.json", + "sha256": "32ab00e1a2958a3d1b1178d48c4fb63556db8ada56b2f0181a8d2889a85a4710" + }, + { + "file": "steps/X2.json", + "sha256": "d8dfe178dcac6af803a4c48c6742c2fe11143fe7c27a055ce9408f32777f2411" + }, + { + "file": "daemon-1.log", + "sha256": "cea9393b9b4f303698e19f42463632ce1c71b7c6a7016564934c46147a183754" + }, + { + "file": "daemon-2.log", + "sha256": "934cc402a8c9688d662b67f9e0055cf52bda57b9491329ca80f24d44666ddce2" + } + ] + }, + { + "row": "C6f", + "rep": 2, + "injected_at": "truncate the machine root to 16 bytes", + "outcome": "opened; recall ok=false; execute A2 ok=false; Reconcile: refused: /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6f-2/compose.machine-root holds 16 bytes, ex", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "base_execute_done", + "ok": true, + "value": null + }, + { + "check": "named_refusal_on_recall", + "ok": true, + "value": "/home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6f-2/compose.machine-root holds 16 bytes, expected 32" + }, + { + "check": "start_reconcile_reports", + "ok": true, + "value": "Reconcile: refused: /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6f-2/compose.machine-root holds 16 bytes, expected 32" + }, + { + "check": "execute_A2_refused", + "ok": true, + "value": "/home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6f-2/compose.machine-root holds 16 bytes, expected 32" + }, + { + "check": "no_write_on_damaged_state", + "ok": true, + "value": null + }, + { + "check": "damaged_bytes_kept", + "ok": true, + "value": { + "damaged_sha256": "6465cd94ca044853c6ce9e485b528ac9af97a87e5f5548eb311990e3017d667b", + "damaged_bytes": 16, + "now_bytes": 16 + } + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "f6f8eaf8c0e7c461beedcb2a86ef58a9d51a50063b9f6151b35e163980bdefee" + }, + { + "file": "steps/A2.json", + "sha256": "7c55d58022c0edcdd8f40fa4ae6bb39c4d41dfa2cd4cc02912055654d59d295d" + }, + { + "file": "steps/pre.json", + "sha256": "ac5b8339ff5002984c6a9c0aebcede4b4c7bca3bd7ff9846c1018fac3cc869b3" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "bb211fc5c6dc7823aa08eb978773db3e5c63f9b776a213ff26ecdd84dbab24c6" + }, + { + "file": "steps/RCL.json", + "sha256": "722457457aa54eb91da19f7f78ac990892872d20f0173f3759cb85d073a4b932" + }, + { + "file": "steps/X1.json", + "sha256": "418820dd51b7162c92f112cc3dbeb40a37877d69b39af0ba06b21adbdd1d6063" + }, + { + "file": "steps/X2.json", + "sha256": "0254ebd0cfd620e386267adfbd4b2ed4ca8c4a37fb648708d09be3846a2e0e28" + }, + { + "file": "daemon-1.log", + "sha256": "5209379e15417c0d30799c91407de48d98087f795d9ae5b70d59493efc9c392d" + }, + { + "file": "daemon-2.log", + "sha256": "6e7313e230f37c3cba44d4b85ca932daf7c3e3ec8b7c613386749e21cb9afd36" + } + ] + }, + { + "row": "C6f", + "rep": 3, + "injected_at": "truncate the machine root to 16 bytes", + "outcome": "opened; recall ok=false; execute A2 ok=false; Reconcile: refused: /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6f-3/compose.machine-root holds 16 bytes, ex", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "base_execute_done", + "ok": true, + "value": null + }, + { + "check": "named_refusal_on_recall", + "ok": true, + "value": "/home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6f-3/compose.machine-root holds 16 bytes, expected 32" + }, + { + "check": "start_reconcile_reports", + "ok": true, + "value": "Reconcile: refused: /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6f-3/compose.machine-root holds 16 bytes, expected 32" + }, + { + "check": "execute_A2_refused", + "ok": true, + "value": "/home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6f-3/compose.machine-root holds 16 bytes, expected 32" + }, + { + "check": "no_write_on_damaged_state", + "ok": true, + "value": null + }, + { + "check": "damaged_bytes_kept", + "ok": true, + "value": { + "damaged_sha256": "6465cd94ca044853c6ce9e485b528ac9af97a87e5f5548eb311990e3017d667b", + "damaged_bytes": 16, + "now_bytes": 16 + } + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "e770fe6fc2513cc4657fc75188f601765bad2d084ab74edbe163e5cbebfccbdb" + }, + { + "file": "steps/A2.json", + "sha256": "de75ba712fdfb6814b38396166172342e52e7f5b7e5a67fe3592f464fb94e1b9" + }, + { + "file": "steps/pre.json", + "sha256": "17c913de73b1a83b269dd9a7dd345f42a971ada07a5008f04247432a082cffda" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "e8f9c73cbbb8c8603943a31625893ac96ef3df5d5a2390db28b9f92ce45796b5" + }, + { + "file": "steps/RCL.json", + "sha256": "a63fd03187661930aa597430d029b09799ad9bf6a3078458866b1829321bef5a" + }, + { + "file": "steps/X1.json", + "sha256": "ba41aa8a64befa78d2e22ff8ff2af107b8f65157109b528ac64c6dbb4c568f05" + }, + { + "file": "steps/X2.json", + "sha256": "3d230acc68292eab0b9c4ccf385a64e05f3672b6b03d5c4c53f66309f09d1651" + }, + { + "file": "daemon-1.log", + "sha256": "9c3e8562356fcdd2b31de5a9edc767fb0ac1868abaaedd649fafe420ea53dabf" + }, + { + "file": "daemon-2.log", + "sha256": "f0524fbb793d1db330a389767528e7328236562579930622483cdd92461f668c" + } + ] + }, + { + "row": "C6g", + "rep": 1, + "injected_at": "flip the first byte of machine.id", + "outcome": "opened; recall ok=false; execute A2 ok=false; Reconcile: refused: compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6g-1/compose refused: rxc_host ", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "base_execute_done", + "ok": true, + "value": null + }, + { + "check": "named_refusal_on_recall", + "ok": true, + "value": "compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6g-1/compose refused: rxc_host E_IDENTITY (-2), detail 0" + }, + { + "check": "start_reconcile_reports", + "ok": true, + "value": "Reconcile: refused: compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6g-1/compose refused: rxc_host E_IDENTITY (-2), detail 0" + }, + { + "check": "execute_A2_refused", + "ok": true, + "value": "compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6g-1/compose refused: rxc_host E_IDENTITY (-2), detail 0" + }, + { + "check": "no_write_on_damaged_state", + "ok": true, + "value": null + }, + { + "check": "damaged_bytes_kept", + "ok": true, + "value": { + "damaged_sha256": "c440ef2047d66d407da9f2f67dac9cca6869816c6ea67cd71259740af99ec049", + "damaged_bytes": 44, + "now_bytes": 44 + } + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "f7189ecc38c89e8e70b233374109846b14008919c8c7a28f8e8c25e2b07a0bb2" + }, + { + "file": "steps/A2.json", + "sha256": "89f084aa6ad60623436a416e1dc4d8d6e3a45ca48c675fcbdcf772c0fe729db4" + }, + { + "file": "steps/pre.json", + "sha256": "038cf0da4a4e9c1b90c3d3aa30635d1550cfc38bdb788fb51a4a7fbbf9de666c" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "44b79be4b5bb4d370fe16304f5f3c0448a4e842a103f4ae6818c596d5e0a9eb6" + }, + { + "file": "steps/RCL.json", + "sha256": "918dd2730f850a0ecf8048571fc645b2d20d79256b25a4e51398b39fd7d558e0" + }, + { + "file": "steps/X1.json", + "sha256": "add8295dc589dc132a7a25851ae4e488d22f4920283998505593d4b1c4a64787" + }, + { + "file": "steps/X2.json", + "sha256": "19bde0d75cf45897f69c72509b8e73a46f4f693ab45b8890ea79337b4116b621" + }, + { + "file": "daemon-1.log", + "sha256": "781e1a63e2ff532945da64ebd2f38a4a69f24c687a282e0a1b891f108b599681" + }, + { + "file": "daemon-2.log", + "sha256": "6a80530d7ef052474cdc33b7d9ec3643b151ee085507fa7434bd1db52c121cef" + } + ] + }, + { + "row": "C6g", + "rep": 2, + "injected_at": "flip the first byte of machine.id", + "outcome": "opened; recall ok=false; execute A2 ok=false; Reconcile: refused: compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6g-2/compose refused: rxc_host ", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "base_execute_done", + "ok": true, + "value": null + }, + { + "check": "named_refusal_on_recall", + "ok": true, + "value": "compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6g-2/compose refused: rxc_host E_IDENTITY (-2), detail 0" + }, + { + "check": "start_reconcile_reports", + "ok": true, + "value": "Reconcile: refused: compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6g-2/compose refused: rxc_host E_IDENTITY (-2), detail 0" + }, + { + "check": "execute_A2_refused", + "ok": true, + "value": "compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6g-2/compose refused: rxc_host E_IDENTITY (-2), detail 0" + }, + { + "check": "no_write_on_damaged_state", + "ok": true, + "value": null + }, + { + "check": "damaged_bytes_kept", + "ok": true, + "value": { + "damaged_sha256": "c440ef2047d66d407da9f2f67dac9cca6869816c6ea67cd71259740af99ec049", + "damaged_bytes": 44, + "now_bytes": 44 + } + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "92bae677e8833f461d4b810c396f2ffbc28b5b776aa25d781b7829fdcaf4a64c" + }, + { + "file": "steps/A2.json", + "sha256": "af41bc1141c8c87356fe9183d208cd80614f60ff5fed58f76fa7cd5d7e462981" + }, + { + "file": "steps/pre.json", + "sha256": "edc4d447dce250f86da14998724008ea352f68cc696395f166959bd196375476" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "45a02013cc9fa1d23223104f5ef39a7480d5167e13a22d892bcb6283ed7bf8ea" + }, + { + "file": "steps/RCL.json", + "sha256": "7a2663a7b99d06213921b6c70e411913356cec6e30dab1423e79a1c14463e903" + }, + { + "file": "steps/X1.json", + "sha256": "44ac274c8072a7fdd1e346bab831d595a7c7a3974f286cc0b0379e8f326dd13f" + }, + { + "file": "steps/X2.json", + "sha256": "5886e804f9334de320be525294f6bca5aa231aab63470efd895cc0213a171d53" + }, + { + "file": "daemon-1.log", + "sha256": "ad115206fa159838971f238dbef9d68e4c01147c50f20e32c057407c92f2a7c9" + }, + { + "file": "daemon-2.log", + "sha256": "516a65cd23d7e66068f816d0f80d081cdf86b32ba386d66410d33a964c66927c" + } + ] + }, + { + "row": "C6g", + "rep": 3, + "injected_at": "flip the first byte of machine.id", + "outcome": "opened; recall ok=false; execute A2 ok=false; Reconcile: refused: compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6g-3/compose refused: rxc_host ", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "base_execute_done", + "ok": true, + "value": null + }, + { + "check": "named_refusal_on_recall", + "ok": true, + "value": "compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6g-3/compose refused: rxc_host E_IDENTITY (-2), detail 0" + }, + { + "check": "start_reconcile_reports", + "ok": true, + "value": "Reconcile: refused: compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6g-3/compose refused: rxc_host E_IDENTITY (-2), detail 0" + }, + { + "check": "execute_A2_refused", + "ok": true, + "value": "compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6g-3/compose refused: rxc_host E_IDENTITY (-2), detail 0" + }, + { + "check": "no_write_on_damaged_state", + "ok": true, + "value": null + }, + { + "check": "damaged_bytes_kept", + "ok": true, + "value": { + "damaged_sha256": "c440ef2047d66d407da9f2f67dac9cca6869816c6ea67cd71259740af99ec049", + "damaged_bytes": 44, + "now_bytes": 44 + } + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "d325cb06bd06054aa8cdcd2a8a037a5ce6a12faf4ba6c0fb5b073f151955b4b4" + }, + { + "file": "steps/A2.json", + "sha256": "1d8a2a809cdae0ce9f6fb99ae51f5bda19bbde73748e7c71738f14d4c3a0ea05" + }, + { + "file": "steps/pre.json", + "sha256": "652b3051162e3edc347c2fb20f67f91b212f2bd171c0ed58c947aba6eb3b2b79" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "92eea4c2244823dc969df413bcda7431067d3f498cdfeacb85fd2ea370cecbe6" + }, + { + "file": "steps/RCL.json", + "sha256": "8d619c9e32fedefc15975d106876cc68bf2d7229a0079614fde0593bb7ca8fe8" + }, + { + "file": "steps/X1.json", + "sha256": "041ccea7fb40ddf91503007ba3edeb1b5c2030080310f6f38702d3bae5a1274f" + }, + { + "file": "steps/X2.json", + "sha256": "ff117a982af64fd0f270a6639b08754962ffade27026725de82d912ce245b20f" + }, + { + "file": "daemon-1.log", + "sha256": "dd7688ee60bf10573be2f9699a825bd3979f3706af9b79ff99558ea97ba70059" + }, + { + "file": "daemon-2.log", + "sha256": "dc68da95c04ba0e01b1365aea45863bfe0e1e2f97f84b80fb7b933595ca1c5db" + } + ] + }, + { + "row": "C6h", + "rep": 1, + "injected_at": "write '{' into processed_operations.json", + "outcome": "daemon refused to start: Fatal: idempotency state /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6h-1/state/processed_operations.json is damaged (invalid ty", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "base_execute_done", + "ok": true, + "value": null + }, + { + "check": "daemon_refused_named", + "ok": true, + "value": "Fatal: idempotency state /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6h-1/state/processed_operations.json is damaged (invalid type: map, expected a sequence at line 1 column 0); refusing t" + }, + { + "check": "no_write_on_damaged_state", + "ok": true, + "value": null + }, + { + "check": "damaged_bytes_kept", + "ok": true, + "value": { + "damaged_sha256": "021fb596db81e6d02bf3d2586ee3981fe519f275c0ac9ca76bbcf2ebb4097d96", + "damaged_bytes": 1, + "now_bytes": 1 + } + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "c3fe0faa47828bd6f21b243e5d35a97a51949c68adfb910ea4f91ca0e49eadc7" + }, + { + "file": "steps/A2.json", + "sha256": "97a21f87711018416434811df2ae8d5b1b9afc0044fac4866c01725aa03e9a0e" + }, + { + "file": "steps/pre.json", + "sha256": "619aa17c1f0f6d04505c2c0e4a431a0e29dc71fa73b4cbce3dd10f61e5c937a5" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "d5692e2a5c96e1916be0cb23c50dc4bfefbbbf7ab1664933e7b4f385b37d187d" + }, + { + "file": "steps/X1.json", + "sha256": "208f8c60ad7c9038ca058ee9f2d6eea5611a992779555bf88c8fece53a56c17c" + }, + { + "file": "daemon-1.log", + "sha256": "52f06becb19b742117c3bf7e7004e489b5091b10ea3763d9e5ab0a849a252bc2" + }, + { + "file": "daemon-2.log", + "sha256": "a13d32793a1326750ec2299427612b1c3be129fcf3260c210d5fa1fc74702a39" + } + ] + }, + { + "row": "C6h", + "rep": 2, + "injected_at": "write '{' into processed_operations.json", + "outcome": "daemon refused to start: Fatal: idempotency state /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6h-2/state/processed_operations.json is damaged (invalid ty", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "base_execute_done", + "ok": true, + "value": null + }, + { + "check": "daemon_refused_named", + "ok": true, + "value": "Fatal: idempotency state /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6h-2/state/processed_operations.json is damaged (invalid type: map, expected a sequence at line 1 column 0); refusing t" + }, + { + "check": "no_write_on_damaged_state", + "ok": true, + "value": null + }, + { + "check": "damaged_bytes_kept", + "ok": true, + "value": { + "damaged_sha256": "021fb596db81e6d02bf3d2586ee3981fe519f275c0ac9ca76bbcf2ebb4097d96", + "damaged_bytes": 1, + "now_bytes": 1 + } + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "0e6ee941f4d29cd3cd7cfae9046849a88ed168f8e4fe9e50cdc050192fbda140" + }, + { + "file": "steps/A2.json", + "sha256": "06a13517cf12dcb04bec659013f17f91b95e29a68dc84123c672bafa6ec09eb5" + }, + { + "file": "steps/pre.json", + "sha256": "1bc4bc58d64d316efa456f71c5939d4e92e54e7cf9d1c085b78834b63b7a8ed0" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "ffda97acbe8d0e29ba84e13d892459d32a3beb5f02d2958034020e5b5423c042" + }, + { + "file": "steps/X1.json", + "sha256": "2282715d8c861fdd3a81dc00ef5f8b8e79df261d26b9c3efa526d4b42d84dfe7" + }, + { + "file": "daemon-1.log", + "sha256": "5027990b18e395b05c2444d43dd7ab022abea953f7c345e722d3e2cf9fd0e639" + }, + { + "file": "daemon-2.log", + "sha256": "0578620d1bb8b00b8127099627f16bab1a6c998cb3b33b5ee493c13c75b63f4a" + } + ] + }, + { + "row": "C6h", + "rep": 3, + "injected_at": "write '{' into processed_operations.json", + "outcome": "daemon refused to start: Fatal: idempotency state /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6h-3/state/processed_operations.json is damaged (invalid ty", + "verdict": "PASS", + "checks": [ + { + "check": "daemon_daemon-1_up", + "ok": true, + "value": null + }, + { + "check": "base_execute_done", + "ok": true, + "value": null + }, + { + "check": "daemon_refused_named", + "ok": true, + "value": "Fatal: idempotency state /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6h-3/state/processed_operations.json is damaged (invalid type: map, expected a sequence at line 1 column 0); refusing t" + }, + { + "check": "no_write_on_damaged_state", + "ok": true, + "value": null + }, + { + "check": "damaged_bytes_kept", + "ok": true, + "value": { + "damaged_sha256": "021fb596db81e6d02bf3d2586ee3981fe519f275c0ac9ca76bbcf2ebb4097d96", + "damaged_bytes": 1, + "now_bytes": 1 + } + } + ], + "evidence_digests": [ + { + "file": "steps/A1.json", + "sha256": "f98655e436e5cc27715bcf296dd8c79f506d6d1350ea545dbbc4b253e6d62dc3" + }, + { + "file": "steps/A2.json", + "sha256": "e6f2d8e5837de99952361adfd0e0581437eb6d842852a9a62cd5394b3ab2ff30" + }, + { + "file": "steps/pre.json", + "sha256": "ef2849483829b3b1a7264bc20444c102454ccd67fb32553155573b8d00603d87" + }, + { + "file": "steps/pre-prefix.json", + "sha256": "dc4e330853086cea10280194482fc5ec3485486ee3dd49fba10687e09ba2b699" + }, + { + "file": "steps/X1.json", + "sha256": "efa1ff34931069c2bf23fb4eacc5ce04abdf76cdb88eb531c5fa305231fe6a72" + }, + { + "file": "daemon-1.log", + "sha256": "e3c7deba0c9d1edfba790d9efe8afff2f4a5783005da571e289eb4d688584bfa" + }, + { + "file": "daemon-2.log", + "sha256": "da5e6e8fc491095810e65ef21749adcd90f5ba90d782091ea8e754209a861a0f" + } + ] + } + ], + "not_proved": [ + "runtime loss of the GPU in a GPU-linked build", + "omega in-settle crash hooks (A12)", + "caproot revoke on the effect path (A11)", + "Cortex and J-Space rolled back together (omega known limit)", + "torn writes below the file level" + ], + "note": "Binaries built from c0fe519 (Rust source identical at b1cf3be83bffdd8a2223dc7cc3232bc397a686a4). C6c FAIL as ACCEPTANCE-v2 A8 predicted: a cut at the record boundary that drops only the last host note (grant A2) opens and recalls as intact; A2 is then refused NotAuthorized, so no effect, but the loss is silent. C6d NOT_RUN: jspace.data is 0 bytes in F0, so truncating it by 1 byte changes nothing. C2a 'record count unchanged' is read as: host-note count unchanged and total growth equal to one clean restart's growth (every daemon open appends non-host records on the pinned omega, measured in the same run)." +} diff --git a/docs/campaigns/next-phase-2/dc0c88a84f410ca5547b20626971b9b93eed03ccae511fe62029efc5eaad4206.summary.txt b/docs/campaigns/next-phase-2/dc0c88a84f410ca5547b20626971b9b93eed03ccae511fe62029efc5eaad4206.summary.txt new file mode 100644 index 00000000..1e9d62c6 --- /dev/null +++ b/docs/campaigns/next-phase-2/dc0c88a84f410ca5547b20626971b9b93eed03ccae511fe62029efc5eaad4206.summary.txt @@ -0,0 +1,33 @@ +NEXT_PHASE_2 receipt dc0c88a84f410ca5547b20626971b9b93eed03ccae511fe62029efc5eaad4206.json verdict FAIL +sovereign-core b1cf3be83bffdd8a2223dc7cc3232bc397a686a4; omega compose 62b6a2899fa230e57fcf7855ea7e2c26404514b6 +build gpu d453aed8d943b157731c6b33c6a2397a3eda6b3410d07552d0da168ce559e37f +build cpu-fault 04d3b9da03d645662860592869e6ef2f9e10accd044926301a053dfd1ef670ce +fixture F0 3e4e26eff45e0f7282c335cb2028cd8c314e11b2669c73c16ab27c530c89eaf8: s3_committed true, machine 515432af9cabe1b1fc129406f593be79481bcbea562d6f26cfafc4e49c21673e, backend NativeTransformerBackend/OmegaGb10Backend (native Omega engine, no CUDA, NVIDIA GB10 sm_121) +Rows (ACCEPTANCE-v2 section 5; injected variants x3, control once per case): + PASS C1a (3 run(s), control control-C1 PASS) ack lost -> UNRESOLVED (exit 3) -> restart reconcile DONE; retry AlreadySpent + PASS C1b (3 run(s), control control-C1 PASS) ack lost + world changed -> restart UNRESOLVED; retry ReconciliationRequired; operator NOT_DONE; retry AlreadySpent + PASS C2a (3 run(s), control control-C2 PASS) refused while daemon dead (no intent, no write); after restart DONE once + PASS C2b (3 run(s), control control-C2 PASS) executor killed at after_intent -> NOT_DONE; retry AlreadySpent; new grant A2 DONE (approvals 2) + PASS C2c (3 run(s), control control-C2 PASS) executor killed at after_intent -> NOT_DONE; retry AlreadySpent + PASS C2d (3 run(s), control control-C2 PASS) executor killed at after_write -> DONE; retry AlreadySpent + PASS C3a (3 run(s), control F0 PASS) refused: Fatal: the GB10 GPU is required (AIEN_REQUIRE_BLACKWELL or AIEN_GPU_BACKEND=omega) but the Omega GPU engine is not linke + PASS C3b (3 run(s), control F0 PASS) CPU-reference daemon; propose committed=false + PASS C4 (3 run(s), control control-C4 PASS) Stopped, Stopped after restart, Stale after resume; A2 DONE + PASS C5a (3 run(s), control control-C5 PASS) revoked:true; execute Revoked + PASS C5b (3 run(s), control control-C5 PASS) revoke after spend: revoked:false, nothing recorded + PASS C5c (3 run(s), control control-C5 PASS) world changed after grant: Stale + PASS C6a (3 run(s), control control-C6 PASS) opened; recall ok=false; execute A2 ok=false; Reconcile: refused: compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6a-1/compose refused: Cortex jo | opened; recall ok=false; execut + PASS C6b (3 run(s), control control-C6 PASS) opened; recall ok=false; execute A2 ok=false; Reconcile: refused: compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6b-1/compose refused: rxc_host | opened; recall ok=false; execut + FAIL C6c (3 run(s), control control-C6 PASS) opened; recall ok=true; execute A2 ok=false; Reconcile: checked 0 unsettled effect(s): DONE 0, NOT_DONE 0, UNRESOLVED 0 recorded, 0 left as they were; [] + NOT_RUN C6d (3 run(s), control control-C6 PASS) injection changed nothing: compose/jspace/jspace.data is 0 bytes before and after + PASS C6e (3 run(s), control control-C6 PASS) opened; recall ok=false; execute A2 ok=false; Reconcile: refused: compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6e-1/compose refused: Cortex jo | opened; recall ok=false; execut + PASS C6f (3 run(s), control control-C6 PASS) opened; recall ok=false; execute A2 ok=false; Reconcile: refused: /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6f-1/compose.machine-root holds 16 bytes, ex | opened; recall ok=false; execut + PASS C6g (3 run(s), control control-C6 PASS) opened; recall ok=false; execute A2 ok=false; Reconcile: refused: compose home /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6g-1/compose refused: rxc_host | opened; recall ok=false; execut + PASS C6h (3 run(s), control control-C6 PASS) daemon refused to start: Fatal: idempotency state /home/drakestapleton/.claude/jobs/9bfe8553/tmp/np2-run/C6h-1/state/processed_operations.json is damaged (invalid ty | daemon refused to start: Fatal: + PASS C3 control (1 run(s), control F0 PASS) gpu daemon with AIEN_REQUIRE_BLACKWELL=1: NativeTransformerBackend/OmegaGb10Backend (native Omega engine, no CUDA, NVIDIA GB10 sm_121) +Failed checks: + C6c rep 1: named_refusal_on_recall "recall succeeded" + C6c rep 2: named_refusal_on_recall "recall succeeded" + C6c rep 3: named_refusal_on_recall "recall succeeded" +Not proved (declared): runtime loss of the GPU in a GPU-linked build; omega in-settle crash hooks (A12); caproot revoke on the effect path (A11); Cortex and J-Space rolled back together (omega known limit); torn writes below the file level +Note: Binaries built from c0fe519 (Rust source identical at b1cf3be83bffdd8a2223dc7cc3232bc397a686a4). C6c FAIL as ACCEPTANCE-v2 A8 predicted: a cut at the record boundary that drops only the last host note (grant A2) opens and recalls as intact; A2 is then refused NotAuthorized, so no effect, but the loss is silent. C6d NOT_RUN: jspace.data is 0 bytes in F0, so truncating it by 1 byte changes nothing. C2a 'record count unchanged' is read as: host-note count unchanged and total growth equal to one clean restart's growth (every daemon open appends non-host records on the pinned omega, measured in the same run). diff --git a/docs/campaigns/next-phase-2/make-receipt.sh b/docs/campaigns/next-phase-2/make-receipt.sh new file mode 100755 index 00000000..b6deec01 --- /dev/null +++ b/docs/campaigns/next-phase-2/make-receipt.sh @@ -0,0 +1,77 @@ +#!/usr/bin/env bash +# NEXT-PHASE-2 receipt (ACCEPTANCE-v2 section 6) from one fixture F0 and one +# `run-faults.sh cases` run root. Shell + jq only. Usage: +# make-receipt.sh FIX_ROOT RUN_ROOT OUT_DIR SC_COMMIT OMEGA_COMPOSE_COMMIT GPU_BIN CPU_BIN [NOTE] +# Writes OUT_DIR/<sha256 of content>.json (never edited afterwards), appends one +# line to OUT_DIR/INDEX.md, writes OUT_DIR/<sha256>.summary.txt, prints it. +# Row verdicts: a row PASSes only if every repetition PASSes and its uninjected +# control passed; a failed control or a variant that could not be injected is +# NOT_RUN; NOT_RUN is never PASS. +set -eu +FIX=$1 R=$2 OUT=$3 SC=$4 OMC=$5 GPU=$6 CPU=$7 NOTE=${8:-} +mkdir -p "$OUT" +sha() { sha256sum "$1" | cut -d' ' -f1; } +fixture=$(jq -c --arg fj "$(sha "$FIX/fixture.json")" --arg s3 "$(sha "$FIX/steps/S3.json")" \ + --arg log "$(sha "$FIX/daemon-fixture.log")" \ + '{sha256:.files_sha256, s3_committed, machine_id, proposal_path, backend, daemon_start_ms, + evidence_digests:[{file:"fixture.json", sha256:$fj}, {file:"steps/S3.json", sha256:$s3}, {file:"daemon-fixture.log", sha256:$log}]}' \ + "$FIX/fixture.json") +tmp=$(mktemp "$OUT/.receipt.XXXXXX") +jq -n --slurpfile runs "$R/results.jsonl" --argjson fixture "$fixture" --arg sc "$SC" --arg omc "$OMC" \ + --arg gpu "$(sha "$GPU")" --arg cpu "$(sha "$CPU")" --arg note "$NOTE" ' + def control_of($row): if ($row | startswith("C3")) then "F0" + else "control-" + ($row | capture("^(?<c>C[0-9])").c) end; + ($runs | map(select(.row | startswith("control-")))) as $controls + | ($fixture.s3_committed == true) as $f0 + | (($fixture.backend // "") | test("OmegaGb10Backend")) as $c3ok + | [ "C1a","C1b","C2a","C2b","C2c","C2d","C3a","C3b","C4","C5a","C5b","C5c", + "C6a","C6b","C6c","C6d","C6e","C6f","C6g","C6h" ] as $order + | ($order | map(. as $row + | ($runs | map(select(.row == $row))) as $reps + | (control_of($row)) as $c + | (if $c == "F0" then $f0 else ($controls | map(select(.row == $c)) | (length > 0 and all(.verdict == "PASS"))) end) as $cok + | {row:$row, control:$c, control_pass:$cok, reps:($reps | length), + verdict:(if ($reps | length) == 0 or ($cok | not) or ($reps | any(.verdict == "NOT_RUN")) then "NOT_RUN" + elif ($reps | all(.verdict == "PASS")) then "PASS" else "FAIL" end), + outcomes:($reps | map(.outcome) | unique)})) as $rowv + | ($rowv + [{row:"C3 control", control:"F0", control_pass:$f0, reps:1, + verdict:(if $f0 and $c3ok then "PASS" else "FAIL" end), + outcomes:["gpu daemon with AIEN_REQUIRE_BLACKWELL=1: " + ($fixture.backend // "none")]}]) as $all + | { + gate:"NEXT_PHASE_2", + commit:$sc, + omega_compose_commit:$omc, + acceptance_spec:"docs/campaigns/next-phase-2/ACCEPTANCE-v2.md spec_version 2", + builds:[{name:"gpu", sha256:$gpu}, {name:"cpu-fault", sha256:$cpu}], + fixture:$fixture, + verdict:(if $f0 and ($all | all(.verdict == "PASS")) then "PASS" else "FAIL" end), + row_verdicts:$all, + controls:($controls | map({row, rep, injected_at, outcome, verdict, checks, evidence_digests})), + rows:($runs | map(select(.row | startswith("control-") | not)) + | map({row, rep, injected_at, outcome, verdict, checks, evidence_digests})), + not_proved:[ + "runtime loss of the GPU in a GPU-linked build", + "omega in-settle crash hooks (A12)", + "caproot revoke on the effect path (A11)", + "Cortex and J-Space rolled back together (omega known limit)", + "torn writes below the file level"], + note:(if $note == "" then null else $note end) + }' >"$tmp" +h=$(sha256sum "$tmp" | cut -d' ' -f1) +mv "$tmp" "$OUT/$h.json" +v=$(jq -r .verdict "$OUT/$h.json") +{ + echo "NEXT_PHASE_2 receipt $h.json verdict $v" + echo "sovereign-core $SC; omega compose $OMC" + jq -r '.builds[] | "build \(.name) \(.sha256)"' "$OUT/$h.json" + jq -r '.fixture | "fixture F0 \(.sha256): s3_committed \(.s3_committed), machine \(.machine_id), backend \(.backend)"' "$OUT/$h.json" + echo "Rows (ACCEPTANCE-v2 section 5; injected variants x3, control once per case):" + jq -r '.row_verdicts[] | " \(.verdict) \(.row) (\(.reps) run(s), control \(.control) \(if .control_pass then "PASS" else "FAIL" end)) \(.outcomes | join(" | ") | .[0:200])"' "$OUT/$h.json" + echo "Failed checks:" + jq -r '(.controls + .rows)[] | . as $r | .checks[] | select(.ok | not) | " \($r.row) rep \($r.rep): \(.check) \(.value | tojson | .[0:160])"' "$OUT/$h.json" + echo "Not proved (declared): $(jq -r '.not_proved | join("; ")' "$OUT/$h.json")" + if [ -n "$NOTE" ]; then echo "Note: $NOTE"; fi +} >"$OUT/$h.summary.txt" +[ -f "$OUT/INDEX.md" ] || printf '# NEXT-PHASE-2 campaign receipts\n\nEach receipt is named by the sha256 of its content and never edited.\n\n' >"$OUT/INDEX.md" +echo "- \`$h.json\` verdict $v, sovereign-core $SC ($(date -u +%Y-%m-%dT%H:%MZ))" >>"$OUT/INDEX.md" +cat "$OUT/$h.summary.txt" diff --git a/docs/campaigns/next-phase-2/run-faults.sh b/docs/campaigns/next-phase-2/run-faults.sh new file mode 100755 index 00000000..71c4c4e7 --- /dev/null +++ b/docs/campaigns/next-phase-2/run-faults.sh @@ -0,0 +1,472 @@ +#!/usr/bin/env bash +# NEXT-PHASE-2 fault harness (ACCEPTANCE-v2.md). Shell + jq only, no Python. +# +# run-faults.sh fixture FIX_ROOT +# F0: one real S0..S3 on the gpu build (AIEN_BIN), then Shutdown. +# Needs AIEN_MODEL_PATH, AIEN_TOKENIZER_PATH, AIEN_REQUIRE_BLACKWELL=1, +# and a GPU window: run it under `quietlock hold` (<= 20 min) with the +# announce and release whispers, as NEXT-PHASE-1 did. +# run-faults.sh cases FIX_ROOT RUN_ROOT [CASE ...] +# Every case of ACCEPTANCE-v2 section 5 on the cpu-fault build +# (AIEN_BIN built with the compose archive, no GPU archive, feature +# fault-hold). Never touches the GPU: a daemon whose Backend line is not +# CPU-reference stops the harness. CASE = control C1a C1b C2a C2b C2c C2d +# C3a C3b C4 C5a C5b C5c C6a..C6h (default: all). REPS (default 3). +# +# Each run starts from a byte copy of F0 in RUN_ROOT/<case>-<rep>/ with its own +# provenance and state dirs, and writes result.json there; RUN_ROOT/results.jsonl +# collects them. make-receipt.sh turns RUN_ROOT into the content-addressed receipt. +set -u +BIN=${AIEN_BIN:?AIEN_BIN} +MODE=${1:?fixture|cases} +FIX=${2:?FIX_ROOT} +REPS=${REPS:-3} +GOAL='Create the file NOTES.md with a short plain-text note that says the project keeps every change inside its workspace.' +CONSTRAINT='Project constraints: every change stays inside the authorized workspace; one file per change; plain text only; no network.' + +now_ms() { echo $(( $(date +%s%N) / 1000000 )); } +sha() { sha256sum "$1" 2>/dev/null | cut -d' ' -f1; } +tstat() { stat -c '%i %s %.9Y %.9Z' "$1" 2>/dev/null || echo absent; } +tree_list() { (cd "$1" && find . -type f -print0 | sort -z | xargs -0 -r sha256sum); } +tree_digest() { tree_list "$1" | sha256sum | cut -d' ' -f1; } + +DPID=; NOTRUN= +# Never leave a daemon of ours behind, whatever stops the harness. +trap '[ -n "$DPID" ] && kill -0 "$DPID" 2>/dev/null && kill -9 "$DPID" 2>/dev/null' EXIT +# start_daemon NAME: wait for the socket and the Reconcile: line (rc 0), or +# for the process to exit (rc 1). +start_daemon() { + local log=$R/$1.log i=0 + rm -f "$R/aien.sock" + (cd "$R" && exec setsid "$BIN" daemon >"$log" 2>&1 </dev/null) & + DPID=$! + while kill -0 "$DPID" 2>/dev/null && [ $i -lt 1200 ]; do + if [ -S "$R/aien.sock" ] && grep -q '^Reconcile:' "$log"; then break; fi + sleep 0.1; i=$((i + 1)) + done + if ! kill -0 "$DPID" 2>/dev/null; then wait "$DPID" 2>/dev/null; DRC=$?; return 1; fi + if [ "$MODE" = cases ] && ! grep -q 'Backend:.*CPU-reference' "$log"; then + echo "harness: daemon $1 is not the CPU build; stopping (no GPU use allowed here)" >&2 + kill -9 "$DPID"; exit 9 + fi + [ -S "$R/aien.sock" ] && grep -q '^Reconcile:' "$log" +} +stop_daemon() { + "$BIN" compose shutdown >/dev/null 2>&1 + local i=0; while kill -0 "$DPID" 2>/dev/null && [ $i -lt 300 ]; do sleep 0.1; i=$((i + 1)); done + wait "$DPID" 2>/dev/null; rm -f "$R/aien.sock" +} +kill_daemon() { kill -9 "$DPID" 2>/dev/null; wait "$DPID" 2>/dev/null; rm -f "$R/aien.sock"; } +reconcile_line() { grep -m1 '^Reconcile:' "$R/$1.log"; } + +# cx ID ARGS...: one `aien compose` call; stdout kept as steps/ID.json. +cx() { + local id=$1; shift + "$BIN" compose "$@" >"$R/steps/$id.json" 2>"$R/steps/$id.err" + local rc=$?; echo "$rc" >"$R/steps/$id.rc"; return $rc +} +j() { jq -r "$2" "$R/steps/$1.json" 2>/dev/null; } +refusal() { j "$1" '.error // ""' | sed -n 's/^EFFECT_REFUSED \([A-Za-z]*\):.*/\1/p'; } +authorize() { cx "$1" authorize --report "$R/s3-report.json" --workspace "$WS" --approver drake; j "$1" '.authorization.id // empty'; } +execute() { cx "$1" execute --report "$R/s3-report.json" --workspace "$WS" --authorization "$2"; } + +# exec_hold POINT ID AUTH: execute in the background, stopped at POINT. +EPID=; ERC= +exec_hold() { + rm -f "$R/hold" + AIEN_FAULT_HOLD=$1 AIEN_FAULT_HOLD_FILE=$R/hold "$BIN" compose execute --report "$R/s3-report.json" \ + --workspace "$WS" --authorization "$3" >"$R/steps/$2.json" 2>"$R/steps/$2.err" & + EPID=$! + local i=0 + while [ ! -s "$R/hold" ] && kill -0 "$EPID" 2>/dev/null && [ $i -lt 600 ]; do sleep 0.05; i=$((i + 1)); done + [ -s "$R/hold" ] +} +release() { rm -f "$R/hold"; wait "$EPID"; ERC=$?; echo "$ERC" >"$R/steps/$1.rc"; } +kill_executor() { kill -9 "$EPID" 2>/dev/null; wait "$EPID"; ERC=$?; echo "$ERC" >"$R/steps/$1.rc"; rm -f "$R/hold"; } + +CHECKS='[]' +chk() { CHECKS=$(jq -c --arg n "$1" --argjson ok "$2" --argjson v "${3:-null}" '. + [{check:$n, ok:$ok, value:$v}]' <<<"$CHECKS"); } +eq() { [ "$1" = "$2" ] && echo true || echo false; } +q() { jq -Rn --arg s "$1" '$s'; } + +ledger() { cx "$1" effects >/dev/null; } +# phases ID PHASE INTENT_OR_AUTH_KEY VALUE: count effect notes of PHASE whose KEY == VALUE. +phases() { j "$1" "[.effects[].text | fromjson? | select(.phase == \"$2\" and .$3 == $4)] | length"; } +intent_state() { j "$1" "[.ledger.intents[] | select(.authorization == $2)] | .[0].state // \"none\""; } + +# ---------------------------------------------------------------- fixture +if [ "$MODE" = fixture ]; then + : "${AIEN_MODEL_PATH:?}" "${AIEN_TOKENIZER_PATH:?}" + R=$FIX; rm -rf "$R"; mkdir -p "$R"/ws/docs "$R"/outside "$R"/compose "$R"/prov "$R"/state "$R"/steps + R=$(cd "$R" && pwd); WS=$R/ws + export AIEN_COMPOSE_DIR=$R/compose AIEN_PROVENANCE_DIR=$R/prov AIEN_RUNTIME_SOCK=$R/aien.sock \ + AIEN_RUNTIME_STATE_DIR=$R/state AIEN_REQUIRE_CHECKPOINT=1 + printf '# Demo project\n\nA small local project used by the NEXT-PHASE-2 campaign.\n' >"$WS/README.md" + printf 'Plan: keep notes short and local.\n' >"$WS/docs/plan.txt" + printf 'sentinel outside the authorized workspace\n' >"$R/outside/sentinel.txt" + t0=$(now_ms) + start_daemon daemon-fixture || { echo "fixture daemon failed"; tail -5 "$R/daemon-fixture.log"; exit 2; } + t1=$(now_ms) + cx S0 recall + cx S1 remember --text "$CONSTRAINT" + cx S2 inspect --workspace "$WS" + cx S3 propose --goal "$GOAL" --workspace "$WS" + jq '.report' "$R/steps/S3.json" >"$R/s3-report.json" + stop_daemon + jq -n --arg backend "$(grep -m1 'Backend:' "$R/daemon-fixture.log" | sed 's/\x1b\[[0-9;]*m//g; s/^ *Backend: //')" \ + --arg reconcile "$(reconcile_line daemon-fixture)" --argjson start_ms $((t1 - t0)) \ + --slurpfile s3 "$R/steps/S3.json" --arg files "$( (tree_list "$R/compose"; sha256sum "$R/compose.machine-root"; tree_list "$WS") | sha256sum | cut -d' ' -f1)" \ + '{backend:$backend, reconcile:$reconcile, daemon_start_ms:$start_ms, s3_ok:($s3[0].ok // false), + s3_committed:($s3[0].report.committed // false), proposal_path:($s3[0].report.proposal_path // null), + machine_id:($s3[0].report.machine_id // null), files_sha256:$files}' >"$R/fixture.json" + cat "$R/fixture.json" + exit 0 +fi + +# ---------------------------------------------------------------- cases +ROOT=${3:?RUN_ROOT}; shift 3 +mkdir -p "$ROOT"; ROOT=$(cd "$ROOT" && pwd); FIX=$(cd "$FIX" && pwd) +jq -e '.s3_committed == true' "$FIX/fixture.json" >/dev/null || { echo "fixture F0 has no committed proposal: cases NOT_RUN"; exit 3; } +PPATH=$(jq -r .proposal_path "$FIX/fixture.json") +CASES=${*:-control C1a C1b C2a C2b C2c C2d C3a C3b C4 C5a C5b C5c C6a C6b C6c C6d C6e C6f C6g C6h} + +new_run() { # NAME + R=$ROOT/$1; rm -rf "$R"; mkdir -p "$R"/prov "$R"/state "$R"/steps + cp -a "$FIX/compose" "$FIX/compose.machine-root" "$FIX/ws" "$FIX/outside" "$FIX/s3-report.json" "$R/" + WS=$R/ws; T=$WS/$PPATH; CHECKS='[]'; INJ=; OUTCOME=; NOTRUN= + export AIEN_COMPOSE_DIR=$R/compose AIEN_PROVENANCE_DIR=$R/prov AIEN_RUNTIME_SOCK=$R/aien.sock \ + AIEN_RUNTIME_STATE_DIR=$R/state AIEN_REQUIRE_CHECKPOINT=0 + unset AIEN_MODEL_PATH AIEN_TOKENIZER_PATH AIEN_REQUIRE_BLACKWELL AIEN_GPU_BACKEND AIEN_FAULT_HOLD AIEN_FAULT_HOLD_FILE + T0=$(tstat "$T"); WS0=$(tree_list "$WS"); OUT0=$(tree_digest "$R/outside") +} + +# pre_state ID: machine id, record count and prefix digest before the fault. +pre_state() { + cx "$1" recall >/dev/null + N0=$(j "$1" .recall.records_total); MID0=$(j "$1" .machine_id); MIDF0=$(sha "$R/compose/machine.id") + cx "$1-prefix" recall --prefix "$N0" >/dev/null; PD0=$(j "$1-prefix" .recall.prefix_digest) +} + +# rules ID: R1..R4 of ACCEPTANCE-v2 section 3, on the final state (daemon up). +rules() { + cx "$1-recall" recall --prefix "$N0" >/dev/null + chk R4_machine_id "$(eq "$(j "$1-recall" .machine_id)" "$MID0")" "$(jq -nc --arg a "$MID0" --arg b "$(j "$1-recall" .machine_id)" '[$a,$b]')" + chk R4_machine_id_file "$(eq "$(sha "$R/compose/machine.id")" "$MIDF0")" + chk R4_prefix_digest "$(eq "$(j "$1-recall" .recall.prefix_digest)" "$PD0")" "$(jq -nc --arg a "$PD0" --arg b "$(j "$1-recall" .recall.prefix_digest)" '[$a,$b]')" + ledger "$1-ledger" + local auths intents ok_true receipts_true done_n changed + auths=$(j "$1-recall" '[.authorizations[] | select(.verified) | {id, g: (.text | fromjson? // {})}]') + intents=$(j "$1-ledger" '.ledger.intents') + chk R1_intents_cite_earlier_matching_grants "$(jq -n --argjson a "$auths" --argjson i "$intents" \ + '[$i[] | . as $r | ($a | map(select(.id == $r.authorization)) | .[0].g) as $g + | select($g == null or $r.authorization >= $r.intent or $g.path != $r.path + or $g.content_sha256 != $r.content_sha256 or $g.target != $r.target)] | length == 0')" "$(jq -nc --argjson i "$intents" '[$i[].intent]')" + changed=$(diff <(echo "$WS0") <(tree_list "$WS") | sed -n 's/^[<>] [0-9a-f]* \.\///p' | sort -u | jq -R . | jq -sc .) + chk R1_workspace_only_proposal_path "$(jq -n --argjson c "$changed" --arg p "$PPATH" '$c - [$p] | length == 0')" "$changed" + chk R1_outside_unchanged "$(eq "$(tree_digest "$R/outside")" "$OUT0")" + chk R2_one_intent_per_authorization "$(jq -n --argjson i "$intents" '[$i[].authorization] | length == (unique | length)')" + done_n=$(jq -n --argjson i "$intents" '[$i[] | select(.state == "DONE")] | length') + receipts_true=0 + for p in "$R"/prov/*.json; do + [ -f "$p" ] || continue + [ "$(jq -r '.tool + ":" + (.success|tostring)' "$p")" = "write_file:true" ] && receipts_true=$((receipts_true + 1)) + done + chk R2_success_receipts_le_done_intents "$( [ "$receipts_true" -le "$done_n" ] && echo true || echo false)" "[$receipts_true,$done_n]" + ok_true=$(for f in "$R"/steps/*.json; do jq -c 'select(.step == "S5" and .ok == true) | .state' "$f" 2>/dev/null; done | sort -u | paste -sd, -) + chk R3_execute_ok_only_when_done "$( [ -z "$ok_true" ] || [ "$ok_true" = '"DONE"' ] && echo true || echo false)" "$(q "$ok_true")" + chk R3_done_means_content_on_disk "$(jq -n --argjson i "$intents" --arg t "$(sha "$T")" \ + '[$i[] | select(.state == "DONE") | .content_sha256] | unique | (length == 0) or (. == [$t])')" +} + +finish() { # NAME REP + local verdict + verdict=$(jq -r 'if length > 0 and all(.ok) then "PASS" else "FAIL" end' <<<"$CHECKS") + [ -n "$NOTRUN" ] && verdict=NOT_RUN + local ev + ev=$(cd "$R" && find steps -maxdepth 1 -type f -name '*.json' -o -maxdepth 1 -name 'daemon-*.log' | sort | while read -r f; do + jq -nc --arg f "$f" --arg s "$(sha "$R/$f")" '{file:$f, sha256:$s}'; done | jq -sc .) + ev=$(jq -c --argjson more "$(cd "$R" && for f in daemon-*.log; do [ -f "$f" ] && jq -nc --arg f "$f" --arg s "$(sha "$R/$f")" '{file:$f, sha256:$s}'; done | jq -sc .)" '. + $more' <<<"$ev") + jq -n --arg row "$1" --argjson rep "$2" --arg inj "$INJ" --arg out "$OUTCOME" --argjson checks "$CHECKS" \ + --arg verdict "$verdict" --argjson ev "$ev" --arg root "$R" \ + '{row:$row, rep:$rep, injected_at:$inj, outcome:$out, verdict:$verdict, checks:$checks, evidence_digests:$ev, run_root:$root}' \ + >"$R/result.json" + jq -c . "$R/result.json" >>"$ROOT/results.jsonl" + echo "$1 rep $2: $verdict $OUTCOME" + jq -r '.checks[] | select(.ok | not) | " FAILED \(.check) \(.value)"' "$R/result.json" +} + +up() { start_daemon "$1" || { chk "daemon_$1_up" false "$(q "$(tail -3 "$R/$1.log" | tr '\n' ' ')")"; return 1; }; chk "daemon_$1_up" true; } + +run_control() { + INJ="none (uninjected control)" + up daemon-1 || return + chk reconcile_at_start_nothing_open "$(reconcile_line daemon-1 | grep -q 'checked 0' && echo true || echo false)" "$(q "$(reconcile_line daemon-1)")" + pre_state pre + A1=$(authorize A1) + execute X1 "$A1"; chk execute_done "$(eq "$(j X1 .state)" DONE)" "$(q "$(j X1 .state)")" + T1=$(tstat "$T") + chk written "$( [ "$T1" != "$T0" ] && echo true || echo false)" + execute X2 "$A1"; chk retry_refused_AlreadySpent "$(eq "$(refusal X2)" AlreadySpent)" "$(q "$(refusal X2)")" + chk retry_no_write "$(eq "$(tstat "$T")" "$T1")" + stop_daemon; up daemon-2 || return + chk restart_reconcile_nothing_open "$(reconcile_line daemon-2 | grep -q 'checked 0' && echo true || echo false)" "$(q "$(reconcile_line daemon-2)")" + rules final; stop_daemon + OUTCOME="DONE once; retry AlreadySpent; restart clean" +} + +run_C1() { # $1 = a|b + INJ="hold after_write; SIGKILL daemon; release (ack lost)$([ "$1" = b ] && echo '; harness overwrites target before restart')" + up daemon-1 || return; pre_state pre + A1=$(authorize A1) + exec_hold after_write X1 "$A1" || { chk hold_reached false; return; } + T1=$(tstat "$T"); chk written_before_ack "$( [ "$T1" != "$T0" ] && echo true || echo false)" + kill_daemon; release X1 + chk executor_exit_3 "$(eq "$ERC" 3)" "$ERC" + chk executor_state_UNRESOLVED "$(eq "$(j X1 .state)" UNRESOLVED)" "$(q "$(j X1 .state)")" + chk executor_ok_false "$(eq "$(j X1 .ok)" false)" + chk receipt_success_false "$(eq "$(j X1 .receipt.success)" false)" + chk written_once_so_far "$(eq "$(tstat "$T")" "$T1")" + if [ "$1" = b ]; then + printf 'harness bytes, not the proposal\n' >"$T"; T1=$(tstat "$T"); TH=$(sha "$T") + fi + up daemon-2 || return + local rl; rl=$(reconcile_line daemon-2) + ledger L1; local st; st=$(intent_state L1 "$A1") + cx RC1 recall >/dev/null + local I; I=$(j L1 "[.ledger.intents[] | select(.authorization == $A1)] | .[0].intent") + chk intent_has_no_ack "$(eq "$(phases RC1 ack intent "$I")" 0)" + if [ "$1" = a ]; then + chk restart_reconcile_DONE "$(echo "$rl" | grep -q 'DONE 1,' && echo true || echo false)" "$(q "$rl")" + chk ledger_DONE "$(eq "$st" DONE)" "$(q "$st")" + execute X2 "$A1"; chk retry_refused_AlreadySpent "$(eq "$(refusal X2)" AlreadySpent)" "$(q "$(refusal X2)")" + OUTCOME="ack lost -> UNRESOLVED (exit $ERC) -> restart reconcile $st; retry $(refusal X2)" + else + chk restart_reconcile_UNRESOLVED "$(echo "$rl" | grep -q 'UNRESOLVED 1 recorded' && echo true || echo false)" "$(q "$rl")" + chk ledger_UNRESOLVED "$(eq "$st" UNRESOLVED)" "$(q "$st")" + execute X2 "$A1"; chk retry_refused_ReconciliationRequired "$(eq "$(refusal X2)" ReconciliationRequired)" "$(q "$(refusal X2)")" + ledger L2; chk R5_effects_lists_UNRESOLVED "$(eq "$(intent_state L2 "$A1")" UNRESOLVED)" + cx D1 reconcile --intent "$I" --declare not_done --approver drake + chk declare_NOT_DONE "$(eq "$(j D1 '.reconcile.outcomes[0].state')" NOT_DONE)" "$(q "$(j D1 '.reconcile.outcomes[0].state')")" + execute X3 "$A1"; chk retry_after_declare_AlreadySpent "$(eq "$(refusal X3)" AlreadySpent)" "$(q "$(refusal X3)")" + chk harness_bytes_kept "$(eq "$(sha "$T")" "$TH")" + OUTCOME="ack lost + world changed -> restart UNRESOLVED; retry $(refusal X2); operator NOT_DONE; retry $(refusal X3)" + fi + chk no_second_write "$(eq "$(tstat "$T")" "$T1")" + rules final; stop_daemon +} + +run_C2a() { + INJ="hold before_intent; SIGKILL daemon; release" + up daemon-1 || return; pre_state pre + A1=$(authorize A1) + cx count1 recall >/dev/null; local n1; n1=$(j count1 .recall.records_total) + exec_hold before_intent X1 "$A1" || { chk hold_reached false; return; } + kill_daemon; release X1 + chk executor_refused "$(eq "$(j X1 .ok)" false)" "$(q "$(j X1 .error)")" + chk no_write "$(eq "$(tstat "$T")" "$T0")" + up daemon-2 || return + cx count2 recall >/dev/null + # Every daemon open appends records that are not host notes (pinned omega): + # the growth of one clean restart is measured, so the counts compare like with like. + local n2 n3 h1 h2; n2=$(j count2 .recall.records_total); h1=$(j count1 '.recall.host | length'); h2=$(j count2 '.recall.host | length') + stop_daemon; up daemon-3 || return; cx count3 recall >/dev/null; n3=$(j count3 .recall.records_total) + chk host_record_count_unchanged "$(eq "$h2" "$h1")" "[$h1,$h2]" + chk record_count_unchanged_except_open_anchors "$(eq $((n2 - n1)) $((n3 - n2)))" "{\"before_kill\":$n1,\"after_restart\":$n2,\"after_clean_restart\":$n3}" + ledger L1; chk no_intent "$(eq "$(intent_state L1 "$A1")" none)" + execute X2 "$A1"; chk same_grant_executes_after_restart "$(eq "$(j X2 .state)" DONE)" "$(q "$(j X2 .state)")" + T1=$(tstat "$T"); execute X3 "$A1" + chk no_second_write "$(eq "$(tstat "$T")" "$T1")" + OUTCOME="refused while daemon dead (no intent, no write); after restart DONE once" + rules final; stop_daemon +} + +run_C2bcd() { # b|c|d + local point=after_intent; [ "$1" = d ] && point=after_write + case $1 in + b) INJ="hold after_intent; SIGKILL executor (daemon up)";; + c) INJ="hold after_intent; SIGKILL daemon then executor; restart";; + d) INJ="hold after_write; SIGKILL executor (daemon up)";; + esac + up daemon-1 || return; pre_state pre + A1=$(authorize A1) + exec_hold "$point" X1 "$A1" || { chk hold_reached false; return; } + [ "$1" = c ] && kill_daemon + kill_executor X1 + T1=$(tstat "$T") + if [ "$1" = d ]; then chk written "$( [ "$T1" != "$T0" ] && echo true || echo false)"; else chk no_write "$(eq "$T1" "$T0")"; fi + local want=NOT_DONE; [ "$1" = d ] && want=DONE + if [ "$1" = c ]; then + up daemon-2 || return + chk restart_reconcile_NOT_DONE "$(reconcile_line daemon-2 | grep -q 'NOT_DONE 1,' && echo true || echo false)" "$(q "$(reconcile_line daemon-2)")" + cx RC2 recall >/dev/null + chk recall_shows_intent "$(eq "$(phases RC2 intent authorization "$A1")" 1)" + chk recall_shows_reconcile_record "$(eq "$(phases RC2 reconcile authorization "$A1")" 1)" + else + execute X2 "$A1"; chk retry_refused_ReconciliationRequired "$(eq "$(refusal X2)" ReconciliationRequired)" "$(q "$(refusal X2)")" + cx RC reconcile + chk reconcile_records_$want "$(eq "$(j RC '.reconcile.outcomes[0].state')" $want)" "$(q "$(j RC '.reconcile.outcomes[0].state')")" + fi + ledger L1; chk ledger_$want "$(eq "$(intent_state L1 "$A1")" $want)" + execute X3 "$A1"; chk retry_refused_AlreadySpent "$(eq "$(refusal X3)" AlreadySpent)" "$(q "$(refusal X3)")" + chk no_write_by_retry "$(eq "$(tstat "$T")" "$T1")" + OUTCOME="executor killed at $point -> $(intent_state L1 "$A1"); retry $(refusal X3)" + if [ "$1" = b ]; then + A2=$(authorize A2); execute X4 "$A2" + chk new_grant_DONE "$(eq "$(j X4 .state)" DONE)" "$(q "$(j X4 .state)")" + cx RC3 recall >/dev/null + local na; na=$(( $(j RC3 '.authorizations | length') - $(j pre '.authorizations | length') )) + chk approvals_2_both_counted "$(eq "$na" 2)" "$na" + OUTCOME="$OUTCOME; new grant A2 DONE (approvals $na)" + fi + rules final; stop_daemon +} + +run_C3a() { + INJ="cpu-fault daemon started with AIEN_REQUIRE_BLACKWELL=1" + local before; before=$( (tree_list "$R/compose"; sha256sum "$R/compose.machine-root") | sha256sum | cut -d' ' -f1) + export AIEN_REQUIRE_BLACKWELL=1 + if start_daemon daemon-1; then chk daemon_refused false; kill_daemon; else chk daemon_refused true "$DRC"; fi + unset AIEN_REQUIRE_BLACKWELL + chk exit_nonzero "$( [ "${DRC:-0}" != 0 ] && echo true || echo false)" "${DRC:-0}" + chk names_gb10_requirement "$(grep -q 'GB10 GPU is required' "$R/daemon-1.log" && echo true || echo false)" "$(q "$(grep -m1 Fatal "$R/daemon-1.log" | sed 's/\x1b\[[0-9;]*m//g')")" + chk no_socket "$( [ -S "$R/aien.sock" ] && echo false || echo true)" + chk home_unchanged "$(eq "$( (tree_list "$R/compose"; sha256sum "$R/compose.machine-root") | sha256sum | cut -d' ' -f1)" "$before")" + chk workspace_unchanged "$(eq "$(tree_list "$WS")" "$WS0")" + OUTCOME="refused: $(grep -m1 Fatal "$R/daemon-1.log" | sed 's/\x1b\[[0-9;]*m//g' | cut -c1-120)" +} + +run_C3b() { + INJ="cpu-fault daemon, no GPU requirement; S3 propose" + up daemon-1 || return; pre_state pre + chk backend_cpu_reference "$(grep -q 'Backend:.*CPU-reference' "$R/daemon-1.log" && echo true || echo false)" "$(q "$(grep -m1 'Backend:' "$R/daemon-1.log" | sed 's/\x1b\[[0-9;]*m//g')")" + cx P1 propose --goal "$GOAL" --workspace "$WS" + local committed; committed=$(j P1 'if .report.committed == null then "none" else (.report.committed | tostring) end') + chk propose_outcome_explicit "$( { [ "$committed" = true ] || { [ "$committed" = false ] && [ -n "$(j P1 '.report.proposer_error // .report.uncommitted_proposal // empty')" ]; } || [ "$(j P1 .ok)" = false ]; } && echo true || echo false)" "$(q "committed=$committed $(j P1 '.report.proposer_error // .error // ""' | cut -c1-160)")" + chk no_gpu_claim "$(grep -qi 'OmegaGb10Backend (native' "$R/daemon-1.log" "$R/steps/P1.json" && echo false || echo true)" + ledger L1; chk no_intents "$(eq "$(j L1 '.ledger.intents | length')" 0)" + chk workspace_unchanged "$(eq "$(tree_list "$WS")" "$WS0")" + OUTCOME="CPU-reference daemon; propose committed=$committed" + rules final; stop_daemon +} + +run_C4() { + INJ="authorize A1; stop; execute; Shutdown+restart; execute; resume; execute; authorize A2; execute" + up daemon-1 || return; pre_state pre + A1=$(authorize A1) + cx STOP stop --approver drake + execute X1 "$A1"; chk stopped_refused "$(eq "$(refusal X1)" Stopped)" "$(q "$(refusal X1)")" + stop_daemon; up daemon-2 || return + execute X2 "$A1"; chk stop_survives_restart "$(eq "$(refusal X2)" Stopped)" "$(q "$(refusal X2)")" + cx RESUME resume --approver drake + execute X3 "$A1"; chk old_grant_stale "$(eq "$(refusal X3)" Stale)" "$(q "$(refusal X3)")" + chk zero_writes_until_A2 "$(eq "$(tstat "$T")" "$T0")" + A2=$(authorize A2); execute X4 "$A2" + chk new_grant_DONE "$(eq "$(j X4 .state)" DONE)" "$(q "$(j X4 .state)")" + T1=$(tstat "$T"); execute X5 "$A2" + chk written_once "$(eq "$(tstat "$T")" "$T1")" + OUTCOME="$(refusal X1), $(refusal X2) after restart, $(refusal X3) after resume; A2 $(j X4 .state)" + rules final; stop_daemon +} + +run_C5() { # a|b|c + up daemon-1 || return; pre_state pre + A1=$(authorize A1) + case $1 in + a) INJ="revoke A1 before execute" + cx RV revoke --authorization "$A1" --approver drake + chk revoke_true "$(eq "$(j RV .control.revoked)" true)" + execute X1 "$A1"; chk refused_Revoked "$(eq "$(refusal X1)" Revoked)" "$(q "$(refusal X1)")" + chk no_write "$(eq "$(tstat "$T")" "$T0")" + OUTCOME="revoked:true; execute $(refusal X1)";; + b) INJ="execute A1 to DONE, then revoke A1" + execute X1 "$A1"; chk execute_done "$(eq "$(j X1 .state)" DONE)" + cx n1 recall >/dev/null + cx RV revoke --authorization "$A1" --approver drake + chk revoke_false "$(eq "$(j RV .control.revoked)" false)" + chk nothing_recorded "$(eq "$(j RV .control.recorded)" null)" + cx n2 recall >/dev/null + chk record_count_unchanged "$(eq "$(j n2 .recall.records_total)" "$(j n1 .recall.records_total)")" + OUTCOME="revoke after spend: revoked:$(j RV .control.revoked), nothing recorded";; + c) INJ="authorize A1; harness writes other bytes to the target; execute A1" + mkdir -p "$(dirname "$T")"; printf 'changed by someone else after the grant\n' >"$T"; local th; th=$(tstat "$T") + execute X1 "$A1"; chk refused_Stale "$(eq "$(refusal X1)" Stale)" "$(q "$(refusal X1)")" + chk target_untouched "$(eq "$(tstat "$T")" "$th")" + OUTCOME="world changed after grant: $(refusal X1)";; + esac + rules final; stop_daemon +} + +run_C6() { # a..h + up daemon-1 || return; pre_state pre + A1=$(authorize A1); execute X1 "$A1" + chk base_execute_done "$(eq "$(j X1 .state)" DONE)" + local s1; s1=$(stat -c %s "$R/compose/cortex.cx") + A2=$(authorize A2) + stop_daemon + T1=$(tstat "$T") + mkdir -p "$R/pre-damage"; (cd "$R" && cp -a --parents compose compose.machine-root state pre-damage/ 2>/dev/null) + local f + case $1 in + a) f=compose/cortex.cx; INJ="truncate cortex.cx by 1 byte (inside the last record)" + truncate -s -1 "$R/$f";; + b) f=compose/cortex.cx; INJ="flip one byte inside the last record of cortex.cx" + local sz; sz=$(stat -c %s "$R/$f"); local off=$(( s1 + (sz - s1) / 2 )) + printf "$(printf '\\x%02x' $(( $(od -An -tu1 -j $off -N1 "$R/$f") ^ 0xff )))" | dd of="$R/$f" bs=1 seek=$off conv=notrunc 2>/dev/null;; + c) f=compose/cortex.cx; INJ="cut cortex.cx at the record boundary before the last record (A2 dropped)" + truncate -s "$s1" "$R/$f";; + d) f=compose/jspace/jspace.data; INJ="truncate jspace.data by 1 byte" + truncate -s -1 "$R/$f";; + e) f=compose/jspace/jspace.meta; INJ="flip one byte in the middle of jspace.meta" + local sz; sz=$(stat -c %s "$R/$f"); local off=$(( sz / 2 ))