{
  "entryCount": 122,
  "toolName": "knife",
  "agentMethod": "run",
  "parcelCalls": [
    {
      "startIndex": 86,
      "scope": {
        "callMode": "asynchronous",
        "entity": {
          "kind": "tool",
          "name": "knife"
        },
        "operation": {
          "commandPath": [],
          "declaresStderr": false,
          "declaresStdout": false,
          "hasStderr": false,
          "hasStdin": false,
          "hasStdout": false,
          "type": "Tool"
        },
        "startIndex": 86
      },
      "start": {
        "$type": "agent.oplog",
        "attribution": {
          "ancestors": [
            {
              "callMode": "asynchronous",
              "entity": {
                "kind": "toolMiddleware",
                "name": "knife-policy"
              },
              "operation": {
                "commandPath": [],
                "declaresStderr": false,
                "declaresStdout": false,
                "hasStderr": false,
                "hasStdin": false,
                "hasStdout": false,
                "type": "Tool"
              },
              "startIndex": 62
            }
          ],
          "invocation": {
            "callMode": "asynchronous",
            "entity": {
              "kind": "tool",
              "name": "knife"
            },
            "operation": {
              "commandPath": [],
              "declaresStderr": false,
              "declaresStdout": false,
              "hasStderr": false,
              "hasStdin": false,
              "hasStdout": false,
              "type": "Tool"
            },
            "startIndex": 86
          },
          "type": "Entity"
        },
        "entry": {
          "denial": null,
          "durableFunctionType": {
            "type": "WriteLocal"
          },
          "functionName": "golem::entity::invoke",
          "invocationId": {
            "anchor": 62,
            "ordinal": 11
          },
          "observationalOwner": null,
          "parentStartIndex": 62,
          "request": {
            "graph": {
              "root": {
                "kind": "record",
                "value": {
                  "fields": [
                    {
                      "body": {
                        "kind": "string",
                        "value": {}
                      },
                      "name": "target"
                    },
                    {
                      "body": {
                        "kind": "string",
                        "value": {}
                      },
                      "name": "claim"
                    }
                  ]
                }
              }
            },
            "value": {
              "kind": "record",
              "value": {
                "fields": [
                  {
                    "kind": "string",
                    "value": "/workspace/parcel.cuts"
                  },
                  {
                    "kind": "string",
                    "value": "normal operator"
                  }
                ]
              }
            }
          },
          "spanStarted": {
            "attributes": [
              {
                "key": "name",
                "value": {
                  "type": "String",
                  "value": "entity-invocation"
                }
              },
              {
                "key": "entity.name",
                "value": {
                  "type": "String",
                  "value": "knife"
                }
              },
              {
                "key": "operation.command_path",
                "value": {
                  "type": "String",
                  "value": ""
                }
              },
              {
                "key": "entity.kind",
                "value": {
                  "type": "String",
                  "value": "tool"
                }
              }
            ],
            "kind": "internal",
            "links": [],
            "parentSpanId": "b66928f4edcbcf06",
            "spanId": "7029ab0be64a4e52",
            "startedAt": "2026-10-27T17:07:41.956Z",
            "traceId": "482ece1f34c74defa4175beaa9f94c11",
            "traceStates": []
          },
          "timestamp": "2026-10-27T17:07:41.956Z",
          "type": "Start"
        },
        "index": 86
      },
      "ends": [],
      "markers": [
        {
          "$type": "agent.oplog",
          "attribution": {
            "ancestors": [
              {
                "callMode": "asynchronous",
                "entity": {
                  "kind": "toolMiddleware",
                  "name": "knife-policy"
                },
                "operation": {
                  "commandPath": [],
                  "declaresStderr": false,
                  "declaresStdout": false,
                  "hasStderr": false,
                  "hasStdin": false,
                  "hasStdout": false,
                  "type": "Tool"
                },
                "startIndex": 62
              }
            ],
            "invocation": {
              "callMode": "asynchronous",
              "entity": {
                "kind": "tool",
                "name": "knife"
              },
              "operation": {
                "commandPath": [],
                "declaresStderr": false,
                "declaresStdout": false,
                "hasStderr": false,
                "hasStdin": false,
                "hasStdout": false,
                "type": "Tool"
              },
              "startIndex": 86
            },
            "type": "Entity"
          },
          "entry": {
            "context": "",
            "level": "Stdout",
            "message": "PARCEL_CUT_IN_FLIGHT\n",
            "timestamp": "2026-10-27T17:07:41.964Z",
            "traceContext": {
              "spanId": "7029ab0be64a4e52",
              "traceId": "482ece1f34c74defa4175beaa9f94c11"
            },
            "type": "Log"
          },
          "index": 118
        }
      ],
      "isParcel": true
    }
  ],
  "toolCalls": [
    {
      "startIndex": 86,
      "scope": {
        "callMode": "asynchronous",
        "entity": {
          "kind": "tool",
          "name": "knife"
        },
        "operation": {
          "commandPath": [],
          "declaresStderr": false,
          "declaresStdout": false,
          "hasStderr": false,
          "hasStdin": false,
          "hasStdout": false,
          "type": "Tool"
        },
        "startIndex": 86
      },
      "start": {
        "$type": "agent.oplog",
        "attribution": {
          "ancestors": [
            {
              "callMode": "asynchronous",
              "entity": {
                "kind": "toolMiddleware",
                "name": "knife-policy"
              },
              "operation": {
                "commandPath": [],
                "declaresStderr": false,
                "declaresStdout": false,
                "hasStderr": false,
                "hasStdin": false,
                "hasStdout": false,
                "type": "Tool"
              },
              "startIndex": 62
            }
          ],
          "invocation": {
            "callMode": "asynchronous",
            "entity": {
              "kind": "tool",
              "name": "knife"
            },
            "operation": {
              "commandPath": [],
              "declaresStderr": false,
              "declaresStdout": false,
              "hasStderr": false,
              "hasStdin": false,
              "hasStdout": false,
              "type": "Tool"
            },
            "startIndex": 86
          },
          "type": "Entity"
        },
        "entry": {
          "denial": null,
          "durableFunctionType": {
            "type": "WriteLocal"
          },
          "functionName": "golem::entity::invoke",
          "invocationId": {
            "anchor": 62,
            "ordinal": 11
          },
          "observationalOwner": null,
          "parentStartIndex": 62,
          "request": {
            "graph": {
              "root": {
                "kind": "record",
                "value": {
                  "fields": [
                    {
                      "body": {
                        "kind": "string",
                        "value": {}
                      },
                      "name": "target"
                    },
                    {
                      "body": {
                        "kind": "string",
                        "value": {}
                      },
                      "name": "claim"
                    }
                  ]
                }
              }
            },
            "value": {
              "kind": "record",
              "value": {
                "fields": [
                  {
                    "kind": "string",
                    "value": "/workspace/parcel.cuts"
                  },
                  {
                    "kind": "string",
                    "value": "normal operator"
                  }
                ]
              }
            }
          },
          "spanStarted": {
            "attributes": [
              {
                "key": "name",
                "value": {
                  "type": "String",
                  "value": "entity-invocation"
                }
              },
              {
                "key": "entity.name",
                "value": {
                  "type": "String",
                  "value": "knife"
                }
              },
              {
                "key": "operation.command_path",
                "value": {
                  "type": "String",
                  "value": ""
                }
              },
              {
                "key": "entity.kind",
                "value": {
                  "type": "String",
                  "value": "tool"
                }
              }
            ],
            "kind": "internal",
            "links": [],
            "parentSpanId": "b66928f4edcbcf06",
            "spanId": "7029ab0be64a4e52",
            "startedAt": "2026-10-27T17:07:41.956Z",
            "traceId": "482ece1f34c74defa4175beaa9f94c11",
            "traceStates": []
          },
          "timestamp": "2026-10-27T17:07:41.956Z",
          "type": "Start"
        },
        "index": 86
      },
      "ends": [],
      "markers": [
        {
          "$type": "agent.oplog",
          "attribution": {
            "ancestors": [
              {
                "callMode": "asynchronous",
                "entity": {
                  "kind": "toolMiddleware",
                  "name": "knife-policy"
                },
                "operation": {
                  "commandPath": [],
                  "declaresStderr": false,
                  "declaresStdout": false,
                  "hasStderr": false,
                  "hasStdin": false,
                  "hasStdout": false,
                  "type": "Tool"
                },
                "startIndex": 62
              }
            ],
            "invocation": {
              "callMode": "asynchronous",
              "entity": {
                "kind": "tool",
                "name": "knife"
              },
              "operation": {
                "commandPath": [],
                "declaresStderr": false,
                "declaresStdout": false,
                "hasStderr": false,
                "hasStdin": false,
                "hasStdout": false,
                "type": "Tool"
              },
              "startIndex": 86
            },
            "type": "Entity"
          },
          "entry": {
            "context": "",
            "level": "Stdout",
            "message": "PARCEL_CUT_IN_FLIGHT\n",
            "timestamp": "2026-10-27T17:07:41.964Z",
            "traceContext": {
              "spanId": "7029ab0be64a4e52",
              "traceId": "482ece1f34c74defa4175beaa9f94c11"
            },
            "type": "Log"
          },
          "index": 118
        }
      ],
      "isParcel": true
    }
  ],
  "agentFinishes": [],
  "denialEntries": [
    {
      "$type": "agent.oplog",
      "attribution": {
        "ancestors": [],
        "invocation": {
          "callMode": "asynchronous",
          "entity": {
            "kind": "toolMiddleware",
            "name": "knife-policy"
          },
          "operation": {
            "commandPath": [],
            "declaresStderr": false,
            "declaresStdout": false,
            "hasStderr": false,
            "hasStdin": false,
            "hasStdout": false,
            "type": "Tool"
          },
          "startIndex": 31
        },
        "type": "Entity"
      },
      "entry": {
        "forcedCommit": false,
        "response": {
          "graph": {
            "defs": [
              {
                "body": {
                  "kind": "enum",
                  "value": {
                    "cases": [
                      "Executed",
                      "Skipped",
                      "Trapped"
                    ]
                  }
                },
                "id": "golem_common.model.oplog.payload.types.SerializableEntityBodyExecution",
                "name": "SerializableEntityBodyExecution"
              },
              {
                "body": {
                  "kind": "variant",
                  "value": {
                    "cases": [
                      {
                        "name": "Multimodal"
                      },
                      {
                        "name": "UnstructuredText"
                      },
                      {
                        "name": "UnstructuredBinary"
                      },
                      {
                        "name": "Other",
                        "payload": {
                          "kind": "string",
                          "value": {}
                        }
                      }
                    ]
                  }
                },
                "id": "role",
                "name": "role"
              },
              {
                "body": {
                  "kind": "record",
                  "value": {
                    "fields": [
                      {
                        "body": {
                          "kind": "option",
                          "value": {
                            "inner": {
                              "kind": "string",
                              "value": {}
                            }
                          }
                        },
                        "name": "doc"
                      },
                      {
                        "body": {
                          "kind": "list",
                          "value": {
                            "element": {
                              "kind": "string",
                              "value": {}
                            }
                          }
                        },
                        "name": "aliases"
                      },
                      {
                        "body": {
                          "kind": "list",
                          "value": {
                            "element": {
                              "kind": "string",
                              "value": {}
                            }
                          }
                        },
                        "name": "examples"
                      },
                      {
                        "body": {
                          "kind": "option",
                          "value": {
                            "inner": {
                              "kind": "string",
                              "value": {}
                            }
                          }
                        },
                        "name": "deprecated"
                      },
                      {
                        "body": {
                          "kind": "option",
                          "value": {
                            "inner": {
                              "kind": "ref",
                              "value": {
                                "id": "role"
                              }
                            }
                          }
                        },
                        "name": "role"
                      }
                    ]
                  }
                },
                "id": "metadata-envelope",
                "name": "metadata-envelope"
              },
              {
                "body": {
                  "kind": "variant",
                  "value": {
                    "cases": [
                      {
                        "name": "Signed",
                        "payload": {
                          "kind": "s64",
                          "value": {}
                        }
                      },
                      {
                        "name": "Unsigned",
                        "payload": {
                          "kind": "u64",
                          "value": {}
                        }
                      },
                      {
                        "name": "FloatBits",
                        "payload": {
                          "kind": "u64",
                          "value": {}
                        }
                      }
                    ]
                  }
                },
                "id": "golem_schema.schema.schema_type.NumericBound",
                "name": "NumericBound"
              },
              {
                "body": {
                  "kind": "record",
                  "value": {
                    "fields": [
                      {
                        "body": {
                          "kind": "option",
                          "value": {
                            "inner": {
                              "kind": "ref",
                              "value": {
                                "id": "golem_schema.schema.schema_type.NumericBound"
                              }
                            }
                          }
                        },
                        "name": "min"
                      },
                      {
                        "body": {
                          "kind": "option",
                          "value": {
                            "inner": {
                              "kind": "ref",
                              "value": {
                                "id": "golem_schema.schema.schema_type.NumericBound"
                              }
                            }
                          }
                        },
                        "name": "max"
                      },
                      {
                        "body": {
                          "kind": "option",
                          "value": {
                            "inner": {
                              "kind": "string",
                              "value": {}
                            }
                          }
                        },
                        "name": "unit"
                      }
                    ]
                  }
                },
                "id": "golem_schema.schema.schema_type.NumericRestrictions",
                "name": "NumericRestrictions"
              },
              {
                "body": {
                  "kind": "record",
                  "value": {
                    "fields": [
                      {
                        "body": {
                          "kind": "string",
                          "value": {}
                        },
                        "name": "name"
                      },
                      {
                        "body": {
                          "kind": "ref",
                          "value": {
                            "id": "schema-type"
                          }
                        },
                        "name": "body"
                      },
                      {
                        "body": {
                          "kind": "ref",
                          "value": {
                            "id": "metadata-envelope"
                          }
                        },
                        "name": "metadata"
                      }
                    ]
                  }
                },
                "id": "golem_schema.schema.schema_type.NamedFieldType",
                "name": "NamedFieldType"
              },
              {
                "body": {
                  "kind": "record",
                  "value": {
                    "fields": [
                      {
                        "body": {
                          "kind": "string",
                          "value": {}
                        },
                        "name": "name"
                      },
                      {
                        "body": {
                          "kind": "option",
                          "value": {
                            "inner": {
                              "kind": "ref",
                              "value": {
                                "id": "schema-type"
                              }
                            }
                          }
                        },
                        "name": "payload"
                      },
                      {
                        "body": {
                          "kind": "ref",
                          "value": {
                            "id": "metadata-envelope"
                          }
                        },
                        "name": "metadata"
                      }
                    ]
                  }
                },
                "id": "golem_schema.schema.schema_type.VariantCaseType",
                "name": "VariantCaseType"
              },
              {
                "body": {
                  "kind": "record",
                  "value": {
                    "fields": [
                      {
                        "body": {
                          "kind": "option",
                          "value": {
                            "inner": {
                              "kind": "ref",
                              "value": {
                                "id": "schema-type"
                              }
                            }
                          }
                        },
                        "name": "ok"
                      },
                      {
                        "body": {
                          "kind": "option",
                          "value": {
                            "inner": {
                              "kind": "ref",
                              "value": {
                                "id": "schema-type"
                              }
                            }
                          }
                        },
                        "name": "err"
                      }
                    ]
                  }
                },
                "id": "golem_schema.schema.schema_type.ResultSpec",
                "name": "ResultSpec"
              },
              {
                "body": {
                  "kind": "record",
                  "value": {
                    "fields": [
                      {
                        "body": {
                          "kind": "option",
                          "value": {
                            "inner": {
                              "kind": "list",
                              "value": {
                                "element": {
                                  "kind": "string",
                                  "value": {}
                                }
                              }
                            }
                          }
                        },
                        "name": "languages"
                      },
                      {
                        "body": {
                          "kind": "option",
                          "value": {
                            "inner": {
                              "kind": "u32",
                              "value": {}
                            }
                          }
                        },
                        "name": "min_length"
                      },
                      {
                        "body": {
                          "kind": "option",
                          "value": {
                            "inner": {
                              "kind": "u32",
                              "value": {}
                            }
                          }
                        },
                        "name": "max_length"
                      },
                      {
                        "body": {
                          "kind": "option",
                          "value": {
                            "inner": {
                              "kind": "string",
                              "value": {}
                            }
                          }
                        },
                        "name": "regex"
                      }
                    ]
                  }
                },
                "id": "golem_schema.schema.schema_type.TextRestrictions",
                "name": "TextRestrictions"
              },
              {
                "body": {
                  "kind": "record",
                  "value": {
                    "fields": [
                      {
                        "body": {
                          "kind": "option",
                          "value": {
                            "inner": {
                              "kind": "list",
                              "value": {
                                "element": {
                                  "kind": "string",
                                  "value": {}
                                }
                              }
                            }
                          }
                        },
                        "name": "mime_types"
                      },
                      {
                        "body": {
                          "kind": "option",
                          "value": {
                            "inner": {
                              "kind": "u32",
                              "value": {}
                            }
                          }
                        },
                        "name": "min_bytes"
                      },
                      {
                        "body": {
                          "kind": "option",
                          "value": {
                            "inner": {
                              "kind": "u32",
                              "value": {}
                            }
                          }
                        },
                        "name": "max_bytes"
                      }
                    ]
                  }
                },
                "id": "golem_schema.schema.schema_type.BinaryRestrictions",
                "name": "BinaryRestrictions"
              },
              {
                "body": {
                  "kind": "enum",
                  "value": {
                    "cases": [
                      "Input",
                      "Output",
                      "InOut"
                    ]
                  }
                },
                "id": "golem_schema.schema.schema_type.PathDirection",
                "name": "PathDirection"
              },
              {
                "body": {
                  "kind": "enum",
                  "value": {
                    "cases": [
                      "File",
                      "Directory",
                      "Any"
                    ]
                  }
                },
                "id": "golem_schema.schema.schema_type.PathKind",
                "name": "PathKind"
              },
              {
                "body": {
                  "kind": "record",
                  "value": {
                    "fields": [
                      {
                        "body": {
                          "kind": "ref",
                          "value": {
                            "id": "golem_schema.schema.schema_type.PathDirection"
                          }
                        },
                        "name": "direction"
                      },
                      {
                        "body": {
                          "kind": "ref",
                          "value": {
                            "id": "golem_schema.schema.schema_type.PathKind"
                          }
                        },
                        "name": "kind"
                      },
                      {
                        "body": {
                          "kind": "option",
                          "value": {
                            "inner": {
                              "kind": "list",
                              "value": {
                                "element": {
                                  "kind": "string",
                                  "value": {}
                                }
                              }
                            }
                          }
                        },
                        "name": "allowed_mime_types"
                      },
                      {
                        "body": {
                          "kind": "option",
                          "value": {
                            "inner": {
                              "kind": "list",
                              "value": {
                                "element": {
                                  "kind": "string",
                                  "value": {}
                                }
                              }
                            }
                          }
                        },
                        "name": "allowed_extensions"
                      }
                    ]
                  }
                },
                "id": "golem_schema.schema.schema_type.PathSpec",
                "name": "PathSpec"
              },
              {
                "body": {
                  "kind": "record",
                  "value": {
                    "fields": [
                      {
                        "body": {
                          "kind": "option",
                          "value": {
                            "inner": {
                              "kind": "list",
                              "value": {
                                "element": {
                                  "kind": "string",
                                  "value": {}
                                }
                              }
                            }
                          }
                        },
                        "name": "allowed_schemes"
                      },
                      {
                        "body": {
                          "kind": "option",
                          "value": {
                            "inner": {
                              "kind": "list",
                              "value": {
                                "element": {
                                  "kind": "string",
                                  "value": {}
                                }
                              }
                            }
                          }
                        },
                        "name": "allowed_hosts"
                      }
                    ]
                  }
                },
                "id": "golem_schema.schema.schema_type.UrlRestrictions",
                "name": "UrlRestrictions"
              },
              {
                "body": {
                  "kind": "record",
                  "value": {
                    "fields": [
                      {
                        "body": {
                          "kind": "s64",
                          "value": {}
                        },
                        "name": "mantissa"
                      },
                      {
                        "body": {
                          "kind": "s32",
                          "value": {}
                        },
                        "name": "scale"
                      },
                      {
                        "body": {
                          "kind": "string",
                          "value": {}
                        },
                        "name": "unit"
                      }
                    ]
                  }
                },
                "id": "golem_schema.schema.schema_type.QuantityValue",
                "name": "QuantityValue"
              },
              {
                "body": {
                  "kind": "record",
                  "value": {
                    "fields": [
                      {
                        "body": {
                          "kind": "string",
                          "value": {}
                        },
                        "name": "base_unit"
                      },
                      {
                        "body": {
                          "kind": "list",
                          "value": {
                            "element": {
                              "kind": "string",
                              "value": {}
                            }
                          }
                        },
                        "name": "allowed_suffixes"
                      },
                      {
                        "body": {
                          "kind": "option",
                          "value": {
                            "inner": {
                              "kind": "ref",
                              "value": {
                                "id": "golem_schema.schema.schema_type.QuantityValue"
                              }
                            }
                          }
                        },
                        "name": "min"
                      },
                      {
                        "body": {
                          "kind": "option",
                          "value": {
                            "inner": {
                              "kind": "ref",
                              "value": {
                                "id": "golem_schema.schema.schema_type.QuantityValue"
                              }
                            }
                          }
                        },
                        "name": "max"
                      }
                    ]
                  }
                },
                "id": "golem_schema.schema.schema_type.QuantitySpec",
                "name": "QuantitySpec"
              },
              {
                "body": {
                  "kind": "record",
                  "value": {
                    "fields": [
                      {
                        "body": {
                          "kind": "string",
                          "value": {}
                        },
                        "name": "field_name"
                      },
                      {
                        "body": {
                          "kind": "option",
                          "value": {
                            "inner": {
                              "kind": "string",
                              "value": {}
                            }
                          }
                        },
                        "name": "literal"
                      }
                    ]
                  }
                },
                "id": "golem_schema.schema.schema_type.FieldDiscriminator",
                "name": "FieldDiscriminator"
              },
              {
                "body": {
                  "kind": "variant",
                  "value": {
                    "cases": [
                      {
                        "name": "Prefix",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "string",
                                  "value": {}
                                },
                                "name": "prefix"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "Suffix",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "string",
                                  "value": {}
                                },
                                "name": "suffix"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "Contains",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "string",
                                  "value": {}
                                },
                                "name": "substring"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "Regex",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "string",
                                  "value": {}
                                },
                                "name": "regex"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "FieldEquals",
                        "payload": {
                          "kind": "ref",
                          "value": {
                            "id": "golem_schema.schema.schema_type.FieldDiscriminator"
                          }
                        }
                      },
                      {
                        "name": "FieldAbsent",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "string",
                                  "value": {}
                                },
                                "name": "field_name"
                              }
                            ]
                          }
                        }
                      }
                    ]
                  }
                },
                "id": "golem_schema.schema.schema_type.DiscriminatorRule",
                "name": "DiscriminatorRule"
              },
              {
                "body": {
                  "kind": "record",
                  "value": {
                    "fields": [
                      {
                        "body": {
                          "kind": "string",
                          "value": {}
                        },
                        "name": "tag"
                      },
                      {
                        "body": {
                          "kind": "ref",
                          "value": {
                            "id": "schema-type"
                          }
                        },
                        "name": "body"
                      },
                      {
                        "body": {
                          "kind": "ref",
                          "value": {
                            "id": "golem_schema.schema.schema_type.DiscriminatorRule"
                          }
                        },
                        "name": "discriminator"
                      },
                      {
                        "body": {
                          "kind": "ref",
                          "value": {
                            "id": "metadata-envelope"
                          }
                        },
                        "name": "metadata"
                      }
                    ]
                  }
                },
                "id": "golem_schema.schema.schema_type.UnionBranch",
                "name": "UnionBranch"
              },
              {
                "body": {
                  "kind": "record",
                  "value": {
                    "fields": [
                      {
                        "body": {
                          "kind": "list",
                          "value": {
                            "element": {
                              "kind": "ref",
                              "value": {
                                "id": "golem_schema.schema.schema_type.UnionBranch"
                              }
                            }
                          }
                        },
                        "name": "branches"
                      }
                    ]
                  }
                },
                "id": "golem_schema.schema.schema_type.UnionSpec",
                "name": "UnionSpec"
              },
              {
                "body": {
                  "kind": "record",
                  "value": {
                    "fields": [
                      {
                        "body": {
                          "kind": "ref",
                          "value": {
                            "id": "schema-type"
                          }
                        },
                        "name": "inner"
                      },
                      {
                        "body": {
                          "kind": "option",
                          "value": {
                            "inner": {
                              "kind": "string",
                              "value": {}
                            }
                          }
                        },
                        "name": "category"
                      }
                    ]
                  }
                },
                "id": "golem_schema.schema.schema_type.SecretSpec",
                "name": "SecretSpec"
              },
              {
                "body": {
                  "kind": "record",
                  "value": {
                    "fields": [
                      {
                        "body": {
                          "kind": "option",
                          "value": {
                            "inner": {
                              "kind": "string",
                              "value": {}
                            }
                          }
                        },
                        "name": "resource_name"
                      }
                    ]
                  }
                },
                "id": "golem_schema.schema.schema_type.QuotaTokenSpec",
                "name": "QuotaTokenSpec"
              },
              {
                "body": {
                  "kind": "record",
                  "value": {
                    "fields": [
                      {
                        "body": {
                          "kind": "bool",
                          "value": {}
                        },
                        "name": "polymorphic"
                      }
                    ]
                  }
                },
                "id": "golem_schema.schema.schema_type.PermissionCardSpec",
                "name": "PermissionCardSpec"
              },
              {
                "body": {
                  "kind": "variant",
                  "value": {
                    "cases": [
                      {
                        "name": "Ref",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "string",
                                  "value": {}
                                },
                                "name": "id"
                              },
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "metadata-envelope"
                                  }
                                },
                                "name": "metadata"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "Bool",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "metadata-envelope"
                                  }
                                },
                                "name": "metadata"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "S8",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "option",
                                  "value": {
                                    "inner": {
                                      "kind": "ref",
                                      "value": {
                                        "id": "golem_schema.schema.schema_type.NumericRestrictions"
                                      }
                                    }
                                  }
                                },
                                "name": "restrictions"
                              },
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "metadata-envelope"
                                  }
                                },
                                "name": "metadata"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "S16",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "option",
                                  "value": {
                                    "inner": {
                                      "kind": "ref",
                                      "value": {
                                        "id": "golem_schema.schema.schema_type.NumericRestrictions"
                                      }
                                    }
                                  }
                                },
                                "name": "restrictions"
                              },
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "metadata-envelope"
                                  }
                                },
                                "name": "metadata"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "S32",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "option",
                                  "value": {
                                    "inner": {
                                      "kind": "ref",
                                      "value": {
                                        "id": "golem_schema.schema.schema_type.NumericRestrictions"
                                      }
                                    }
                                  }
                                },
                                "name": "restrictions"
                              },
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "metadata-envelope"
                                  }
                                },
                                "name": "metadata"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "S64",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "option",
                                  "value": {
                                    "inner": {
                                      "kind": "ref",
                                      "value": {
                                        "id": "golem_schema.schema.schema_type.NumericRestrictions"
                                      }
                                    }
                                  }
                                },
                                "name": "restrictions"
                              },
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "metadata-envelope"
                                  }
                                },
                                "name": "metadata"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "U8",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "option",
                                  "value": {
                                    "inner": {
                                      "kind": "ref",
                                      "value": {
                                        "id": "golem_schema.schema.schema_type.NumericRestrictions"
                                      }
                                    }
                                  }
                                },
                                "name": "restrictions"
                              },
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "metadata-envelope"
                                  }
                                },
                                "name": "metadata"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "U16",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "option",
                                  "value": {
                                    "inner": {
                                      "kind": "ref",
                                      "value": {
                                        "id": "golem_schema.schema.schema_type.NumericRestrictions"
                                      }
                                    }
                                  }
                                },
                                "name": "restrictions"
                              },
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "metadata-envelope"
                                  }
                                },
                                "name": "metadata"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "U32",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "option",
                                  "value": {
                                    "inner": {
                                      "kind": "ref",
                                      "value": {
                                        "id": "golem_schema.schema.schema_type.NumericRestrictions"
                                      }
                                    }
                                  }
                                },
                                "name": "restrictions"
                              },
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "metadata-envelope"
                                  }
                                },
                                "name": "metadata"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "U64",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "option",
                                  "value": {
                                    "inner": {
                                      "kind": "ref",
                                      "value": {
                                        "id": "golem_schema.schema.schema_type.NumericRestrictions"
                                      }
                                    }
                                  }
                                },
                                "name": "restrictions"
                              },
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "metadata-envelope"
                                  }
                                },
                                "name": "metadata"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "F32",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "option",
                                  "value": {
                                    "inner": {
                                      "kind": "ref",
                                      "value": {
                                        "id": "golem_schema.schema.schema_type.NumericRestrictions"
                                      }
                                    }
                                  }
                                },
                                "name": "restrictions"
                              },
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "metadata-envelope"
                                  }
                                },
                                "name": "metadata"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "F64",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "option",
                                  "value": {
                                    "inner": {
                                      "kind": "ref",
                                      "value": {
                                        "id": "golem_schema.schema.schema_type.NumericRestrictions"
                                      }
                                    }
                                  }
                                },
                                "name": "restrictions"
                              },
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "metadata-envelope"
                                  }
                                },
                                "name": "metadata"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "Char",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "metadata-envelope"
                                  }
                                },
                                "name": "metadata"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "String",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "metadata-envelope"
                                  }
                                },
                                "name": "metadata"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "Record",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "list",
                                  "value": {
                                    "element": {
                                      "kind": "ref",
                                      "value": {
                                        "id": "golem_schema.schema.schema_type.NamedFieldType"
                                      }
                                    }
                                  }
                                },
                                "name": "fields"
                              },
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "metadata-envelope"
                                  }
                                },
                                "name": "metadata"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "Variant",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "list",
                                  "value": {
                                    "element": {
                                      "kind": "ref",
                                      "value": {
                                        "id": "golem_schema.schema.schema_type.VariantCaseType"
                                      }
                                    }
                                  }
                                },
                                "name": "cases"
                              },
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "metadata-envelope"
                                  }
                                },
                                "name": "metadata"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "Enum",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "list",
                                  "value": {
                                    "element": {
                                      "kind": "string",
                                      "value": {}
                                    }
                                  }
                                },
                                "name": "cases"
                              },
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "metadata-envelope"
                                  }
                                },
                                "name": "metadata"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "Flags",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "list",
                                  "value": {
                                    "element": {
                                      "kind": "string",
                                      "value": {}
                                    }
                                  }
                                },
                                "name": "flags"
                              },
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "metadata-envelope"
                                  }
                                },
                                "name": "metadata"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "Tuple",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "list",
                                  "value": {
                                    "element": {
                                      "kind": "ref",
                                      "value": {
                                        "id": "schema-type"
                                      }
                                    }
                                  }
                                },
                                "name": "elements"
                              },
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "metadata-envelope"
                                  }
                                },
                                "name": "metadata"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "List",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "schema-type"
                                  }
                                },
                                "name": "element"
                              },
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "metadata-envelope"
                                  }
                                },
                                "name": "metadata"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "FixedList",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "schema-type"
                                  }
                                },
                                "name": "element"
                              },
                              {
                                "body": {
                                  "kind": "u32",
                                  "value": {}
                                },
                                "name": "length"
                              },
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "metadata-envelope"
                                  }
                                },
                                "name": "metadata"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "Map",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "schema-type"
                                  }
                                },
                                "name": "key"
                              },
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "schema-type"
                                  }
                                },
                                "name": "value"
                              },
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "metadata-envelope"
                                  }
                                },
                                "name": "metadata"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "Option",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "schema-type"
                                  }
                                },
                                "name": "inner"
                              },
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "metadata-envelope"
                                  }
                                },
                                "name": "metadata"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "Result",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "golem_schema.schema.schema_type.ResultSpec"
                                  }
                                },
                                "name": "spec"
                              },
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "metadata-envelope"
                                  }
                                },
                                "name": "metadata"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "Text",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "golem_schema.schema.schema_type.TextRestrictions"
                                  }
                                },
                                "name": "restrictions"
                              },
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "metadata-envelope"
                                  }
                                },
                                "name": "metadata"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "Binary",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "golem_schema.schema.schema_type.BinaryRestrictions"
                                  }
                                },
                                "name": "restrictions"
                              },
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "metadata-envelope"
                                  }
                                },
                                "name": "metadata"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "Path",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "golem_schema.schema.schema_type.PathSpec"
                                  }
                                },
                                "name": "spec"
                              },
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "metadata-envelope"
                                  }
                                },
                                "name": "metadata"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "Url",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "golem_schema.schema.schema_type.UrlRestrictions"
                                  }
                                },
                                "name": "restrictions"
                              },
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "metadata-envelope"
                                  }
                                },
                                "name": "metadata"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "Uuid",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "metadata-envelope"
                                  }
                                },
                                "name": "metadata"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "Datetime",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "metadata-envelope"
                                  }
                                },
                                "name": "metadata"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "Duration",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "metadata-envelope"
                                  }
                                },
                                "name": "metadata"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "Quantity",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "golem_schema.schema.schema_type.QuantitySpec"
                                  }
                                },
                                "name": "spec"
                              },
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "metadata-envelope"
                                  }
                                },
                                "name": "metadata"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "Union",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "golem_schema.schema.schema_type.UnionSpec"
                                  }
                                },
                                "name": "spec"
                              },
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "metadata-envelope"
                                  }
                                },
                                "name": "metadata"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "Secret",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "golem_schema.schema.schema_type.SecretSpec"
                                  }
                                },
                                "name": "spec"
                              },
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "metadata-envelope"
                                  }
                                },
                                "name": "metadata"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "QuotaToken",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "golem_schema.schema.schema_type.QuotaTokenSpec"
                                  }
                                },
                                "name": "spec"
                              },
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "metadata-envelope"
                                  }
                                },
                                "name": "metadata"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "PermissionCard",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "golem_schema.schema.schema_type.PermissionCardSpec"
                                  }
                                },
                                "name": "spec"
                              },
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "metadata-envelope"
                                  }
                                },
                                "name": "metadata"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "Future",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "option",
                                  "value": {
                                    "inner": {
                                      "kind": "ref",
                                      "value": {
                                        "id": "schema-type"
                                      }
                                    }
                                  }
                                },
                                "name": "inner"
                              },
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "metadata-envelope"
                                  }
                                },
                                "name": "metadata"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "Stream",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "option",
                                  "value": {
                                    "inner": {
                                      "kind": "ref",
                                      "value": {
                                        "id": "schema-type"
                                      }
                                    }
                                  }
                                },
                                "name": "inner"
                              },
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "metadata-envelope"
                                  }
                                },
                                "name": "metadata"
                              }
                            ]
                          }
                        }
                      }
                    ]
                  }
                },
                "id": "schema-type",
                "name": "schema-type"
              },
              {
                "body": {
                  "kind": "record",
                  "value": {
                    "fields": [
                      {
                        "body": {
                          "kind": "string",
                          "value": {}
                        },
                        "name": "id"
                      },
                      {
                        "body": {
                          "kind": "option",
                          "value": {
                            "inner": {
                              "kind": "string",
                              "value": {}
                            }
                          }
                        },
                        "name": "name"
                      },
                      {
                        "body": {
                          "kind": "ref",
                          "value": {
                            "id": "schema-type"
                          }
                        },
                        "name": "body"
                      }
                    ]
                  }
                },
                "id": "schema-type-def",
                "name": "schema-type-def"
              },
              {
                "body": {
                  "kind": "record",
                  "value": {
                    "fields": [
                      {
                        "body": {
                          "kind": "list",
                          "value": {
                            "element": {
                              "kind": "ref",
                              "value": {
                                "id": "schema-type-def"
                              }
                            }
                          }
                        },
                        "name": "defs"
                      },
                      {
                        "body": {
                          "kind": "ref",
                          "value": {
                            "id": "schema-type"
                          }
                        },
                        "name": "root"
                      }
                    ]
                  }
                },
                "id": "schema-graph",
                "name": "schema-graph"
              },
              {
                "body": {
                  "kind": "record",
                  "value": {
                    "fields": [
                      {
                        "body": {
                          "kind": "u32",
                          "value": {}
                        },
                        "name": "case"
                      },
                      {
                        "body": {
                          "kind": "option",
                          "value": {
                            "inner": {
                              "kind": "ref",
                              "value": {
                                "id": "schema-value"
                              }
                            }
                          }
                        },
                        "name": "payload"
                      }
                    ]
                  }
                },
                "id": "golem_schema.schema.schema_value.VariantValuePayload",
                "name": "VariantValuePayload"
              },
              {
                "body": {
                  "kind": "variant",
                  "value": {
                    "cases": [
                      {
                        "name": "Ok",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "option",
                                  "value": {
                                    "inner": {
                                      "kind": "ref",
                                      "value": {
                                        "id": "schema-value"
                                      }
                                    }
                                  }
                                },
                                "name": "value"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "Err",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "option",
                                  "value": {
                                    "inner": {
                                      "kind": "ref",
                                      "value": {
                                        "id": "schema-value"
                                      }
                                    }
                                  }
                                },
                                "name": "value"
                              }
                            ]
                          }
                        }
                      }
                    ]
                  }
                },
                "id": "golem_schema.schema.schema_value.ResultValuePayload",
                "name": "ResultValuePayload"
              },
              {
                "body": {
                  "kind": "record",
                  "value": {
                    "fields": [
                      {
                        "body": {
                          "kind": "string",
                          "value": {}
                        },
                        "name": "text"
                      },
                      {
                        "body": {
                          "kind": "option",
                          "value": {
                            "inner": {
                              "kind": "string",
                              "value": {}
                            }
                          }
                        },
                        "name": "language"
                      }
                    ]
                  }
                },
                "id": "golem_schema.schema.schema_value.TextValuePayload",
                "name": "TextValuePayload"
              },
              {
                "body": {
                  "kind": "record",
                  "value": {
                    "fields": [
                      {
                        "body": {
                          "kind": "list",
                          "value": {
                            "element": {
                              "kind": "u8",
                              "value": {}
                            }
                          }
                        },
                        "name": "bytes"
                      },
                      {
                        "body": {
                          "kind": "option",
                          "value": {
                            "inner": {
                              "kind": "string",
                              "value": {}
                            }
                          }
                        },
                        "name": "mime_type"
                      }
                    ]
                  }
                },
                "id": "golem_schema.schema.schema_value.BinaryValuePayload",
                "name": "BinaryValuePayload"
              },
              {
                "body": {
                  "kind": "record",
                  "value": {
                    "fields": [
                      {
                        "body": {
                          "kind": "s64",
                          "value": {}
                        },
                        "name": "nanoseconds"
                      }
                    ]
                  }
                },
                "id": "golem_schema.schema.schema_value.DurationValuePayload",
                "name": "DurationValuePayload"
              },
              {
                "body": {
                  "kind": "record",
                  "value": {
                    "fields": [
                      {
                        "body": {
                          "kind": "string",
                          "value": {}
                        },
                        "name": "tag"
                      },
                      {
                        "body": {
                          "kind": "ref",
                          "value": {
                            "id": "schema-value"
                          }
                        },
                        "name": "body"
                      }
                    ]
                  }
                },
                "id": "golem_schema.schema.schema_value.UnionValuePayload",
                "name": "UnionValuePayload"
              },
              {
                "body": {
                  "kind": "record",
                  "value": {
                    "fields": [
                      {
                        "body": {
                          "kind": "uuid",
                          "value": {}
                        },
                        "name": "secret_id"
                      },
                      {
                        "body": {
                          "kind": "option",
                          "value": {
                            "inner": {
                              "kind": "list",
                              "value": {
                                "element": {
                                  "kind": "string",
                                  "value": {}
                                }
                              }
                            }
                          }
                        },
                        "name": "config_key"
                      },
                      {
                        "body": {
                          "kind": "u64",
                          "value": {}
                        },
                        "name": "version"
                      },
                      {
                        "body": {
                          "kind": "datetime",
                          "value": {}
                        },
                        "name": "resolved_at"
                      },
                      {
                        "body": {
                          "kind": "option",
                          "value": {
                            "inner": {
                              "kind": "string",
                              "value": {}
                            }
                          }
                        },
                        "name": "category"
                      }
                    ]
                  }
                },
                "id": "golem_schema.schema.schema_value.SecretValuePayload",
                "name": "SecretValuePayload"
              },
              {
                "body": {
                  "kind": "record",
                  "value": {
                    "fields": [
                      {
                        "body": {
                          "kind": "uuid",
                          "value": {}
                        },
                        "name": "uuid"
                      }
                    ]
                  }
                },
                "id": "golem.core.EnvironmentId",
                "name": "golem.core.EnvironmentId"
              },
              {
                "body": {
                  "kind": "record",
                  "value": {
                    "fields": [
                      {
                        "body": {
                          "kind": "ref",
                          "value": {
                            "id": "golem.core.EnvironmentId"
                          }
                        },
                        "name": "environment_id"
                      },
                      {
                        "body": {
                          "kind": "string",
                          "value": {}
                        },
                        "name": "resource_name"
                      },
                      {
                        "body": {
                          "kind": "u64",
                          "value": {}
                        },
                        "name": "expected_use"
                      },
                      {
                        "body": {
                          "kind": "s64",
                          "value": {}
                        },
                        "name": "last_credit"
                      },
                      {
                        "body": {
                          "kind": "datetime",
                          "value": {}
                        },
                        "name": "last_credit_at"
                      }
                    ]
                  }
                },
                "id": "golem_schema.schema.schema_value.QuotaTokenValuePayload",
                "name": "QuotaTokenValuePayload"
              },
              {
                "body": {
                  "kind": "record",
                  "value": {
                    "fields": [
                      {
                        "body": {
                          "kind": "uuid",
                          "value": {}
                        },
                        "name": "card_id"
                      },
                      {
                        "body": {
                          "kind": "list",
                          "value": {
                            "element": {
                              "kind": "uuid",
                              "value": {}
                            }
                          }
                        },
                        "name": "parent_ids"
                      },
                      {
                        "body": {
                          "kind": "option",
                          "value": {
                            "inner": {
                              "kind": "datetime",
                              "value": {}
                            }
                          }
                        },
                        "name": "expires_at"
                      },
                      {
                        "body": {
                          "kind": "bool",
                          "value": {}
                        },
                        "name": "polymorphic"
                      }
                    ]
                  }
                },
                "id": "golem_schema.schema.schema_value.PermissionCardValuePayload",
                "name": "PermissionCardValuePayload"
              },
              {
                "body": {
                  "kind": "variant",
                  "value": {
                    "cases": [
                      {
                        "name": "Bool",
                        "payload": {
                          "kind": "bool",
                          "value": {}
                        }
                      },
                      {
                        "name": "S8",
                        "payload": {
                          "kind": "s8",
                          "value": {}
                        }
                      },
                      {
                        "name": "S16",
                        "payload": {
                          "kind": "s16",
                          "value": {}
                        }
                      },
                      {
                        "name": "S32",
                        "payload": {
                          "kind": "s32",
                          "value": {}
                        }
                      },
                      {
                        "name": "S64",
                        "payload": {
                          "kind": "s64",
                          "value": {}
                        }
                      },
                      {
                        "name": "U8",
                        "payload": {
                          "kind": "u8",
                          "value": {}
                        }
                      },
                      {
                        "name": "U16",
                        "payload": {
                          "kind": "u16",
                          "value": {}
                        }
                      },
                      {
                        "name": "U32",
                        "payload": {
                          "kind": "u32",
                          "value": {}
                        }
                      },
                      {
                        "name": "U64",
                        "payload": {
                          "kind": "u64",
                          "value": {}
                        }
                      },
                      {
                        "name": "F32",
                        "payload": {
                          "kind": "f32",
                          "value": {}
                        }
                      },
                      {
                        "name": "F64",
                        "payload": {
                          "kind": "f64",
                          "value": {}
                        }
                      },
                      {
                        "name": "Char",
                        "payload": {
                          "kind": "char",
                          "value": {}
                        }
                      },
                      {
                        "name": "String",
                        "payload": {
                          "kind": "string",
                          "value": {}
                        }
                      },
                      {
                        "name": "Record",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "list",
                                  "value": {
                                    "element": {
                                      "kind": "ref",
                                      "value": {
                                        "id": "schema-value"
                                      }
                                    }
                                  }
                                },
                                "name": "fields"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "Variant",
                        "payload": {
                          "kind": "ref",
                          "value": {
                            "id": "golem_schema.schema.schema_value.VariantValuePayload"
                          }
                        }
                      },
                      {
                        "name": "Enum",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "u32",
                                  "value": {}
                                },
                                "name": "case"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "Flags",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "list",
                                  "value": {
                                    "element": {
                                      "kind": "bool",
                                      "value": {}
                                    }
                                  }
                                },
                                "name": "bits"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "Tuple",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "list",
                                  "value": {
                                    "element": {
                                      "kind": "ref",
                                      "value": {
                                        "id": "schema-value"
                                      }
                                    }
                                  }
                                },
                                "name": "elements"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "List",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "list",
                                  "value": {
                                    "element": {
                                      "kind": "ref",
                                      "value": {
                                        "id": "schema-value"
                                      }
                                    }
                                  }
                                },
                                "name": "elements"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "FixedList",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "list",
                                  "value": {
                                    "element": {
                                      "kind": "ref",
                                      "value": {
                                        "id": "schema-value"
                                      }
                                    }
                                  }
                                },
                                "name": "elements"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "Map",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "list",
                                  "value": {
                                    "element": {
                                      "kind": "tuple",
                                      "value": {
                                        "elements": [
                                          {
                                            "kind": "ref",
                                            "value": {
                                              "id": "schema-value"
                                            }
                                          },
                                          {
                                            "kind": "ref",
                                            "value": {
                                              "id": "schema-value"
                                            }
                                          }
                                        ]
                                      }
                                    }
                                  }
                                },
                                "name": "entries"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "Option",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "option",
                                  "value": {
                                    "inner": {
                                      "kind": "ref",
                                      "value": {
                                        "id": "schema-value"
                                      }
                                    }
                                  }
                                },
                                "name": "inner"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "Result",
                        "payload": {
                          "kind": "ref",
                          "value": {
                            "id": "golem_schema.schema.schema_value.ResultValuePayload"
                          }
                        }
                      },
                      {
                        "name": "Text",
                        "payload": {
                          "kind": "ref",
                          "value": {
                            "id": "golem_schema.schema.schema_value.TextValuePayload"
                          }
                        }
                      },
                      {
                        "name": "Binary",
                        "payload": {
                          "kind": "ref",
                          "value": {
                            "id": "golem_schema.schema.schema_value.BinaryValuePayload"
                          }
                        }
                      },
                      {
                        "name": "Path",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "string",
                                  "value": {}
                                },
                                "name": "path"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "Url",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "string",
                                  "value": {}
                                },
                                "name": "url"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "Uuid",
                        "payload": {
                          "kind": "uuid",
                          "value": {}
                        }
                      },
                      {
                        "name": "Datetime",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "datetime",
                                  "value": {}
                                },
                                "name": "value"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "Duration",
                        "payload": {
                          "kind": "ref",
                          "value": {
                            "id": "golem_schema.schema.schema_value.DurationValuePayload"
                          }
                        }
                      },
                      {
                        "name": "Quantity",
                        "payload": {
                          "kind": "ref",
                          "value": {
                            "id": "golem_schema.schema.schema_type.QuantityValue"
                          }
                        }
                      },
                      {
                        "name": "Union",
                        "payload": {
                          "kind": "ref",
                          "value": {
                            "id": "golem_schema.schema.schema_value.UnionValuePayload"
                          }
                        }
                      },
                      {
                        "name": "Secret",
                        "payload": {
                          "kind": "ref",
                          "value": {
                            "id": "golem_schema.schema.schema_value.SecretValuePayload"
                          }
                        }
                      },
                      {
                        "name": "QuotaToken",
                        "payload": {
                          "kind": "ref",
                          "value": {
                            "id": "golem_schema.schema.schema_value.QuotaTokenValuePayload"
                          }
                        }
                      },
                      {
                        "name": "PermissionCard",
                        "payload": {
                          "kind": "ref",
                          "value": {
                            "id": "golem_schema.schema.schema_value.PermissionCardValuePayload"
                          }
                        }
                      },
                      {
                        "name": "Stream",
                        "payload": {
                          "kind": "stream",
                          "value": {
                            "inner": null
                          }
                        }
                      }
                    ]
                  }
                },
                "id": "schema-value",
                "name": "schema-value"
              },
              {
                "body": {
                  "kind": "record",
                  "value": {
                    "fields": [
                      {
                        "body": {
                          "kind": "ref",
                          "value": {
                            "id": "schema-graph"
                          }
                        },
                        "name": "graph"
                      },
                      {
                        "body": {
                          "kind": "ref",
                          "value": {
                            "id": "schema-value"
                          }
                        },
                        "name": "value"
                      }
                    ]
                  }
                },
                "id": "typed-schema-value",
                "name": "typed-schema-value"
              },
              {
                "body": {
                  "kind": "record",
                  "value": {
                    "fields": [
                      {
                        "body": {
                          "kind": "ref",
                          "value": {
                            "id": "typed-schema-value"
                          }
                        },
                        "name": "value"
                      }
                    ]
                  }
                },
                "id": "golem_common.model.oplog.payload.types.SerializableToolResultValue",
                "name": "SerializableToolResultValue"
              },
              {
                "body": {
                  "kind": "record",
                  "value": {
                    "fields": [
                      {
                        "body": {
                          "kind": "option",
                          "value": {
                            "inner": {
                              "kind": "ref",
                              "value": {
                                "id": "golem_common.model.oplog.payload.types.SerializableToolResultValue"
                              }
                            }
                          }
                        },
                        "name": "result"
                      }
                    ]
                  }
                },
                "id": "golem_common.model.oplog.payload.types.SerializableToolStructuredResult",
                "name": "SerializableToolStructuredResult"
              },
              {
                "body": {
                  "kind": "record",
                  "value": {
                    "fields": [
                      {
                        "body": {
                          "kind": "string",
                          "value": {}
                        },
                        "name": "name"
                      },
                      {
                        "body": {
                          "kind": "ref",
                          "value": {
                            "id": "typed-schema-value"
                          }
                        },
                        "name": "payload"
                      }
                    ]
                  }
                },
                "id": "golem_common.base_model.tool.SerializableCustomToolError",
                "name": "SerializableCustomToolError"
              },
              {
                "body": {
                  "kind": "variant",
                  "value": {
                    "cases": [
                      {
                        "name": "InvalidToolName",
                        "payload": {
                          "kind": "string",
                          "value": {}
                        }
                      },
                      {
                        "name": "InvalidCommandPath",
                        "payload": {
                          "kind": "list",
                          "value": {
                            "element": {
                              "kind": "string",
                              "value": {}
                            }
                          }
                        }
                      },
                      {
                        "name": "InvalidInput",
                        "payload": {
                          "kind": "string",
                          "value": {}
                        }
                      },
                      {
                        "name": "ConstraintViolation",
                        "payload": {
                          "kind": "string",
                          "value": {}
                        }
                      },
                      {
                        "name": "InvalidResult",
                        "payload": {
                          "kind": "string",
                          "value": {}
                        }
                      },
                      {
                        "name": "CustomError",
                        "payload": {
                          "kind": "ref",
                          "value": {
                            "id": "golem_common.base_model.tool.SerializableCustomToolError"
                          }
                        }
                      }
                    ]
                  }
                },
                "id": "golem_common.base_model.tool.SerializableToolError",
                "name": "SerializableToolError"
              },
              {
                "body": {
                  "kind": "variant",
                  "value": {
                    "cases": [
                      {
                        "name": "ProtocolError",
                        "payload": {
                          "kind": "string",
                          "value": {}
                        }
                      },
                      {
                        "name": "Denied",
                        "payload": {
                          "kind": "string",
                          "value": {}
                        }
                      },
                      {
                        "name": "NotFound",
                        "payload": {
                          "kind": "string",
                          "value": {}
                        }
                      },
                      {
                        "name": "RemoteInternalError",
                        "payload": {
                          "kind": "string",
                          "value": {}
                        }
                      },
                      {
                        "name": "RemoteToolError",
                        "payload": {
                          "kind": "ref",
                          "value": {
                            "id": "golem_common.base_model.tool.SerializableToolError"
                          }
                        }
                      },
                      {
                        "name": "Cancelled"
                      },
                      {
                        "name": "ResourceExhausted",
                        "payload": {
                          "kind": "string",
                          "value": {}
                        }
                      }
                    ]
                  }
                },
                "id": "golem_common.base_model.tool.SerializableToolRpcError",
                "name": "SerializableToolRpcError"
              },
              {
                "body": {
                  "kind": "enum",
                  "value": {
                    "cases": [
                      "SetRetryPolicy",
                      "RemoveRetryPolicy"
                    ]
                  }
                },
                "id": "golem_common.model.oplog.payload.types.SerializableToolPositionalRequest",
                "name": "SerializableToolPositionalRequest"
              },
              {
                "body": {
                  "kind": "record",
                  "value": {
                    "fields": [
                      {
                        "body": {
                          "kind": "string",
                          "value": {}
                        },
                        "name": "value"
                      }
                    ]
                  }
                },
                "id": "golem_common.base_model.IdempotencyKey",
                "name": "IdempotencyKey"
              },
              {
                "body": {
                  "kind": "record",
                  "value": {
                    "fields": [
                      {
                        "body": {
                          "kind": "uuid",
                          "value": {}
                        },
                        "name": "uuid"
                      }
                    ]
                  }
                },
                "id": "golem_common.base_model.environment.EnvironmentId",
                "name": "environment-id"
              },
              {
                "body": {
                  "kind": "record",
                  "value": {
                    "fields": [
                      {
                        "body": {
                          "kind": "uuid",
                          "value": {}
                        },
                        "name": "uuid"
                      }
                    ]
                  }
                },
                "id": "golem_common.base_model.component.ComponentId",
                "name": "component-id"
              },
              {
                "body": {
                  "kind": "record",
                  "value": {
                    "fields": [
                      {
                        "body": {
                          "kind": "ref",
                          "value": {
                            "id": "golem_common.base_model.component.ComponentId"
                          }
                        },
                        "name": "component_id"
                      },
                      {
                        "body": {
                          "kind": "string",
                          "value": {}
                        },
                        "name": "agent_id"
                      }
                    ]
                  }
                },
                "id": "agent-id",
                "name": "agent-id"
              },
              {
                "body": {
                  "kind": "record",
                  "value": {
                    "fields": [
                      {
                        "body": {
                          "kind": "uuid",
                          "value": {}
                        },
                        "name": "uuid"
                      }
                    ]
                  }
                },
                "id": "golem_common.base_model.AgentFingerprint",
                "name": "agent-fingerprint"
              },
              {
                "body": {
                  "kind": "record",
                  "value": {
                    "fields": [
                      {
                        "body": {
                          "kind": "ref",
                          "value": {
                            "id": "golem_common.base_model.environment.EnvironmentId"
                          }
                        },
                        "name": "callee_environment_id"
                      },
                      {
                        "body": {
                          "kind": "ref",
                          "value": {
                            "id": "agent-id"
                          }
                        },
                        "name": "callee"
                      },
                      {
                        "body": {
                          "kind": "ref",
                          "value": {
                            "id": "golem_common.base_model.AgentFingerprint"
                          }
                        },
                        "name": "callee_fingerprint"
                      },
                      {
                        "body": {
                          "kind": "ref",
                          "value": {
                            "id": "golem_common.base_model.IdempotencyKey"
                          }
                        },
                        "name": "idempotency_key"
                      }
                    ]
                  }
                },
                "id": "golem_common.base_model.durable_stream.StreamInvocationId",
                "name": "StreamInvocationId"
              },
              {
                "body": {
                  "kind": "variant",
                  "value": {
                    "cases": [
                      {
                        "name": "Local",
                        "payload": {
                          "kind": "ref",
                          "value": {
                            "id": "golem_common.base_model.IdempotencyKey"
                          }
                        }
                      },
                      {
                        "name": "Remote",
                        "payload": {
                          "kind": "ref",
                          "value": {
                            "id": "golem_common.base_model.durable_stream.StreamInvocationId"
                          }
                        }
                      }
                    ]
                  }
                },
                "id": "golem_common.base_model.durable_stream.StreamRegistrationInvocation",
                "name": "StreamRegistrationInvocation"
              },
              {
                "body": {
                  "kind": "tuple",
                  "value": {
                    "elements": [
                      {
                        "kind": "u64",
                        "value": {}
                      }
                    ]
                  }
                },
                "id": "golem_common.base_model.durable_stream.LocalStreamId",
                "name": "LocalStreamId"
              },
              {
                "body": {
                  "kind": "tuple",
                  "value": {
                    "elements": [
                      {
                        "kind": "u64",
                        "value": {}
                      }
                    ]
                  }
                },
                "id": "golem_common.base_model.component.ComponentRevision",
                "name": "component-revision"
              },
              {
                "body": {
                  "kind": "record",
                  "value": {
                    "fields": [
                      {
                        "body": {
                          "kind": "u8",
                          "value": {}
                        },
                        "name": "format_version"
                      },
                      {
                        "body": {
                          "kind": "uuid",
                          "value": {}
                        },
                        "name": "stream_id"
                      },
                      {
                        "body": {
                          "kind": "ref",
                          "value": {
                            "id": "golem_common.base_model.environment.EnvironmentId"
                          }
                        },
                        "name": "producer_environment_id"
                      },
                      {
                        "body": {
                          "kind": "ref",
                          "value": {
                            "id": "agent-id"
                          }
                        },
                        "name": "producer"
                      },
                      {
                        "body": {
                          "kind": "ref",
                          "value": {
                            "id": "golem_common.base_model.AgentFingerprint"
                          }
                        },
                        "name": "expected_producer_fingerprint"
                      },
                      {
                        "body": {
                          "kind": "u64",
                          "value": {}
                        },
                        "name": "producer_generation"
                      },
                      {
                        "body": {
                          "kind": "ref",
                          "value": {
                            "id": "golem_common.base_model.durable_stream.StreamInvocationId"
                          }
                        },
                        "name": "source_invocation"
                      },
                      {
                        "body": {
                          "kind": "ref",
                          "value": {
                            "id": "golem_common.base_model.component.ComponentRevision"
                          }
                        },
                        "name": "component_revision"
                      },
                      {
                        "body": {
                          "kind": "list",
                          "value": {
                            "element": {
                              "kind": "u8",
                              "value": {}
                            }
                          }
                        },
                        "name": "element_schema_fingerprint"
                      }
                    ]
                  }
                },
                "id": "golem_common.base_model.durable_stream.DurableStreamHandle",
                "name": "DurableStreamHandle"
              },
              {
                "body": {
                  "kind": "variant",
                  "value": {
                    "cases": [
                      {
                        "name": "Local",
                        "payload": {
                          "kind": "ref",
                          "value": {
                            "id": "golem_common.base_model.durable_stream.LocalStreamId"
                          }
                        }
                      },
                      {
                        "name": "Foreign",
                        "payload": {
                          "kind": "ref",
                          "value": {
                            "id": "golem_common.base_model.durable_stream.DurableStreamHandle"
                          }
                        }
                      }
                    ]
                  }
                },
                "id": "golem_common.base_model.durable_stream.StreamRecordReference",
                "name": "StreamRecordReference"
              },
              {
                "body": {
                  "kind": "enum",
                  "value": {
                    "cases": [
                      "Input",
                      "Output",
                      "ToolStdin",
                      "ToolStdout",
                      "ToolStderr"
                    ]
                  }
                },
                "id": "golem_common.base_model.durable_stream.SessionStreamRole",
                "name": "SessionStreamRole"
              },
              {
                "body": {
                  "kind": "record",
                  "value": {
                    "fields": [
                      {
                        "body": {
                          "kind": "u64",
                          "value": {}
                        },
                        "name": "transport_stream_id"
                      },
                      {
                        "body": {
                          "kind": "ref",
                          "value": {
                            "id": "golem_common.base_model.durable_stream.StreamRecordReference"
                          }
                        },
                        "name": "source"
                      },
                      {
                        "body": {
                          "kind": "ref",
                          "value": {
                            "id": "golem_common.base_model.durable_stream.SessionStreamRole"
                          }
                        },
                        "name": "role"
                      }
                    ]
                  }
                },
                "id": "golem_common.base_model.durable_stream.StreamBindingRecord",
                "name": "StreamBindingRecord"
              },
              {
                "body": {
                  "kind": "variant",
                  "value": {
                    "cases": [
                      {
                        "name": "Host"
                      },
                      {
                        "name": "Guest",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "option",
                                  "value": {
                                    "inner": {
                                      "kind": "u64",
                                      "value": {}
                                    }
                                  }
                                },
                                "name": "parent_start_index"
                              }
                            ]
                          }
                        }
                      }
                    ]
                  }
                },
                "id": "golem_common.base_model.durable_stream.StreamConsumerObservation",
                "name": "StreamConsumerObservation"
              },
              {
                "body": {
                  "kind": "enum",
                  "value": {
                    "cases": [
                      "Stdin",
                      "Stdout",
                      "Stderr",
                      "Output"
                    ]
                  }
                },
                "id": "golem_common.base_model.oplog.attachment.ToolAttachmentSlot",
                "name": "ToolAttachmentSlot"
              },
              {
                "body": {
                  "kind": "record",
                  "value": {
                    "fields": [
                      {
                        "body": {
                          "kind": "u64",
                          "value": {}
                        },
                        "name": "creation_start"
                      },
                      {
                        "body": {
                          "kind": "ref",
                          "value": {
                            "id": "golem_common.base_model.oplog.attachment.ToolAttachmentSlot"
                          }
                        },
                        "name": "slot"
                      }
                    ]
                  }
                },
                "id": "golem_common.base_model.oplog.attachment.ToolAttachmentId",
                "name": "ToolAttachmentId"
              },
              {
                "body": {
                  "kind": "variant",
                  "value": {
                    "cases": [
                      {
                        "name": "Cancelled"
                      },
                      {
                        "name": "Abandoned"
                      },
                      {
                        "name": "ResourceExhausted"
                      },
                      {
                        "name": "Failed",
                        "payload": {
                          "kind": "string",
                          "value": {}
                        }
                      }
                    ]
                  }
                },
                "id": "golem_common.base_model.oplog.attachment.ByteStreamFailure",
                "name": "ByteStreamFailure"
              },
              {
                "body": {
                  "kind": "variant",
                  "value": {
                    "cases": [
                      {
                        "name": "Finished"
                      },
                      {
                        "name": "Failed",
                        "payload": {
                          "kind": "ref",
                          "value": {
                            "id": "golem_common.base_model.oplog.attachment.ByteStreamFailure"
                          }
                        }
                      },
                      {
                        "name": "ConsumerCancelled"
                      }
                    ]
                  }
                },
                "id": "golem_common.base_model.oplog.attachment.ByteStreamCloseCause",
                "name": "ByteStreamCloseCause"
              },
              {
                "body": {
                  "kind": "variant",
                  "value": {
                    "cases": [
                      {
                        "name": "Application",
                        "payload": {
                          "kind": "ref",
                          "value": {
                            "id": "golem_common.base_model.oplog.attachment.ByteStreamCloseCause"
                          }
                        }
                      },
                      {
                        "name": "HostResourceExhausted"
                      }
                    ]
                  }
                },
                "id": "golem_common.base_model.oplog.attachment.ToolAttachmentTerminal",
                "name": "ToolAttachmentTerminal"
              },
              {
                "body": {
                  "kind": "variant",
                  "value": {
                    "cases": [
                      {
                        "name": "BeforeStart",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "string",
                                  "value": {}
                                },
                                "name": "initiating_function"
                              },
                              {
                                "body": {
                                  "kind": "list",
                                  "value": {
                                    "element": {
                                      "kind": "u8",
                                      "value": {}
                                    }
                                  }
                                },
                                "name": "claim"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "AtRecordedOplogEntry",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "u64",
                                  "value": {}
                                },
                                "name": "index"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "BeforePositional",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "golem_common.model.oplog.payload.types.SerializableToolPositionalRequest"
                                  }
                                },
                                "name": "request"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "BeforeInputRead",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "golem_common.base_model.durable_stream.StreamRegistrationInvocation"
                                  }
                                },
                                "name": "session"
                              },
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "golem_common.base_model.durable_stream.StreamBindingRecord"
                                  }
                                },
                                "name": "binding"
                              },
                              {
                                "body": {
                                  "kind": "u64",
                                  "value": {}
                                },
                                "name": "consumer_read_ordinal"
                              },
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "golem_common.base_model.durable_stream.StreamConsumerObservation"
                                  }
                                },
                                "name": "observation"
                              }
                            ]
                          }
                        }
                      },
                      {
                        "name": "BeforeAttachmentDisposal",
                        "payload": {
                          "kind": "record",
                          "value": {
                            "fields": [
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "golem_common.base_model.oplog.attachment.ToolAttachmentId"
                                  }
                                },
                                "name": "attachment"
                              },
                              {
                                "body": {
                                  "kind": "ref",
                                  "value": {
                                    "id": "golem_common.base_model.oplog.attachment.ToolAttachmentTerminal"
                                  }
                                },
                                "name": "terminal"
                              }
                            ]
                          }
                        }
                      }
                    ]
                  }
                },
                "id": "golem_common.model.oplog.payload.types.SerializableToolAdmissionRefusal",
                "name": "SerializableToolAdmissionRefusal"
              },
              {
                "body": {
                  "kind": "record",
                  "value": {
                    "fields": [
                      {
                        "body": {
                          "kind": "ref",
                          "value": {
                            "id": "golem_common.model.oplog.payload.types.SerializableEntityBodyExecution"
                          }
                        },
                        "name": "body_execution"
                      },
                      {
                        "body": {
                          "kind": "result",
                          "value": {
                            "spec": {
                              "err": {
                                "kind": "ref",
                                "value": {
                                  "id": "golem_common.base_model.tool.SerializableToolRpcError"
                                }
                              },
                              "ok": {
                                "kind": "ref",
                                "value": {
                                  "id": "golem_common.model.oplog.payload.types.SerializableToolStructuredResult"
                                }
                              }
                            }
                          }
                        },
                        "name": "result"
                      },
                      {
                        "body": {
                          "kind": "option",
                          "value": {
                            "inner": {
                              "kind": "ref",
                              "value": {
                                "id": "golem_common.model.oplog.payload.types.SerializableToolAdmissionRefusal"
                              }
                            }
                          }
                        },
                        "name": "admission_refusal"
                      }
                    ]
                  }
                },
                "id": "golem_common.model.oplog.payload.types.SerializableToolOperationTerminal",
                "name": "SerializableToolOperationTerminal"
              }
            ],
            "root": {
              "kind": "ref",
              "value": {
                "id": "golem_common.model.oplog.payload.types.SerializableToolOperationTerminal"
              }
            }
          },
          "value": {
            "kind": "record",
            "value": {
              "fields": [
                {
                  "kind": "enum",
                  "value": {
                    "case": 0
                  }
                },
                {
                  "kind": "result",
                  "value": {
                    "tag": "err",
                    "value": {
                      "kind": "variant",
                      "value": {
                        "case": 4,
                        "payload": {
                          "kind": "variant",
                          "value": {
                            "case": 3,
                            "payload": {
                              "kind": "string",
                              "value": "Knife policy denies target: /protected/safety-cable.txt"
                            }
                          }
                        }
                      }
                    }
                  }
                },
                {
                  "kind": "option",
                  "value": {
                    "inner": null
                  }
                }
              ]
            }
          }
        },
        "spanAttributes": null,
        "spanFinished": {
          "finishedAt": "2026-10-27T17:07:41.947Z",
          "outcome": "failed",
          "spanId": "e46d4033bff4192c"
        },
        "startIndex": 31,
        "timestamp": "2026-10-27T17:07:41.947Z",
        "type": "End"
      },
      "index": 55
    },
    {
      "$type": "agent.oplog",
      "attribution": {
        "type": "Agent"
      },
      "entry": {
        "context": "",
        "level": "Stdout",
        "message": "MIDDLEWARE_RESULT {\"tag\":\"rpc\",\"error\":{\"tag\":\"remote-tool-error\",\"val\":{\"tag\":\"constraint-violation\",\"val\":\"Knife policy denies target: /protected/safety-cable.txt\"}}}\n",
        "timestamp": "2026-10-27T17:07:41.949Z",
        "traceContext": {
          "spanId": "39c87c02010964c6",
          "traceId": "482ece1f34c74defa4175beaa9f94c11"
        },
        "type": "Log"
      },
      "index": 58
    },
    {
      "$type": "agent.oplog",
      "attribution": {
        "type": "Agent"
      },
      "entry": {
        "denial": "The permission target Filesystem(ClassPermissionTarget { verb: Some(Write), owner: Agent { account: AccountEmail(\"initial@user\"), application: ApplicationName(\"golem-parcel-lab\"), environment: EnvironmentName(\"local\"), component: ComponentName(\"golem-parcel-lab:ts-main\"), agent: Agent(\"ParcelAgent(\\\"parcel-1793120850433-bb1f66b6\\\")\") }, resource: Path(FilesystemPathPattern { segments: [Literal(\"protected\"), Literal(\"safety-cable.txt\")] }) }) is not allowed",
        "durableFunctionType": {
          "type": "ReadLocal"
        },
        "functionName": "filesystem::permissions::check",
        "invocationId": {
          "anchor": 30,
          "ordinal": 2
        },
        "observationalOwner": null,
        "parentStartIndex": null,
        "request": {
          "graph": {
            "defs": [
              {
                "body": {
                  "kind": "record",
                  "value": {
                    "fields": [
                      {
                        "body": {
                          "kind": "list",
                          "value": {
                            "element": {
                              "kind": "tuple",
                              "value": {
                                "elements": [
                                  {
                                    "kind": "string",
                                    "value": {}
                                  },
                                  {
                                    "kind": "string",
                                    "value": {}
                                  }
                                ]
                              }
                            }
                          }
                        },
                        "name": "requests"
                      }
                    ]
                  }
                },
                "id": "golem_common.model.oplog.payload.HostRequestFileSystemPermissionCheck",
                "name": "r#HostRequestFileSystemPermissionCheck"
              }
            ],
            "root": {
              "kind": "ref",
              "value": {
                "id": "golem_common.model.oplog.payload.HostRequestFileSystemPermissionCheck"
              }
            }
          },
          "value": {
            "kind": "record",
            "value": {
              "fields": [
                {
                  "kind": "list",
                  "value": {
                    "elements": [
                      {
                        "kind": "tuple",
                        "value": {
                          "elements": [
                            {
                              "kind": "string",
                              "value": "write"
                            },
                            {
                              "kind": "string",
                              "value": "/protected/safety-cable.txt"
                            }
                          ]
                        }
                      }
                    ]
                  }
                }
              ]
            }
          }
        },
        "spanStarted": null,
        "timestamp": "2026-10-27T17:07:41.949Z",
        "type": "Start"
      },
      "index": 59
    },
    {
      "$type": "agent.oplog",
      "attribution": {
        "type": "Agent"
      },
      "entry": {
        "forcedCommit": false,
        "response": {
          "graph": {
            "defs": [
              {
                "body": {
                  "kind": "record",
                  "value": {
                    "fields": [
                      {
                        "body": {
                          "kind": "result",
                          "value": {
                            "spec": {
                              "err": {
                                "kind": "string",
                                "value": {}
                              }
                            }
                          }
                        },
                        "name": "result"
                      }
                    ]
                  }
                },
                "id": "golem_common.model.oplog.payload.HostResponsePermissionCheck",
                "name": "r#HostResponsePermissionCheck"
              }
            ],
            "root": {
              "kind": "ref",
              "value": {
                "id": "golem_common.model.oplog.payload.HostResponsePermissionCheck"
              }
            }
          },
          "value": {
            "kind": "record",
            "value": {
              "fields": [
                {
                  "kind": "result",
                  "value": {
                    "tag": "err",
                    "value": {
                      "kind": "string",
                      "value": "The permission target Filesystem(ClassPermissionTarget { verb: Some(Write), owner: Agent { account: AccountEmail(\"initial@user\"), application: ApplicationName(\"golem-parcel-lab\"), environment: EnvironmentName(\"local\"), component: ComponentName(\"golem-parcel-lab:ts-main\"), agent: Agent(\"ParcelAgent(\\\"parcel-1793120850433-bb1f66b6\\\")\") }, resource: Path(FilesystemPathPattern { segments: [Literal(\"protected\"), Literal(\"safety-cable.txt\")] }) }) is not allowed"
                    }
                  }
                }
              ]
            }
          }
        },
        "spanAttributes": null,
        "spanFinished": null,
        "startIndex": 59,
        "timestamp": "2026-10-27T17:07:41.949Z",
        "type": "End"
      },
      "index": 60
    },
    {
      "$type": "agent.oplog",
      "attribution": {
        "type": "Agent"
      },
      "entry": {
        "context": "",
        "level": "Stdout",
        "message": "DIRECT_WRITE_RESULT EACCES: permission denied, open '/protected/safety-cable.txt'\n",
        "timestamp": "2026-10-27T17:07:41.950Z",
        "traceContext": {
          "spanId": "39c87c02010964c6",
          "traceId": "482ece1f34c74defa4175beaa9f94c11"
        },
        "type": "Log"
      },
      "index": 61
    },
    {
      "$type": "agent.oplog",
      "attribution": {
        "ancestors": [
          {
            "callMode": "asynchronous",
            "entity": {
              "kind": "toolMiddleware",
              "name": "knife-policy"
            },
            "operation": {
              "commandPath": [],
              "declaresStderr": false,
              "declaresStdout": false,
              "hasStderr": false,
              "hasStdin": false,
              "hasStdout": false,
              "type": "Tool"
            },
            "startIndex": 62
          }
        ],
        "invocation": {
          "callMode": "asynchronous",
          "entity": {
            "kind": "tool",
            "name": "knife"
          },
          "operation": {
            "commandPath": [],
            "declaresStderr": false,
            "declaresStdout": false,
            "hasStderr": false,
            "hasStdin": false,
            "hasStdout": false,
            "type": "Tool"
          },
          "startIndex": 86
        },
        "type": "Entity"
      },
      "entry": {
        "denial": null,
        "durableFunctionType": {
          "type": "ReadLocal"
        },
        "functionName": "filesystem::permissions::check",
        "invocationId": {
          "anchor": 86,
          "ordinal": 11
        },
        "observationalOwner": null,
        "parentStartIndex": 86,
        "request": {
          "graph": {
            "defs": [
              {
                "body": {
                  "kind": "record",
                  "value": {
                    "fields": [
                      {
                        "body": {
                          "kind": "list",
                          "value": {
                            "element": {
                              "kind": "tuple",
                              "value": {
                                "elements": [
                                  {
                                    "kind": "string",
                                    "value": {}
                                  },
                                  {
                                    "kind": "string",
                                    "value": {}
                                  }
                                ]
                              }
                            }
                          }
                        },
                        "name": "requests"
                      }
                    ]
                  }
                },
                "id": "golem_common.model.oplog.payload.HostRequestFileSystemPermissionCheck",
                "name": "r#HostRequestFileSystemPermissionCheck"
              }
            ],
            "root": {
              "kind": "ref",
              "value": {
                "id": "golem_common.model.oplog.payload.HostRequestFileSystemPermissionCheck"
              }
            }
          },
          "value": {
            "kind": "record",
            "value": {
              "fields": [
                {
                  "kind": "list",
                  "value": {
                    "elements": [
                      {
                        "kind": "tuple",
                        "value": {
                          "elements": [
                            {
                              "kind": "string",
                              "value": "write"
                            },
                            {
                              "kind": "string",
                              "value": "/workspace/parcel.cuts"
                            }
                          ]
                        }
                      }
                    ]
                  }
                }
              ]
            }
          }
        },
        "spanStarted": null,
        "timestamp": "2026-10-27T17:07:41.961Z",
        "type": "Start"
      },
      "index": 110
    },
    {
      "$type": "agent.oplog",
      "attribution": {
        "ancestors": [
          {
            "callMode": "asynchronous",
            "entity": {
              "kind": "toolMiddleware",
              "name": "knife-policy"
            },
            "operation": {
              "commandPath": [],
              "declaresStderr": false,
              "declaresStdout": false,
              "hasStderr": false,
              "hasStdin": false,
              "hasStdout": false,
              "type": "Tool"
            },
            "startIndex": 62
          }
        ],
        "invocation": {
          "callMode": "asynchronous",
          "entity": {
            "kind": "tool",
            "name": "knife"
          },
          "operation": {
            "commandPath": [],
            "declaresStderr": false,
            "declaresStdout": false,
            "hasStderr": false,
            "hasStdin": false,
            "hasStdout": false,
            "type": "Tool"
          },
          "startIndex": 86
        },
        "type": "Entity"
      },
      "entry": {
        "forcedCommit": false,
        "response": {
          "graph": {
            "defs": [
              {
                "body": {
                  "kind": "record",
                  "value": {
                    "fields": [
                      {
                        "body": {
                          "kind": "result",
                          "value": {
                            "spec": {
                              "err": {
                                "kind": "string",
                                "value": {}
                              }
                            }
                          }
                        },
                        "name": "result"
                      }
                    ]
                  }
                },
                "id": "golem_common.model.oplog.payload.HostResponsePermissionCheck",
                "name": "r#HostResponsePermissionCheck"
              }
            ],
            "root": {
              "kind": "ref",
              "value": {
                "id": "golem_common.model.oplog.payload.HostResponsePermissionCheck"
              }
            }
          },
          "value": {
            "kind": "record",
            "value": {
              "fields": [
                {
                  "kind": "result",
                  "value": {
                    "tag": "ok",
                    "value": null
                  }
                }
              ]
            }
          }
        },
        "spanAttributes": null,
        "spanFinished": null,
        "startIndex": 110,
        "timestamp": "2026-10-27T17:07:41.961Z",
        "type": "End"
      },
      "index": 111
    },
    {
      "$type": "agent.oplog",
      "attribution": {
        "ancestors": [
          {
            "callMode": "asynchronous",
            "entity": {
              "kind": "toolMiddleware",
              "name": "knife-policy"
            },
            "operation": {
              "commandPath": [],
              "declaresStderr": false,
              "declaresStdout": false,
              "hasStderr": false,
              "hasStdin": false,
              "hasStdout": false,
              "type": "Tool"
            },
            "startIndex": 62
          }
        ],
        "invocation": {
          "callMode": "asynchronous",
          "entity": {
            "kind": "tool",
            "name": "knife"
          },
          "operation": {
            "commandPath": [],
            "declaresStderr": false,
            "declaresStdout": false,
            "hasStderr": false,
            "hasStdin": false,
            "hasStdout": false,
            "type": "Tool"
          },
          "startIndex": 86
        },
        "type": "Entity"
      },
      "entry": {
        "denial": null,
        "durableFunctionType": {
          "type": "ReadLocal"
        },
        "functionName": "filesystem::permissions::check",
        "invocationId": {
          "anchor": 86,
          "ordinal": 13
        },
        "observationalOwner": null,
        "parentStartIndex": 86,
        "request": {
          "graph": {
            "defs": [
              {
                "body": {
                  "kind": "record",
                  "value": {
                    "fields": [
                      {
                        "body": {
                          "kind": "list",
                          "value": {
                            "element": {
                              "kind": "tuple",
                              "value": {
                                "elements": [
                                  {
                                    "kind": "string",
                                    "value": {}
                                  },
                                  {
                                    "kind": "string",
                                    "value": {}
                                  }
                                ]
                              }
                            }
                          }
                        },
                        "name": "requests"
                      }
                    ]
                  }
                },
                "id": "golem_common.model.oplog.payload.HostRequestFileSystemPermissionCheck",
                "name": "r#HostRequestFileSystemPermissionCheck"
              }
            ],
            "root": {
              "kind": "ref",
              "value": {
                "id": "golem_common.model.oplog.payload.HostRequestFileSystemPermissionCheck"
              }
            }
          },
          "value": {
            "kind": "record",
            "value": {
              "fields": [
                {
                  "kind": "list",
                  "value": {
                    "elements": [
                      {
                        "kind": "tuple",
                        "value": {
                          "elements": [
                            {
                              "kind": "string",
                              "value": "write"
                            },
                            {
                              "kind": "string",
                              "value": "/workspace/parcel.cuts"
                            }
                          ]
                        }
                      }
                    ]
                  }
                }
              ]
            }
          }
        },
        "spanStarted": null,
        "timestamp": "2026-10-27T17:07:41.962Z",
        "type": "Start"
      },
      "index": 114
    },
    {
      "$type": "agent.oplog",
      "attribution": {
        "ancestors": [
          {
            "callMode": "asynchronous",
            "entity": {
              "kind": "toolMiddleware",
              "name": "knife-policy"
            },
            "operation": {
              "commandPath": [],
              "declaresStderr": false,
              "declaresStdout": false,
              "hasStderr": false,
              "hasStdin": false,
              "hasStdout": false,
              "type": "Tool"
            },
            "startIndex": 62
          }
        ],
        "invocation": {
          "callMode": "asynchronous",
          "entity": {
            "kind": "tool",
            "name": "knife"
          },
          "operation": {
            "commandPath": [],
            "declaresStderr": false,
            "declaresStdout": false,
            "hasStderr": false,
            "hasStdin": false,
            "hasStdout": false,
            "type": "Tool"
          },
          "startIndex": 86
        },
        "type": "Entity"
      },
      "entry": {
        "forcedCommit": false,
        "response": {
          "graph": {
            "defs": [
              {
                "body": {
                  "kind": "record",
                  "value": {
                    "fields": [
                      {
                        "body": {
                          "kind": "result",
                          "value": {
                            "spec": {
                              "err": {
                                "kind": "string",
                                "value": {}
                              }
                            }
                          }
                        },
                        "name": "result"
                      }
                    ]
                  }
                },
                "id": "golem_common.model.oplog.payload.HostResponsePermissionCheck",
                "name": "r#HostResponsePermissionCheck"
              }
            ],
            "root": {
              "kind": "ref",
              "value": {
                "id": "golem_common.model.oplog.payload.HostResponsePermissionCheck"
              }
            }
          },
          "value": {
            "kind": "record",
            "value": {
              "fields": [
                {
                  "kind": "result",
                  "value": {
                    "tag": "ok",
                    "value": null
                  }
                }
              ]
            }
          }
        },
        "spanAttributes": null,
        "spanFinished": null,
        "startIndex": 114,
        "timestamp": "2026-10-27T17:07:41.962Z",
        "type": "End"
      },
      "index": 115
    }
  ],
  "recoveryEntries": []
}
