interplane.Get Omega
Read in your language

omega-mv

Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.

Brought by drakestapleton

GitHub aien-dev/omega-mv#1005 (code only)

closed derived 4c687439907da3a6 #1005

Imported from GitHub aien-dev/omega-mv#1005 (code only)

GitHub's metadata for this pull request is unavailable: its state is DERIVED from the commits (merged: the head is reachable from this project's main; open: GitHub kept a merge ref; else closed).

Base 2638a49bd83d12c1e0c76a4c446d6be1c9a4d4f4 · Head 5a88b9f664f7db75ff612d856aa235d635e9c46b

Apply it

git checkout -b patch-4c687439907da3a6 2638a49bd83d12c1e0c76a4c446d6be1c9a4d4f4
curl -fsSL https://interplane.io/drakestapleton/omega-mv/patches/4c687439907da3a6.patch | git am

Raw patch (mbox) · Diff

Provenance

This proposal is imported from GitHub; it is not signed by its author. Its import statement and source record:

github-import 1
aien-dev/omega-mv
1005
5a88b9f664f7db75ff612d856aa235d635e9c46b
{"kind":"github-import","owner":"aien-dev","repo":"omega-mv","number":1005,"url":"https://github.com/aien-dev/omega-mv/pull/1005","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:36:12Z","metadata":"unavailable","state_derived":true}

Changes

diff --git a/.crumb b/.crumb
index 4c29c6660..fa5d6739e 100644
--- a/.crumb
+++ b/.crumb
@@ -47,8 +47,8 @@
           "purpose": "Directory calibration. Purpose not yet described by a human."
         },
         {
-          "digest": "f00281122c0cb3bce9288b99d79cae539f9824faa48ac0bf3e0ce9e3020fed80",
-          "last_commit": "27997f9ba",
+          "digest": "c90443bd3d00414c2b75a7dd64703381ba635c8b0fa0f355f222fb5dd0840424",
+          "last_commit": "a20577258",
           "name": "docs",
           "purpose": "Directory docs. Purpose not yet described by a human."
         },
@@ -84,7 +84,7 @@
         },
         {
           "digest": "18cd9ce64969204d94b2c93ffa14e83324eebdc71b2c8b468bcaa0b02eee19cf",
-          "last_commit": "f5c9bd89a",
+          "last_commit": "0ccdd31d7",
           "name": "spec",
           "purpose": "Directory spec. Purpose not yet described by a human."
         },
@@ -96,7 +96,7 @@
         },
         {
           "digest": "0a1bedfebbcc0e923a70af1b3537bc5af1f45a79c527e517aace0bf4c5287dcf",
-          "last_commit": "089d63253",
+          "last_commit": "0ccdd31d7",
           "name": "tests",
           "purpose": "Directory tests. Purpose not yet described by a human."
         },
@@ -107,15 +107,15 @@
           "purpose": "Directory tools. Purpose not yet described by a human."
         }
       ],
-      "children_root": "sha256:7685e485f4351c4a698eaf416894e06aa7d845cbc9269c9ef43f4eb561d2ba6e",
-      "compiled_at": "2026-10-31T13:29:24Z",
+      "children_root": "sha256:4528fa18f79e23cd41bc4ed361e521f933ecaa24e7d8818e381da2bff65ddb52",
+      "compiled_at": "2026-10-31T13:47:48Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:4e146d21cc7e24b5245ee33654daa0a487eacb5ebb53b0d033d4cff531686259",
+      "digest": "sha256:64a8772e9febd419577e2a06126b5cc71379e4737a9a4d9caed72c1b558426de",
       "evidence_files": 14989,
       "evidence_root": "sha256:90148c46bbc2cd096c96064273ac90d63efb54260fe285e18d84429cdf657830",
       "files": 23228,
