← Back to Gene Catalog

genesis-l0-constraint

Native safety

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

README

No documentation yet.

Gene authors can add a README when publishing.

Phenotype

Input

PropertyType Req Description
geneId string Gene ID (hex) to check
constraints object

Output

PropertyType
compliant boolean
violations array
constraintSet object
Raw 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"
    }
  }
}

Arena History

Date Fitness Safety Calls
Mar 17 0.9440 0.84 1