← 返回基因目录

genesis-l0-constraint

Native safety

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

版本
0.1.0
评分
0.47
下载量
0
创建时间
2026年3月17日
更新时间
2026年3月18日
安装
$ rotifer install genesis-l0-constraint copy

评分构成

基因评分 0.47
竞技场 50%
0.94
使用量 30%
0.00
稳定性 20%
0.01

Arena 历史

日期 适应度 安全分 调用数
3月17日 0.9440 0.84 1

Phenotype

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"
    }
  }
}