interplane.Get Omega
Read in your language

aien-sovereign-core-mv

AienOS host runtime: inference scheduling, paged KV state, the aien CLI and Spark verification tooling. Its inference engine is in alpha testing (DGX Spark GB10); Omega is the implementation destination.

Brought by drakestapleton

branch main Branches Tags History

aien-sovereign-core-mv / tools / aien-test / mutations / aien-test.mutants

90 lines · 14460 bytes Raw Blame History
1# Mutations of tools/aien-test/src/*.rs. Format: id<TAB>file<TAB>sed expression<TAB>what it models.
2# Each must be KILLED (a unit test fails) for run_mutants.sh to pass.
3dirty_tree_not_refused runner.rs s#!before.is_empty() && (!opts.allow_dirty || opts.release)#false# a dirty tree is no longer refused
4timeout_not_enforced process.rs s#rx.recv_timeout(spec.timeout)#rx.recv().map_err(|_| mpsc::RecvTimeoutError::Disconnected)# the wall-clock timeout never fires
5rule_mismatch_passes verdict.rs s#position(|r| !r.1)#position(|_r| false)# a failed expectation rule still yields PASS
6receipt_overwrite_allowed evidence.rs s#opts.write(true).create_new(true).mode(0o444);#opts.write(true).create(true).truncate(true).mode(0o444);# an existing receipt can be overwritten
7exit_status_ignored verdict.rs s#} else if f.exit_status != Some(m.expect_exit) {#} else if false {# a wrong exit status is not a failure
8head_move_ignored runner.rs s#facts.head_moved = head_after != commit;#facts.head_moved = false;# HEAD moving during the run is not noticed
9tree_change_ignored runner.rs s#facts.tree_changed_after = after != before;#facts.tree_changed_after = false;# a run that dirties the tree is not noticed
10kill_leader_only process.rs s#libc::kill(-pid, sig);#libc::kill(pid, sig);# timeout kills the leader but not its process group
11escape_hex_uppercase evidence.rs s#u{:04x}#u{:04X}# canonical encoding escapes control characters with upper-case hex
12duplicate_key_allowed manifest.rs s#if entries.iter().any(|e| e.key == k) {#if false {# a repeated top-level key is accepted
13unknown_key_allowed manifest.rs s#if !KNOWN.contains(&e.key.as_str()) {#if false {# an unknown top-level key is ignored
14missing_exec_ignored verdict.rs s#if !f.exec_exists {#if false {# a missing run.exec is not MISSING_IMPLEMENTATION
15last_value_becomes_first verdict.rs s#compare(rule.op, vals\[vals.len() - 1\], &rule.value)#compare(rule.op, vals[0], \&rule.value)# a repeated observation uses the first value, not the last
16evidence_inside_not_refused runner.rs s#let evidence_inside = resolve(&opts.evidence_dir).starts_with(resolve(root));#let evidence_inside = false;# evidence may be written inside the tree under test
17operator_gate_not_blocked verdict.rs s#if !f.operator && m.requires.iter().any(|r| r == "operator") {#if false {# a gate needing an operator runs anyway
18timeout_checked_after_exit verdict.rs s#let (verdict, reason) = if f.timed_out {#let (verdict, reason) = if false {# a timed-out run is reported as rc_nonzero, not timeout
19discover_ignores_gate_files runner.rs s#} else if ft.is_file() && name.ends_with(".gate") {#} else if false {# the walk finds no .gate file, so a repository-wide parse check silently covers nothing
20discover_not_recursive runner.rs s#walk(&path, out);#let _ = \&path;# the walk does not descend into directories, so gates under crates/ or tests/ are never parsed
21unknown_child_key_allowed manifest.rs s#if !allowed.contains(&k.as_str()) {#if false {# a mistyped child key such as exce under run is not rejected
22dep_blocked_ignored verdict.rs s#return Some((v, format!("DEP_BLOCKED:{d}")));#return Some((Verdict::NotRun, format!("DEP_NOT_PASS:{d}")));# a blocked dependency no longer passes its blocked verdict on
23dep_not_pass_ignored verdict.rs s#\.find(|d| dep_verdict(&f.deps, d) != Some(Verdict::Pass))#.find(|_d| false)# a gate runs although a dependency is not PASS
24no_hardware_not_blocked verdict.rs s#"gb10" if !f.gb10_present => {#"gb10" if false => {# a gb10 gate on a machine without the GPU is not BLOCKED_HARDWARE
25campaign_takes_the_mildest verdict.rs s#\.max_by_key(|v| v.exit_code())#.min_by_key(|v| v.exit_code())# a campaign reports its mildest verdict instead of its worst
26cycle_not_detected graph.rs s#if order.len() != nodes.len() {#if false {# a dependency cycle is accepted as a graph
27topo_order_takes_highest_first graph.rs s#ready\.pop_first()#ready.pop_last()# the topological order is no longer lowest-id first and stable
28gb10_timeout_enforced runner.rs s#enforce_timeout: m.pool() != "gb10",#enforce_timeout: true,# a gb10 job is killed at its timeout
29quiet_flag_ignored resources.rs s#if fs::symlink_metadata(flag).is_ok() {#if false {# the quiet flag no longer stops a GPU job
30gpu_lock_shared resources.rs s#libc::LOCK_EX | libc::LOCK_NB#libc::LOCK_SH | libc::LOCK_NB# two GPU jobs can hold the lock at once
31slot_released_twice resources.rs s#\*free += 1;#*free += 2;# finishing a job frees two pool slots instead of one
32stale_receipt_counts_as_pass why.rs s#Evidence::Other(_) => State::Stale,#Evidence::Other(_) => State::Pass,# why reports a receipt from another commit as PASS
33pass_over_failed_dependency why.rs s#let state = if own == State::Pass && !deps_pass {#let state = if false {# why reports PASS although a dependency is not PASS
34gpu_release_not_gated resources.rs s#let _gate = crate::process::spawn_gate();#let _gate = ();# the GPU guard closes its lock descriptors without the spawn gate, so a child between fork and exec can keep the lock held after the release
35spawn_not_gated process.rs s#let _gate = spawn_gate();#let _gate = ();# child spawns no longer take the spawn gate, so a lock release does not wait for a child between fork and exec
36cache_ignores_input_digest cache.rs s#"build_inputs_digest": e.build_inputs_digest,#"build_inputs_digest": "",# the cache key ignores the declared input files, so a changed input is still a hit
37cache_ignores_program cache.rs s#"binary_sha256": e.binary_sha256,#"binary_sha256": "",# the cache key ignores the program, so an edited script is still a hit
38cache_ignores_manifest cache.rs s#"manifest_digest": e.manifest_digest,#"manifest_digest": "",# the cache key ignores the manifest, so an edited gate contract is still a hit
39cache_ignores_machine cache.rs s#"machine_digest": e.machine_digest,#"machine_digest": "",# the cache key ignores the machine, so a result from other hardware is a hit
40cache_ignores_dependencies cache.rs s#"dependencies": deps,#"dependencies": [],# the cache key ignores dependency receipts, so a gate resting on a changed dependency is a hit
41cache_dependency_not_followed_to_origin cache.rs s#Some(r) if r.value\["volatile"\]\["cache"\]\["reused"\] == true => #Some(r) if r.value["volatile"]["cache"]["reused"] == "never" => # a reused dependency keeps its own new digest, so every dependent misses and a whole graph is never reused
42cache_args_override_not_in_key cache.rs s#if let Some(args) = &e.args_override {#if let Some(args) = \&None::<Vec<String>> {# a run with replacement args gets the same key as the ordinary run
43cache_stored_key_trusted cache.rs s#if recomputed.as_deref() != Some(key) {#if false {# a receipt is believed when it claims a key, without hashing its own contents
44cache_reused_receipt_is_source cache.rs s#if vol\["cache"\]\["reused"\] != false {#if false {# a reuse receipt can itself be the source of a later reuse
45cache_not_run_receipt_reused cache.rs s#if !matches!(src.verdict(), Some(Verdict::Pass | Verdict::Fail)) {#if false {# a NOT_RUN or BLOCKED receipt is reused as if it were an experiment
46cache_dirty_source_trusted cache.rs s#if core\["tree_clean_before"\] != true || core\["tree_clean_after"\] != true {#if false {# a receipt made on a dirty tree can be reused
47cache_timeout_source_trusted cache.rs s#if vol\["timeout_exceeded"\] != false {#if false {# a run that went past its time limit can be reused
48cache_env_ignored cache.rs s#if &core\["env"\] != env {#if false {# a result made under other compiler flags or locale is reused
49cache_blob_check_removed cache.rs s#Some(sha) if store.blob_exists(sha) => {}#Some(_) => {}# a result whose logs are gone from the store is reused
50cache_never_ignored cache.rs s#if !cache_allowed {#if false {# a gate that says cache: never is reused anyway
51cache_reuse_keeps_old_commit cache.rs s#core\["commit"\] = json!(commit);#let _ = commit;# a reuse receipt still names the old commit, so the new commit looks unchecked
52cache_dirty_tree_looks_up runner.rs s#if mode == cache::Mode::Allow \&\& (opts.args_override.is_some() || !tree_clean) {#if false {# a tree with uncommitted changes (or replacement args) still consults the cache
53cache_no_cache_ignored runner.rs s#cache::policy(m.cache_allowed, opts.no_cache || opts.release)#cache::policy(m.cache_allowed, opts.release)# --no-cache does not force a fresh run
54identity_machine_scope_ignored identity.rs s#CacheScope::Machine => b.machine_digest.clone(),#CacheScope::Machine => String::new(),# a machine-scoped check id no longer depends on the machine, so a result from another machine is reused
55identity_dependencies_dropped identity.rs s#"dependency_check_ids": deps,#"dependency_check_ids": Vec::<String>::new(),# a check id ignores the checks it declares it depends on, so a changed dependency leaves it unchanged
56identity_compiler_ignored identity.rs s#"compiler_identity": compiler_identity,#"compiler_identity": "",# a different compiler gives the same check id
57identity_flags_ignored identity.rs s#"flags": flags,#"flags": Vec::<String>::new(),# different build flags give the same check id
58identity_dependency_ids_unsorted identity.rs s#^ deps.sort();# let _ = \&deps;# the order the dependency ids are given in changes the check id
59identity_missing_input_dropped identity.rs s#rows.entry(spec.to_string()).or_insert(None);#let _ = spec;# a declared input that matches no tracked file leaves no trace in the identity
60identity_golden_not_hashed identity.rs s#Some(bytes) => goldens.push(sha256_hex(bytes)),#Some(bytes) => { let _ = bytes; }# editing the golden file does not change the check id
61planner_drops_dependencies identity.rs s#graph.with_dependencies(&seeds)#seeds.into_iter().collect()# path filtering selects the changed gate but drops the gates it declares it depends on
62v2_tolerance_without_bounded_allowed manifest.rs s#if tolerance.is_some() \&\& exactness != Exactness::Bounded {#if false {# a tolerance is accepted on an EXACT check
63v2_analog_eligible_for_exact manifest.rs s#if is_analog(b) \&\& exactness == Exactness::Exact {#if false {# an analog backend may be eligible for an EXACT check
64v2_canonical_outside_eligible manifest.rs s#if !eligible.contains(&canonical) {#if false {# a canonical backend that is not eligible is accepted
65v1_accepts_v2_keys manifest.rs s#entries.iter().find(|e| V2_KEYS.contains(\&e.key.as_str()))#entries.iter().find(|_e| false)# a v1 manifest may use v2 keys, so it is no longer strictly v1
66sig_not_checked bundle.rs s#vk.verify_strict(&bytes, &signature)#Ok::<(), ed25519_dalek::SignatureError>(())# the bundle signature is never checked
67commit_not_checked bundle.rs s#if commit != expect.commit {#if false {# a bundle for another commit is accepted
68repo_not_checked bundle.rs s#if repo != expect.repository {#if false {# a bundle for another repository is accepted
69key_not_checked bundle.rs s#if pubkey != expect.pubkey_hex.trim() {#if false {# a bundle signed by an unknown key is accepted
70not_run_counts_as_pass bundle.rs s#if !(ran \&\& verdict == "PASS") {#if verdict == "FAIL" {# a required check that did not run no longer blocks PASS
71success_without_ready worker.rs s#"success" if !ready => "error",#"success" if false => "error",# a bundle the independent check did not find READY is still posted as success
72outbox_overtakes worker.rs s#Err(_) => return (posted, files.len() - i),#Err(_) => continue,# a newer queued status is posted before an older one that GitHub refused
73key_mode_ignored worker.rs s#if mode & 0o077 != 0 {#if false {# the worker signs with a key other users can read
74symlink_exec_escapes runner.rs s#(Ok(cp), Ok(cr)) => cp.starts_with(cr),#(Ok(_cp), Ok(_cr)) => true,# a symlinked run.exec that leads out of the repository is run
75check_id_mismatch_ignored verify.rs s#if c\["check_id"\].as_str() != Some(e.check_id.as_str()) {#if false {# verify accepts a bundle entry for another check id
76receipt_manifest_ignored verify.rs s#&& receipt_manifest(s) == manifest_digest =>#\&\& true =># verify counts a receipt made from another manifest
77vacuous_pass_gates bundle.rs s#"PASS" if self.required == 0 => "NOT_RUN",#"PASS" if false => "NOT_RUN",# verify-bundle passes a bundle with no required checks
78crumb_close_bad_action worker.rs s#^ "test",$# "done",# the worker closes its crumb claim with an action crumb refuses, so the claim stays open
79sandbox_refusal_is_a_result runner.rs s#^ facts.exit_status = None;$# let _ = ();# a refusal by the exec helper (exit 2) counts as the program exiting 2
80wt_link_owner_ignored worker.rs s#|| md.uid() != 0 ## a worktree whose .git link the sandbox user owns is opened with the operator git
81sibling_cache_reused worker.rs s# if fresh || cfg.no_cache {# if cfg.no_cache {# a head with siblings reuses a cached result made without them
82sibling_not_provided worker.rs s#let (made, pin_values) = provision_siblings(cfg, repo, sha, \&co, \&sibs, \&pins, \&mut notes);#let (made, pin_values): (Vec<(PathBuf, PathBuf)>, Value) = (Vec::new(), json!([]));# the sibling map is read but no sibling is checked out
83sibling_self_name_accepted worker.rs s#if f\[1\] == f\[0\] {#if false {# a sibling may take the name of the checkout under test
84sibling_bad_ref_accepted worker.rs s#if !valid_ref(f\[3\]) {#if false {# any text is accepted as the sibling ref
85sibling_duplicate_dir_accepted worker.rs s#if !seen.insert((f\[0\], f\[1\])) {#if false \&\& !seen.insert((f[0], f[1])) {# one repository may name the same sibling dir twice
86sandbox_helper_not_in_machine runner.rs s# if sandbox == Sandbox::User {# if false \&\& sandbox == Sandbox::User {# a result made under another exec helper is reused
87gpu_wait_refuses_at_once resources.rs s#(GpuWait::Bounded(_), Some(d)) => flock_queued(file, d).map_err(open_err),#(GpuWait::Bounded(_), Some(_d)) => Ok(None),# a bounded GPU wait gives up at once, so a holder of a moment makes the gate NOT_RUN (the old single try)
88gpu_default_refuses resources.rs s#wait: GpuWait::Bounded(DEFAULT_GPU_WAIT),#wait: GpuWait::Refuse,# the real machine refuses a held GPU lock at once instead of waiting the default bound
89gpu_abandoned_waiter_keeps_lock resources.rs s#return lost(r);#return std::mem::forget(r);# a GPU waiter given up on keeps the lock when the kernel grants it, so the GPU stays held by nobody
90gpu_wait_not_recorded runner.rs s#"waited_ms": attempt.waited.as_millis() as u64,#"waited_ms": 0,# the receipt says a gb10 gate never waited for the GPU lock