-      "generated_at_commit": "1840dd869407c96429bab4780b69a7da9b194950",
-      "source_tree": "sha256:d6c3fb10bc3468b319246f34bd5697741b292c1c42ef4b2370f7aa8eb525ef59"
+      "generated_at_commit": "a20577258e854e38709c7e5fcc64b287c5b04105",
+      "source_tree": "sha256:08cfab639f4a3ada0d7d8b8f1c12dbd8ff611e2afbb4d22ac64ef387db93cc88"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/docs/.crumb b/docs/.crumb
index 21e93ea0a..34875326a 100644
--- a/docs/.crumb
+++ b/docs/.crumb
@@ -124,14 +124,14 @@
         }
       ],
       "children_root": "sha256:c81d43c0c392dfec2b6ed5b38ba95ea7c592782b283950e32b777e7b9cfd9d61",
-      "compiled_at": "2026-10-31T11:59:10Z",
+      "compiled_at": "2026-10-31T13:47:48Z",
       "compiler": "crumb-compile/1",
-      "digest": "sha256:f00281122c0cb3bce9288b99d79cae539f9824faa48ac0bf3e0ce9e3020fed80",
+      "digest": "sha256:c90443bd3d00414c2b75a7dd64703381ba635c8b0fa0f355f222fb5dd0840424",
       "evidence_files": 34,
       "evidence_root": "sha256:589d8b3706e6d7a202ab20b278dac5fc5bafc973f1c2a867b2668aa7210b65cc",
       "files": 147,
