| { |
| "$schema": "https://json-schema.org/draft/2020-12/schema", |
| "$id": "https://schemas.datapan.dev/datapan.credential-runtime-operator-packets.v1.schema.json", |
| "title": "Datapan Credential Runtime Operator Packets v1", |
| "description": "Secret-free source-by-source operator packets for collecting, reviewing, promoting, and propagating credential runtime receipts.", |
| "type": "object", |
| "additionalProperties": false, |
| "required": [ |
| "schema_version", |
| "generated_at", |
| "goal_issue", |
| "operator_packet_ticket", |
| "provider", |
| "inputs", |
| "summary", |
| "post_promotion_contract", |
| "batch_collection_contract", |
| "packets" |
| ], |
| "properties": { |
| "schema_version": { |
| "const": "datapan.credential-runtime-operator-packets.v1" |
| }, |
| "generated_at": { |
| "type": "string", |
| "minLength": 1 |
| }, |
| "goal_issue": { |
| "const": 344 |
| }, |
| "operator_packet_ticket": { |
| "const": 405 |
| }, |
| "provider": { |
| "const": "datapan-registry" |
| }, |
| "inputs": { |
| "type": "object", |
| "additionalProperties": false, |
| "required": ["collection_queue", "review_handoff", "release_consumer_decision"], |
| "properties": { |
| "collection_queue": { |
| "const": "reports/credential-runtime-receipt-collection-queue.json" |
| }, |
| "review_handoff": { |
| "const": "reports/credential-runtime-review-handoff.json" |
| }, |
| "release_consumer_decision": { |
| "const": "reports/release-consumer-decision.json" |
| } |
| } |
| }, |
| "summary": { |
| "type": "object", |
| "additionalProperties": false, |
| "required": [ |
| "sources", |
| "credential_gated_sources", |
| "operator_packets", |
| "packets_ready_for_operator_credentials", |
| "packets_waiting_for_review", |
| "reviewed_receipts_checked_in", |
| "reviewed_receipts_missing", |
| "manual_review_required", |
| "manual_review_accepted", |
| "default_ci_requires_credentials", |
| "checked_in_secrets_allowed", |
| "packet_status" |
| ], |
| "properties": { |
| "sources": { |
| "type": "integer", |
| "minimum": 0 |
| }, |
| "credential_gated_sources": { |
| "type": "integer", |
| "minimum": 0 |
| }, |
| "operator_packets": { |
| "type": "integer", |
| "minimum": 0 |
| }, |
| "packets_ready_for_operator_credentials": { |
| "type": "integer", |
| "minimum": 0 |
| }, |
| "packets_waiting_for_review": { |
| "type": "integer", |
| "minimum": 0 |
| }, |
| "reviewed_receipts_checked_in": { |
| "type": "integer", |
| "minimum": 0 |
| }, |
| "reviewed_receipts_missing": { |
| "type": "integer", |
| "minimum": 0 |
| }, |
| "manual_review_required": { |
| "type": "boolean" |
| }, |
| "manual_review_accepted": { |
| "type": "boolean" |
| }, |
| "default_ci_requires_credentials": { |
| "const": false |
| }, |
| "checked_in_secrets_allowed": { |
| "const": false |
| }, |
| "packet_status": { |
| "enum": ["operator_collection_required", "reviewed_receipts_complete"] |
| } |
| } |
| }, |
| "post_promotion_contract": { |
| "type": "object", |
| "additionalProperties": false, |
| "required": [ |
| "commands", |
| "release_evidence_refresh_command", |
| "release_evidence_check_command", |
| "downstream_evidence_affected", |
| "goal_closure_effect" |
| ], |
| "properties": { |
| "commands": { |
| "type": "array", |
| "prefixItems": [ |
| { |
| "const": "python3 scripts/refresh-release-ledger-evidence.py --write --max-iterations 5" |
| }, |
| { |
| "const": "python3 scripts/refresh-release-ledger-evidence.py --check" |
| } |
| ], |
| "items": false |
| }, |
| "release_evidence_refresh_command": { |
| "const": "python3 scripts/refresh-release-ledger-evidence.py --write --max-iterations 5" |
| }, |
| "release_evidence_check_command": { |
| "const": "python3 scripts/refresh-release-ledger-evidence.py --check" |
| }, |
| "downstream_evidence_affected": { |
| "type": "array", |
| "minItems": 1, |
| "items": { |
| "type": "string", |
| "minLength": 1 |
| } |
| }, |
| "goal_closure_effect": { |
| "const": "no_goal_closure_without_reviewed_receipts_or_explicit_manual_review_acceptance" |
| } |
| } |
| }, |
| "batch_collection_contract": { |
| "type": "object", |
| "additionalProperties": false, |
| "required": [ |
| "commands", |
| "skip_not_ready_allowed", |
| "continue_on_error_allowed", |
| "session_output_schema", |
| "session_output_schema_path", |
| "session_output_path", |
| "session_output_validation_command", |
| "session_review_plan_schema", |
| "session_review_plan_schema_path", |
| "session_review_plan_output_path", |
| "session_review_plan_command", |
| "session_review_plan_validation_command", |
| "reviewer_handoff_command", |
| "checked_in_session_output_allowed", |
| "checked_in_review_plan_allowed", |
| "checked_in_secrets_allowed", |
| "default_ci_requires_credentials" |
| ], |
| "properties": { |
| "commands": { |
| "type": "object", |
| "additionalProperties": false, |
| "required": [ |
| "secret_free_batch_preflight", |
| "require_env_batch_preflight", |
| "batch_collection_run", |
| "batch_collection_run_with_session_output", |
| "session_output_validation", |
| "session_review_plan_generation", |
| "session_review_plan_validation", |
| "batch_runner_self_test" |
| ], |
| "properties": { |
| "secret_free_batch_preflight": { |
| "const": "python3 scripts/run-credential-runtime-collection.py --all --json" |
| }, |
| "require_env_batch_preflight": { |
| "const": "python3 scripts/run-credential-runtime-collection.py --all --require-env" |
| }, |
| "batch_collection_run": { |
| "const": "python3 scripts/run-credential-runtime-collection.py --all --run --skip-not-ready --continue-on-error --json" |
| }, |
| "batch_collection_run_with_session_output": { |
| "const": "python3 scripts/run-credential-runtime-collection.py --all --run --skip-not-ready --continue-on-error --session-output .datapan/runtime-evidence/credential-runtime-collection-session.json --json" |
| }, |
| "session_output_validation": { |
| "const": "python3 scripts/validate-credential-runtime-collection-session.py .datapan/runtime-evidence/credential-runtime-collection-session.json --require-complete-source-set" |
| }, |
| "session_review_plan_generation": { |
| "const": "python3 scripts/generate-credential-runtime-session-review-plan.py .datapan/runtime-evidence/credential-runtime-collection-session.json --output .datapan/runtime-evidence/credential-runtime-session-review-plan.json" |
| }, |
| "session_review_plan_validation": { |
| "const": "python3 scripts/validate-credential-runtime-session-review-plan.py .datapan/runtime-evidence/credential-runtime-session-review-plan.json --queue reports/credential-runtime-receipt-collection-queue.json" |
| }, |
| "batch_runner_self_test": { |
| "const": "python3 scripts/run-credential-runtime-collection.py --self-test" |
| } |
| } |
| }, |
| "skip_not_ready_allowed": { |
| "const": true |
| }, |
| "continue_on_error_allowed": { |
| "const": true |
| }, |
| "session_output_schema": { |
| "const": "datapan.credential-runtime-collection-session.v1" |
| }, |
| "session_output_schema_path": { |
| "const": "schemas/datapan.credential-runtime-collection-session.v1.schema.json" |
| }, |
| "session_output_path": { |
| "const": ".datapan/runtime-evidence/credential-runtime-collection-session.json" |
| }, |
| "session_output_validation_command": { |
| "const": "python3 scripts/validate-credential-runtime-collection-session.py .datapan/runtime-evidence/credential-runtime-collection-session.json --require-complete-source-set" |
| }, |
| "session_review_plan_schema": { |
| "const": "datapan.credential-runtime-session-review-plan.v1" |
| }, |
| "session_review_plan_schema_path": { |
| "const": "schemas/datapan.credential-runtime-session-review-plan.v1.schema.json" |
| }, |
| "session_review_plan_output_path": { |
| "const": ".datapan/runtime-evidence/credential-runtime-session-review-plan.json" |
| }, |
| "session_review_plan_command": { |
| "const": "python3 scripts/generate-credential-runtime-session-review-plan.py .datapan/runtime-evidence/credential-runtime-collection-session.json --output .datapan/runtime-evidence/credential-runtime-session-review-plan.json" |
| }, |
| "session_review_plan_validation_command": { |
| "const": "python3 scripts/validate-credential-runtime-session-review-plan.py .datapan/runtime-evidence/credential-runtime-session-review-plan.json --queue reports/credential-runtime-receipt-collection-queue.json" |
| }, |
| "reviewer_handoff_command": { |
| "const": "python3 scripts/validate-credential-runtime-collection-session.py .datapan/runtime-evidence/credential-runtime-collection-session.json --require-complete-source-set" |
| }, |
| "checked_in_session_output_allowed": { |
| "const": false |
| }, |
| "checked_in_review_plan_allowed": { |
| "const": false |
| }, |
| "checked_in_secrets_allowed": { |
| "const": false |
| }, |
| "default_ci_requires_credentials": { |
| "const": false |
| } |
| } |
| }, |
| "packets": { |
| "type": "array", |
| "items": { |
| "$ref": "#/$defs/packet" |
| } |
| } |
| }, |
| "$defs": { |
| "packet": { |
| "type": "object", |
| "additionalProperties": false, |
| "required": [ |
| "source_id", |
| "provider", |
| "current_receipt_state", |
| "packet_status", |
| "credential_envs", |
| "required_operator_inputs", |
| "evidence_paths", |
| "commands", |
| "downstream_evidence_affected", |
| "relief_blockers", |
| "next_action" |
| ], |
| "properties": { |
| "source_id": { |
| "type": "string", |
| "minLength": 1 |
| }, |
| "provider": { |
| "type": "string", |
| "minLength": 1 |
| }, |
| "current_receipt_state": { |
| "enum": ["absent", "staged_only", "reviewed_rejected", "reviewed_accepted", "relief_eligible"] |
| }, |
| "packet_status": { |
| "enum": ["operator_credentials_and_review_required", "reviewed_receipt_present"] |
| }, |
| "credential_envs": { |
| "type": "array", |
| "minItems": 1, |
| "items": { |
| "type": "string", |
| "minLength": 1 |
| } |
| }, |
| "required_operator_inputs": { |
| "type": "array", |
| "minItems": 1, |
| "items": { |
| "enum": [ |
| "credential_env_values", |
| "reviewer_identity", |
| "review_reason", |
| "review_decision" |
| ] |
| } |
| }, |
| "evidence_paths": { |
| "type": "object", |
| "additionalProperties": false, |
| "required": [ |
| "candidate_batch", |
| "runtime_evidence_plan", |
| "staged_receipt_path", |
| "reviewed_receipt_path" |
| ], |
| "properties": { |
| "candidate_batch": { |
| "type": "string", |
| "minLength": 1 |
| }, |
| "runtime_evidence_plan": { |
| "type": "string", |
| "minLength": 1 |
| }, |
| "staged_receipt_path": { |
| "type": "string", |
| "minLength": 1 |
| }, |
| "reviewed_receipt_path": { |
| "type": "string", |
| "minLength": 1 |
| } |
| } |
| }, |
| "commands": { |
| "type": "object", |
| "additionalProperties": false, |
| "required": [ |
| "secret_free_preflight", |
| "require_env_preflight", |
| "bounded_collection_run", |
| "staged_receipt_validation", |
| "reviewed_receipt_promotion", |
| "reviewed_receipt_validation", |
| "post_promotion_checks" |
| ], |
| "properties": { |
| "secret_free_preflight": { |
| "type": "string", |
| "minLength": 1 |
| }, |
| "require_env_preflight": { |
| "type": "string", |
| "minLength": 1 |
| }, |
| "bounded_collection_run": { |
| "type": "string", |
| "minLength": 1 |
| }, |
| "staged_receipt_validation": { |
| "type": "string", |
| "minLength": 1 |
| }, |
| "reviewed_receipt_promotion": { |
| "type": "string", |
| "minLength": 1 |
| }, |
| "reviewed_receipt_validation": { |
| "type": "string", |
| "minLength": 1 |
| }, |
| "post_promotion_checks": { |
| "type": "array", |
| "prefixItems": [ |
| { |
| "const": "python3 scripts/refresh-release-ledger-evidence.py --write --max-iterations 5" |
| }, |
| { |
| "const": "python3 scripts/refresh-release-ledger-evidence.py --check" |
| } |
| ], |
| "items": false |
| } |
| } |
| }, |
| "downstream_evidence_affected": { |
| "type": "array", |
| "minItems": 1, |
| "items": { |
| "type": "string", |
| "minLength": 1 |
| } |
| }, |
| "relief_blockers": { |
| "type": "array", |
| "items": { |
| "type": "string", |
| "minLength": 1 |
| } |
| }, |
| "next_action": { |
| "type": "string", |
| "minLength": 1 |
| } |
| } |
| } |
| } |
| } |
|
|