Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.PHONY: validate test validate-agent-cycle-health validate-authority-dependency-evidence validate-prometheus-sr validate-reasoning-failure-traces validate-governance-context validate-lattice-data-governai-execution-refs validate-lattice-runtime-profile-refs validate-network-native-assistant-evidence validate-guardrail-evidence-artifacts validate-stop-gate-evaluator validate-guarded-workcell-artifact validate-guarded-workcell-executor validate-guarded-invocation-artifact validate-guarded-invocation validate-agentic-pr-work-order validate-semantic-enterprise-agent-boundary validate-ops-history-contracts validate-action-contracts validate-agent-operation-contract validate-superconscious-reasoning-import validate-agent-harness-runtime-contracts validate-bounded-action-loop agentplane-evidence-receipt-composition-tier2-binding-ci lawful-learning-phase9-contract-ci validate-evidence-receipt-binding validate-semantic-activation-receipt validate-governed-run-contract validate-preflight-receipt validate-attempt-admission-receipt validate-verification-execution-receipt validate-synthetic-verification-receipt validate-governed-runner-v0-2-contract-chain validate-budget-settlement-receipt validate-rollback-receipts validate-run-dossier validate-governed-runner-readonly validate-workroom-context-evidence validate-wallguard-collaboration-admission validate-prophet-mesh-agentplane-adapter
.PHONY: validate test validate-agent-cycle-health validate-authority-dependency-evidence validate-prometheus-sr validate-reasoning-failure-traces validate-governance-context validate-lattice-data-governai-execution-refs validate-lattice-runtime-profile-refs validate-network-native-assistant-evidence validate-guardrail-evidence-artifacts validate-stop-gate-evaluator validate-guarded-workcell-artifact validate-guarded-workcell-executor validate-guarded-invocation-artifact validate-guarded-invocation validate-agentic-pr-work-order validate-semantic-enterprise-agent-boundary validate-ops-history-contracts validate-action-contracts validate-agent-operation-contract validate-superconscious-reasoning-import validate-agent-harness-runtime-contracts validate-bounded-action-loop agentplane-evidence-receipt-composition-tier2-binding-ci lawful-learning-phase9-contract-ci validate-evidence-receipt-binding validate-semantic-activation-receipt validate-governed-run-contract validate-preflight-receipt validate-attempt-admission-receipt validate-verification-execution-receipt validate-synthetic-verification-receipt validate-governed-runner-v0-2-contract-chain validate-budget-settlement-receipt validate-rollback-receipts validate-run-dossier validate-governed-runner-readonly validate-workroom-context-evidence validate-wallguard-collaboration-admission validate-prophet-mesh-agentplane-adapter validate-runtime-sandbox-run

validate: validate-agent-cycle-health validate-authority-dependency-evidence validate-prometheus-sr validate-reasoning-failure-traces validate-governance-context validate-lattice-data-governai-execution-refs validate-lattice-runtime-profile-refs validate-network-native-assistant-evidence validate-guardrail-evidence-artifacts validate-stop-gate-evaluator validate-guarded-workcell-artifact validate-guarded-workcell-executor validate-guarded-invocation-artifact validate-guarded-invocation validate-agentic-pr-work-order validate-semantic-enterprise-agent-boundary validate-ops-history-contracts validate-action-contracts validate-agent-operation-contract validate-superconscious-reasoning-import validate-agent-harness-runtime-contracts validate-bounded-action-loop agentplane-evidence-receipt-composition-tier2-binding-ci lawful-learning-phase9-contract-ci validate-evidence-receipt-binding validate-semantic-activation-receipt validate-governed-run-contract validate-preflight-receipt validate-attempt-admission-receipt validate-verification-execution-receipt validate-synthetic-verification-receipt validate-governed-runner-v0-2-contract-chain validate-budget-settlement-receipt validate-rollback-receipts validate-run-dossier validate-governed-runner-readonly validate-workroom-context-evidence validate-wallguard-collaboration-admission validate-prophet-mesh-agentplane-adapter
validate: validate-agent-cycle-health validate-authority-dependency-evidence validate-prometheus-sr validate-reasoning-failure-traces validate-governance-context validate-lattice-data-governai-execution-refs validate-lattice-runtime-profile-refs validate-network-native-assistant-evidence validate-guardrail-evidence-artifacts validate-stop-gate-evaluator validate-guarded-workcell-artifact validate-guarded-workcell-executor validate-guarded-invocation-artifact validate-guarded-invocation validate-agentic-pr-work-order validate-semantic-enterprise-agent-boundary validate-ops-history-contracts validate-action-contracts validate-agent-operation-contract validate-superconscious-reasoning-import validate-agent-harness-runtime-contracts validate-bounded-action-loop agentplane-evidence-receipt-composition-tier2-binding-ci lawful-learning-phase9-contract-ci validate-evidence-receipt-binding validate-semantic-activation-receipt validate-governed-run-contract validate-preflight-receipt validate-attempt-admission-receipt validate-verification-execution-receipt validate-synthetic-verification-receipt validate-governed-runner-v0-2-contract-chain validate-budget-settlement-receipt validate-rollback-receipts validate-run-dossier validate-governed-runner-readonly validate-workroom-context-evidence validate-wallguard-collaboration-admission validate-prophet-mesh-agentplane-adapter validate-runtime-sandbox-run
python3 tools/validate_execution_timing.py

validate-governance-context:
Expand Down Expand Up @@ -248,6 +248,9 @@ validate-prophet-mesh-agentplane-adapter:
python3 -m json.tool contracts/prophet-mesh/prophet-mesh-agentplane-adapter.v0.1.json >/dev/null
python3 tools/validate_prophet_mesh_agentplane_adapter.py

