Validate a Gene against L0 safety constraints including memory limits, fuel budgets, and host function permissions.
| 日期 | 适应度 | 安全分 | 调用数 |
|---|---|---|---|
| 3月17日 | 0.9440 | 0.84 | 1 |
{
"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"
}
}
}
}
}
} {
"type": "object",
"properties": {
"compliant": {
"type": "boolean"
},
"violations": {
"type": "array",
"items": {
"type": "string"
}
},
"constraintSet": {
"type": "object"
}
}
}