reverse-skills-max: initial public release (restored, redacted, hardened)
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://jsra.local/schemas/adversarial_trace.schema.json",
|
||||
"title": "JSRA Adversarial Runtime Trace",
|
||||
"type": "object",
|
||||
"required": ["state"],
|
||||
"properties": {
|
||||
"exportedAt": { "type": "integer", "minimum": 0 },
|
||||
"state": {
|
||||
"type": "object",
|
||||
"required": ["mode", "events", "patches", "realms", "health"],
|
||||
"properties": {
|
||||
"mode": { "enum": ["observe", "intervene"] },
|
||||
"events": { "type": "array", "items": { "$ref": "#/$defs/event" } },
|
||||
"patches": { "type": "array", "items": { "type": "object" } },
|
||||
"realms": { "type": "array", "items": { "type": "object" } },
|
||||
"dropped": { "type": "integer", "minimum": 0 },
|
||||
"health": { "type": "object" }
|
||||
},
|
||||
"additionalProperties": true
|
||||
}
|
||||
},
|
||||
"additionalProperties": true,
|
||||
"$defs": {
|
||||
"event": {
|
||||
"type": "object",
|
||||
"required": ["event_id", "trace_id", "type", "timestamp"],
|
||||
"properties": {
|
||||
"event_id": { "type": "string", "minLength": 1 },
|
||||
"trace_id": { "type": "string", "minLength": 1 },
|
||||
"type": { "type": "string", "minLength": 1 },
|
||||
"timestamp": { "type": "integer", "minimum": 0 }
|
||||
},
|
||||
"additionalProperties": true
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,154 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://jsra.local/schemas/analysis_result.schema.json",
|
||||
"title": "JSRA Analysis Result",
|
||||
"type": "object",
|
||||
"required": ["authorization", "target"],
|
||||
"properties": {
|
||||
"authorization": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"confirmed"
|
||||
],
|
||||
"properties": {
|
||||
"confirmed": {
|
||||
"const": true
|
||||
},
|
||||
"scope_note": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"additionalProperties": true
|
||||
},
|
||||
"target": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"url_pattern"
|
||||
],
|
||||
"properties": {
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"url_pattern": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"method": {
|
||||
"type": "string"
|
||||
},
|
||||
"request_content_type": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"additionalProperties": true
|
||||
},
|
||||
"jsrpc": {
|
||||
"type": "object"
|
||||
},
|
||||
"verification": {
|
||||
"type": "object"
|
||||
},
|
||||
"evidence_gate": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"requires_runtime_proof": { "type": "boolean" },
|
||||
"requires_e2e": { "type": "boolean" },
|
||||
"blocked_until": { "type": "array", "items": { "type": "string" } }
|
||||
},
|
||||
"additionalProperties": true
|
||||
},
|
||||
"provenance": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"probe_dump": { "type": "string" },
|
||||
"module_dump": { "type": "string" },
|
||||
"evidence_graph": { "type": "string" },
|
||||
"differential_verification": { "type": "string" }
|
||||
},
|
||||
"additionalProperties": true
|
||||
},
|
||||
"transforms": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"id",
|
||||
"direction",
|
||||
"location",
|
||||
"action"
|
||||
],
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"direction": {
|
||||
"enum": [
|
||||
"request",
|
||||
"response"
|
||||
]
|
||||
},
|
||||
"location": {
|
||||
"enum": [
|
||||
"body",
|
||||
"query",
|
||||
"header",
|
||||
"cookie",
|
||||
"response"
|
||||
]
|
||||
},
|
||||
"content_type": {
|
||||
"enum": [
|
||||
"json",
|
||||
"form",
|
||||
"raw",
|
||||
"auto"
|
||||
]
|
||||
},
|
||||
"path": {
|
||||
"type": "string"
|
||||
},
|
||||
"action": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"candidate_path": {
|
||||
"type": "string"
|
||||
},
|
||||
"safe_to_invoke": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"arguments": {
|
||||
"type": "array"
|
||||
},
|
||||
"preserve_order": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"dependencies": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"additionalProperties": true
|
||||
}
|
||||
},
|
||||
"parameters": {
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"anyOf": [
|
||||
{
|
||||
"required": [
|
||||
"transforms"
|
||||
]
|
||||
},
|
||||
{
|
||||
"required": [
|
||||
"parameters"
|
||||
]
|
||||
}
|
||||
],
|
||||
"additionalProperties": true
|
||||
}
|
||||
@@ -0,0 +1,82 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"type": "object",
|
||||
"required": ["candidates"],
|
||||
"properties": {
|
||||
"candidates": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"id",
|
||||
"name",
|
||||
"scores",
|
||||
"total_score",
|
||||
"verified",
|
||||
"confidence"
|
||||
],
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"scores": {
|
||||
"type": "object"
|
||||
},
|
||||
"total_score": {
|
||||
"type": "number"
|
||||
},
|
||||
"verified": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"confidence": {
|
||||
"enum": [
|
||||
"high",
|
||||
"medium",
|
||||
"low"
|
||||
]
|
||||
},
|
||||
"evidence": {
|
||||
"type": "array"
|
||||
},
|
||||
"verification": {
|
||||
"type": "array"
|
||||
},
|
||||
"provenance": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"probe_dump",
|
||||
"differential_verification"
|
||||
],
|
||||
"properties": {
|
||||
"probe_dump": { "type": "string", "minLength": 1 },
|
||||
"module_dump": { "type": "string" },
|
||||
"evidence_graph": { "type": "string" },
|
||||
"differential_verification": { "type": "string", "minLength": 1 }
|
||||
},
|
||||
"additionalProperties": true
|
||||
}
|
||||
},
|
||||
"additionalProperties": true,
|
||||
"allOf": [
|
||||
{
|
||||
"if": {
|
||||
"properties": {
|
||||
"verified": { "const": true }
|
||||
}
|
||||
},
|
||||
"then": {
|
||||
"required": ["verification"],
|
||||
"properties": {
|
||||
"verification": { "minItems": 1 }
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"additionalProperties": true
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"events": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"event_id",
|
||||
"type",
|
||||
"timestamp"
|
||||
]
|
||||
}
|
||||
},
|
||||
"requests": {
|
||||
"type": "array"
|
||||
},
|
||||
"crypto": {
|
||||
"type": "array"
|
||||
},
|
||||
"serializers": {
|
||||
"type": "array"
|
||||
},
|
||||
"calls": {
|
||||
"type": "array"
|
||||
}
|
||||
},
|
||||
"additionalProperties": true
|
||||
}
|
||||
Reference in New Issue
Block a user