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
hash5070be9cb5188f87
state96f0212510bfceba
fidelity0.61
source.ts
{
  "item": {
    "id": "factory-agent-hypergraph-stack",
    "title": "Factory agent hypergraph stack",
    "type": "agent",
    "family": "factory src lib",
    "summary": "Hypergraph agent, neural net, quorum, embodiment, and orchestration libraries exposed as layered buyout modules.",
    "sourcePath": "/rhiz/factory/src/lib/hypergraph/agent.ts",
    "docPath": "/rhiz/factory/src/lib/agent/llm-embodiment.ts",
    "actionLabel": "Open agent hypergraph"
  },
  "seed": "phi-request-ontology-graph",
  "payloadText": "{\n  \"preset\": \"factory-agent-hypergraph-stack\",\n  \"family\": \"factory src lib\",\n  \"type\": \"agent\",\n  \"amplitude\": 5,\n  \"density\": 7,\n  \"directives\": [\n    \"factory src lib\",\n    \"agent\"\n  ]\n}",
  "parsedPayload": {
    "kind": "object",
    "values": [
      30,
      15,
      5,
      5,
      7,
      2
    ],
    "keys": [
      "preset",
      "family",
      "type",
      "amplitude",
      "density",
      "directives"
    ],
    "raw": "{\n  \"preset\": \"factory-agent-hypergraph-stack\",\n  \"family\": \"factory src lib\",\n  \"type\": \"agent\",\n  \"amplitude\": 5,\n  \"density\": 7,\n  \"directives\": [\n    \"factory src lib\",\n    \"agent\"\n  ]\n}"
  },
  "previewMode": "network",
  "codeLines": [
    "export type HGNode = { id:string; type:string; label:string; weight?:number };",
    "export type HGEdge = { from:string; to:string; type:string; weight?:number };",
    "export type HG = { nodes: Record<string, HGNode>; edges: HGEdge[] };",
    "const mem: HG = { nodes:{}, edges:[] };",
    "export function addText(userText:string, assistantText:string){",
    "const ents = extract(userText + ' ' + assistantText);",
    "for(const e of ents){ ensureNode(e.id, e.type, e.label); }",
    "export function ensureNode(id:string, type:string, label:string){ if(!mem.nodes[id]) mem.nodes[id] = { id, type, label, weight:1 }; else mem.nodes[id].weight = (mem.nodes[id].weight||1) + 1; }"
  ],
  "keywords": [
    "type",
    "weight",
    "nodes",
    "agent",
    "hgnode",
    "edges"
  ],
  "metrics": {
    "representativePath": "/rhiz/factory/src/lib/hypergraph/agent.ts",
    "sampledPaths": [
      "/rhiz/factory/src/lib/hypergraph/agent.ts",
      "/rhiz/factory/src/lib/agent/llm-embodiment.ts"
    ],
    "extension": ".ts",
    "lines": 35,
    "nonEmptyLines": 29,
    "bytes": 1800,
    "importCount": 0,
    "exportCount": 8,
    "functionCount": 8,
    "classCount": 0,
    "objectKeys": 6,
    "payloadKind": "object"
  },
  "dataset": {
    "series": [
      97,
      86,
      43,
      47,
      69,
      38,
      14,
      75,
      82,
      78,
      98,
      63,
      40,
      23,
      69,
      10,
      42,
      47,
      83,
      6,
      53,
      52,
      16,
      63
    ],
    "matrix": [
      [
        0.97,
        0.86,
        0.43,
        0.47,
        0.69,
        0.38
      ],
      [
        0.14,
        0.75,
        0.82,
        0.78,
        0.98,
        0.63
      ],
      [
        0.4,
        0.23,
        0.69,
        0.1,
        0.42,
        0.47
      ],
      [
        0.83,
        0.06,
        0.53,
        0.52,
        0.16,
        0.63
      ],
      [
        0.97,
        0.86,
        0.43,
        0.47,
        0.69,
        0.38
      ],
      [
        0.14,
        0.75,
        0.82,
        0.78,
        0.98,
        0.63
      ]
    ],
    "nodes": [
      {
        "id": "factory-agent-hypergraph-stack-0",
        "label": "type",
        "weight": 97
      },
      {
        "id": "factory-agent-hypergraph-stack-1",
        "label": "weight",
        "weight": 86
      },
      {
        "id": "factory-agent-hypergraph-stack-2",
        "label": "nodes",
        "weight": 43
      },
      {
        "id": "factory-agent-hypergraph-stack-3",
        "label": "agent",
        "weight": 47
      },
      {
        "id": "factory-agent-hypergraph-stack-4",
        "label": "hgnode",
        "weight": 69
      },
      {
        "id": "factory-agent-hypergraph-stack-5",
        "label": "edges",
        "weight": 38
      }
    ],
    "edges": [
      {
        "from": "factory-agent-hypergraph-stack-0",
        "to": "factory-agent-hypergraph-stack-1",
        "weight": 183
      },
      {
        "from": "factory-agent-hypergraph-stack-0",
        "to": "factory-agent-hypergraph-stack-2",
        "weight": 97
      },
      {
        "from": "factory-agent-hypergraph-stack-1",
        "to": "factory-agent-hypergraph-stack-2",
        "weight": 129
      },
      {
        "from": "factory-agent-hypergraph-stack-1",
        "to": "factory-agent-hypergraph-stack-3",
        "weight": 86
      },
      {
        "from": "factory-agent-hypergraph-stack-2",
        "to": "factory-agent-hypergraph-stack-3",
        "weight": 90
      },
      {
        "from": "factory-agent-hypergraph-stack-2",
        "to": "factory-agent-hypergraph-stack-4",
        "weight": 69
      },
      {
        "from": "factory-agent-hypergraph-stack-3",
        "to": "factory-agent-hypergraph-stack-4",
        "weight": 116
      },
      {
        "from": "factory-agent-hypergraph-stack-3",
        "to": "factory-agent-hypergraph-stack-5",
        "weight": 47
      },
      {
        "from": "factory-agent-hypergraph-stack-4",
        "to": "factory-agent-hypergraph-stack-5",
        "weight": 107
      },
      {
        "from": "factory-agent-hypergraph-stack-4",
        "to": "factory-agent-hypergraph-stack-0",
        "weight": 97
      },
      {
        "from": "factory-agent-hypergraph-stack-5",
        "to": "factory-agent-hypergraph-stack-0",
        "weight": 135
      },
      {
        "from": "factory-agent-hypergraph-stack-5",
        "to": "factory-agent-hypergraph-stack-1",
        "weight": 86
      }
    ],
    "payloadKeys": [
      "preset",
      "family",
      "type",
      "amplitude",
      "density",
      "directives"
    ],
    "payloadKind": "object"
  },
  "snapshot": {
    "executionHash": "5070be9cb5188f87e67c34e4939b312f57dae31786e8f46e6a5aa11a43fae24f",
    "stateHash": "96f0212510bfcebae43bd41ccf96d8efe6009c7bd69a41d4aa3a72ab4aeebaa7",
    "fidelity": 0.61,
    "phaseVector": [
      97,
      86,
      43,
      47
    ],
    "superpositionBands": [
      0.97,
      0.86,
      0.43,
      0.47,
      0.69,
      0.38
    ]
  }
}