From 411ac6189f9d0a78fdfa76d6b71b69b8699cbc84 Mon Sep 17 00:00:00 2001 From: Kitahl <222771578+Kitahl@users.noreply.github.com> Date: Fri, 4 Sep 2026 21:46:58 -0700 Subject: [PATCH 1/2] feat(goal1): isolate signed Mathlib verifier control --- .github/workflows/goal1_verifier_control.yml | 58 +++++ orchestration/BOARD.json | 23 ++ reports/G1_SIGNED_CONTROL_2026-09-05.md | 58 +++++ scripts/run_verifier_control.py | 223 +++++++++++++++++++ src/supernova_goal1/verifier_evidence.py | 18 ++ tests/test_evidence_bridge.py | 18 +- tests/test_verifier_control.py | 152 +++++++++++++ 7 files changed, 549 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/goal1_verifier_control.yml create mode 100644 reports/G1_SIGNED_CONTROL_2026-09-05.md create mode 100644 scripts/run_verifier_control.py create mode 100644 tests/test_verifier_control.py diff --git a/.github/workflows/goal1_verifier_control.yml b/.github/workflows/goal1_verifier_control.yml new file mode 100644 index 0000000..85c597a --- /dev/null +++ b/.github/workflows/goal1_verifier_control.yml @@ -0,0 +1,58 @@ +name: Goal 1 isolated signed verifier control + +on: + push: + branches: [work/PM/G1V2-verifier-control] + paths: + - .github/workflows/goal1_verifier_control.yml + - scripts/run_verifier_control.py + - tests/test_verifier_control.py + - src/supernova_goal1/verifier_evidence.py + +permissions: + contents: read + packages: read + +concurrency: + group: goal1-isolated-verifier-control + cancel-in-progress: false + +jobs: + signed-control: + runs-on: ubuntu-24.04 + timeout-minutes: 15 + env: + VERIFIER_IMAGE: ghcr.io/kitahl/supernova-goal1-verifier@sha256:6e4008a00beebf5795e3afdc1affcfd549310d357a6662084450a534309b10ba + steps: + - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 + with: + persist-credentials: false + - uses: actions/setup-python@v5 + with: + python-version: '3.12' + - name: Install host verifier dependency + run: python -m pip install --disable-pip-version-check -e . + - name: Test isolated runner without containers or models + run: python -m unittest tests.test_verifier_control -v + - name: Authenticate read-only image pull + uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Pull existing digest and remove registry login before verification + shell: bash + run: | + set -euo pipefail + trap 'docker logout ghcr.io' EXIT + docker pull "$VERIFIER_IMAGE" + - name: Run exactly one signed Mathlib reflexivity control + run: python scripts/run_verifier_control.py --output verifier-control-output + - name: Preserve control evidence even when not ready + if: always() + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 + with: + name: signed-verifier-control-${{ github.run_id }} + path: verifier-control-output/ + if-no-files-found: warn + retention-days: 14 diff --git a/orchestration/BOARD.json b/orchestration/BOARD.json index 000530a..be94ed3 100644 --- a/orchestration/BOARD.json +++ b/orchestration/BOARD.json @@ -4,6 +4,29 @@ "tranche": "goal1-activation-parallel-v1", "integration_policy": "pull_request_only", "tickets": [ + { + "id": "G1V2-verifier-control", + "owner": "PM", + "status": "IN_PROGRESS", + "paths": [ + "scripts/run_verifier_control.py", + "tests/test_verifier_control.py", + "src/supernova_goal1/verifier_evidence.py", + "tests/test_evidence_bridge.py", + ".github/workflows/goal1_verifier_control.yml", + "reports/G1_SIGNED_CONTROL_2026-09-05.md", + "orchestration/BOARD.json" + ], + "depends_on": [], + "objective": "Run exactly one synthetic signed Mathlib reflexivity control on the existing immutable verifier image and retain honest phase observations; no model calls, rebuild, benchmark change or scientific credit.", + "acceptance": [ + "A dedicated branch push cannot launch historical pilot or image-build workflows.", + "The exact local source and 60-second per-phase watchdog are preserved.", + "Signatures, input/run binding and database readback are verified before reporting readiness.", + "Running containers never report an observed successful exit.", + "Result is retained and reviewed before any subsequent execution." + ] + }, { "id": "G1-138", "owner": "MF01", diff --git a/reports/G1_SIGNED_CONTROL_2026-09-05.md b/reports/G1_SIGNED_CONTROL_2026-09-05.md new file mode 100644 index 0000000..88512ec --- /dev/null +++ b/reports/G1_SIGNED_CONTROL_2026-09-05.md @@ -0,0 +1,58 @@ +# G1V2-verifier-control handoff + +Scientific status: NOT EVALUATED; zero countable attempts. No model calls. + +## Scope + +The runner verifies exactly the synthetic Mathlib Nat-reflexivity source used +in the local readiness failure. It calls VerifierSupervisor directly, without +importing any pilot/model module. This bypasses the model adapter deliberately: +it is a supervisor/host control, not an adapter qualification or an experiment. + +The immutable image is 6e4008a00beebf5795e3afdc1affcfd549310d357a6662084450a534309b10ba. +Sandbox policy is unchanged from the local replay: 60 seconds per phase, +2 CPUs, 4 GiB, UID 10001, read-only and network-none. The publication JSON's +older image reference is explicitly overridden only for this diagnostic. +Reused publication configuration is hashed; it does not attest the newer image. +The actual observed image and phase timings are in the signed observations. +Internal import/compile timings are not exposed by the unmodified image. + +The host creates an ephemeral signing key, retains only its public key, verifies +the returned signature and exact binding, and reads the SQLite record and blobs +back before reporting readiness. Only signed VALID yields exit 0. UNKNOWN, +INVALID and infrastructure errors yield exit 1 and a retained report. An existing +output directory is rejected. Historical signed records remain untouched. + +## Remote execution isolation + +Dedicated push branch: work/PM/G1V2-verifier-control. New workflow has only that +push trigger, contents/packages read permission, one 15-minute-bounded job, a +pull of the existing digest, one control invocation, and always-on evidence upload. +No build, publication, model call, benchmark preparation or recurring trigger. +Registry credentials are logged out before the verifier starts; checkout does +not persist git credentials. No key or database is mounted into either sandbox. + +PR base: work/PM/G1V2-core-repairs. Check the exact three-dot diff before opening: +no integration/goal1_validation_pilot or runtime paths may enter this PR, because +those would trigger the historical executor build. General unit-test CI on the +PR is expected. No merge to main is part of this diagnostic. + +## Local checks + +- python -m ruff check scripts/run_verifier_control.py tests/test_verifier_control.py: passed. +- python -m ruff format --check scripts/run_verifier_control.py tests/test_verifier_control.py: passed. +- python -m unittest tests.test_verifier_control -v: 7 tests passed, repeated in isolation. +- python scripts/run_verifier_control.py --help: actual CLI entry point passed. +- YAML parsed with BaseLoader: push only, read-only permissions, one job. +- Eight self-contained VerifierEvidenceSecurityTests passed, including running + container exits, both-phase success/rejection/UNKNOWN, heartbeat exhaustion, + teardown failure and signed product admission. Only the unrelated heavy + class-level cohort setup/teardown was bypassed; per-test fixtures ran. + +Mock tests establish wiring and conservative outcomes, not real readiness. +Independent final review and the real remote result must be recorded below. + +## Result + +Pending isolated remote run. Stop and inspect its signed evidence before any +model call, pilot, larger calibration or scientific authority change. diff --git a/scripts/run_verifier_control.py b/scripts/run_verifier_control.py new file mode 100644 index 0000000..ba4f61a --- /dev/null +++ b/scripts/run_verifier_control.py @@ -0,0 +1,223 @@ +"""One synthetic, NON-CREDIT signed Mathlib control; no model/pilot dependency.""" + +from __future__ import annotations + +import argparse +import base64 +import hashlib +import json +import os +import platform +import sys +import time +import uuid +from pathlib import Path + +ROOT = Path(__file__).resolve().parents[1] +sys.path.insert(0, str(ROOT / "src")) + +from supernova_goal1.verifier_evidence import ( + HostVerifierSigner, + VerifierBinding, + VerifierEvidenceStore, + VerifierSandboxLauncher, + VerifierSupervisor, + canonical_bytes, +) + +IMAGE = "ghcr.io/kitahl/supernova-goal1-verifier@sha256:6e4008a00beebf5795e3afdc1affcfd549310d357a6662084450a534309b10ba" +THEOREM = "supernova_repair_nat_refl" +SOURCE = ( + b"import Mathlib\n\ntheorem supernova_repair_nat_refl (n : Nat) : n = n := by\n" +) +CANDIDATE = b" rfl\n" +WATCHDOG_SECONDS = 60 +PUBLICATION = ROOT / "goal1/CONFIRMATORY_VERIFIER_PUBLICATION.json" + + +def sha(raw: bytes) -> str: + return hashlib.sha256(raw).hexdigest() + + +def launcher() -> VerifierSandboxLauncher: + # Match the previous local replay exactly. Do not mutate the publication + # authority or pretend this diagnostic override is a scientific re-seal. + config = json.loads(PUBLICATION.read_bytes()) + if config["status"] != "PUBLISHED_IMMUTABLE": + raise ValueError("publication configuration is not immutable") + fields = ( + "container_user", + "memory_bytes", + "nano_cpus", + "pids_limit", + "max_output_bytes", + "tmpfs_size_bytes", + "toolchain_lock_sha256", + "project_dependency_lock_sha256", + "checker_configuration_sha256", + "immutable_inputs_sha256", + ) + return VerifierSandboxLauncher( + image_ref=IMAGE, + command=tuple(config["command"]), + image_environment=tuple(config["image_environment"]), + timeout_seconds=WATCHDOG_SECONDS, + **{key: config[key] for key in fields}, + ) + + +def control_manifest(sandbox: VerifierSandboxLauncher) -> dict: + return { + "schema": "supernova.verifier-control.v1", + "classification": "SYNTHETIC_NON_CREDIT_ENGINEERING_CONTROL", + "source_utf8": SOURCE.decode(), + "candidate_utf8": CANDIDATE.decode(), + "image_ref": IMAGE, + "watchdog_seconds_per_phase": WATCHDOG_SECONDS, + "sandbox_policy": sandbox.sandbox_policy, + "publication_config_sha256": sha(PUBLICATION.read_bytes()), + "publication_image_override": True, + "supervisor_sha256": sha( + (ROOT / "src/supernova_goal1/verifier_evidence.py").read_bytes() + ), + "runner_sha256": sha(Path(__file__).read_bytes()), + "model_calls": 0, + "countable_attempts": 0, + } + + +def binding_for( + run_id: str, manifest: dict, sandbox: VerifierSandboxLauncher +) -> VerifierBinding: + plan = sha(canonical_bytes(manifest)) + request = sha(canonical_bytes({"run_id": run_id, "manifest_sha256": plan})) + problem = "sha256:" + sha(SOURCE) + # These are explicit diagnostic identities, not fabricated scientific + # dispatch/manifest receipts. The experiment and run namespaces say so. + return VerifierBinding( + run_spec_id=plan, + run_id=run_id, + experiment_id="non-credit-verifier-control", + execution_authority_sha256=plan, + confirmatory_manifest_sha256=plan, + protocol_rules_sha256=plan, + protocol_dispatch_id="dispatch-" + request, + actual_dispatch_id=request, + dispatch_entry_sha256=request, + frozen_request_sha256=request, + normalized_request_sha256=request, + attempt_result_sha256=sha(CANDIDATE), + problem_id=problem, + problem_identity=problem, + arm_id="synthetic-control", + attempt_id=0, + candidate_id="sha256:" + sha(CANDIDATE), + candidate_source_sha256=sha(CANDIDATE), + theorem_statement_sha256=sha(SOURCE), + source_template_sha256=sha(SOURCE), + rendered_source_sha256=sha(SOURCE), + source_construction_sha256=sha(SOURCE), + theorem_target_set_sha256=sha(canonical_bytes([THEOREM])), + requested_runtime_sha256=sandbox.toolchain_lock_sha256, + actual_runtime_sha256=sandbox.toolchain_lock_sha256, + immutable_configuration_sha256=plan, + ) + + +def run(output: Path) -> dict: + output = output.resolve() + output.mkdir(parents=True, exist_ok=False) + report = { + "schema": "supernova.verifier-control-report.v1", + "status": "ERROR", + "countable_attempts": 0, + "model_calls": 0, + "host_platform": platform.platform(), + "host_python": platform.python_version(), + "github_sha": os.environ.get("GITHUB_SHA"), + "github_run_id": os.environ.get("GITHUB_RUN_ID"), + "internal_stage_timings": "NOT_EXPOSED_BY_UNMODIFIED_IMAGE", + "next_action": "STOP_AND_REVIEW_CONTROL_EVIDENCE", + } + started = time.monotonic_ns() + try: + sandbox = launcher() + manifest = control_manifest(sandbox) + report["manifest"] = manifest + run_id = "non-credit-control-" + uuid.uuid4().hex + binding = binding_for(run_id, manifest, sandbox) + signer = HostVerifierSigner( + issuer_id="non-credit-control-host", + signing_key_id=run_id + "-key", + private_key=os.urandom(32), + ) + report["run_id"] = run_id + report["public_key_b64"] = base64.b64encode(signer.public_key).decode("ascii") + report["signing_key_id"] = signer.signing_key_id + store = VerifierEvidenceStore( + output / "verifier-evidence.sqlite3", + verification_key=signer.public_key, + expected_signing_key_id=signer.signing_key_id, + expected_identity=sandbox.identity, + ) + record = VerifierSupervisor(sandbox, signer, store).run_and_record( + binding, + source=SOURCE, + candidate=CANDIDATE, + theorem_names=(THEOREM,), + ) + record.verify( + signer.public_key, + expected_signing_key_id=signer.signing_key_id, + expected_binding=binding, + expected_identity=sandbox.identity, + ) + persisted = store.read_complete((binding,)) + blobs = store.read_blobs(binding) + if len(persisted) != 1 or persisted[0] != record: + raise ValueError("signed record readback differs") + report["record_sha256"] = record.record_sha256 + report["signed_record"] = { + "body": record.body, + "signature_b64": record.signature_b64, + } + report["stdout_utf8"] = blobs.stdout.decode("utf-8", "replace") + report["stderr_utf8"] = blobs.stderr.decode("utf-8", "replace") + report["signature_and_store_readback"] = "PASS" + report["status"] = ( + "PASS" if record.body["observations"]["verdict"] == "VALID" else "NOT_READY" + ) + except Exception as exc: # noqa: BLE001 - persist a typed ERROR; never convert failure to readiness + report["error"] = {"type": type(exc).__name__, "message": str(exc)[:4000]} + finally: + report["host_elapsed_milliseconds"] = ( + time.monotonic_ns() - started + ) // 1_000_000 + report["report_sha256"] = sha(canonical_bytes(report)) + (output / "control-report.json").write_bytes(canonical_bytes(report) + b"\n") + return report + + +def main(argv: list[str] | None = None) -> int: + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("--output", type=Path, required=True) + args = parser.parse_args(argv) + report = run(args.output) + print( + json.dumps( + { + key: report[key] + for key in ( + "status", + "model_calls", + "countable_attempts", + "report_sha256", + ) + } + ) + ) + return 0 if report["status"] == "PASS" else 1 + + +if __name__ == "__main__": + raise SystemExit(main()) diff --git a/src/supernova_goal1/verifier_evidence.py b/src/supernova_goal1/verifier_evidence.py index c1cc6c8..27e5617 100644 --- a/src/supernova_goal1/verifier_evidence.py +++ b/src/supernova_goal1/verifier_evidence.py @@ -1426,11 +1426,15 @@ class _PhaseObservation: cause: TerminationCause | None security_snapshot_sha256: str | None elapsed_milliseconds: int + container_running: bool | None = None + container_status: str | None = None def measurements(self) -> dict[str, object]: return { "cause": None if self.cause is None else self.cause.value, "container_id": self.container_id, + "container_running": self.container_running, + "container_status": self.container_status, "exit_status": self.exit_status, "oom_killed": self.oom_killed, "request_sha256": self.request_sha256, @@ -1542,6 +1546,8 @@ def _run_container_phase( policy_violated = False cause: TerminationCause | None = None snapshot_sha: str | None = None + container_running: bool | None = None + container_status: str | None = None try: created = _invoke(_create_argv(launcher)) if created.returncode != 0: @@ -1585,9 +1591,19 @@ def _run_container_phase( state = _docker_object(container_id).get("State") or {} if type(state) is not dict: raise RuntimeError("docker state is unavailable") + container_running = ( + state.get("Running") if type(state.get("Running")) is bool else None + ) + container_status = ( + state.get("Status") if type(state.get("Status")) is str else None + ) + # Docker reports ExitCode=0 even while a process is running. + # Record an exit only when the host actually observed termination. exit_status = ( state.get("ExitCode") if type(state.get("ExitCode")) is int + and container_running is False + and container_status in {"exited", "dead"} else None ) oom_killed = state.get("OOMKilled") is True @@ -1656,6 +1672,8 @@ def _run_container_phase( elapsed_milliseconds=max( 0, (time.monotonic_ns() - monotonic_start) // 1_000_000 ), + container_running=container_running, + container_status=container_status, ) diff --git a/tests/test_evidence_bridge.py b/tests/test_evidence_bridge.py index 8dc2b8c..c3bd556 100644 --- a/tests/test_evidence_bridge.py +++ b/tests/test_evidence_bridge.py @@ -1294,7 +1294,8 @@ def docker_object(container_id: str) -> dict[str, object]: "Error": "", "ExitCode": 137 if oom_killed else phase_exit[phase], "OOMKilled": oom_killed, - "Status": "exited", + "Status": "running" if timeout_phase == phase_names[phase] else "exited", + "Running": timeout_phase == phase_names[phase], } } @@ -1539,6 +1540,21 @@ def test_two_phase_uncertainty_never_validates(self) -> None: self.assertEqual(VerifierVerdict.UNKNOWN.value, observed["verdict"]) self.assertEqual(expected_cause.value, observed["termination_cause"]) + def test_running_container_timeout_has_no_observed_exit(self) -> None: + for phase in ("elaborator", "checker"): + with self.subTest(phase=phase): + observed = self._mocked_supervisor_run( + timeout_phase=phase, name="running-" + phase + ).body["observations"] + self.assertEqual(observed["verdict"], "UNKNOWN") + self.assertEqual(observed["termination_cause"], "TIMEOUT") + self.assertIsNone(observed[phase + "_exit_status"]) + self.assertIsNone(observed[phase + "_signal"]) + last = observed["resource_measurements"]["phases"][-1] + self.assertIs(last["container_running"], True) + self.assertEqual(last["container_status"], "running") + self.assertTrue(observed["teardown_observed"]) + def test_heartbeat_exhaustion_is_signed_as_resource_unknown(self) -> None: observed = self._mocked_supervisor_run( elaborator_status=VerifierVerdict.UNKNOWN.value, diff --git a/tests/test_verifier_control.py b/tests/test_verifier_control.py new file mode 100644 index 0000000..de67e83 --- /dev/null +++ b/tests/test_verifier_control.py @@ -0,0 +1,152 @@ +"""Runner wiring tests. Mock verdicts here are not verification evidence.""" + +from __future__ import annotations + +import ast +import contextlib +import io +import json +import tempfile +import unittest +from pathlib import Path +from unittest.mock import MagicMock, patch + +from scripts import run_verifier_control as control + + +class VerifierControlTests(unittest.TestCase): + def test_exact_control_limits_and_binding(self): + sandbox = control.launcher() + manifest = control.control_manifest(sandbox) + binding = control.binding_for("unit-control", manifest, sandbox) + self.assertEqual(sandbox.timeout_seconds, 60) + self.assertEqual(sandbox.memory_bytes, 4 * 1024**3) + self.assertEqual(sandbox.nano_cpus, 2_000_000_000) + self.assertEqual(sandbox.container_user, "10001:10001") + self.assertEqual(sandbox.image_ref, control.IMAGE) + self.assertEqual( + control.SOURCE + control.CANDIDATE, + b"import Mathlib\n\ntheorem supernova_repair_nat_refl (n : Nat) : n = n := by\n rfl\n", + ) + self.assertEqual( + binding.candidate_source_sha256, control.sha(control.CANDIDATE) + ) + self.assertEqual( + binding.source_construction_sha256, control.sha(control.SOURCE) + ) + self.assertEqual( + binding.run_spec_id, control.sha(control.canonical_bytes(manifest)) + ) + self.assertNotEqual( + binding.actual_dispatch_id, + control.binding_for("other-run", manifest, sandbox).actual_dispatch_id, + ) + self.assertEqual(binding.arm_id, "synthetic-control") + self.assertTrue(manifest["publication_image_override"]) + + def test_no_model_or_pilot_import_or_launch_interface(self): + tree = ast.parse(Path(control.__file__).read_text(encoding="utf-8")) + imports = [ + n.module or "" for n in ast.walk(tree) if isinstance(n, ast.ImportFrom) + ] + self.assertFalse(any("pilot" in name or "model" in name for name in imports)) + with contextlib.redirect_stderr(io.StringIO()), self.assertRaises(SystemExit): + control.main(["--output", "unused", "--model", "anything"]) + + def test_error_persists_and_cli_fails(self): + with ( + tempfile.TemporaryDirectory() as root, + patch.object(control, "launcher", side_effect=RuntimeError("probe")), + ): + output = Path(root) / "control" + with contextlib.redirect_stdout(io.StringIO()): + self.assertEqual(control.main(["--output", str(output)]), 1) + report = json.loads((output / "control-report.json").read_bytes()) + self.assertEqual(report["status"], "ERROR") + self.assertEqual(report["error"]["type"], "RuntimeError") + self.assertEqual(report["model_calls"], 0) + digest = report.pop("report_sha256") + self.assertEqual(digest, control.sha(control.canonical_bytes(report))) + + def test_output_must_be_fresh(self): + with ( + tempfile.TemporaryDirectory() as root, + patch.object(control, "launcher") as launch, + ): + with self.assertRaises(FileExistsError): + control.run(Path(root)) + launch.assert_not_called() + + def test_one_call_and_readback_for_each_verdict(self): + for verdict, expected in [("VALID", 0), ("INVALID", 1), ("UNKNOWN", 1)]: + with self.subTest(verdict=verdict), tempfile.TemporaryDirectory() as root: + record = MagicMock() + record.body = {"observations": {"verdict": verdict}} + record.record_sha256 = "a" * 64 + record.signature_b64 = "UNIT_TEST_NOT_EVIDENCE" + store = MagicMock() + store.read_complete.return_value = (record,) + store.read_blobs.return_value.stdout = b"" + store.read_blobs.return_value.stderr = b"" + with ( + patch.object(control, "VerifierEvidenceStore", return_value=store), + patch.object(control, "VerifierSupervisor") as supervisor, + ): + supervisor.return_value.run_and_record.return_value = record + with contextlib.redirect_stdout(io.StringIO()): + self.assertEqual( + control.main(["--output", str(Path(root) / "out")]), + expected, + ) + supervisor.return_value.run_and_record.assert_called_once() + kwargs = supervisor.return_value.run_and_record.call_args.kwargs + self.assertEqual( + kwargs, + { + "source": control.SOURCE, + "candidate": control.CANDIDATE, + "theorem_names": (control.THEOREM,), + }, + ) + record.verify.assert_called_once() + store.read_complete.assert_called_once() + store.read_blobs.assert_called_once() + + def test_bad_signature_never_passes(self): + with ( + tempfile.TemporaryDirectory() as root, + patch.object(control, "VerifierEvidenceStore"), + patch.object(control, "VerifierSupervisor") as supervisor, + ): + record = supervisor.return_value.run_and_record.return_value + record.verify.side_effect = ValueError("invalid signature") + report = control.run(Path(root) / "out") + self.assertEqual(report["status"], "ERROR") + self.assertNotIn("signature_and_store_readback", report) + + def test_workflow_is_single_pull_only_branch_route(self): + raw = ( + control.ROOT / ".github/workflows/goal1_verifier_control.yml" + ).read_text() + self.assertIn("branches: [work/PM/G1V2-verifier-control]", raw) + self.assertNotIn("pull_request:", raw) + self.assertNotIn("workflow_dispatch:", raw) + self.assertIn("packages: read", raw) + self.assertIn("contents: read", raw) + for forbidden in ( + "packages: write", + "docker build", + "docker push", + "run_validation_pilot", + "run_repair", + "schedule:", + ): + self.assertNotIn(forbidden, raw) + self.assertEqual(raw.count("python scripts/run_verifier_control.py"), 1) + self.assertIn("if: always()", raw) + self.assertIn("persist-credentials: false", raw) + self.assertIn(control.IMAGE, raw) + + +if __name__ == "__main__": + unittest.main() From a8314b3bc14e15e23636636d6790605c462b65ae Mon Sep 17 00:00:00 2001 From: Kitahl <222771578+Kitahl@users.noreply.github.com> Date: Fri, 4 Sep 2026 22:18:28 -0700 Subject: [PATCH 2/2] Record signed VALID control and separate direct work from legacy tasks --- orchestration/BOARD.json | 18 +++++++++-- reports/G1_SIGNED_CONTROL_2026-09-05.md | 42 +++++++++++++++++++++++-- 2 files changed, 55 insertions(+), 5 deletions(-) diff --git a/orchestration/BOARD.json b/orchestration/BOARD.json index be94ed3..6aaef8f 100644 --- a/orchestration/BOARD.json +++ b/orchestration/BOARD.json @@ -3,11 +3,21 @@ "repository": "Kitahl/Supernova-V2", "tranche": "goal1-activation-parallel-v1", "integration_policy": "pull_request_only", - "tickets": [ + "direct_work_policy": "Direct implementation tickets are separate from the historical scheduler mapping; no scheduled task is created or required.", + "direct_work_tickets": [ { "id": "G1V2-verifier-control", "owner": "PM", - "status": "IN_PROGRESS", + "status": "EXECUTED_VALID_REVIEW_PENDING", + "evidence": { + "actions_run_id": 33946255412, + "pull_request": 97, + "head_sha": "411ac6189f9d0a78fdfa76d6b71b69b8699cbc84", + "verdict": "VALID", + "verifier_elapsed_milliseconds": 27122, + "independent_signature_and_blob_readback": "PASS", + "countable_attempts": 0 + }, "paths": [ "scripts/run_verifier_control.py", "tests/test_verifier_control.py", @@ -26,7 +36,9 @@ "Running containers never report an observed successful exit.", "Result is retained and reviewed before any subsequent execution." ] - }, + } + ], + "tickets": [ { "id": "G1-138", "owner": "MF01", diff --git a/reports/G1_SIGNED_CONTROL_2026-09-05.md b/reports/G1_SIGNED_CONTROL_2026-09-05.md index 88512ec..ce1c8c4 100644 --- a/reports/G1_SIGNED_CONTROL_2026-09-05.md +++ b/reports/G1_SIGNED_CONTROL_2026-09-05.md @@ -54,5 +54,43 @@ Independent final review and the real remote result must be recorded below. ## Result -Pending isolated remote run. Stop and inspect its signed evidence before any -model call, pilot, larger calibration or scientific authority change. +Local implementation commit: 411ac61 on work/PM/G1V2-verifier-control. +Its exact seven-file diff against 9a4d7b75d84050f48a47adfe42d47b7888364ed8 +contains no integration/pilot or runtime paths. Other uncommitted repairs remain +preserved and are not included in this commit. + +Independent review passed seven runner tests in 0.204 seconds and an additional +offline integration probe through the actual runner, supervisor, signer and +SQLite store with only Docker/security observations mocked. No actionable +finding. The review does not establish real container or Lean success. + +The user explicitly approved publication. Commit 411ac6189f9d0a78fdfa76d6b71b69b8699cbc84 +was pushed and its exact remote SHA read back. The isolated control ran once: +https://github.com/Kitahl/Supernova-V2/actions/runs/33946255412 +Job 101252775765 succeeded. Draft PR 97 is stacked against core-repairs, unmerged: +https://github.com/Kitahl/Supernova-V2/pull/97 + +Observed signed verdict: VALID / ACCEPTED. Verifier elapsed 27122 ms; +elaboration 13962 ms, checking 13119 ms. Both separate keyless containers were +observed exited with exit code 0 and teardown confirmed. The image and 60-second +per-phase policy were unchanged. Pull time (~95 seconds) is not verifier time. + +Artifact 9963442368 (581074 ZIP bytes), SHA256: +0d203a09016811a8d3ddde5428e4a4bbacf5964ae3307bfc443ff921252ab103. +Record SHA256: +fbc402f2a4d3e6bc3ccff85b94e472815dcf481ec73f84e297688f9377152088. +Independent local readback verified Ed25519 signature, exact input and run +binding, committed source hashes, one SQLite record, and all six stored blobs. +No model calls; no countable attempts. This establishes the exact control on +Actions, not prover capability or a scientific result. The local host differed; +the specific cause (paging, storage, or another host factor) remains unproven. + +General PR CI run 33946354453 ran 600 tests: three failures, two skips. All three +failures were the newly added PM ticket violating the legacy 15-role board +invariant. The correction separates direct_work_tickets from historical tickets; +the scheduler mapping and all its existing assertions are preserved. No merge +until corrected GitHub CI passes. Documentation/board-only pushes cannot retrigger +the image control because they do not match its path filter. + +Next: the existing bounded zero-model archive replay and product-transfer fixture +gates on Actions, under the same image. No image rebuild or larger model pilot.