{
  "schema": "cain42.sovereign.evo02.traceability.v1",
  "chain": "THREAT -> REQUIREMENT -> INVARIANT -> IMPLEMENTATION -> TEST -> RESULT -> EVIDENCE -> RISK -> DECISION",
  "rows": [
    {
      "invariant": "I11,I12 (operator allowlist precedence)",
      "requirement": "a capability token never widens the operator allowlist",
      "implementation": "cain/mcp_proxy.py token branch: _evaluate_deterministic_baseline before nonce consumption (eaf8d4fa)",
      "positive_test": "tests/test_sovereign_e2_token_precedence_side_effects.py::test_http_positive_control_allowlisted_token_executes_once",
      "negative_test": "tests/test_sovereign_e2_token_precedence_side_effects.py::test_http_token_for_tool_outside_allowlist_never_executes, ::test_stdio_token_outside_allowlist_never_executes",
      "counterexample_searched": true,
      "solver_result": "E2 UNSAT; E1 SAT; BEFORE SAT (token_holder_executes_tool_outside_operator_allowlist)",
      "production": "NOT deployed (live runs 3eff02c2)",
      "release_decision": "PARTIAL"
    },
    {
      "invariant": "I11 (mandatory approval)",
      "requirement": "a token cannot satisfy REQUIRE_APPROVAL",
      "implementation": "same (risk floor -> REQUIRE_APPROVAL)",
      "positive_test": "tests/test_mcp_proxy_parameter_binding.py::test_matching_parameters_at_execution_is_allowed (low-risk tool)",
      "negative_test": "tests/test_sovereign_e2_token_precedence_side_effects.py::test_http_token_cannot_skip_mandatory_approval, ::test_stdio_token_cannot_skip_mandatory_approval",
      "counterexample_searched": true,
      "solver_result": "E2 UNSAT; E1/BEFORE SAT",
      "production": "NOT deployed",
      "release_decision": "PARTIAL"
    },
    {
      "invariant": "I1,I12 (containment)",
      "requirement": "contained agents never execute, on every transport",
      "implementation": "token branch containment check (3eff02c2) + baseline",
      "positive_test": "tests/test_sovereign_e2_token_precedence_side_effects.py::test_stdio_positive_control_allowlisted_token_executes_once",
      "negative_test": "tests/test_sovereign_e2_token_precedence_side_effects.py::test_http_quarantined_token_holder_never_executes, ::test_stdio_quarantined_token_holder_never_executes, ::test_http_unreadable_containment_state_never_executes",
      "counterexample_searched": true,
      "solver_result": "E2/E1 UNSAT; BEFORE SAT",
      "production": "deployed (3eff02c2); not probed live",
      "release_decision": "PASS (application level)"
    },
    {
      "invariant": "I2,I3,I4,I5,I6,I13",
      "requirement": "no cross-tool/tenant/caller/argument use; bad credentials deny",
      "implementation": "token signature, registered principal, tenant, action/resource, action_hash checks",
      "positive_test": "tests/test_sovereign_e2_token_precedence_side_effects.py::test_http_positive_control_allowlisted_token_executes_once",
      "negative_test": "tests/test_sovereign_e2_token_precedence_side_effects.py::test_http_bad_credentials_never_execute[expired|foreign_key|other_tenant|other_principal|changed_args|other_tool|malformed|not_object], ::test_http_revoked_identity_never_executes",
      "counterexample_searched": true,
      "solver_result": "UNSAT in all versions",
      "production": "deployed",
      "release_decision": "PASS (application level)"
    },
    {
      "invariant": "I10,I14",
      "requirement": "single use under concurrency and retries",
      "implementation": "_consume_capability_nonce (atomic) + JIT verify_and_consume",
      "positive_test": "tests/test_sovereign_e2_token_precedence_side_effects.py::test_stdio_replayed_token_executes_once",
      "negative_test": "tests/test_sovereign_e2_token_precedence_side_effects.py::test_http_concurrent_use_of_one_token_executes_once (12 threads -> 1 execution)",
      "counterexample_searched": true,
      "solver_result": "E2 UNSAT (same_token_executes_twice) under A3 one store per process",
      "production": "per process only (T-S46-06)",
      "release_decision": "PARTIAL"
    },
    {
      "invariant": "route consistency",
      "requirement": "HTTP and stdio enforce the same decision before execution",
      "implementation": "both call process_incoming_request + consume_jit_capability",
      "positive_test": "both positive controls",
      "negative_test": "paired HTTP/stdio negative tests above",
      "counterexample_searched": true,
      "solver_result": "UNSAT by construction of A8 (the evidence is the code path + paired tests, not the solver)",
      "production": "deployed transports",
      "release_decision": "PASS"
    },
    {
      "invariant": "kernel layer",
      "requirement": "protected OS operations are blocked below the application",
      "implementation": "stdio: seccomp EPERM list only; hosted: none",
      "positive_test": "tests/test_sovereign_e2_stdio_seccomp_reality.py (setuid/chroot/bpf/ptrace EPERM)",
      "negative_test": "same test: exec/file/unlink/TCP succeed",
      "counterexample_searched": true,
      "solver_result": "SAT (tool_server_performs_unauthorized_exec_file_or_network_op) -- reported, not hidden",
      "production": "no kernel enforcement on the hosted path",
      "release_decision": "BLOCKED"
    },
    {
      "invariant": "I15 + evidence isolation",
      "requirement": "the suite never writes production evidence; CI fails on skips/missing suites",
      "implementation": "scripts/ci/run_authorization_suite.py canaries; tests/test_sovereign_e2_suite_isolation.py",
      "positive_test": "runner local + clean checkout: 264/263 passed",
      "negative_test": "runner --self-test (detects a canary write)",
      "counterexample_searched": false,
      "solver_result": "n/a",
      "production": "no CI service has run it",
      "release_decision": "PARTIAL"
    }
  ]
}