up
Some checks failed
AOC Guard CI / aoc-guard (push) Has been cancelled
AOC Guard CI / aoc-verify (push) Has been cancelled
Docs CI / lint-and-preview (push) Has been cancelled
Mirror Thin Bundle Sign & Verify / mirror-sign (push) Has been cancelled
api-governance / spectral-lint (push) Has been cancelled
Some checks failed
AOC Guard CI / aoc-guard (push) Has been cancelled
AOC Guard CI / aoc-verify (push) Has been cancelled
Docs CI / lint-and-preview (push) Has been cancelled
Mirror Thin Bundle Sign & Verify / mirror-sign (push) Has been cancelled
api-governance / spectral-lint (push) Has been cancelled
This commit is contained in:
27
docs/modules/policy/schemas/advisory-ai-knobs@draft.json
Normal file
27
docs/modules/policy/schemas/advisory-ai-knobs@draft.json
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"title": "advisory-ai-knobs@draft",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"knobs": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"name": { "type": "string", "minLength": 1 },
|
||||
"default_value": { "type": "number" },
|
||||
"min": { "type": "number" },
|
||||
"max": { "type": "number" },
|
||||
"step": { "type": "number" },
|
||||
"description": { "type": "string" }
|
||||
},
|
||||
"required": ["name", "default_value", "min", "max", "step", "description"],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"minItems": 1
|
||||
},
|
||||
"profile_hash": { "type": "string", "minLength": 1 }
|
||||
},
|
||||
"required": ["knobs", "profile_hash"],
|
||||
"additionalProperties": false
|
||||
}
|
||||
51
docs/modules/policy/schemas/orchestrator-job@draft.json
Normal file
51
docs/modules/policy/schemas/orchestrator-job@draft.json
Normal file
@@ -0,0 +1,51 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"title": "orchestrator-job@draft",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"job_id": { "type": "string", "minLength": 1 },
|
||||
"tenant_id": { "type": "string", "minLength": 1 },
|
||||
"context_id": { "type": "string", "minLength": 1 },
|
||||
"policy_profile_hash": { "type": "string", "minLength": 1 },
|
||||
"priority": { "type": "string", "enum": ["normal", "high", "emergency", "preview"] },
|
||||
"requested_at": { "type": "string", "format": "date-time" },
|
||||
"status": { "type": "string", "minLength": 1 },
|
||||
"trace_ref": { "type": "string", "minLength": 1 },
|
||||
"determinism_hash": { "type": "string", "minLength": 1 },
|
||||
"completed_at": { "type": ["string", "null"], "format": "date-time" },
|
||||
"result_hash": { "type": ["string", "null"] },
|
||||
"batch_items": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"component_purl": { "type": "string", "minLength": 1 },
|
||||
"advisory_id": { "type": "string", "minLength": 1 }
|
||||
},
|
||||
"required": ["component_purl", "advisory_id"],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"minItems": 1
|
||||
},
|
||||
"callbacks": {
|
||||
"type": ["object", "null"],
|
||||
"properties": {
|
||||
"sse": { "type": ["string", "null"] },
|
||||
"nats": { "type": ["string", "null"] }
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"job_id",
|
||||
"tenant_id",
|
||||
"context_id",
|
||||
"policy_profile_hash",
|
||||
"priority",
|
||||
"requested_at",
|
||||
"status",
|
||||
"determinism_hash",
|
||||
"batch_items"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
41
docs/modules/policy/schemas/policy-batch-context@draft.json
Normal file
41
docs/modules/policy/schemas/policy-batch-context@draft.json
Normal file
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"title": "policy-batch-context@draft",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"tenant_id": { "type": "string", "minLength": 1 },
|
||||
"policy_profile_hash": { "type": "string", "minLength": 1 },
|
||||
"knobs_version": { "type": "string", "minLength": 1 },
|
||||
"overlay_hash": { "type": "string", "minLength": 1 },
|
||||
"items": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"component_purl": { "type": "string", "minLength": 1 },
|
||||
"advisory_id": { "type": "string", "minLength": 1 }
|
||||
},
|
||||
"required": ["component_purl", "advisory_id"],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"minItems": 1
|
||||
},
|
||||
"options": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"include_reachability": { "type": "boolean" }
|
||||
},
|
||||
"required": ["include_reachability"],
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"tenant_id",
|
||||
"policy_profile_hash",
|
||||
"knobs_version",
|
||||
"overlay_hash",
|
||||
"items",
|
||||
"options"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
17
docs/modules/policy/schemas/policy-conflict@draft.json
Normal file
17
docs/modules/policy/schemas/policy-conflict@draft.json
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"title": "policy-conflict@draft",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"tenant_id": { "type": "string", "minLength": 1 },
|
||||
"component_purl": { "type": "string", "minLength": 1 },
|
||||
"advisory_id": { "type": "string", "minLength": 1 },
|
||||
"conflicts": {
|
||||
"type": "array",
|
||||
"items": { "$ref": "severity-fusion@draft.json" }
|
||||
},
|
||||
"resolved_status": { "type": ["string", "null"] }
|
||||
},
|
||||
"required": ["tenant_id", "component_purl", "advisory_id", "conflicts"],
|
||||
"additionalProperties": false
|
||||
}
|
||||
40
docs/modules/policy/schemas/policy-ledger-export@draft.json
Normal file
40
docs/modules/policy/schemas/policy-ledger-export@draft.json
Normal file
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"title": "policy-ledger-export@draft",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"manifest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"export_id": { "type": "string", "minLength": 1 },
|
||||
"schema_version": { "type": "string", "minLength": 1 },
|
||||
"generated_at": { "type": "string", "format": "date-time" },
|
||||
"record_count": { "type": "integer", "minimum": 0 },
|
||||
"sha256": { "type": "string", "minLength": 1 }
|
||||
},
|
||||
"required": ["export_id", "schema_version", "generated_at", "record_count", "sha256"],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"records": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"tenant_id": { "type": "string", "minLength": 1 },
|
||||
"job_id": { "type": "string", "minLength": 1 },
|
||||
"context_id": { "type": "string", "minLength": 1 },
|
||||
"component_purl": { "type": "string", "minLength": 1 },
|
||||
"advisory_id": { "type": "string", "minLength": 1 },
|
||||
"status": { "type": "string", "minLength": 1 },
|
||||
"trace_ref": { "type": "string", "minLength": 1 },
|
||||
"occurred_at": { "type": "string", "format": "date-time" }
|
||||
},
|
||||
"required": ["tenant_id", "job_id", "context_id", "component_purl", "advisory_id", "status", "trace_ref", "occurred_at"],
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"lines": { "type": "array", "items": { "type": "string" } }
|
||||
},
|
||||
"required": ["manifest", "records", "lines"],
|
||||
"additionalProperties": false
|
||||
}
|
||||
33
docs/modules/policy/schemas/policy-snapshot@draft.json
Normal file
33
docs/modules/policy/schemas/policy-snapshot@draft.json
Normal file
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"title": "policy-snapshot@draft",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"snapshot_id": { "type": "string", "minLength": 1 },
|
||||
"tenant_id": { "type": "string", "minLength": 1 },
|
||||
"ledger_export_id": { "type": "string", "minLength": 1 },
|
||||
"generated_at": { "type": "string", "format": "date-time" },
|
||||
"overlay_hash": { "type": "string", "minLength": 1 },
|
||||
"status_counts": { "type": "object", "additionalProperties": { "type": "integer" } },
|
||||
"records": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"tenant_id": { "type": "string" },
|
||||
"job_id": { "type": "string" },
|
||||
"context_id": { "type": "string" },
|
||||
"component_purl": { "type": "string" },
|
||||
"advisory_id": { "type": "string" },
|
||||
"status": { "type": "string" },
|
||||
"trace_ref": { "type": "string" },
|
||||
"occurred_at": { "type": "string", "format": "date-time" }
|
||||
},
|
||||
"required": ["tenant_id", "job_id", "context_id", "component_purl", "advisory_id", "status", "trace_ref", "occurred_at"],
|
||||
"additionalProperties": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": ["snapshot_id", "tenant_id", "ledger_export_id", "generated_at", "overlay_hash", "status_counts", "records"],
|
||||
"additionalProperties": false
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"title": "policy-violation-event@draft",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"event_id": { "type": "string", "minLength": 1 },
|
||||
"tenant_id": { "type": "string", "minLength": 1 },
|
||||
"snapshot_id": { "type": "string", "minLength": 1 },
|
||||
"policy_profile_hash": { "type": "string", "minLength": 1 },
|
||||
"component_purl": { "type": "string", "minLength": 1 },
|
||||
"advisory_id": { "type": "string", "minLength": 1 },
|
||||
"violation_code": { "type": "string", "minLength": 1 },
|
||||
"severity": { "type": "string", "minLength": 1 },
|
||||
"status": { "type": "string", "minLength": 1 },
|
||||
"trace_ref": { "type": "string", "minLength": 1 },
|
||||
"occurred_at": { "type": "string", "format": "date-time" }
|
||||
},
|
||||
"required": [
|
||||
"event_id",
|
||||
"tenant_id",
|
||||
"snapshot_id",
|
||||
"policy_profile_hash",
|
||||
"component_purl",
|
||||
"advisory_id",
|
||||
"violation_code",
|
||||
"severity",
|
||||
"status",
|
||||
"trace_ref",
|
||||
"occurred_at"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
29
docs/modules/policy/schemas/policy-worker-result@draft.json
Normal file
29
docs/modules/policy/schemas/policy-worker-result@draft.json
Normal file
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"title": "policy-worker-result@draft",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"job_id": { "type": "string", "minLength": 1 },
|
||||
"worker_id": { "type": "string", "minLength": 1 },
|
||||
"started_at": { "type": "string", "format": "date-time" },
|
||||
"completed_at": { "type": "string", "format": "date-time" },
|
||||
"result_hash": { "type": "string", "minLength": 1 },
|
||||
"results": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"component_purl": { "type": "string", "minLength": 1 },
|
||||
"advisory_id": { "type": "string", "minLength": 1 },
|
||||
"status": { "type": "string", "minLength": 1 },
|
||||
"trace_ref": { "type": "string", "minLength": 1 }
|
||||
},
|
||||
"required": ["component_purl", "advisory_id", "status", "trace_ref"],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"minItems": 1
|
||||
}
|
||||
},
|
||||
"required": ["job_id", "worker_id", "started_at", "completed_at", "result_hash", "results"],
|
||||
"additionalProperties": false
|
||||
}
|
||||
30
docs/modules/policy/schemas/severity-fusion@draft.json
Normal file
30
docs/modules/policy/schemas/severity-fusion@draft.json
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"title": "severity-fusion@draft",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"tenant_id": { "type": "string", "minLength": 1 },
|
||||
"snapshot_id": { "type": "string", "minLength": 1 },
|
||||
"component_purl": { "type": "string", "minLength": 1 },
|
||||
"advisory_id": { "type": "string", "minLength": 1 },
|
||||
"severity_fused": { "type": "string", "minLength": 1 },
|
||||
"score": { "type": "number" },
|
||||
"sources": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"source": { "type": "string", "minLength": 1 },
|
||||
"weight": { "type": "number" },
|
||||
"severity": { "type": "string", "minLength": 1 },
|
||||
"score": { "type": "number" }
|
||||
},
|
||||
"required": ["source", "weight", "severity", "score"],
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"reason_codes": { "type": "array", "items": { "type": "string" } }
|
||||
},
|
||||
"required": ["tenant_id", "snapshot_id", "component_purl", "advisory_id", "severity_fused", "score", "sources", "reason_codes"],
|
||||
"additionalProperties": false
|
||||
}
|
||||
25
docs/modules/policy/schemas/trust-weighting@draft.json
Normal file
25
docs/modules/policy/schemas/trust-weighting@draft.json
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"title": "trust-weighting@draft",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"weights": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"source": { "type": "string", "minLength": 1 },
|
||||
"weight": { "type": "number" },
|
||||
"justification": { "type": ["string", "null"] },
|
||||
"updated_at": { "type": "string", "format": "date-time" }
|
||||
},
|
||||
"required": ["source", "weight", "updated_at"],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"minItems": 1
|
||||
},
|
||||
"profile_hash": { "type": "string", "minLength": 1 }
|
||||
},
|
||||
"required": ["weights", "profile_hash"],
|
||||
"additionalProperties": false
|
||||
}
|
||||
Reference in New Issue
Block a user