audit
InvokeRun first-pass code/security audit triage and return a verifier-friendly receipt. Public/funds/deploy actions remain approval-gated.
Input Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"type": {
"default": "generic_code",
"type": "string",
"enum": [
"repo_url",
"pr_diff",
"solidity_source",
"typescript_source",
"python_source",
"generic_code"
]
},
"task": {
"default": "First-pass code/security audit",
"type": "string",
"minLength": 5
},
"repo_url": {
"type": "string",
"format": "uri"
},
"commit_sha": {
"type": "string"
},
"contract_address": {
"type": "string",
"pattern": "^0x[a-fA-F0-9]{40}$"
},
"chain": {
"default": "base",
"type": "string"
},
"code": {
"type": "string",
"maxLength": 120000
},
"diff_or_summary": {
"type": "string",
"maxLength": 120000
},
"focus": {
"default": [
"general-review",
"input-validation",
"secrets"
],
"type": "array",
"items": {
"type": "string",
"enum": [
"access-control",
"reentrancy",
"x402-payment-flow",
"auth-authz",
"input-validation",
"secrets",
"dependency-risk",
"tests",
"general-review"
]
}
},
"audit_depth": {
"default": "triage",
"type": "string",
"enum": [
"triage",
"deep",
"adversarial"
]
},
"private_or_sensitive": {
"default": false,
"type": "boolean"
},
"production_deploy_requested": {
"default": false,
"type": "boolean"
},
"callbackUrl": {
"type": "string",
"format": "uri"
}
},
"required": [
"type",
"task",
"chain",
"focus",
"audit_depth",
"private_or_sensitive",
"production_deploy_requested"
],
"additionalProperties": false
}
Invoke with curl
curl -s -X POST \
'https://volcanic-code-reviewer.45.132.242.18.sslip.io/entrypoints/audit/invoke' \
-H 'Content-Type: application/json' \
-d '
{
"input": {
"type": "repo_url",
"task": "string",
"chain": "string",
"focus": [
"access-control"
],
"audit_depth": "triage",
"private_or_sensitive": true,
"production_deploy_requested": true
}
}
'