validate-runtime-sandbox-run:
python3 tools/validate_runtime_sandbox_run.py

validate-agent-cycle-health:
python3 tools/validate_agent_cycle_health.py

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"schemaVersion": "0.1.0",
"runtimeRunId": "agentplane:runtime-sandbox-run:teardown:missing-ev-example",
"requestRef": "environment:validate-change-v2-request:scope-d-missing-ev",
"executorPlane": "AgentPlane",
"executionMode": "runtime_contract",
"runtimeParityLevel": "runtime_observed",
"runStatus": "runtime_teardown_complete",
"environmentRef": "environment://runtime/scope-d-missing-ev/teardown",
"baselineRef": "workspace://scope-d/main",
"changedServiceRefs": [
"service://scope-d/api"
],
"dependencyGraphRef": "dependency-graph://runtime/scope-d-missing-ev/teardown",
"routingRef": "routing://runtime/scope-d-missing-ev/teardown",
"isolationRefs": {
"network": "isolation://runtime/scope-d-missing-ev/network/teardown",
"async": "isolation://runtime/scope-d-missing-ev/async/teardown",
"stateful": "isolation://runtime/scope-d-missing-ev/stateful/teardown"
},
"evidenceRefs": [],
"receiptRefs": [],
"failureCodes": [],
"teardownState": "teardown_complete",
"leakCheckRef": "leak-check://runtime/scope-d-missing-ev/teardown-complete",
"issuedAt": "2026-06-11T14:30:00Z",
"nonClaims": [
"Missing evidence refs is the invalid condition under test."
]
}
36 changes: 36 additions & 0 deletions tests/fixtures/sandbox/runtime-sandbox-run.teardown.valid.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"schemaVersion": "0.1.0",
"runtimeRunId": "agentplane:runtime-sandbox-run:teardown:scope-d-example",
"requestRef": "environment:validate-change-v2-request:scope-d-example",
"executorPlane": "AgentPlane",
"executionMode": "runtime_contract",
"runtimeParityLevel": "runtime_observed",
"runStatus": "runtime_teardown_complete",
"environmentRef": "environment://runtime/scope-d-example/teardown",
"baselineRef": "workspace://scope-d/main",
"changedServiceRefs": [
"service://scope-d/api"
],
"dependencyGraphRef": "dependency-graph://runtime/scope-d-example/teardown",
"routingRef": "routing://runtime/scope-d-example/teardown",
"isolationRefs": {
"network": "isolation://runtime/scope-d-example/network/teardown",
"async": "isolation://runtime/scope-d-example/async/teardown",
"stateful": "isolation://runtime/scope-d-example/stateful/teardown"
},
"evidenceRefs": [
"evidence://agentplane/runtime-sandbox-run/scope-d-example/teardown"
],
"receiptRefs": [
"receipt://devsecops-workroom/sandbox-evidence/scope-d-example/teardown-001"
],
"failureCodes": [],
"teardownState": "teardown_complete",
"leakCheckRef": "leak-check://runtime/scope-d-example/teardown-complete",
"issuedAt": "2026-06-11T14:00:00Z",
"nonClaims": [
"Teardown complete does not certify full Signadot runtime parity.",
"Teardown complete does not imply leak-free outcome without inspecting leakCheckRef.",
"Teardown complete does not authorize future re-use of the same environment identity."
]
}
23 changes: 19 additions & 4 deletions tools/validate_runtime_sandbox_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@
from typing import Any

ROOT = Path(__file__).resolve().parents[1]
SANDBOX = ROOT / "tests" / "fixtures" / "sandbox"
VALID_FIXTURES = [
ROOT / "tests" / "fixtures" / "sandbox" / "runtime-sandbox-run.requested.valid.json",
ROOT / "tests" / "fixtures" / "sandbox" / "runtime-sandbox-run.allocated.valid.json",
ROOT / "tests" / "fixtures" / "sandbox" / "runtime-sandbox-run.failed.valid.json",
SANDBOX / "runtime-sandbox-run.requested.valid.json",
SANDBOX / "runtime-sandbox-run.allocated.valid.json",
SANDBOX / "runtime-sandbox-run.failed.valid.json",
SANDBOX / "runtime-sandbox-run.shared-receipt.valid.json",
SANDBOX / "runtime-sandbox-run.teardown.valid.json",
]
INVALID_FIXTURES = [
ROOT / "tests" / "fixtures" / "sandbox" / "runtime-sandbox-run.allocated.missing-leakcheck.invalid.json",
SANDBOX / "runtime-sandbox-run.allocated.missing-leakcheck.invalid.json",
SANDBOX / "runtime-sandbox-run.teardown.missing-evidence.invalid.json",
]
STATUSES = {"runtime_requested", "runtime_allocated", "runtime_failed", "runtime_teardown_complete"}
PARITY_LEVELS = {"contract_only", "runtime_observed"}
Expand Down Expand Up @@ -112,6 +116,17 @@ def validate(data: dict[str, Any]) -> list[str]:
problems.append("runtime_failed requires runtime_allocation_failed")
if data.get("teardownState") != "teardown_failed":
problems.append("runtime_failed teardownState must be teardown_failed")
if status == "runtime_teardown_complete":
if parity != "runtime_observed":
problems.append("runtime_teardown_complete must be runtime_observed")
if not evidence_refs:
problems.append("runtime_teardown_complete requires evidence refs")
if not receipt_refs:
problems.append("runtime_teardown_complete requires receipt refs")
if failure_codes:
problems.append("runtime_teardown_complete must not have failure codes")
if data.get("teardownState") != "teardown_complete":
problems.append("runtime_teardown_complete teardownState must be teardown_complete")

return problems

Expand Down
Loading