-      "generated_at_commit": "474197e4fa0207e0e2fb3c0494594a975f5031fa",
-      "source_tree": "sha256:29540f872c6ce1408cb626bc0ed03fb20190295bae8f139baef650dd94727c2d"
+      "generated_at_commit": "a20577258e854e38709c7e5fcc64b287c5b04105",
+      "source_tree": "sha256:841cadf2cc7e7f1a2bdeea8ed2189aa16fcd469c59401f2bd30ad4a037c299a9"
     },
     "owner_lane": "",
     "provenance": {
diff --git a/docs/X86-LINUX.md b/docs/X86-LINUX.md
index bebfb3504..b3fc24645 100644
--- a/docs/X86-LINUX.md
+++ b/docs/X86-LINUX.md
@@ -526,6 +526,20 @@ Coverage distinctions must accompany any result:
   ceiling 3 on both targets; the production compiler's ceiling is unchanged.
 - `psync` invokes syncfs on the scratch descriptor and therefore flushes its
   filesystem; a temporary directory does not isolate that kernel effect.
+- `effect-scratch` (`seed/omc/x86_corpus_drivers.py` `effect_plan`) drives the
+  security673 and S5 conductors that launch programs or touch files, each keyed
+  by exact source sha: `pkt-consumer`, `runimage`, `embed`, `scrub-ctl`,
+  `scrub-mem`, `path-consumer`, `renames-consumer`, `exec-parent` and
+  `pure-child`. Inputs are SHA-pinned repository files copied into the private
+  per-architecture scratch; launched programs are the same native AArch64 file
+  in both runs (`exec-child` built natively from pinned `exec-child.om`, the
+  pinned evidence images, or the host `/bin/true`, `/bin/echo` and `/bin/tr`
+  pinned to Ubuntu coreutils 9.4-3ubuntu6.3 arm64, whose mismatch is BLOCKED).
+  Each run gets a 10-second CPU limit; only `exec-parent` raises
+  `RLIMIT_NOFILE` to 65600 because it duplicates a descriptor to 65537.
+  `pure-child` runs outside `execpure`, so it exits 43 at its first fd check;
+  its later arms are not exercised. `gate669.om` at the current revision is
+  not reviewed and stays NOT_RUN.
 
 The disassembly check linearly decodes code bytes, including unreachable code,
 while carving source-matched jump-protected literal spans. A mnemonic inventory
diff --git a/seed/omc/qualify-x86.py b/seed/omc/qualify-x86.py
index d256677d2..7450a1ee6 100755
--- a/seed/omc/qualify-x86.py
+++ b/seed/omc/qualify-x86.py
@@ -41,7 +41,7 @@ import struct
 import subprocess
 import tempfile
 
-from x86_corpus_drivers import bare_calls, bridge_plan, bridge_positive_plan, directive_plan, plan_case, prepare_case, select_a64_entry, wrap_bare
+from x86_corpus_drivers import EFFECT_CPU_SECONDS, bare_calls, bridge_plan, bridge_positive_plan, directive_plan, plan_case, prepare_case, select_a64_entry, wrap_bare
 
 ROOT = Path(__file__).resolve().parents[2]
 MAIN = re.compile(rb"(?m)^[ \t]*(?:export[ \t]+)?fn[ \t]+main(?:[ \t]|$)")
@@ -400,6 +400,13 @@ def expanded_cases(files, record):
         case.evidence.update(stdin_bytes=len(case.stdin), stdin_sha256=digest(case.stdin),
                              args=list(case.args), original_case=case.name)
         yield case
+        if plan and case.operation == "differential":
+            for variant in plan.get("variants", ()):
+                yield Case(case.name + ":" + variant["name"], case.source, variant["stdin"], tuple(variant["args"]),
+                           driver=case.driver, expected_exit=variant["expected_exit"],
+                           evidence={**case.evidence, "stdin_bytes": len(variant["stdin"]),
+                                     "stdin_sha256": digest(variant["stdin"]), "args": list(variant["args"]),
+                                     "variant_of": case.name})
         driver = case.driver or HOST_DRIVERS.get(digest(case.source))
         if driver == "network" and not case.args:
             yield Case(case.name + ":gate-host-tcp-loopback", case.source, args=("tcp",), expected_exit=0)
@@ -471,8 +478,11 @@ def conductor_resources(path):
                 return
             data = source_bytes(spec)
             words = host_words(data)
-            if words and digest(data) not in HOST_DRIVERS and not plan_case(ROOT, spec, data):
-                raise Failure(f"original conductor source {spec} has unreviewed effects: {words}")
+            if words and digest(data) not in HOST_DRIVERS:
+                plan = plan_case(ROOT, spec, data)
+                if not plan or "blocker" in plan:
+                    raise Failure(f"original conductor source {spec} has unreviewed effects: {words}"
+                                  + (f"; {plan['blocker']}" if plan else ""))
 
     add(path.relative_to(ROOT).as_posix())
     for constant in ("sha256-k", "sha256-iv"):
@@ -790,23 +800,23 @@ def cases(files, record):
                 record("MISSING_INPUT", name, str(error), conductor_row=line)
 
 
-def limits(cpu_seconds=None):
+def limits(cpu_seconds=None, nofile=256):
     resource.setrlimit(resource.RLIMIT_CORE, (0, 0))
     resource.setrlimit(resource.RLIMIT_FSIZE, (64 * 1024 * 1024, 64 * 1024 * 1024))
-    resource.setrlimit(resource.RLIMIT_NOFILE, (256, 256))
+    resource.setrlimit(resource.RLIMIT_NOFILE, (nofile, nofile))
     if cpu_seconds is not None:
         # Soft limit delivers SIGXCPU; the higher hard limit keeps SIGKILL out of the way.
         resource.setrlimit(resource.RLIMIT_CPU, (cpu_seconds, cpu_seconds + 2))
 
 
-def run(command, data, cwd, timeout, *, extra_env=None, cpu_seconds=None):
+def run(command, data, cwd, timeout, *, extra_env=None, cpu_seconds=None, nofile=256):
     # Regular-file stdin matches seekable-input fixtures; no shell interpolation.
     with tempfile.TemporaryFile() as inp, tempfile.TemporaryFile() as out, tempfile.TemporaryFile() as err:
         inp.write(data)
         inp.seek(0)
         process = subprocess.Popen(command, stdin=inp, stdout=out, stderr=err, cwd=cwd,
                                    env={"LC_ALL": "C", "PATH": os.defpath, "HOME": ".", "OMTEST": "hello", **(extra_env or {})},
-                                   start_new_session=True, preexec_fn=lambda: limits(cpu_seconds))
+                                   start_new_session=True, preexec_fn=lambda: limits(cpu_seconds, nofile))
         try:
             process.wait(timeout=timeout)
         except subprocess.TimeoutExpired:
