Preset execution surface

Run the preset against a seed, payload, and render snapshot before buyout.

This surface projects the selected preset into an execution manifest: representative source file, extracted code lines, derived data series, matrix state, graph nodes, and an execution hash that can flow into display, composer, and delivery.

Execution preview
Seeded composer
Open raw preview
Execution manifest
hash47c79f0931664ccc
state29b05ffed4be0364
fidelity0.67
source.ts
{
  "item": {
    "id": "factory-payments-orchestration",
    "title": "Factory payments orchestration",
    "type": "platform",
    "family": "factory payments",
    "summary": "Stripe, crypto bridge, contracts, and payment orchestration as product delivery and subscription infrastructure.",
    "sourcePath": "/rhiz/factory/src/lib/payments/orchestrator.ts",
    "docPath": "/rhiz/factory/src/lib/payments/stripe.ts",
    "actionLabel": "Inspect payments stack"
  },
  "seed": "phi-request-ontology-graph",
  "payloadText": "{\n  \"preset\": \"factory-payments-orchestration\",\n  \"family\": \"factory payments\",\n  \"type\": \"platform\",\n  \"amplitude\": 5,\n  \"density\": 7,\n  \"directives\": [\n    \"factory payments\",\n    \"platform\"\n  ]\n}",
  "parsedPayload": {
    "kind": "object",
    "values": [
      30,
      16,
      8,
      5,
      7,
      2
    ],
    "keys": [
      "preset",
      "family",
      "type",
      "amplitude",
      "density",
      "directives"
    ],
    "raw": "{\n  \"preset\": \"factory-payments-orchestration\",\n  \"family\": \"factory payments\",\n  \"type\": \"platform\",\n  \"amplitude\": 5,\n  \"density\": 7,\n  \"directives\": [\n    \"factory payments\",\n    \"platform\"\n  ]\n}"
  },
  "previewMode": "bars",
  "codeLines": [
    "import type { IncomingHttpHeaders } from 'http';",
    "export type StripeIntent = { amount:number; currency:string; description?:string; metadata?:Record<string,string> };",
    "export async function createStripeIntent(intent: StripeIntent){",
    "const key = process.env.STRIPE_SECRET_KEY||'';",
    "const enable = !!key && process.env.NETWORK_DISABLED!=='1';",
    "// Lazy import to keep optional",
    "const Stripe = require('stripe');",
    "const stripe = new Stripe(key, { apiVersion:'2023-10-16' });"
  ],
  "keywords": [
    "stripe",
    "intent",
    "process",
    "amount",
    "enable",
    "type"
  ],
  "metrics": {
    "representativePath": "/rhiz/factory/src/lib/payments/stripe.ts",
    "sampledPaths": [
      "/rhiz/factory/src/lib/payments/stripe.ts",
      "/rhiz/factory/src/lib/payments/orchestrator.ts"
    ],
    "extension": ".ts",
    "lines": 39,
    "nonEmptyLines": 35,
    "bytes": 1940,
    "importCount": 2,
    "exportCount": 3,
    "functionCount": 3,
    "classCount": 0,
    "objectKeys": 6,
    "payloadKind": "object"
  },
  "dataset": {
    "series": [
      4,
      79,
      58,
      47,
      69,
      38,
      14,
      85,
      18,
      78,
      98,
      63,
      91,
      97,
      18,
      9,
      41,
      57,
      63,
      72,
      6,
      32,
      56,
      74
    ],
    "matrix": [
      [
        0.04,
        0.79,
        0.58,
        0.47,
        0.69,
        0.38
      ],
      [
        0.14,
        0.85,
        0.18,
        0.78,
        0.98,
        0.63
      ],
      [
        0.91,
        0.97,
        0.18,
        0.09,
        0.41,
        0.57
      ],
      [
        0.63,
        0.72,
        0.06,
        0.32,
        0.56,
        0.74
      ],
      [
        0.04,
        0.79,
        0.58,
        0.47,
        0.69,
        0.38
      ],
      [
        0.14,
        0.85,
        0.18,
        0.78,
        0.98,
        0.63
      ]
    ],
    "nodes": [
      {
        "id": "factory-payments-orchestration-0",
        "label": "stripe",
        "weight": 4
      },
      {
        "id": "factory-payments-orchestration-1",
        "label": "intent",
        "weight": 79
      },
      {
        "id": "factory-payments-orchestration-2",
        "label": "process",
        "weight": 58
      },
      {
        "id": "factory-payments-orchestration-3",
        "label": "amount",
        "weight": 47
      },
      {
        "id": "factory-payments-orchestration-4",
        "label": "enable",
        "weight": 69
      },
      {
        "id": "factory-payments-orchestration-5",
        "label": "type",
        "weight": 38
      }
    ],
    "edges": [
      {
        "from": "factory-payments-orchestration-0",
        "to": "factory-payments-orchestration-1",
        "weight": 83
      },
      {
        "from": "factory-payments-orchestration-0",
        "to": "factory-payments-orchestration-2",
        "weight": 58
      },
      {
        "from": "factory-payments-orchestration-1",
        "to": "factory-payments-orchestration-2",
        "weight": 137
      },
      {
        "from": "factory-payments-orchestration-1",
        "to": "factory-payments-orchestration-3",
        "weight": 79
      },
      {
        "from": "factory-payments-orchestration-2",
        "to": "factory-payments-orchestration-3",
        "weight": 105
      },
      {
        "from": "factory-payments-orchestration-2",
        "to": "factory-payments-orchestration-4",
        "weight": 69
      },
      {
        "from": "factory-payments-orchestration-3",
        "to": "factory-payments-orchestration-4",
        "weight": 116
      },
      {
        "from": "factory-payments-orchestration-3",
        "to": "factory-payments-orchestration-5",
        "weight": 47
      },
      {
        "from": "factory-payments-orchestration-4",
        "to": "factory-payments-orchestration-5",
        "weight": 107
      },
      {
        "from": "factory-payments-orchestration-4",
        "to": "factory-payments-orchestration-0",
        "weight": 69
      },
      {
        "from": "factory-payments-orchestration-5",
        "to": "factory-payments-orchestration-0",
        "weight": 42
      },
      {
        "from": "factory-payments-orchestration-5",
        "to": "factory-payments-orchestration-1",
        "weight": 79
      }
    ],
    "payloadKeys": [
      "preset",
      "family",
      "type",
      "amplitude",
      "density",
      "directives"
    ],
    "payloadKind": "object"
  },
  "snapshot": {
    "executionHash": "47c79f0931664cccdcf58e2fb86ccc9d389b7625fc66bf6f06071d37e66e9771",
    "stateHash": "29b05ffed4be0364d8e1318b66111ee80013434a1e80b73058fb36b39f61a24f",
    "fidelity": 0.6699999999999999,
    "phaseVector": [
      4,
      79,
      58,
      47
    ],
    "superpositionBands": [
      0.04,
      0.79,
      0.58,
      0.47,
      0.69,
      0.38
    ]
  }
}