{
  "schema": "islx.replacement-step7-receipt/v1",
  "completedAtIso": "2026-12-01T23:30:42.720Z",
  "elapsedMs": 5912.15,
  "inferenceReceiptMode": "REPLAYED_PRESERVED_LIVE_RECEIPT",
  "liveInferenceOriginalMeasuredAtIso": "2026-12-01T21:16:14.761Z",
  "liveInferenceEconomicsStatus": "MEASURED_LIVE_BILLED_TOKENS",
  "liveInferenceEconomicsCode": "MEASURED_LIVE_BILLED_TOKENS",
  "statisticalScopeAndLifecycleDisclosure": "Single paired Cold-vs-Warm experiment (n = 1 application pair on claude-opus-5-5, max-turns=1), establishing capability-transfer feasibility rather than a generalizable multi-application economic curve. Upstream App-1 law crystallization, Dual-SMT solver CPU time, and VIC/.cruxpkg registry promotion overhead are amortized prior lifecycle investments not included in the App-2 Warm API call.",
  "providerDiscovery": {
    "selectedProvider": "claude-cli",
    "authenticated": true,
    "checkedProviders": [
      "claude-cli"
    ],
    "claudeAuthStatus": {
      "loggedIn": true,
      "authMethod": "claude.ai",
      "apiProvider": "firstParty",
      "analyticsDisabled": false,
      "projectsDirectory": "<user-home>/.claude/projects",
      "configDirectory": "<user-home>/.claude",
      "loginExpiresAt": "2026-12-31T05:08:05.844Z",
      "consoleProfileSignInOffered": true,
      "email": "dymatikofficial@gmail.com",
      "orgId": "<redacted-id>",
      "orgName": "dymatikofficial@gmail.com's Organization",
      "subscriptionType": "pro",
      "storedClaudeAiLogin": true,
      "planTier": "pro"
    },
    "reproInstructions": "Pass `--fresh-live-inference` after `claude auth login` (or exporting `ANTHROPIC_API_KEY` / `OPENAI_API_KEY` / `GEMINI_API_KEY`) to execute fresh live billed inference sessions rather than replaying preserved receipts."
  },
  "application2": {
    "name": "AegisCompute — API Seat & Metered GPU Compute Escrow Platform",
    "domain": "GPU Cluster Compute Escrow, Runner Token Auth, RBAC & Researcher Seat Governance",
    "persistenceEngine": "/usr/bin/sqlite3 (WAL mode, 6 relational tables)",
    "sharedCapabilitiesReusedFromApp1Count": 6,
    "novelApp2CapabilitiesCount": 2,
    "totalCapabilitiesInApp2Registry": 7,
    "totalCruxPackagesVerified": 9
  },
  "sharedRegistryPromotion": {
    "app1OriginRepo": "https://github.com/LubomirGeorgiev/cloudflare-workers-nextjs-saas-template",
    "app1PinnedCommitSha": "c2d247dab0f13e852e7ed42a0eaf53bda5fbc449",
    "vicPromotedCount": 6,
    "cruxPkgVerifiedCount": 7,
    "arityBoundedVicFallbackCount": 1,
    "capabilities": [
      {
        "lawId": "credential-liveness",
        "exportFnName": "evaluate_credential_liveness",
        "arity": 4,
        "cruxPkgStatus": "ZERO_TRUST_IMPORT_VERIFIED_DUAL_SMT",
        "wasmHostImports": 0,
        "vicStatus": "PROMOTED_AND_IMPORTED_INTO_APP2_VIC",
        "vicKey": "saas-app1/credential-liveness@1.0.0",
        "lockComplianceVerdict": "PROVEN_LOCK_COMPLIANT_DUAL_SMT",
        "portableBundleSha256": "1ff380287ee9678b035fa3961fa2409020b0f17ee754dc628c11de913b7eb04e"
      },
      {
        "lawId": "entitlement-seat-limit",
        "exportFnName": "compute_effective_seat_limit",
        "arity": 6,
        "cruxPkgStatus": "ZERO_TRUST_IMPORT_VERIFIED_DUAL_SMT",
        "wasmHostImports": 0,
        "vicStatus": "PROMOTED_AND_IMPORTED_INTO_APP2_VIC",
        "vicKey": "saas-app1/entitlement-seat-limit@1.0.0",
        "lockComplianceVerdict": "PROVEN_LOCK_COMPLIANT_DUAL_SMT",
        "portableBundleSha256": "0f7bd5d161fc9b1abc2ccd732dd882a5c97c50ca9d88d8b20da445605c87ffc5"
      },
      {
        "lawId": "eu-withdrawal-refund",
        "exportFnName": "compute_eu_withdrawal_refund_cents",
        "arity": 11,
        "cruxPkgStatus": "ZERO_TRUST_IMPORT_VERIFIED_DUAL_SMT",
        "wasmHostImports": 0,
        "vicStatus": "EXCEEDS_VIC_FORGE_ARITY_8_SERVED_ZERO_TRUST_VIA_CRUXPKG_WASM",
        "vicKey": null,
        "lockComplianceVerdict": "PROVEN_LOCK_COMPLIANT_DUAL_SMT",
        "portableBundleSha256": null
      },
      {
        "lawId": "plan-card-action",
        "exportFnName": "select_plan_card_action_code",
        "arity": 8,
        "cruxPkgStatus": "ZERO_TRUST_IMPORT_VERIFIED_DUAL_SMT",
        "wasmHostImports": 0,
        "vicStatus": "PROMOTED_AND_IMPORTED_INTO_APP2_VIC",
        "vicKey": "saas-app1/plan-card-action@1.0.0",
        "lockComplianceVerdict": "PROVEN_LOCK_COMPLIANT_DUAL_SMT",
        "portableBundleSha256": "03fd522890030457f280d451fd6b3bf070b043f25e1c56bc31ec7dcb542d6779"
      },
      {
        "lawId": "rbac-scope-guard",
        "exportFnName": "evaluate_scope_grant",
        "arity": 8,
        "cruxPkgStatus": "ZERO_TRUST_IMPORT_VERIFIED_DUAL_SMT",
        "wasmHostImports": 0,
        "vicStatus": "PROMOTED_AND_IMPORTED_INTO_APP2_VIC",
        "vicKey": "saas-app1/rbac-scope-guard@1.0.0",
        "lockComplianceVerdict": "PROVEN_LOCK_COMPLIANT_DUAL_SMT",
        "portableBundleSha256": "a1871ba0031ab9308e44920f9090baf074008911921d24bf6450cb01426073e0"
      },
      {
        "lawId": "seat-admission-gate",
        "exportFnName": "evaluate_seat_admission",
        "arity": 6,
        "cruxPkgStatus": "ZERO_TRUST_IMPORT_VERIFIED_DUAL_SMT",
        "wasmHostImports": 0,
        "vicStatus": "PROMOTED_AND_IMPORTED_INTO_APP2_VIC",
        "vicKey": "saas-app1/seat-admission-gate@1.0.0",
        "lockComplianceVerdict": "PROVEN_LOCK_COMPLIANT_DUAL_SMT",
        "portableBundleSha256": "80a2801a121d04d111809ccc0c2e064696dc4e4f709c5a99399ee8b792b7e773"
      },
      {
        "lawId": "yearly-plan-pricing",
        "exportFnName": "compute_plan_charge_cents",
        "arity": 4,
        "cruxPkgStatus": "ZERO_TRUST_IMPORT_VERIFIED_DUAL_SMT",
        "wasmHostImports": 0,
        "vicStatus": "PROMOTED_AND_IMPORTED_INTO_APP2_VIC",
        "vicKey": "saas-app1/yearly-plan-pricing@1.0.0",
        "lockComplianceVerdict": "PROVEN_LOCK_COMPLIANT_DUAL_SMT",
        "portableBundleSha256": "8b4d4d6b2e65745cbecadf04c93c8c09c8d148f3298eabdb5530d335ee8593e3"
      }
    ]
  },
  "novelApp2Crystallization": {
    "promotedApp2VicLinearKernel": "aegis-app2/gpu-tier-hourly-rate@1.0.0",
    "qfNiaNotice": "Nonlinear variable*variable GPU minute*rate laws are proven in QF_NIA Dual-SMT (Z3 + cvc5) and executed Zero-Trust via 0-import .cruxpkg Wasm, while linear QF_LIA kernels also register in VIC.",
    "laws": [
      {
        "lawId": "compute-escrow-hold",
        "exportFnName": "compute_gpu_escrow_hold_cents",
        "logic": "QF_NIA",
        "wasmByteLength": 400,
        "wasmSha256": "1d580f3371d4550ce394027b8cee724e1ab16df789caaa1dce7bcb7cfc47da25",
        "lockPayloadSha256": "cb7fe43bec5925a9032b2a130083e6739216b306aba6974c218b381fa14c2394",
        "cruxPkgVerdict": "ZERO_TRUST_IMPORT_VERIFIED_DUAL_SMT"
      },
      {
        "lawId": "escrow-settlement-payout",
        "exportFnName": "settle_gpu_job_escrow_cents",
        "logic": "QF_NIA",
        "wasmByteLength": 246,
        "wasmSha256": "dfc43a415c306e453ff0e3d1fb329bb5a43086ff961c678fda1d328d107c863a",
        "lockPayloadSha256": "fac309d57179f60c2397235827379bd7ef88f11994ab6ed4d6a56ada026db37a",
        "cruxPkgVerdict": "ZERO_TRUST_IMPORT_VERIFIED_DUAL_SMT"
      }
    ],
    "unboundedEscrowConservationProof": {
      "ok": true,
      "verdict": "PROVEN_UNBOUNDED_INDUCTION_DUAL_SMT",
      "horizonGuarantee": "UNBOUNDED_ALL_STEPS_INFINITY",
      "invariantDescription": "walletCents + heldEscrowCents + settledRevenueCents == totalDepositedCents && all balances >= 0 (k -> infinity)",
      "baseCaseSmt2Sha256": "a28ee1d0ba180ac20fe10dfe2d09d7179f4f54300096b21ccff155c477acc973",
      "inductiveStepSmt2Sha256": "dc416c3308ad92406e26f1268269f6aab8413078c597281ee3a74c8672d9e09b",
      "elapsedMs": 19.82
    }
  },
  "coldVsWarmComparison": {
    "inferenceReceiptMode": "REPLAYED_PRESERVED_LIVE_RECEIPT",
    "liveInferenceOriginalMeasuredAtIso": "2026-12-01T21:16:14.761Z",
    "liveInferenceEconomicsStatus": "MEASURED_LIVE_BILLED_TOKENS",
    "liveInferenceEconomicsCode": "MEASURED_LIVE_BILLED_TOKENS",
    "scientificHonestyNotice": "Prompt byte size reduction is strictly separated from actual billed model API token usage (`fabricatedTokens: false`). Replaying a preserved live receipt (`REPLAYED_PRESERVED_LIVE_RECEIPT`) is explicitly distinguished from executing a fresh live model session (`EXECUTED_FRESH_LIVE_INFERENCE` via `--fresh-live-inference`).",
    "billedModelApiInferenceEconomics": {
      "status": "MEASURED_LIVE_BILLED_TOKENS",
      "code": "MEASURED_LIVE_BILLED_TOKENS",
      "providerUsed": "claude-cli",
      "modelUsed": "claude-opus-5-5",
      "coldUsage": {
        "input_tokens": 2,
        "output_tokens": 2416,
        "cache_creation_input_tokens": 2787,
        "cache_read_input_tokens": 0,
        "effectivePromptTokens": 2789,
        "effectiveTotalTokens": 5205,
        "totalCostUsd": 0.070624
      },
      "warmUsage": {
        "input_tokens": 2,
        "output_tokens": 436,
        "cache_creation_input_tokens": 1334,
        "cache_read_input_tokens": 0,
        "effectivePromptTokens": 1336,
        "effectiveTotalTokens": 1772,
        "totalCostUsd": 0.0194
      },
      "outputTokensSaved": 1980,
      "outputTokenReductionPct": 81.95,
      "effectivePromptTokensSaved": 1453,
      "effectivePromptTokenReductionPct": 52.1,
      "effectiveTotalTokensSaved": 3433,
      "effectiveTotalTokenReductionPct": 65.96,
      "costUsdSaved": 0.051224,
      "costReductionPct": 72.53,
      "fabricatedTokens": false
    },
    "coldBuild": {
      "strategy": "Synthesize all 8 App-2 functions from scratch via live frontier model",
      "realModelCliReceipt": {
        "armLabel": "cold-full-app2-synthesis",
        "providerId": "claude-cli",
        "invokedBinary": "<user-home>/.local/bin/claude",
        "isolatedCwdMode": true,
        "cliArgs": [
          "-p",
          "<cold-full-app2-synthesis-prompt:4522B>",
          "--tools",
          "",
          "--no-session-persistence",
          "--strict-mcp-config",
          "--setting-sources",
          "local",
          "--system-prompt",
          "<122B>",
          "--output-format",
          "json",
          "--max-turns",
          "1"
        ],
        "exitCode": 0,
        "status": "AUTHENTICATED_MODEL_RESPONSE",
        "authenticated": true,
        "sessionId": "<redacted-id>",
        "model": "claude-opus-5-5",
        "wallClockMs": 17642.35,
        "durationMsReported": 17085,
        "durationApiMs": 16926,
        "totalCostUsd": 0.070624,
        "usage": {
          "input_tokens": 2,
          "output_tokens": 2416,
          "cache_creation_input_tokens": 2787,
          "cache_read_input_tokens": 0,
          "effectivePromptTokens": 2789,
          "effectiveTotalTokens": 5205,
          "totalCostUsd": 0.070624
        },
        "fabricatedTokens": false,
        "promptPayloadStats": {
          "utf8Bytes": 4522,
          "lines": 47
        },
        "errorCode": null,
        "errorMessage": null,
        "resultPreview": "export function evaluate_credential_liveness(bannedAtSec: number, revokedAtSec: number, expiresAtSec: number, nowSec: number): number {\n  if (bannedAtSec > 0) return -1;\n  if (revokedAtSec > 0) return 0;\n  if (expiresAtSec === 0 || expiresAtSec > nowSec) return 1;\n  return 0;\n}\n\nexport function evaluate_scope_grant(actorBanned: number, callerHasScope: number, isAdminUser: number, isVerifiedClient:"
      },
      "sharedCapabilitiesReusedAtZeroTokens": 0,
      "acceptanceSuite": {
        "ok": true,
        "status": "COLD_LIVE_MODEL_PASSED_ALL",
        "passedTests": 20,
        "totalTests": 20,
        "elapsedMs": 333.47
      }
    },
    "warmBuild": {
      "strategy": "Import 6 App-1 capabilities at 0 inference tokens from VIC + .cruxpkg Wasm; invoke model only for 2 novel App-2 GPU escrow functions; verify via Dual-SMT and execute live",
      "warmNovelSourceStatus": "LIVE_MODEL_SYNTHESIZED_DUAL_SMT_PROVEN_AND_EXECUTED",
      "warmNovelDualSmtProofs": {
        "holdLockVerdict": "PROVEN_LOCK_COMPLIANT_DUAL_SMT",
        "holdSmt2Sha256": "a42c63751a607eb10c92ff4e2120d87e8129cb10a73fa065af33c401e9d12972",
        "settleLockVerdict": "PROVEN_LOCK_COMPLIANT_DUAL_SMT",
        "settleSmt2Sha256": "84d13985474d6f272e727fdc5085435e5c0f6234046475f911ff2241ca9aa73a"
      },
      "realModelCliReceipt": {
        "armLabel": "warm-novel-glue-only",
        "providerId": "claude-cli",
        "invokedBinary": "<user-home>/.local/bin/claude",
        "isolatedCwdMode": true,
        "cliArgs": [
          "-p",
          "<warm-novel-glue-only-prompt:1486B>",
          "--tools",
          "",
          "--no-session-persistence",
          "--strict-mcp-config",
          "--setting-sources",
          "local",
          "--system-prompt",
          "<122B>",
          "--output-format",
          "json",
          "--max-turns",
          "1"
        ],
        "exitCode": 0,
        "status": "AUTHENTICATED_MODEL_RESPONSE",
        "authenticated": true,
        "sessionId": "<redacted-id>",
        "model": "claude-opus-5-5",
        "wallClockMs": 4656.13,
        "durationMsReported": 3750,
        "durationApiMs": 3645,
        "totalCostUsd": 0.0194,
        "usage": {
          "input_tokens": 2,
          "output_tokens": 436,
          "cache_creation_input_tokens": 1334,
          "cache_read_input_tokens": 0,
          "effectivePromptTokens": 1336,
          "effectiveTotalTokens": 1772,
          "totalCostUsd": 0.0194
        },
        "fabricatedTokens": false,
        "promptPayloadStats": {
          "utf8Bytes": 1486,
          "lines": 17
        },
        "errorCode": null,
        "errorMessage": null,
        "resultPreview": "export function compute_gpu_escrow_hold_cents(gpuMinutes: number, ratePerHourCents: number, safetyMarginBps: number, spotDiscountBps: number): number {\n  if (gpuMinutes <= 0 || ratePerHourCents <= 0) return 0;\n  const baseCents = Math.floor((gpuMinutes * ratePerHourCents + 59) / 60);\n  const discountedCents = Math.floor((baseCents * (10000 - spotDiscountBps)) / 10000);\n  return Math.floor((discoun"
      },
      "sharedCapabilitiesReusedAtZeroTokens": 6,
      "sharedCapabilityInferenceTokensSpent": 0,
      "vicVsCruxPkgWasmParityChecksPassed": 25,
      "vicZeroTokenLedgerSummary": {
        "schema": "vic.net-inference-ledger/v1",
        "tasksEvaluated": 25,
        "modelCallsExecuted": 0,
        "zeroTokenExecutions": 25,
        "modelCallEliminationPct": 100,
        "baselineNativeTokens": 23750,
        "actualModelReasoningTokens": 0,
        "compilationOverheadTokens": 0,
        "resynthesisOverheadTokens": 0,
        "totalTokensIncludingAllOverhead": 0,
        "netTokensSaved": 23750,
        "netInferenceReductionPct": 100,
        "baselineUsd": 0.083125,
        "totalVicUsd": 0,
        "crossModelReuses": 25,
        "crossRepoReuses": 25,
        "invalidationsTriggered": 0,
        "declinedCompilations": 0,
        "staleExecutionsObserved": 0,
        "unauthorizedExecutionsObserved": 0,
        "byCapabilityClass": {
          "EXO_PROCEDURAL_QUERY": {
            "compiled": 0,
            "zeroTokenRuns": 0
          },
          "STAGED_REPO_ABILITY": {
            "compiled": 0,
            "zeroTokenRuns": 0
          },
          "PURE_COMPUTATIONAL_KERNEL": {
            "compiled": 1,
            "zeroTokenRuns": 25
          }
        },
        "byModelFamily": {
          "claude-zero-token-warm": {
            "tasks": 25,
            "modelCalls": 0,
            "zeroTokenRuns": 25,
            "totalTokensSpent": 0
          }
        }
      },
      "acceptanceSuite": {
        "ok": true,
        "passedTests": 20,
        "totalTests": 20,
        "elapsedMs": 289.39,
        "results": [
          {
            "testId": "A2-01",
            "description": "Live verified admin token authorizes cluster:drain admin scope",
            "passed": true,
            "error": null
          },
          {
            "testId": "A2-02",
            "description": "Banned privileged admin operator is immediately blocked fail-closed",
            "passed": true,
            "error": null
          },
          {
            "testId": "A2-03",
            "description": "Token rejects at exact expiration timestamp boundary (expiresAtSec == nowSec)",
            "passed": true,
            "error": null
          },
          {
            "testId": "A2-04",
            "description": "Token cannot escalate to ungranted billing:refund scope",
            "passed": true,
            "error": null
          },
          {
            "testId": "A2-05",
            "description": "Unverified OAuth DCR client blocked from admin cluster:drain scope",
            "passed": true,
            "error": null
          },
          {
            "testId": "A2-06",
            "description": "Workspace-bound runner key blocked from account-only scope",
            "passed": true,
            "error": null
          },
          {
            "testId": "A2-07",
            "description": "Revoked runner token fails authentication immediately",
            "passed": true,
            "error": null
          },
          {
            "testId": "A2-08",
            "description": "3-day webhook grace preserves Pro + 1 extra researcher seat (limit = 4)",
            "passed": true,
            "error": null
          },
          {
            "testId": "A2-09",
            "description": "Duplicate pending researcher email invitation is rejected",
            "passed": true,
            "error": null
          },
          {
            "testId": "A2-10",
            "description": "Non-owner caller and owner-role invitation are both rejected",
            "passed": true,
            "error": null
          },
          {
            "testId": "A2-11",
            "description": "Hard seat capacity ceiling blocks over-subscription once 4/4 seats filled",
            "passed": true,
            "error": null
          },
          {
            "testId": "A2-12",
            "description": "Reserved cluster plan quotes monthly vs 20%-discounted annual commitment",
            "passed": true,
            "error": null
          },
          {
            "testId": "A2-13",
            "description": "GPU escrow hold ceiling-prorates fractional hours with spot discount & safety margin",
            "passed": true,
            "error": null
          },
          {
            "testId": "A2-14",
            "description": "GPU job exceeding available escrow wallet fails closed without debiting SQLite",
            "passed": true,
            "error": null
          },
          {
            "testId": "A2-15",
            "description": "GPU job settlement charges actual usage (capped at hold) and refunds unused escrow",
            "passed": true,
            "error": null
          },
          {
            "testId": "A2-16",
            "description": "Cluster SLA breach waives 100% of job charge and restores full held escrow",
            "passed": true,
            "error": null
          },
          {
            "testId": "A2-17",
            "description": "Statutory 14-day withdrawal prorates consumed days and rejects post-14d claims",
            "passed": true,
            "error": null
          },
          {
            "testId": "A2-18",
            "description": "SQLite ledger state, invites, settled GPU jobs, and withdrawals survive process restart",
            "passed": true,
            "error": null
          },
          {
            "testId": "A2-19",
            "description": "Adversarial supply-chain gate blocks tampered .cruxpkg Wasm and host-import injection",
            "passed": true,
            "error": null
          },
          {
            "testId": "A2-20",
            "description": "Revoked Crux Lock certificate blocks downstream .cruxpkg capability import",
            "passed": true,
            "error": null
          }
        ]
      }
    },
    "measuredScopeReduction": {
      "metricKind": "DETERMINISTIC_PROMPT_SPECIFICATION_SURFACE_NOT_BILLED_API_TOKENS",
      "coldFunctionsRequiringModelSynthesis": 8,
      "warmFunctionsRequiringModelSynthesis": 2,
      "functionsEliminatedFromRepeatedInferencePct": 75,
      "coldPromptUtf8Bytes": 4522,
      "warmPromptUtf8Bytes": 1486,
      "promptByteReductionPct": 67.14,
      "liveInferenceIndependenceDemonstrated": true
    }
  }
}