@@ -1886,6 +1896,19 @@ def main():
                     for directory in (native, emulated):
                         child = directory / "exec-child"
                         child.write_bytes(helper_image); child.chmod(0o700)
+                elif driver == "effect-scratch" and "native_child" in case.evidence:
+                    spec = case.evidence["native_child"]
+                    child_source = contained(spec["source"]).read_bytes()
+                    if digest(child_source) != spec["source_sha256"]:
+                        raise Failure("reviewed native child source changed: " + spec["source"])
+                    built = run([compiler], child_source, cwd, options.timeout)
+                    if built[0] or built[2]:
+                        raise Failure(f"native child compilation failed: {result_details(built)}")
+                    case.evidence["native_child_sha256"] = digest(built[1])
+                    # Both arms exec the same native AArch64 child; only the parent changes architecture.
+                    for directory in (native, emulated):
+                        child = directory / "exec-child"
+                        child.write_bytes(built[1]); child.chmod(0o700)
                 prepared = [prepare_case(ROOT, directory, driver, compiler, case=case.evidence)
                             for directory in (native, emulated)]
                 if prepared[0] != prepared[1]:
@@ -1911,9 +1934,10 @@ def main():
                 # Both argv[0] strings and initial environments are byte-identical;
                 # filesystem mutations cannot leak between architectures.
                 argv0 = "./" + basename
-                cpu_seconds = 1 if driver == "cpu-limit" else None
-                arun = run([argv0, *args], case.stdin, native, child_timeout, cpu_seconds=cpu_seconds)
-                xrun = run([qemu, "-0", argv0, argv0, *args], case.stdin, emulated, child_timeout, cpu_seconds=cpu_seconds)
+                cpu_seconds = 1 if driver == "cpu-limit" else EFFECT_CPU_SECONDS if driver == "effect-scratch" else None
+                nofile = case.evidence.get("nofile", 256) if driver == "effect-scratch" else 256
+                arun = run([argv0, *args], case.stdin, native, child_timeout, cpu_seconds=cpu_seconds, nofile=nofile)
+                xrun = run([qemu, "-0", argv0, argv0, *args], case.stdin, emulated, child_timeout, cpu_seconds=cpu_seconds, nofile=nofile)
                 diagnostics.update(default_run=result_details(arun), x86_run=result_details(xrun))
                 if "required_verdict" in case.evidence:
                     required = ("VERDICT " + case.evidence["required_verdict"]).encode()
diff --git a/seed/omc/x86_corpus_drivers.py b/seed/omc/x86_corpus_drivers.py
index 646c8642e..e35aaf029 100755
--- a/seed/omc/x86_corpus_drivers.py
+++ b/seed/omc/x86_corpus_drivers.py
@@ -859,12 +859,166 @@ def directive_plan(root, name):
     return {"blocker":review["reason"],"evidence":evidence}
 
 
