{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://developer.reits.tech/schemas/runner-factory-controller-disposable-host-live-evidence-collection-transaction-intent.v1.schema.json",
  "title": "Runner Factory Disposable-host Live-evidence Collection Transaction Intent",
  "type": "object",
  "additionalProperties": false,
  "required": ["schemaVersion", "status", "observedAt", "scope", "upstream", "operations", "factorSlots", "authorityTopology", "transactionGuardrails", "stateModel", "invariants", "productionPrerequisites", "selectedDenialTrace", "verification", "truth", "fixtureRegistry", "discovery"],
  "properties": {
    "schemaVersion": { "const": "developer.reits.tech/runner-factory-disposable-host-live-evidence-collection-transaction-intent-contract/v1" },
    "status": { "const": "DISPOSABLE_HOST_LIVE_EVIDENCE_COLLECTION_TRANSACTION_INTENT_IMPLEMENTED_NOT_CONFIGURED" },
    "observedAt": { "type": "string", "format": "date-time" },
    "scope": {
      "type": "object", "additionalProperties": false,
      "required": ["mode", "input", "output", "verdict", "realUserConfirmed", "liveEvidenceCollected", "liveQuoteRead", "budgetHeld", "hostClaimCreated", "hostContacted", "packageLoaded", "processSpawned", "shellSurface", "transactionAuthority", "launchAuthority", "billingAuthority", "promotionAuthority", "productionEntrypointWired"],
      "properties": {
        "mode": { "const": "FIXTURE_TRANSACTION_INTENT_ONLY_NO_LIVE_READ_NO_LAUNCH_NO_BILLING" },
        "input": { "const": "POSITIVELY_VERIFIED_TEST_ONLY_LIVE_EVIDENCE_COLLECTION_AUTHORIZATION_RECEIPT" },
        "output": { "const": "LIVE_COLLECTION_TRANSACTION_INTENT_PREPARED_TEST_ONLY" },
        "verdict": { "const": "REQUIRES_REAL_USER_SIGNATURE_AND_EXECUTION_TIME_REVALIDATION" },
        "realUserConfirmed": { "const": false }, "liveEvidenceCollected": { "const": false }, "liveQuoteRead": { "const": false }, "budgetHeld": { "const": false }, "hostClaimCreated": { "const": false }, "hostContacted": { "const": false }, "packageLoaded": { "const": false }, "processSpawned": { "const": false },
        "shellSurface": { "const": "NONE" }, "transactionAuthority": { "const": "NONE" }, "launchAuthority": { "const": "NONE" }, "billingAuthority": { "const": "NONE" }, "promotionAuthority": { "const": "NONE" }, "productionEntrypointWired": { "const": false }
      }
    },
    "upstream": {
      "type": "object", "additionalProperties": false,
      "required": ["schemaVersion", "status", "verdict", "authoritativeVerificationRequired", "positiveBooleanRequired"],
      "properties": { "schemaVersion": { "const": "developer.reits.tech/runner-factory-disposable-host-live-evidence-collection-authorization-receipt/v1" }, "status": { "const": "LIVE_EVIDENCE_COLLECTION_AUTHORIZATION_ENVELOPE_TEST_ONLY" }, "verdict": { "const": "REQUIRES_SEPARATE_USER_CONFIRMED_LIVE_COLLECTION_TRANSACTION" }, "authoritativeVerificationRequired": { "const": true }, "positiveBooleanRequired": { "const": true } }
    },
    "operations": {
      "type": "array", "minItems": 4, "maxItems": 4,
      "items": { "type": "object", "additionalProperties": false, "required": ["id", "input", "output", "sideEffect"], "properties": { "id": { "enum": ["prepare", "project", "verify", "dispose"] }, "input": { "type": "string" }, "output": { "type": "string" }, "sideEffect": { "const": "NONE" } } }
    },
    "factorSlots": {
      "type": "array", "minItems": 7, "maxItems": 7,
      "items": { "type": "object", "additionalProperties": false, "required": ["ordinal", "slot", "authority", "signerKeyId", "observedLive"], "properties": { "ordinal": { "type": "integer", "minimum": 1, "maximum": 7 }, "slot": { "enum": ["USER_CONFIRMATION_CHALLENGE", "FRESH_QUOTE_REVALIDATION", "DURABLE_BUDGET_HOLD_PROPOSAL", "IDEMPOTENT_HOST_CLAIM_PROPOSAL", "WATCHDOG_ARMING_PLAN", "INCIDENT_WINDOW_CONFIRMATION", "EXECUTION_TIME_POLICY_REVALIDATION"] }, "authority": { "type": "string" }, "signerKeyId": { "type": "string", "pattern": "^fixture-p256-" }, "observedLive": { "const": false } } }
    },
    "authorityTopology": { "type": "array", "minItems": 6, "maxItems": 6, "items": { "type": "object", "additionalProperties": false, "required": ["authority", "slots", "mayExecute"], "properties": { "authority": { "type": "string" }, "slots": { "type": "integer", "minimum": 1, "maximum": 2 }, "mayExecute": { "const": false } } } },
    "transactionGuardrails": {
      "type": "object", "additionalProperties": false,
      "required": ["requestValiditySeconds", "factorShapeValiditySeconds", "hostCountMaximum", "maximumMilliUsdCeiling", "quoteMaxAgeSeconds", "collectionWindowSeconds", "retirementSlaSeconds", "environment", "networkIngress", "networkEgress", "shellSurface", "confirmationMethod", "realUserSignatureObserved", "liveQuoteRead", "budgetHoldCreated", "hostClaimCreated", "productionConfigured"],
      "properties": { "requestValiditySeconds": { "const": 30 }, "factorShapeValiditySeconds": { "const": 3600 }, "hostCountMaximum": { "const": 1 }, "maximumMilliUsdCeiling": { "const": 500 }, "quoteMaxAgeSeconds": { "const": 300 }, "collectionWindowSeconds": { "const": 600 }, "retirementSlaSeconds": { "const": 120 }, "environment": { "const": "isolated-nonproduction-required-not-provisioned" }, "networkIngress": { "const": "NONE" }, "networkEgress": { "const": "DEFAULT_DENY_ALLOWLIST_REQUIRED" }, "shellSurface": { "const": "NONE" }, "confirmationMethod": { "const": "DETACHED_USER_SIGNATURE_REQUIRED_NOT_PRESENT" }, "realUserSignatureObserved": { "const": false }, "liveQuoteRead": { "const": false }, "budgetHoldCreated": { "const": false }, "hostClaimCreated": { "const": false }, "productionConfigured": { "const": false } }
    },
    "stateModel": { "type": "array", "minItems": 13, "maxItems": 13, "items": { "type": "string" } },
    "invariants": { "type": "array", "minItems": 70, "maxItems": 70, "items": { "type": "string" } },
    "productionPrerequisites": { "type": "array", "minItems": 14, "maxItems": 14, "items": { "type": "string" } },
    "selectedDenialTrace": { "type": "object", "additionalProperties": false, "required": ["fixtureId", "mutation", "expected", "reason"], "properties": { "fixtureId": { "const": "RFDHLECTI-78" }, "mutation": { "const": "SCOPE_USER_CONFIRMED" }, "expected": { "const": "DENY" }, "reason": { "type": "string" } } },
    "verification": {
      "type": "object", "additionalProperties": false,
      "required": ["status", "fixtures", "acceptedOutcomes", "deniedOutcomes", "upstreamReceiptsVerified", "factorSignaturesVerified", "intentReceiptsVerified", "projectedIntents", "disposedHandles", "realUserConfirmationsObserved", "livePriceQuotesObserved", "durableBudgetHoldsObserved", "durableClaimReservationsObserved", "productionHostRuns", "pricingReadsExecuted", "externalReadsExecuted", "externalWritesExecuted", "mutationsExecuted", "paidResourcesCreated"],
      "properties": { "status": { "const": "PASS_FIXTURE_ONLY" }, "fixtures": { "const": 96 }, "acceptedOutcomes": { "const": 12 }, "deniedOutcomes": { "const": 84 }, "upstreamReceiptsVerified": { "const": 73 }, "factorSignaturesVerified": { "const": 205 }, "intentReceiptsVerified": { "const": 3 }, "projectedIntents": { "const": 12 }, "disposedHandles": { "const": 2 }, "realUserConfirmationsObserved": { "const": 0 }, "livePriceQuotesObserved": { "const": 0 }, "durableBudgetHoldsObserved": { "const": 0 }, "durableClaimReservationsObserved": { "const": 0 }, "productionHostRuns": { "const": 0 }, "pricingReadsExecuted": { "const": 0 }, "externalReadsExecuted": { "const": 0 }, "externalWritesExecuted": { "const": 0 }, "mutationsExecuted": { "const": 0 }, "paidResourcesCreated": { "const": false } }
    },
    "truth": {
      "type": "object", "additionalProperties": false,
      "required": ["realUserConfirmationsObserved", "userCostAuthorizationsObserved", "livePriceQuotesObserved", "durableBudgetHoldsObserved", "durableClaimReservationsObserved", "productionDriversObserved", "watchdogArmingsObserved", "networkLeasesObserved", "imageAttestationsObserved", "retirementDrillsObserved", "incidentWindowsObserved", "policyRevalidationsObserved", "productionHostRuns", "productionHostClaims", "processesSpawned", "hostContacts", "packageLoads", "pricingReadsExecuted", "systemdUnitsInstalled", "controllerServicesStarted", "listenerStarts", "publicRoutes", "reverseProxyRoutes", "externalReadsExecuted", "externalWritesExecuted", "mutationsExecuted", "paidResourcesCreated", "deploymentPermitted"],
      "properties": { "realUserConfirmationsObserved": { "const": 0 }, "userCostAuthorizationsObserved": { "const": 0 }, "livePriceQuotesObserved": { "const": 0 }, "durableBudgetHoldsObserved": { "const": 0 }, "durableClaimReservationsObserved": { "const": 0 }, "productionDriversObserved": { "const": 0 }, "watchdogArmingsObserved": { "const": 0 }, "networkLeasesObserved": { "const": 0 }, "imageAttestationsObserved": { "const": 0 }, "retirementDrillsObserved": { "const": 0 }, "incidentWindowsObserved": { "const": 0 }, "policyRevalidationsObserved": { "const": 0 }, "productionHostRuns": { "const": 0 }, "productionHostClaims": { "const": 0 }, "processesSpawned": { "const": 0 }, "hostContacts": { "const": 0 }, "packageLoads": { "const": 0 }, "pricingReadsExecuted": { "const": 0 }, "systemdUnitsInstalled": { "const": 0 }, "controllerServicesStarted": { "const": 0 }, "listenerStarts": { "const": 0 }, "publicRoutes": { "const": 0 }, "reverseProxyRoutes": { "const": 0 }, "externalReadsExecuted": { "const": 0 }, "externalWritesExecuted": { "const": 0 }, "mutationsExecuted": { "const": 0 }, "paidResourcesCreated": { "const": false }, "deploymentPermitted": { "const": false } }
    },
    "fixtureRegistry": {
      "type": "object", "additionalProperties": false,
      "required": ["schemaVersion", "description", "mode", "cases", "networkRequestsExecuted", "pricingReadsExecuted", "userConfirmationsExecuted", "budgetHoldsExecuted", "hostClaimsExecuted", "hostLaunchesExecuted", "externalWritesExecuted", "paidResourcesCreated"],
      "properties": { "schemaVersion": { "const": "developer.reits.tech/runner-factory-disposable-host-live-evidence-collection-transaction-intent-fixtures/v1" }, "description": { "type": "string" }, "mode": { "const": "FIXTURE_TRANSACTION_INTENT_ONLY_NO_LIVE_READ_NO_LAUNCH_NO_BILLING" }, "cases": { "type": "array", "minItems": 96, "maxItems": 96, "items": { "type": "object", "additionalProperties": false, "required": ["id", "mutation", "expected"], "properties": { "id": { "type": "string", "pattern": "^RFDHLECTI-[0-9]{2}$" }, "mutation": { "type": "string" }, "expected": { "enum": ["ACCEPT", "DENY"] } } } }, "networkRequestsExecuted": { "const": 0 }, "pricingReadsExecuted": { "const": 0 }, "userConfirmationsExecuted": { "const": 0 }, "budgetHoldsExecuted": { "const": 0 }, "hostClaimsExecuted": { "const": 0 }, "hostLaunchesExecuted": { "const": 0 }, "externalWritesExecuted": { "const": 0 }, "paidResourcesCreated": { "const": false } }
    },
    "discovery": {
      "type": "object", "additionalProperties": false,
      "required": ["controller", "lifecycle", "upstream", "workbench", "schema"],
      "properties": { "controller": { "const": "/api/runner-factory/controller" }, "lifecycle": { "const": "/api/runner-factory" }, "upstream": { "const": "/api/runner-factory/controller/disposable-host-live-evidence-collection-authorization" }, "workbench": { "const": "/release-foundation#disposable-host-live-evidence-collection-transaction-intent" }, "schema": { "const": "/schemas/runner-factory-controller-disposable-host-live-evidence-collection-transaction-intent.v1.schema.json" } }
    }
  }
}
