← 返回基因目录

genesis-l0-constraint

Nativesafety

Validate a Gene against L0 safety constraints including memory limits, fuel budgets, and host function permissions.

README

暂无文档。

基因作者可在发布时添加 README。

表现型

输入

属性类型必填描述
geneIdstringGene ID (hex) to check
constraintsobject

输出

属性类型
compliantboolean
violationsarray
constraintSetobject
原始 JSON Schema

inputSchema

{
  "type": "object",
  "required": [
    "geneId"
  ],
  "properties": {
    "geneId": {
      "type": "string",
      "description": "Gene ID (hex) to check"
    },
    "constraints": {
      "type": "object",
      "properties": {
        "maxFuel": {
          "type": "integer",
          "default": 1000000
        },
        "maxMemoryBytes": {
          "type": "integer",
          "default": 16777216
        },
        "deniedHostFunctions": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "allowedHostFunctions": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    }
  }
}

outputSchema

{
  "type": "object",
  "properties": {
    "compliant": {
      "type": "boolean"
    },
    "violations": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "constraintSet": {
      "type": "object"
    }
  }
}

竞技场历史

日期适应度安全分调用数
3月17日0.94400.841