+# Reviewed host-effect drivers for rows whose conductors launch programs or touch files.
+# Every effect stays in the runner's private per-architecture cwd under TMPDIR, under the
+# runner's wall deadline and EFFECT_CPU_SECONDS of CPU. qemu-user is not a registered
+# binfmt, so any program either arm launches is the same native AArch64 file in both
+# runs; only the program under test changes architecture. None of these sources has a
+# network word except pure-child.om, whose socknew arm is unreachable (see its review).
+EFFECT_CPU_SECONDS = 10
+# The frozen security673 packets name /bin/true, /bin/echo and /bin/tr by absolute path.
+# The qualification host has no unprivileged user namespace (unshare -r: uid_map EPERM),
+# so they cannot be substituted; the exact host builds (Ubuntu coreutils 9.4-3ubuntu6.3
+# arm64) are pinned and any other build refuses the row as BLOCKED, never PASS.
+HOST_CHILD_PINS = {
+    "/bin/true": "a82c1b5fd392d72148d53992a860224ff3753cb2dc8909e9bdd1620e54ee1b88",
+    "/bin/echo": "a54dbac70bf94d2d3163aee0a43aadeb96c15b29713c1443a0514326660dd205",
+    "/bin/tr": "8921ec5afe3898e9f1dbe2e0f568d36de759332547aa28874ddd03ff3954e92e",
+}
+_S673 = "seed/qualification/security673/"
+_RUNS = _S673 + "relational/evidence/"
+_IMAGES = {  # Pinned evidence images; *-native-mut.bin are AArch64 executables.
+    "branch-native-mut": (_RUNS + "run2/public-branch-native-mut.bin",
+                          "3c534a9224fd8ec81f1af1caa48507adb3b01cfc7ab6fdea709a6ee08c6ba5c1", 0o700),
+    "address-native-mut": (_RUNS + "run2/public-address-native-mut.bin",
+                           "d823b830e66b82b52cf0bc5ee480adacff1957f9a9411413f972ac30f2183417", 0o700),
+    "branch-mut": (_RUNS + "run2/public-branch-mut.bin",
+                   "cb906d54cb4a1d7940202d567367c6e30eeaa099a981fbabc20574e13721de1a", 0o600),
+    "compare32": (_RUNS + "run3/compare32.bin",
+                  "df0d1193b9555f3d6a4a1c5bc0e5d04605397000a22d8175e9b9f28965bdb162", 0o600),
+    "embed": (_RUNS + "run3/embed.bin",
+              "0f65c747d83fbd34f9058142c2dc68a8147365733c56e18abdd24104e944fe50", 0o600),
+    "paired": (_RUNS + "run4/paired.bin",
+               "686096547cda0cbbdf789c67bdc9f7aa7066ee36023af9c2353a262d2e313711", 0o600),
+}
+# renames-corpus.om (sha 9c44348b9cb258195be17e59318d90def4745327baed621b0fc46442f50ad883)
+# output for mode byte m, exactly as gate669.om renamescc feeds renames-consumer.om.
+_REN_SRC = "0020006275696c642f73656375726974793637332d6e61746976652f72656e2d737263"
+_REN_DST = "20006275696c642f73656375726974793637332d6e61746976652f72656e2d647374"
+RENAMES_PACKETS = {
+    0: "02" + _REN_SRC + _REN_DST,
+    1: "01" + _REN_SRC,
+    2: "03" + _REN_SRC + _REN_DST + _REN_DST,
+    3: "020000" + _REN_DST,
+    4: "02" + _REN_SRC + "0000",
+    5: "02" + _REN_SRC + _REN_DST + "00",
+    6: "020020006275696c640073656375726974793637332d6e61746976652f72656e2d737263" + _REN_DST,
+}
+
+
+def host_child_mismatch():
+    for path, sha in HOST_CHILD_PINS.items():
+        try:
+            observed = digest(Path(path).read_bytes())
+        except OSError as error:
+            return f"{path} unreadable: {error}"
+        if observed != sha:
+            return f"{path} sha256 {observed} is not the pinned {sha}"
+    return None
+
+
+def _inputs(*names):
+    return [{"path": _IMAGES[n][0], "sha256": _IMAGES[n][1], "mode": _IMAGES[n][2]} for n in names]
+
+
+def effect_plan(root, rel, sha):
+    """Plan for a reviewed effect-scratch source; {} when the source is not reviewed here."""
+    evidence = {"reviewed_source_sha256": sha}
+    plan = {"driver": "effect-scratch", "evidence": evidence}
+    if sha == "7f0ea5e3a0064457d3f4d12e9e74e664b7f59a4ca90083b8132b779604ff5310":
+        evidence.update(
+            effect_review="reads at most 8191 stdin bytes; execprog only of the packet's absolute path; every frozen "
+                          "packet names /bin/true, /bin/echo or /bin/tr, each pinned in HOST_CHILD_PINS; no file or "
+                          "network words",
+            host_children=dict(HOST_CHILD_PINS),
+            exit_authority=_S673 + "packets.cases p12-echo-argv: exit0, stdout packets/p12.out")
+        mismatch = host_child_mismatch()
+        if mismatch:
+            return {"blocker": "BLOCKED_ON pinned host child: " + mismatch, "evidence": evidence}
+        plan.update(stdin=_pinned(root, _S673 + "packets/p12.bin",
+                                  "10840966be3580d3ca7ce939bc9ce2be664af39fc679f711aa76b7763da10a2f"),
+                    expected_exit=0)
+        return plan
+    if sha == "39ff79d87e1e502cb13caaea6e9791a58e02bc7ecb7c27a754360195786c5138":
+        evidence.update(
+            effect_review="packs argv[1..] and execprogs argv[1]; the only images named are the pinned AArch64 "
+                          "evidence images copied into private scratch (sources public-*-main.om have no host words)",
+            effect_inputs=_inputs("branch-native-mut", "address-native-mut"),
+            exit_authority=_S673 + "relational/qualification.cases execute-public-branch-mut-zero: exit7")
+        plan.update(args=(_IMAGES["branch-native-mut"][0],), expected_exit=7)
+        return plan
+    if sha == "be37db5983ef8b5bda100d1f063be503449fb271c45a87f68084337c1bfe1d86":
+        evidence.update(
+            effect_review="read-only fopen/read/fclose of argv[1] and argv[2]; the manifest names only pinned "
+                          "evidence images, copied into private scratch; stdout write only",
+            effect_inputs=_inputs("compare32", "paired", "embed", "branch-mut", "branch-native-mut"),
+            exit_authority=_S673 + "relational/bindings.cases embed-primitive: exit0, stdout embed.expected")
+        plan.update(args=(_IMAGES["compare32"][0], _IMAGES["paired"][0]), expected_exit=0)
+        return plan
+    if sha in ("e184cdbc0fbe4d4cb2f2d36d4c159ef7f9fe87bd162d3082209fa32f5dc79252",
+               "e125e57d03dbd2dbb23f592e015396b57a1b1277b6b160a91cbb916c38fc7bfa"):
+        control = sha.startswith("e184")
+        evidence.update(
+            effect_review="read-only fopen of /proc/self/mem; pread of this process's own stack pool "
+                          "0x10000000..0x10800000 into a private buffer; fclose; no writes",
+            exit_authority="seed/omc/om2/s5/s5.cases " + ("s5-scrub-ctl: exit10" if control else "s5-scrub-mem: exit0"))
+        plan.update(expected_exit=10 if control else 0)
+        return plan
+    if sha == "9bb5cd0e59d12af8b13de79db7a949b5278263b638309dfc6a86ab77c0382232":
+        evidence.update(
+            effect_review="mode0 creates build/security673-native/path-ok in private scratch; modes1-3 are refused "
+                          "or failing fopens; modes4-6 argread only",
+            effect_dirs=["build/security673-native"],
+            exit_authority=_S673 + "gate669.om pathcc/pathwant: modes1,2,5 exit103, others exit0; argument id1")
+        args = (_S673 + "branch-corpus.om",)
+        plan.update(stdin=b"\0", args=args, expected_exit=0,
+                    variants=[{"name": f"gate669-mode{m}", "stdin": bytes([m]), "args": args,
+                               "expected_exit": 103 if m in (1, 2, 5) else 0} for m in range(1, 7)])
+        return plan
+    if sha == "4fed8e605272e03994b565fd799136a96ab14239ccc8bc7526c819f3148e6c69":
+        evidence.update(
+            effect_review="creates build/security673-native/ren-src in private scratch; renames only names from the "
+                          "pinned renames-corpus packets, all under build/security673-native",
+            effect_dirs=["build/security673-native"],
+            exit_authority=_S673 + "gate669.om renamescc/renameswant: mode0 exit0, modes1-6 exit103")
+        plan.update(stdin=bytes.fromhex(RENAMES_PACKETS[0]), expected_exit=0,
+                    variants=[{"name": f"gate669-mode{m}", "stdin": bytes.fromhex(RENAMES_PACKETS[m]), "args": (),
+                               "expected_exit": 103} for m in range(1, 7)])
+        return plan
+    if sha == "b784dde3b862bfc7784015377447b3fffd4c6f1a37d04680e03960fbabc5a0de":
+        evidence.update(
+            effect_review="creates synthetic-secret.data in private scratch; pipes; forks one child that execprogs "
+                          "./exec-child (exec-child.om built natively from pinned source) or a missing name; waits "
+                          "for that child only; dupfd to 65537 needs RLIMIT_NOFILE above 65537",
+            native_child={"source": _S673 + "exec-child.om",
+                          "source_sha256": "f2519f6be7068cf8af826101febd0f490327916322ac92a648dba9f3380324ec"},
+            nofile=65600,
+            exit_authority=_S673 + "exec-parent.om notes: modes0 success, 1 missing executable, "
+                                   "2 isolate high-descriptor leak; each returns 0 when every assertion holds")
+        plan.update(stdin=b"\0", expected_exit=0,
+                    variants=[{"name": f"mode{m}", "stdin": bytes([m]), "args": (), "expected_exit": 0}
+                              for m in (1, 2)])
+        return plan
+    if sha == "95c63d2aa7d69e6e04752279885496060a4152b5c1604ff75d65b201d48c713b":
+        evidence.update(
+            effect_review="run outside execpure: the runner passes only fds 0-2, so read 3 returns -EBADF, not the "
+                          "-1 the strict profile yields, and the program exits 43 before any write, fopen, socknew, "
+                          "fork or execprog arm; those arms run only under the AArch64 execpure evidence",
+            exit_authority=_S673 + "pure-child.om: read 3 must equal -1 or ret 43")
+        plan.update(stdin=b"public-input", expected_exit=43)
+        return plan
+    return {}
+
+
 def plan_case(root, rel, source):
     if digest(source) == "e08ec033bd7d2e71ae272488029354eb447d8f7eed49d0f89d9d4eaf55518cfb":
         return {"driver":"pwrite-text", "expected_exit":0,
                 "evidence":{"effect_review":"pwrite only to fd1, the runner's private seekable output file; no paths or device access",
                             "source_authority":"seed/omc/om2/s4/v-pwrite-text.om",
                             "result_authority":"s4.cases s4-v-pwrite-text: exact ABC newline output and exit0"}}
