From 05075bd4c5eca80ab4526eece5aefc90192cf429 Mon Sep 17 00:00:00 2001 From: mdheller <21163552+mdheller@users.noreply.github.com> Date: Thu, 7 May 2026 00:54:25 -0400 Subject: [PATCH 1/6] Add Superconscious runtime plan fixture --- ...superconscious-reasoning-runtime-plan.json | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 examples/superconscious-reasoning-runtime-plan.json diff --git a/examples/superconscious-reasoning-runtime-plan.json b/examples/superconscious-reasoning-runtime-plan.json new file mode 100644 index 0000000..10a15f4 --- /dev/null +++ b/examples/superconscious-reasoning-runtime-plan.json @@ -0,0 +1,33 @@ +{ + "apiVersion": "agentmachine.sourceos.dev/v1", + "kind": "SuperconsciousReasoningRuntimePlan", + "metadata": { + "name": "superconscious-m1-deterministic-runtime-plan", + "createdAt": "2026-05-06T00:00:00Z" + }, + "spec": { + "reasoningRunRef": "urn:srcos:reasoning-run:superconscious-demo", + "agentPodRef": "urn:srcos:agent-pod:superconscious-m1-deterministic", + "runtimeProfileRef": "urn:srcos:agent-machine-runtime-profile:deterministic-local", + "activationMode": "no-activation", + "providerClass": "none", + "modelResidencyRequired": false, + "cachePosture": "not-required", + "networkRequired": false, + "hostMutationRequired": false, + "toolExecutionRequired": false, + "storage": { + "scratch": "none", + "evidence": "local-artifact-directory", + "memory": "proposal-only" + }, + "activationDecision": { + "decision": "allowed-dry-run-plan", + "startsRuntime": false, + "loadsModel": false, + "opensSocket": false, + "changesHostState": false, + "evidenceRef": "urn:srcos:reasoning-event:superconscious-runtime-plan" + } + } +} From 7001e17ade869b4766c970c7d00dd016adc9aef8 Mon Sep 17 00:00:00 2001 From: mdheller <21163552+mdheller@users.noreply.github.com> Date: Thu, 7 May 2026 00:55:16 -0400 Subject: [PATCH 2/6] Add Superconscious runtime plan validator --- .../validate-superconscious-runtime-plan.py | 81 +++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 scripts/validate-superconscious-runtime-plan.py diff --git a/scripts/validate-superconscious-runtime-plan.py b/scripts/validate-superconscious-runtime-plan.py new file mode 100644 index 0000000..2703855 --- /dev/null +++ b/scripts/validate-superconscious-runtime-plan.py @@ -0,0 +1,81 @@ +#!/usr/bin/env python3 +"""Validate Superconscious runtime-plan fixture for Agent Machine. + +The M1 runtime plan is intentionally no-activation: it must not start a runtime, +load a model, open a socket, mutate host state, or require network access. +""" + +from __future__ import annotations + +import json +import sys +from pathlib import Path +from typing import Any + + +ROOT = Path(__file__).resolve().parents[1] +FIXTURE = ROOT / "examples" / "superconscious-reasoning-runtime-plan.json" + + +def fail(message: str) -> int: + print(f"ERROR: {message}", file=sys.stderr) + return 1 + + +def load(path: Path) -> dict[str, Any]: + return json.loads(path.read_text(encoding="utf-8")) + + +def validate(doc: dict[str, Any]) -> int: + if doc.get("apiVersion") != "agentmachine.sourceos.dev/v1": + return fail("apiVersion invalid") + if doc.get("kind") != "SuperconsciousReasoningRuntimePlan": + return fail("kind must be SuperconsciousReasoningRuntimePlan") + spec = doc.get("spec") or {} + for key in [ + "reasoningRunRef", + "agentPodRef", + "runtimeProfileRef", + "activationMode", + "providerClass", + "modelResidencyRequired", + "cachePosture", + "networkRequired", + "hostMutationRequired", + "toolExecutionRequired", + "storage", + "activationDecision", + ]: + if key not in spec: + return fail(f"missing spec.{key}") + if not str(spec["reasoningRunRef"]).startswith("urn:srcos:reasoning-run:"): + return fail("reasoningRunRef must be a SourceOS reasoning-run URN") + if spec["activationMode"] != "no-activation": + return fail("activationMode must be no-activation for M1") + if spec["providerClass"] != "none": + return fail("providerClass must be none for M1") + for key in ["modelResidencyRequired", "networkRequired", "hostMutationRequired", "toolExecutionRequired"]: + if spec[key] is not False: + return fail(f"{key} must be false for M1") + storage = spec["storage"] + if storage.get("memory") != "proposal-only": + return fail("storage.memory must be proposal-only") + decision = spec["activationDecision"] + expected_false = ["startsRuntime", "loadsModel", "opensSocket", "changesHostState"] + for key in expected_false: + if decision.get(key) is not False: + return fail(f"activationDecision.{key} must be false") + if decision.get("decision") != "allowed-dry-run-plan": + return fail("activationDecision.decision must be allowed-dry-run-plan") + if not str(decision.get("evidenceRef", "")).startswith("urn:srcos:reasoning-event:"): + return fail("activationDecision.evidenceRef must reference a SourceOS reasoning event") + print("OK: Superconscious runtime plan fixture validated") + return 0 + + +def main() -> int: + return validate(load(FIXTURE)) + + +if __name__ == "__main__": + raise SystemExit(main()) From fbec9a148f35e6dd23082bae5af75653eb68a921 Mon Sep 17 00:00:00 2001 From: mdheller <21163552+mdheller@users.noreply.github.com> Date: Thu, 7 May 2026 00:55:59 -0400 Subject: [PATCH 3/6] Wire Superconscious runtime plan validation into Makefile --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index dd6c1f9..60640bb 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: validate validate-json validate-yaml validate-quadlet validate-render validate-evidence validate-governance validate-activation validate-supply-chain validate-release-bundle validate-sourceos-projections validate-package validate-cli validate-formula doctor probe +.PHONY: validate validate-json validate-yaml validate-quadlet validate-render validate-evidence validate-governance validate-activation validate-supply-chain validate-release-bundle validate-sourceos-projections validate-superconscious-runtime-plan validate-package validate-cli validate-formula doctor probe PYTHON ?= python3 RUBY ?= ruby @@ -20,7 +20,7 @@ DECIDED_AT := 2026-05-04T12:51:00Z PYCLI := PYTHONPATH=src $(PYTHON) -m agent_machine.cli PYMOD := PYTHONPATH=src $(PYTHON) -m -validate: validate-json validate-yaml validate-quadlet validate-render validate-evidence validate-governance validate-activation validate-supply-chain validate-release-bundle validate-sourceos-projections validate-package validate-cli validate-formula +validate: validate-json validate-yaml validate-quadlet validate-render validate-evidence validate-governance validate-activation validate-supply-chain validate-release-bundle validate-sourceos-projections validate-superconscious-runtime-plan validate-package validate-cli validate-formula validate-json: $(PYTHON) scripts/validate-json.py @@ -69,6 +69,9 @@ validate-release-bundle: validate-sourceos-projections: $(PYTHON) scripts/validate-sourceos-projection-fixtures.py +validate-superconscious-runtime-plan: + $(PYTHON) scripts/validate-superconscious-runtime-plan.py + validate-package: $(PYTHON) scripts/validate-package.py From 9b3af29fa6b956e0c1b420dab8b0f8fc48d3d6a9 Mon Sep 17 00:00:00 2001 From: mdheller <21163552+mdheller@users.noreply.github.com> Date: Thu, 7 May 2026 01:16:26 -0400 Subject: [PATCH 4/6] Move Superconscious runtime plan fixture outside schema-scanned examples --- .../reasoning-runtime-plan.json | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 fixtures/superconscious/reasoning-runtime-plan.json diff --git a/fixtures/superconscious/reasoning-runtime-plan.json b/fixtures/superconscious/reasoning-runtime-plan.json new file mode 100644 index 0000000..10a15f4 --- /dev/null +++ b/fixtures/superconscious/reasoning-runtime-plan.json @@ -0,0 +1,33 @@ +{ + "apiVersion": "agentmachine.sourceos.dev/v1", + "kind": "SuperconsciousReasoningRuntimePlan", + "metadata": { + "name": "superconscious-m1-deterministic-runtime-plan", + "createdAt": "2026-05-06T00:00:00Z" + }, + "spec": { + "reasoningRunRef": "urn:srcos:reasoning-run:superconscious-demo", + "agentPodRef": "urn:srcos:agent-pod:superconscious-m1-deterministic", + "runtimeProfileRef": "urn:srcos:agent-machine-runtime-profile:deterministic-local", + "activationMode": "no-activation", + "providerClass": "none", + "modelResidencyRequired": false, + "cachePosture": "not-required", + "networkRequired": false, + "hostMutationRequired": false, + "toolExecutionRequired": false, + "storage": { + "scratch": "none", + "evidence": "local-artifact-directory", + "memory": "proposal-only" + }, + "activationDecision": { + "decision": "allowed-dry-run-plan", + "startsRuntime": false, + "loadsModel": false, + "opensSocket": false, + "changesHostState": false, + "evidenceRef": "urn:srcos:reasoning-event:superconscious-runtime-plan" + } + } +} From a99b4d9e277b32e9d62aae4e2cce8a2bde791f20 Mon Sep 17 00:00:00 2001 From: mdheller <21163552+mdheller@users.noreply.github.com> Date: Thu, 7 May 2026 01:21:25 -0400 Subject: [PATCH 5/6] Point Superconscious runtime validator at fixture directory --- scripts/validate-superconscious-runtime-plan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/validate-superconscious-runtime-plan.py b/scripts/validate-superconscious-runtime-plan.py index 2703855..6e13500 100644 --- a/scripts/validate-superconscious-runtime-plan.py +++ b/scripts/validate-superconscious-runtime-plan.py @@ -14,7 +14,7 @@ ROOT = Path(__file__).resolve().parents[1] -FIXTURE = ROOT / "examples" / "superconscious-reasoning-runtime-plan.json" +FIXTURE = ROOT / "fixtures" / "superconscious" / "reasoning-runtime-plan.json" def fail(message: str) -> int: From 76bf1cd875b8a47f1c8e4f96e7caa945eadf9486 Mon Sep 17 00:00:00 2001 From: mdheller <21163552+mdheller@users.noreply.github.com> Date: Thu, 7 May 2026 01:24:50 -0400 Subject: [PATCH 6/6] Remove Superconscious runtime plan from schema-scanned examples --- ...superconscious-reasoning-runtime-plan.json | 33 ------------------- 1 file changed, 33 deletions(-) delete mode 100644 examples/superconscious-reasoning-runtime-plan.json diff --git a/examples/superconscious-reasoning-runtime-plan.json b/examples/superconscious-reasoning-runtime-plan.json deleted file mode 100644 index 10a15f4..0000000 --- a/examples/superconscious-reasoning-runtime-plan.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "apiVersion": "agentmachine.sourceos.dev/v1", - "kind": "SuperconsciousReasoningRuntimePlan", - "metadata": { - "name": "superconscious-m1-deterministic-runtime-plan", - "createdAt": "2026-05-06T00:00:00Z" - }, - "spec": { - "reasoningRunRef": "urn:srcos:reasoning-run:superconscious-demo", - "agentPodRef": "urn:srcos:agent-pod:superconscious-m1-deterministic", - "runtimeProfileRef": "urn:srcos:agent-machine-runtime-profile:deterministic-local", - "activationMode": "no-activation", - "providerClass": "none", - "modelResidencyRequired": false, - "cachePosture": "not-required", - "networkRequired": false, - "hostMutationRequired": false, - "toolExecutionRequired": false, - "storage": { - "scratch": "none", - "evidence": "local-artifact-directory", - "memory": "proposal-only" - }, - "activationDecision": { - "decision": "allowed-dry-run-plan", - "startsRuntime": false, - "loadsModel": false, - "opensSocket": false, - "changesHostState": false, - "evidenceRef": "urn:srcos:reasoning-event:superconscious-runtime-plan" - } - } -}