+    effect = effect_plan(root, rel, digest(source))
+    if effect:
+        return effect
     sha = digest(source)
     if sha not in REVIEWED_SOURCES:
         return {}
@@ -941,10 +1095,29 @@ def prepare_case(root, work, driver, compiler, *, case=None):
     the caller remains responsible for reviewing every source's host effects.
     """
     root,work,compiler = Path(root),Path(work),Path(compiler)
-    if driver not in ("security673-gate","corpus-gate"):
+    if driver not in ("security673-gate","corpus-gate","effect-scratch"):
         return ()
     if root.resolve()==work.resolve() or root.resolve() in work.resolve().parents:
         raise ValueError("conductor scratch must be outside the source checkout")
+    if driver == "effect-scratch":
+        case = case or {}
+        if "host_children" in case:
+            mismatch = host_child_mismatch()
+            if mismatch or case["host_children"] != HOST_CHILD_PINS:
+                raise ValueError("BLOCKED_ON pinned host child: " + (mismatch or "reviewed pin set changed"))
+        for rel in case.get("effect_dirs", []):
+            if Path(rel).is_absolute() or ".." in Path(rel).parts:
+                raise ValueError("unsafe effect scratch directory")
+            (work/rel).mkdir(parents=True, exist_ok=True)
+        for item in case.get("effect_inputs", []):
+            rel = item["path"]
+            if Path(rel).is_absolute() or ".." in Path(rel).parts:
+                raise ValueError("unsafe effect input path")
+            dest = work/rel
+            dest.parent.mkdir(parents=True, exist_ok=True)
+            dest.write_bytes(_pinned(root, rel, item["sha256"]))
+            dest.chmod(item["mode"])
+        return ()
     resources = dict(RESOURCE_PINS)
     if driver == "security673-gate":
         resources = {p:s for p,s in resources.items() if p.startswith("seed/qualification/security673/")}