diff --git a/README.md b/README.md new file mode 100644 index 0000000000000000000000000000000000000000..1df3ba2abaa4c6cd900704335e7f00ddaf533116 --- /dev/null +++ b/README.md @@ -0,0 +1,14 @@ +--- +license: apache-2.0 +pretty_name: KYE Protocol™ Examples +tags: +- json-examples +- conformance +- ai-governance +--- + +# KYE Protocol™ — Validated Example Payloads + +One example per schema, validated by the schema-validation CI in the source repo. Apache-2.0. + +Source: github.com/KYE-Protocol diff --git a/examples/access-right.json b/examples/access-right.json new file mode 100644 index 0000000000000000000000000000000000000000..806367e79f5ddb3e17d5abc71cc820c3398f0404 --- /dev/null +++ b/examples/access-right.json @@ -0,0 +1,17 @@ +{ + "access_right_id": "kye:acr:acme.example:01JYACR0000000000000000000", + "granted_to_entity_id": "kye:ent:acme.example:ai_agent:01JY3J1D4E5A7K3JQFK4E0Q1XZ", + "granted_by_entity_id": "kye:ent:acme.example:person:01JYCFO0000000000000000000", + "subject_entity_id": "kye:ent:acme.example:business:01JYACME000000000000000000", + "right_key": "document.render", + "resource_pattern": "kye:ent:acme.example:document_template:*", + "scope": { + "scope_id": "kye:scp:acme.example:01JYFINANCE000000000000000", + "constraints": { + "workspace": "finance", + "environment": "prod" + } + }, + "status": "active", + "expires_at": "2026-12-31T23:59:59Z" +} diff --git a/examples/action-admissibility-profile.json b/examples/action-admissibility-profile.json new file mode 100644 index 0000000000000000000000000000000000000000..78f2b6e0907e5b2d10713d2ff9f26c06ebb351b8 --- /dev/null +++ b/examples/action-admissibility-profile.json @@ -0,0 +1,25 @@ +{ + "schema_version": "kye.action_admissibility_profile.v1", + "profile_id": "kye:profile:action_admissibility", + "display_name": "KYE Action Admissibility Profile™", + "category": "pre_action_governance", + "version": "1.0.0", + "description": "Defines pre-admission checks for proposed actions before they enter the runtime authority decision pipeline.", + "required_kye_profiles": [ + "kye.core.v1", "kye.authority.v1", "kye.scope.v1", + "kye.state.v1", "kye.evidence.v1" + ], + "recommended_kye_profiles": [ + "kye.ontology.v1", "kye.continuity.v1", "kye.formal_rules.v1" + ], + "required_objects": [ + "KYEProposedAction", "KYEAdmissionGate", + "KYEAdmissibilityDecision", "KYEAdmissibilityEvidence" + ], + "decision_types": [ + "admit", "reject", "require_clarification", + "require_human_review", "quarantine", "route_to_authority_check" + ], + "status": "active", + "created_at": "2026-05-10T00:00:00Z" +} diff --git a/examples/admissibility-decision.json b/examples/admissibility-decision.json new file mode 100644 index 0000000000000000000000000000000000000000..6db4b427c8a3fc3095b90a87ac6b2398f9b34cdb --- /dev/null +++ b/examples/admissibility-decision.json @@ -0,0 +1,32 @@ +{ + "schema_version": "kye.admissibility_decision.v1", + "admissibility_decision_id": "kye:admissibility-decision:001", + "proposed_action_id": "kye:proposed-action:001", + "decision": "admit", + "reason_code": "proposed_action_admissible", + "checked_dimensions": { + "intent_present": true, + "intent_clear": true, + "principal_resolved": true, + "actor_resolved": true, + "accountable_owner_known": true, + "capability_known": true, + "resource_known": true, + "data_source_allowed": true, + "prohibited_action_class": false, + "continuity_preserved": true, + "formal_rule_block": false, + "evidence_ready": true, + "jurisdiction_supported": true, + "risk_state_acceptable": true + }, + "next_step": "route_to_authority_check", + "obligations": [ + "emit_admissibility_event", + "bind_to_authority_decision", + "include_in_evidence_pack" + ], + "evidence_ref": "kye:admissibility-evidence:001", + "audit_chain_ref": "kye:audit:chain:0xadm123", + "decided_at": "2026-05-10T12:00:02Z" +} diff --git a/examples/admissibility-evidence.json b/examples/admissibility-evidence.json new file mode 100644 index 0000000000000000000000000000000000000000..65f459dab4c47de91646f212ba8cfb4493c83328 --- /dev/null +++ b/examples/admissibility-evidence.json @@ -0,0 +1,41 @@ +{ + "schema_version": "kye.admissibility_evidence.v1", + "evidence_id": "kye:admissibility-evidence:001", + "admissibility_decision_id": "kye:admissibility-decision:001", + "proposed_action_id": "kye:proposed-action:001", + "inputs_consulted": { + "intent_ref": "kye:intent:001", + "interpreted_intent_ref": "kye:intent-interpretation:001", + "ontology_terms_consulted": [ + "kye:term:capability:card_purchase", + "kye:term:scope:amount_limit" + ], + "formal_rules_consulted": [ + "kye:rule:shopping_agent_amount_threshold" + ], + "continuity_signals_consulted": [ + "kye.intent.declared", + "kye.intent.interpreted" + ], + "risk_signals_consulted": [ + "kye.risk.normal" + ] + }, + "checked_inadmissibility_classes": [ + "invalid_intent", "ambiguous_intent", "out_of_scope_proposal", + "prohibited_action_class", "disallowed_data_source", + "inadmissible_evidence", "unsafe_tool_path", "coercion_signal", + "incentive_conflict", "continuity_break", "policy_ineligible_action", + "missing_authority_context", "missing_principal", + "missing_accountable_owner", "unsupported_jurisdiction" + ], + "matched_inadmissibility_classes": [], + "hash": "sha256:...", + "signature": { + "algorithm": "ed25519", + "key_id": "kye:key:admission_signing_001", + "signature": "..." + }, + "audit_chain_ref": "kye:audit:chain:0xadm123", + "generated_at": "2026-05-10T12:00:02Z" +} diff --git a/examples/admission-gate.json b/examples/admission-gate.json new file mode 100644 index 0000000000000000000000000000000000000000..ce83379fadccfdcc818dcfcc238ef988bdbcfea9 --- /dev/null +++ b/examples/admission-gate.json @@ -0,0 +1,33 @@ +{ + "schema_version": "kye.admission_gate.v1", + "gate_id": "kye:admission-gate:agent_runtime_default", + "display_name": "Default Agent Runtime Admission Gate", + "description": "Pre-admission gate for AI agent proposed actions before authority decisioning.", + "applies_to": { + "actor_types": ["ai_agent", "workflow"], + "capabilities": ["card_purchase", "payment.prepare", "external_email.send", "data.read"], + "profiles": ["kye:profile:agent_runtime", "kye:profile:payment", "kye:profile:commerce"] + }, + "decision_policy": { + "default_decision": "admit", + "allowed_decisions": ["admit", "reject", "require_clarification", "require_human_review", "quarantine", "route_to_authority_check"] + }, + "required_checks": [ + "intent_present", "intent_clear", "principal_resolved", "actor_resolved", + "accountable_owner_known", "capability_known", "resource_known", + "data_source_allowed", "prohibited_action_class", "continuity_preserved", + "formal_rule_block", "evidence_ready", "jurisdiction_supported", + "risk_state_acceptable", "no_coercion_signal", "no_incentive_conflict", + "no_unsafe_tool_path" + ], + "required_evidence": ["intent_ref", "interpreted_intent_ref", "checked_dimensions_record"], + "signal_events": [ + "kye.admissibility.check_started", + "kye.admissibility.admitted", + "kye.admissibility.rejected", + "kye.admissibility.requires_human_review", + "kye.admissibility.quarantined", + "kye.admissibility.routed_to_authority_check" + ], + "status": "active" +} diff --git a/examples/adoption-evidence-pack.json b/examples/adoption-evidence-pack.json new file mode 100644 index 0000000000000000000000000000000000000000..fc5b224f1964ac7170c7ecbd0e05ed229d8b8fe1 --- /dev/null +++ b/examples/adoption-evidence-pack.json @@ -0,0 +1,30 @@ +{ + "schema_version": "kye.adoption_evidence_pack.v1", + "evidence_pack_id": "kye:evidence-pack:adoption_001", + "use_case_id": "kye:use-case:ai_finance_worker_001", + "included_evidence": { + "use_case_intake": true, + "readiness_assessment": true, + "entity_authority_record": true, + "authority_gates": true, + "commit_boundaries": true, + "review_paths": true, + "training_records": true, + "runtime_decision_examples": true, + "evidence_pack_samples": true, + "revocation_test": true + }, + "readiness_summary": { + "status": "pilot_ready_with_controls", + "autonomous_execution_allowed": false, + "human_review_required": true + }, + "hash": "sha384:...", + "signature": { + "algorithm": "ed25519", + "key_id": "kye:key:evidence_signing_001", + "signature": "..." + }, + "audit_chain_ref": "kye:audit:chain:0xabc123", + "generated_at": "2026-05-09T12:30:00Z" +} diff --git a/examples/agency-drift-event.json b/examples/agency-drift-event.json new file mode 100644 index 0000000000000000000000000000000000000000..8ed9f1d0f85da289983c65e5cd3a44cd330d8ec5 --- /dev/null +++ b/examples/agency-drift-event.json @@ -0,0 +1,31 @@ +{ + "schema_version": "kye.agency_drift_event.v1", + "drift_event_id": "kye:drift:001", + "continuity_id": "kye:continuity:001", + "drift_type": "intent_drift", + "severity": "medium", + "detected_at": "2026-05-06T12:04:00Z", + "actor_entity_id": "kye:entity:agent:shopping_agent_456", + "principal_entity_id": "kye:entity:person:customer_123", + "description": "Agent selected a subscription product despite the original constraint excluding subscriptions.", + "affected_dimensions": [ + "intent_alignment", + "scope_alignment" + ], + "original_value": { + "constraint": "no subscription" + }, + "observed_value": { + "product_type": "monthly subscription" + }, + "recommended_decision": "deny", + "recommended_obligations": [ + "notify_principal", + "quarantine_purchase_request", + "emit_audit_event" + ], + "evidence_refs": [ + "kye:evidence:product_metadata_001", + "kye:evidence:intent_constraints_001" + ] +} diff --git a/examples/agent-memory-authorized-action-use.json b/examples/agent-memory-authorized-action-use.json new file mode 100644 index 0000000000000000000000000000000000000000..699f468081deb82b6d35dc9392f7fbf65fcb2d29 --- /dev/null +++ b/examples/agent-memory-authorized-action-use.json @@ -0,0 +1,52 @@ +{ + "schema_id": "kye.agent_memory.v1", + "memory_id": "kye:agent-memory:acme-payments-agent-payee-preference-2026-06-03", + "tenant_id": "kye:tenant:acme-bank", + "agent_id": "kye:agent:payments-assistant", + "principal_id": "kye:principal:acme-customer-daniel-okoro", + "conversation_id": "support-2026-06-03T09:12:00Z-daniel-okoro", + "memory_class": "long_term", + "content": { + "stated_preference": "Customer authorised recurring rent payment to a named payee on the 1st of each month.", + "payee_alias": "landlord-monthly-rent", + "authority_anchor": "kye:authority-grant:acme-customer-daniel-okoro-standing-instruction-2026-06" + }, + "classification": "restricted", + "retention_until": "2031-06-03T09:12:00Z", + "memory_source": "human_provided", + "created_by": "kye:principal:acme-customer-daniel-okoro", + "last_verified_at": "2026-06-03T09:12:00Z", + "consent_basis": "explicit_consent", + "scope": { + "tenant_bound": true, + "principal_bound": true, + "cross_agent_allowed": false, + "cross_org_allowed": false, + "purpose_tags": ["standing_instruction", "payment_execution"] + }, + "provenance_ref": "kye:provenance:acme-payments-agent-consent-2026-06-03", + "content_hash": "sha256:1a2b3c4d5e6f708192a3b4c5d6e7f8091a2b3c4d5e6f708192a3b4c5d6e7f80a", + "caller_kid": "kye:kid:payments-assistant-2026-q2", + "created_at": "2026-06-03T09:12:14Z", + "superseded_at": null, + "superseded_by": null, + "conflicting_memory_ids": [], + "ai_specific_notice": { + "notice_version": "2026-06", + "purpose_stated": "Remember a standing payment instruction so the payments agent can execute the recurring transfer on the customer's behalf.", + "data_categories": ["payment_instruction", "payee_alias", "authority_grant_reference"], + "model_function": "autonomous-action", + "opt_out_route": "Cancel the standing instruction in the banking app or submit a DSAR to withdraw and erase.", + "notice_ref": null, + "served_at": "2026-06-03T09:12:09Z" + }, + "withdrawal_route": { + "channel": "self_service", + "dsar_ref": null, + "rights_disclosure_ref": "kye:rights-disclosure:memory-authority-rail", + "instructions": "Cancel the standing instruction from the banking app's recurring-payments screen, or submit a DSAR for erasure." + }, + "use_type": "action", + "use_admissibility_ref": "kye:evidence-pack:acme-payments-agent-memory-use-2026-06-03T09-30-00Z", + "signature_b64": "AQIDBAUGBwgJCgsMDQ4PEBESExQVFhcYGRobHB0eHyAhIiMkJSYnKCkqKywtLi8wMTIzNDU2Nzg5Ojs8PT4/QA==" +} diff --git a/examples/agent-memory.json b/examples/agent-memory.json new file mode 100644 index 0000000000000000000000000000000000000000..f7a6181deafec9929bbf3321dd6564baaf611415 --- /dev/null +++ b/examples/agent-memory.json @@ -0,0 +1,59 @@ +{ + "schema_id": "kye.agent_memory.v1", + "memory_id": "kye:agent-memory:acme-demo-agent-prospect-context-2026-05-17", + "tenant_id": "kye:tenant:acme-bank", + "agent_id": "kye:agent:demo-agent", + "principal_id": "kye:principal:acme-prospect-claire-thompson", + "conversation_id": "demo-2026-05-17T14:00:00Z-claire-thompson", + "memory_class": "short_term", + "content": { + "discovered_facts": [ + "Prospect is COO of a tier-2 European bank", + "Live AI agents: 3 (KYC copilot, payment fraud triage, treasury cash-position assistant)", + "Compliance frameworks named: EU AI Act, DORA, GDPR, FCA Operational Resilience", + "Open question: how does KYE handle agent-to-agent delegation?" + ], + "next_action": "Walk through delegation-chain demo on slide 7; queue evidence-pack demo", + "scenario_replay_anchors": [ + "kye:scenario:payment-fraud-triage-tier2-bank-2026-q2" + ] + }, + "classification": "confidential", + "retention_until": "2026-08-15T14:00:00Z", + "memory_source": "conversation", + "created_by": "kye:agent:demo-agent", + "last_verified_at": "2026-05-17T14:18:42Z", + "consent_basis": "legitimate_interest", + "scope": { + "tenant_bound": true, + "principal_bound": true, + "cross_agent_allowed": false, + "cross_org_allowed": false, + "purpose_tags": ["sales_demo", "onboarding_continuity"] + }, + "provenance_ref": "kye:provenance:acme-demo-agent-conversation-2026-05-17", + "content_hash": "sha256:9f1a2b3c4d5e6f708192a3b4c5d6e7f8091a2b3c4d5e6f708192a3b4c5d6e7f8", + "caller_kid": "kye:kid:demo-agent-2026-q2", + "created_at": "2026-05-17T14:18:42Z", + "superseded_at": null, + "superseded_by": null, + "conflicting_memory_ids": [], + "ai_specific_notice": { + "notice_version": "2026-06", + "purpose_stated": "Maintain continuity of a sales-demo conversation so the agent can resume context across turns.", + "data_categories": ["professional_role", "stated_compliance_frameworks", "stated_open_questions"], + "model_function": "decision-support", + "opt_out_route": "Reply STOP in-conversation or contact the tenant's data-protection officer to withdraw.", + "notice_ref": null, + "served_at": "2026-05-17T14:00:05Z" + }, + "withdrawal_route": { + "channel": "dsar", + "dsar_ref": "kye:dsar:acme-bank-claire-thompson-2026-05", + "rights_disclosure_ref": "kye:rights-disclosure:memory-authority-rail", + "instructions": "Submit a data-subject access / erasure request through the tenant DSAR portal to withdraw this memory." + }, + "use_type": "inference", + "use_admissibility_ref": null, + "signature_b64": "AQIDBAUGBwgJCgsMDQ4PEBESExQVFhcYGRobHB0eHyAhIiMkJSYnKCkqKywtLi8wMTIzNDU2Nzg5Ojs8PT4/QA==" +} diff --git a/examples/ai-adoption-journey-report.json b/examples/ai-adoption-journey-report.json new file mode 100644 index 0000000000000000000000000000000000000000..9f82065f4bb5e5af71abebcedf00248022f26297 --- /dev/null +++ b/examples/ai-adoption-journey-report.json @@ -0,0 +1,112 @@ +{ + "schema_version": "kye.ai_adoption_journey_report.v1", + "report_id": "kye:ai-adoption-journey:example:claims-triage-2026-q2", + "navigator_version": "ai-adoption-navigator/1.0.0", + "generated_at": "2026-06-07T09:00:00Z", + "organisation": { + "name": "Example Mutual (illustrative)", + "sector": "insurance-claims", + "jurisdiction": "uk" + }, + "input": { + "answers": [ + { + "question_id": "q-use-case", + "value": "decisioning" + }, + { + "question_id": "q-authority", + "value": "decision-support" + }, + { + "question_id": "q-reversibility", + "value": "recoverable" + }, + { + "question_id": "q-data-sensitivity", + "value": "personal" + }, + { + "question_id": "q-regulated-domain", + "value": "sector-heavy" + }, + { + "question_id": "q-affects-people", + "value": "direct" + }, + { + "question_id": "q-autonomy-scope", + "value": "bounded" + }, + { + "question_id": "q-oversight-readiness", + "value": "sampled" + }, + { + "question_id": "q-value", + "value": "high" + }, + { + "question_id": "q-evidence-need", + "value": "regulatory" + } + ] + }, + "scored": { + "use_case_category": "decision_support", + "authority_overlay": "decision-support", + "conformance_level": "L2", + "authority_complexity_score": 56, + "risk_tier": "high", + "oversight_mode": "human-over-the-loop", + "value_signal": "high", + "impact_risk_quadrant": "govern-first" + }, + "recommended_pilot": { + "title": "Controls-first pilot: decision support", + "rationale": "High value but high unmanaged-authority risk — adopt only once the required controls are in place. Stand up the controls, then pilot.", + "engagement_sku_hint": "KYE-NAVIGATOR-DIAGNOSTIC-001" + }, + "required_controls": [ + { + "control": "Purpose & scope check at the action boundary (Purpose Permission™)", + "why": "Bind every consequential action to a declared purpose before it runs (§12)." + }, + { + "control": "Evidence Pack™ sealed per consequential action", + "why": "Make every decision replay-provable for audit, regulator, or dispute (§13)." + }, + { + "control": "Human oversight envelope (in-/over-the-loop) sized to the risk tier", + "why": "Match human control to the authority the AI holds (§36 GovernedUI)." + }, + { + "control": "Data-use minimisation + access controls on the data it touches", + "why": "Govern personal / special-category data at the moment of use (§31)." + }, + { + "control": "Regulatory-obligation mapping for the decision domain", + "why": "Identify which obligations bind this use before it goes live (an abstract role you will also need)." + }, + { + "control": "Controls-architecture pass from obligations to enforced controls", + "why": "Translate obligations into the concrete controls your architecture must enforce (an abstract role you will also need)." + } + ], + "evidence_pack_ref": "kye:evidence-pack:ai-adoption-journey:claims-triage:2026-q2", + "seal": { + "jwks_kid": "kye:key:self-audit-fixture-2026-05", + "signature_alg": "EdDSA", + "signature": "xStJ1kEBPgHPuyVEsuiFxpvfXQ5ShCIHrlw7X+RykIffK/B+zYoCFxvGGUkSqGohUjmwOFq7rEGTTvWy9TIHCA==" + }, + "public_key_ref": "https://kyeprotocol.com/trust/self-audit-jwks.json", + "attestation": { + "frameworks": [ + "EU_AI_ACT", + "UK_GDPR", + "FCA_CONSUMER_DUTY" + ], + "control_id": "constitution/13-RESILIENCE-LOOP.md" + }, + "status": "sealed" +} diff --git a/examples/approval-requirement.json b/examples/approval-requirement.json new file mode 100644 index 0000000000000000000000000000000000000000..3b2c4439eb79b7082da50edfe0e21096fd901e2f --- /dev/null +++ b/examples/approval-requirement.json @@ -0,0 +1,9 @@ +{ + "approval_requirement_id": "kye:apr:acme.example:01JYAPR0000000000000000000", + "applies_to_action": "payment.initiate", + "threshold_minor": 10000, + "currency": "GBP", + "approval_type": "dual", + "approver_roles": ["finance_manager", "controller"], + "status": "active" +} diff --git a/examples/assurance-card-profile.json b/examples/assurance-card-profile.json new file mode 100644 index 0000000000000000000000000000000000000000..72a243dd409212640989fb3853789983015e688d --- /dev/null +++ b/examples/assurance-card-profile.json @@ -0,0 +1,25 @@ +{ + "schema_version": "kye.assurance_card_profile.v1", + "profile_id": "kye:profile:assurance_card", + "display_name": "KYE Assurance Card Profile™", + "category": "lifecycle_assurance", + "version": "1.0.0", + "description": "Lifecycle assurance layer that turns KYE™ runtime evidence into a living assurance record per delegated entity.", + "required_kye_profiles": [ + "kye.core.v1", "kye.authority.v1", "kye.capability.v1", + "kye.state.v1", "kye.evidence.v1", "kye.operating_model.v1" + ], + "recommended_kye_profiles": [ + "kye.discoverability.v1", "kye.continuity.v1", "kye.ontology.v1" + ], + "required_objects": [ + "KYEAssuranceCard", "KYEHumanInvolvementPlan", "KYEProvenanceEvidence", + "KYEAssuranceReviewCycle", "KYEDecommissioningPlan" + ], + "lifecycle_stages": [ + "design", "pilot", "deploy", "monitor", "incident_review", + "scope_change_review", "retention_review", "decommission" + ], + "status": "active", + "created_at": "2026-05-09T00:00:00Z" +} diff --git a/examples/assurance-card.json b/examples/assurance-card.json new file mode 100644 index 0000000000000000000000000000000000000000..26b6307a84962b1a9537f703afc1daf6ea92d7fc --- /dev/null +++ b/examples/assurance-card.json @@ -0,0 +1,75 @@ +{ + "schema_version": "kye.assurance_card.v1", + "assurance_card_id": "kye:assurance-card:finance_agent_001", + "subject_entity_id": "kye:agent:finance_agent_001", + "subject_type": "ai_agent", + "display_name": "Finance Payment Preparation Agent", + "owner_entity_id": "kye:user:finance_owner_001", + "accountable_entity_id": "kye:org:acme_ltd", + "lifecycle_state": "pilot", + "risk_tier": "high", + "intended_use": { + "summary": "Prepare supplier payments and reconcile invoices for human approval.", + "permitted_uses": ["invoice.read", "payment.prepare", "supplier.notify"], + "prohibited_uses": ["payment.execute", "contract.sign", "credential.rotate"] + }, + "authority_model": { + "entity_authority_record_ref": "kye:authority-record:finance_agent_001", + "authority_grants": ["kye:authority:grant:payment_prepare_001"], + "required_gates": ["kye:gate:payment_execute", "kye:gate:external_send"], + "commit_boundaries": ["kye:commit-boundary:payment_execution"] + }, + "human_involvement": { + "human_involvement_plan_ref": "kye:human-involvement-plan:finance_payment_high_risk", + "review_path_ref": "kye:review-path:finance_payment_high_risk", + "human_approval_required": true, + "approval_thresholds": [ + { + "capability": "payment.prepare", + "requires_review_above": { "value": 1000, "currency": "GBP" } + } + ] + }, + "provenance": { + "provenance_evidence_ref": "kye:provenance:finance_agent_001", + "model_refs": [], + "dataset_refs": [], + "tool_refs": ["kye:tool:invoice_parser", "kye:tool:banking_api_adapter"], + "supplier_refs": [], + "licensing_refs": [] + }, + "performance_and_limitations": { + "known_limitations": [ + "Cannot execute payments", + "Requires human review for new beneficiaries" + ], + "evaluation_refs": ["kye:evaluation:finance_agent_eval_001"] + }, + "evidence": { + "evidence_pack_refs": [ + "kye:evidence-pack:readiness_001", + "kye:evidence-pack:pilot_decision_001" + ], + "decision_map_refs": ["kye:decision-map:finance_agent_001"], + "audit_refs": ["kye:audit:finance_agent_001"], + "adoption_evidence_pack_refs": ["kye:evidence-pack:adoption_001"] + }, + "review": { + "review_cycle_ref": "kye:assurance-review-cycle:finance_agent_001", + "last_reviewed_at": "2026-05-09T12:00:00Z", + "next_review_due": "2026-06-09T12:00:00Z", + "review_frequency": "monthly", + "review_triggers": [ + "scope_change", "new_capability", "incident", + "risk_state_change", "model_update", "authority_change" + ] + }, + "decommissioning": { + "required": true, + "plan_ref": "kye:decommissioning-plan:finance_agent_001" + }, + "status": "published", + "audit_chain_ref": "kye:audit:chain:0xabc123", + "created_at": "2026-05-09T12:00:00Z", + "updated_at": "2026-05-09T12:00:00Z" +} diff --git a/examples/assurance-review-cycle.json b/examples/assurance-review-cycle.json new file mode 100644 index 0000000000000000000000000000000000000000..57e30840b94750d9a8b12bf86d0e768e2f8a35f2 --- /dev/null +++ b/examples/assurance-review-cycle.json @@ -0,0 +1,30 @@ +{ + "schema_version": "kye.assurance_review_cycle.v1", + "cycle_id": "kye:assurance-review-cycle:finance_agent_001", + "assurance_card_ref": "kye:assurance-card:finance_agent_001", + "scheduled_frequency": "monthly", + "next_review_due": "2026-06-09T12:00:00Z", + "review_triggers": [ + "scheduled", "scope_change", "new_capability", "incident", + "risk_state_change", "model_update", "authority_change", + "supplier_change", "licence_change", "retention" + ], + "reviewer_roles": ["ai_governance_lead", "finance_manager", "security_admin"], + "evidence_captured_per_review": [ + "reviewer_identity", "decision", "reason_code", "timestamp", + "state_snapshot", "decision_map", "evidence_pack" + ], + "completed_reviews": [ + { + "review_id": "kye:review:001", + "reviewed_at": "2026-05-09T12:00:00Z", + "trigger": "scheduled", + "reviewer_role": "ai_governance_lead", + "outcome": "approved", + "reason_code": "pilot_ready_with_controls", + "evidence_ref": "kye:evidence-pack:review_001" + } + ], + "status": "active", + "audit_chain_ref": "kye:audit:chain:0xdef789" +} diff --git a/examples/attestation.json b/examples/attestation.json new file mode 100644 index 0000000000000000000000000000000000000000..4e8a9e6164a74a05b8061e43c24e18d861dcbc3b --- /dev/null +++ b/examples/attestation.json @@ -0,0 +1,18 @@ +{ + "attestation_id": "kye:att:acme.example:workload_attestation:01JYATT0000000000000000", + "entity_id": "kye:ent:acme.example:workload:01JYWORKLOAD0000000000000", + "attestation_type": "workload_attestation", + "spiffe_id": "spiffe://acme.example/workload/finance/procurement-agent", + "svid_type": "jwt-svid", + "selector_set": [ + "k8s:ns:finance", + "k8s:sa:procurement-agent", + "image:digest:sha256:abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789" + ], + "container_digest": "sha256:abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789", + "build_provenance_hash": "sha256:cafe00000000000000000000000000000000000000000000000000000000000a", + "issuer_entity_id": "kye:ent:acme.example:workload_issuer:01JYWLISS0000000000000000", + "status": "valid", + "issued_at": "2026-04-15T12:00:00Z", + "expires_at": "2026-04-15T13:00:00Z" +} diff --git a/examples/audit-event-v1-1.json b/examples/audit-event-v1-1.json new file mode 100644 index 0000000000000000000000000000000000000000..1ab13eb3cb30cc5f99f5ef56d6c2613c83dc557b --- /dev/null +++ b/examples/audit-event-v1-1.json @@ -0,0 +1,22 @@ +{ + "schema": "kye.audit.event.v1", + "event_id": "01abefa6-7c8d-4e2f-9a3b-1d4e5f6a7b80", + "chain_id": "kye:audit:chain:tenant:acme-bank:01HVK3M2NPQR8XW7TZAC9F5D2E", + "previous_anchor": "sha256:8e6c0a3b7e1f4d9a2c5b6e8f1d0a3b7e1f4d9a2c5b6e8f1d0a3b7e1f4d9a2c5b", + "current_anchor": "sha256:1f4d9a2c5b6e8f1d0a3b7e1f4d9a2c5b6e8f1d0a3b7e1f4d9a2c5b6e8f1d0a3b", + "actor_id": "kye:agent:prod:gateway-worker:7c2d", + "actor_kind": "agent", + "tenant_id": "kye:tenant:prod:acme-bank", + "action_kind": "audit_event", + "target_system": "kye-audit-chain", + "payload_hash": "sha256:a3b7e1f4d9a2c5b6e8f1d0a3b7e1f4d9a2c5b6e8f1d0a3b7e1f4d9a2c5b6e8f1", + "verdict": "appended", + "emitted_at": "2026-05-19T12:34:56.789Z", + "evidence_pack_ref": "https://kyeprotocol.com/v1/evidence/packs/01HVK3M2NPQR8XW7TZAC9F5D2E", + "decision_map_ref": "https://kyeprotocol.com/v1/decision-maps/01HVK3M2NPQR8XW7TZAC9F5D2E", + "constitution_refs": ["00-INDEX §0.3", "21-DELEGATED-AUDITABILITY", "30-AUDIT-WORM-RETENTION"], + "framework_refs": ["dora-art-28", "sr-11-7", "eu-ai-act-art-15", "gdpr", "iso-27001"], + "signature_alg": "ed25519", + "signature_kid": "kye:key:prod:audit-signer:2026-05", + "signature_value_b64": "MEUCIQDgXJyL0qF8xN2k3J9pV6tR1mWqEzH7sB4cD6vN8yA3KwIgZmKpL5rN9oS3xT2vU8wXyZ1qR4hP7nM5eD0aF6cB8gE" +} diff --git a/examples/audit-event.json b/examples/audit-event.json new file mode 100644 index 0000000000000000000000000000000000000000..a1a82235268bb12cf7c33858589ab388e8912cab --- /dev/null +++ b/examples/audit-event.json @@ -0,0 +1,21 @@ +{ + "audit_event_id": "kye:aud:acme.example:01JYAUD0000000000000000000", + "event_type": "runtime.authorized", + "entity_refs": [ + "kye:ent:acme.example:ai_agent:01JY3J1D4E5A7K3JQFK4E0Q1XZ", + "kye:ent:acme.example:business:01JYACME000000000000000000", + "kye:ent:acme.example:document_template:01JYTPL0000000000000000000" + ], + "runtime_event_id": "kye:rte:acme.example:01JYRTE0000000000000000000", + "policy_decision_id": "kye:pdc:acme.example:01JYPDC0000000000000000000", + "delegation_id": "kye:del:acme.example:01JYABC0000000000000000000", + "causation_id": "trc_01JYTRC", + "correlation_id": "cor_01JYCOR", + "event_sequence": 41423, + "occurred_at": "2026-04-15T12:30:01Z", + "observed_at": "2026-04-15T12:30:01Z", + "recorded_at": "2026-04-15T12:30:01Z", + "previous_event_hash": "sha256:0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a", + "event_hash": "sha256:b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1b1", + "signature": "jws:eyJhbGciOiJFUzI1NiJ9." +} diff --git a/examples/audit-integrity-check.json b/examples/audit-integrity-check.json new file mode 100644 index 0000000000000000000000000000000000000000..3703bb81840f72b22bea150f08744cb8c1f18da5 --- /dev/null +++ b/examples/audit-integrity-check.json @@ -0,0 +1,17 @@ +{ + "schema_version": "kye.audit_integrity_check.v1", + "check_id": "kye:audit-check:acme.example:001", + "period": { + "from": "2026-05-01T00:00:00Z", + "to": "2026-05-06T00:00:00Z" + }, + "events_checked": 18420, + "hash_chain_status": "valid", + "orphan_events": 0, + "missing_reason_codes": 0, + "missing_evidence_refs": 3, + "result": "passed_with_warnings", + "details": [ + { "kind": "missing_evidence_ref", "audit_event_id": "kye:audit:acme.example:evt_92814", "reason_code": "evidence_completeness_check_pending" } + ] +} diff --git a/examples/authority-discovery-manifest.json b/examples/authority-discovery-manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..e62873b6402b35b2ada876b0167d35580ee17396 --- /dev/null +++ b/examples/authority-discovery-manifest.json @@ -0,0 +1,13 @@ +{ + "schema_version": "kye.authority_discovery_manifest.v1", + "manifest_id": "kye:registry:authority-discovery", + "display_name": "KYE Authority Discovery™ — assessment spec", + "version": "1.0.0", + "adopted_at": "2026-06-11", + "constitution_ref": "constitution/39-LEARN-RAIL.md + constitution/68-SECTOR-PRODUCT-RAIL.md", + "description": "Illustrative instance: the four authority-sprawl scores computed across an actor estate. Inventory only — Authority Discovery never enforces.", + "scores": ["authority-sprawl-score", "delegation-risk-score", "jurisdiction-exposure-score", "evidence-gap-score"], + "actor_classes": ["employee", "contractor", "agent", "copilot", "rag-system", "vendor", "workflow", "external-api"], + "sprawl_findings": ["orphaned-authority", "expired-authority", "over-broad-grant", "cross-border-unrailed", "evidence-absent"], + "skus": ["KYE-AUTHDISC-FREE-001"] +} diff --git a/examples/authority-gate.json b/examples/authority-gate.json new file mode 100644 index 0000000000000000000000000000000000000000..fe8e49bd284745b6807a52cbd59f00761b507c84 --- /dev/null +++ b/examples/authority-gate.json @@ -0,0 +1,45 @@ +{ + "schema_version": "kye.authority_gate.v1", + "gate_id": "kye:gate:payment_execute", + "display_name": "Payment Execution Gate", + "gate_type": "payment_execution", + "description": "Runtime gate before a prepared payment becomes an executed payment.", + "applies_to_capabilities": [ + "payment.execute", + "open_banking.payment_initiate", + "card_purchase.confirm" + ], + "risk_level": "high", + "trigger_conditions": { + "side_effect_level": "move_money", + "environment": "production", + "amount_threshold": { "value": 0, "currency": "GBP" } + }, + "decision_policy": { + "default_decision": "require_approval", + "allowed_decisions": ["allow", "deny", "require_approval", "require_step_up", "quarantine"] + }, + "required_checks": [ + "actor_identity", + "principal_authority", + "authority_grant", + "scope", + "state", + "continuity", + "evidence" + ], + "required_evidence": [ + "decision_map", + "state_snapshot", + "authority_grant", + "payload_hash", + "approval_event", + "evidence_pack" + ], + "signal_events": [ + "kye.authority_gate.triggered", + "kye.decision.requires_approval", + "kye.evidence_pack.generated" + ], + "status": "active" +} diff --git a/examples/authority-path-discovery.json b/examples/authority-path-discovery.json new file mode 100644 index 0000000000000000000000000000000000000000..10506a400624b4595ba6f97922fca232e4d09761 --- /dev/null +++ b/examples/authority-path-discovery.json @@ -0,0 +1,21 @@ +{ + "schema_version": "kye.authority_path_discovery.v1", + "path_id": "kye:authority-path:001", + "actor_entity_id": "kye:agent:finance_agent_001", + "principal_entity_id": "kye:org:acme_ltd", + "requested_action": "payment.prepare", + "capability_id": "kye:capability:payment.prepare", + "path": [ + { "node_type": "principal", "ref": "kye:org:acme_ltd" }, + { "node_type": "delegation", "ref": "kye:delegation:finance_team_to_agent" }, + { "node_type": "actor", "ref": "kye:agent:finance_agent_001" }, + { "node_type": "capability", "ref": "kye:capability:payment.prepare" }, + { "node_type": "authority_grant", "ref": "kye:authority:grant:payment_prepare_001" } + ], + "path_state": "valid", + "risk_summary": { + "risk_state": "elevated", + "warnings": ["authority_expires_within_7_days"] + }, + "evidence_refs": ["kye:evidence-pack:authority_path_001"] +} diff --git a/examples/badge.json b/examples/badge.json new file mode 100644 index 0000000000000000000000000000000000000000..8633b27acc05c9e5dd6d22a7cd7152e6cf067644 --- /dev/null +++ b/examples/badge.json @@ -0,0 +1,22 @@ +{ + "schema_version": "kye.badge.v1", + "badge_id": "kye:badge:authority-conformant:acme.example:agent-runtime-2.4.1", + "level": "kye_authority_conformant", + "label": "KYE Authority Conformant™", + "product_name": "Acme Agent Runtime", + "product_version": "2.4.1", + "organisation_entity_id": "kye:org:acme.example", + "certification_id": "kye:cert:authority:acme.example:agent-runtime-2.4.1:2026", + "protocol_version": "kye.core.v1.0", + "profiles": [ + "kye.core.v1.0", + "kye.authority.v1.0", + "kye.capability.v1.0" + ], + "issued_at": "2026-05-06T00:00:00Z", + "expires_at": "2027-05-06T00:00:00Z", + "status": "valid", + "badge_svg_url": "https://registry.kye.dev/badges/kye-cert-authority-acme-agent-runtime-2-4-1.svg", + "verification_url": "https://registry.kye.dev/badges/kye-cert-authority-acme-agent-runtime-2-4-1/verify", + "registry_listing_url":"https://registry.kye.dev/certifications/acme-agent-runtime-2-4-1" +} diff --git a/examples/beneficiary.json b/examples/beneficiary.json new file mode 100644 index 0000000000000000000000000000000000000000..07881157b7c0677119a3810e37b19ae27625a434 --- /dev/null +++ b/examples/beneficiary.json @@ -0,0 +1,9 @@ +{ + "beneficiary_id": "kye:ent:acme.example:beneficiary:01JYBEN000000000000000000", + "entity_id": "kye:ent:acme.example:beneficiary:01JYBEN000000000000000000", + "beneficiary_class": "vendor", + "approval_status": "approved", + "jurisdiction": "GB", + "rail_types": ["bank_transfer"], + "bank_account_reference_entity_id": "kye:ent:acme.example:bank_account_reference:01JYBAR0000000000000" +} diff --git a/examples/break-glass-grant.json b/examples/break-glass-grant.json new file mode 100644 index 0000000000000000000000000000000000000000..5d23ed4e93f9bce66658e8ba4e5014a20c696dd9 --- /dev/null +++ b/examples/break-glass-grant.json @@ -0,0 +1,19 @@ +{ + "$schema": "https://kyeprotocol.com/schemas/break-glass-grant.json", + "grant_id": "kye:bg_grant:custody.acme.eu:01HX7K2P9D5T6V3M8N4Q1Y8R2W", + "actor_entity_id": "kye:human:custody.acme.eu:on_call:lead-001", + "scope_id": "kye:scope:custody.acme.eu:recovery:read_evidence_freeze_positions_rekey", + "reason_code": "recovery.break_glass_required", + "justification_text": "02:14 UTC anomaly detector flagged unusual signing pattern from trading agent kye:agent:custody.acme.eu:desk-a:signer; on-call lead Maria Roussel granted break-glass to read evidence, freeze positions, and rotate keys before the next settlement cycle.", + "approvers": [ + "kye:human:custody.acme.eu:head_of_custody:director-001", + "kye:human:custody.acme.eu:soc_lead:lead-002" + ], + "valid_from": "2026-05-04T02:18:00Z", + "valid_until": "2026-05-04T06:18:00Z", + "max_duration_minutes": 240, + "issued_by": "kye:trust_domain:custody.acme.eu", + "post_hoc_review_required": true, + "post_hoc_review_deadline": "2026-05-11T06:18:00Z", + "evidence_pack_id": "kye:evidence-pack:custody.acme.eu:break_glass_2026-05-04_001" +} diff --git a/examples/capability-grant.json b/examples/capability-grant.json new file mode 100644 index 0000000000000000000000000000000000000000..e03ec3e02064a156a2c1f7735e4f27cd284b7532 --- /dev/null +++ b/examples/capability-grant.json @@ -0,0 +1,24 @@ +{ + "grant_id": "kye:grant:capability:01JYGRANT", + "actor_entity_id": "kye:ent:acme.example:ai_agent:01JYAGENT", + "principal_entity_id": "kye:ent:acme.example:business:01JYACME", + "capability_id": "kye:capability:skill:invoice-reconciliation", + "allowed_versions": ["1.2.x"], + "allowed_actions": ["invoice.read", "invoice.reconcile.prepare"], + "allowed_environments": ["prod"], + "limits": { + "max_records_per_run": 500, + "requires_approval_above": { "amount": 1000, "currency": "GBP" } + }, + "conditions": { + "capability_state_must_be": ["active", "limited"], + "quality_state_must_be": ["passed", "passed_with_warnings"], + "risk_state_max": "medium", + "signature_required": true, + "human_approval_required": false + }, + "valid_from": "2026-05-05T00:00:00Z", + "valid_until": "2026-12-31T23:59:59Z", + "state": "active", + "issued_by": "kye:ent:acme.example:person:01JYSECADMIN" +} diff --git a/examples/capability-invocation.json b/examples/capability-invocation.json new file mode 100644 index 0000000000000000000000000000000000000000..45005677c500509912ea484e257ca96d72af6bb4 --- /dev/null +++ b/examples/capability-invocation.json @@ -0,0 +1,21 @@ +{ + "$schema": "https://kyeprotocol.com/schemas/capability-invocation.json", + "request_id": "req-01HXY7Q8CAPABILITY00INVOCATION0001", + "decision": "allow", + "decision_id": "kye:decision:acme.example:01HXY7Q800CAPDEC0000000000000001", + "reason_code": "scope.intersection.match", + "actor_entity_id": "kye:ent:acme.example:ai_agent:fx-router", + "principal_entity_id": "kye:ent:acme.example:business:treasury-ops", + "capability_id": "kye:capability:acme.example:treasury:fx-quote-request", + "capability_version": "v1.2.0", + "matched_grant_id": "kye:capability_grant:acme.example:01HXY7Q800GRANT00000000000000001", + "matched_policy_ids": [ + "kye:pol:acme.example:treasury-fx-quote-policy:v3" + ], + "obligations": [ + { "type": "audit.emit", "value": "decision_id" }, + { "type": "evidence.attach", "value": "quote-payload" }, + { "type": "rate_limit.apply", "value": "per-actor:60/min" } + ], + "decided_at": "2026-05-07T08:31:14.012Z" +} diff --git a/examples/capability-manifest.json b/examples/capability-manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..65d628714b424d4d189bd45a3548c9b771659380 --- /dev/null +++ b/examples/capability-manifest.json @@ -0,0 +1,45 @@ +{ + "capability_id": "kye:cap:acme.example:playbook:01JYCAP000000000000000XZ", + "capability_kind": "playbook", + "name": "credit-decisioning-v2", + "version": "2.4.1", + "owner_entity_id": "kye:ent:acme.example:business:acme-credit", + "permitted_actions": ["credit.evaluate", "credit.recommend"], + "side_effect_level": "medium", + "data_classes_touched": ["pii.full_name", "pii.gov_id", "credit.score"], + "risk_classification": "high", + "ai_system_id": "kye:ent:acme.example:ai_system:01JYAI0000000000000000XZ", + "annex_iii_use_cases": ["5b-credit_scoring"], + "human_oversight_required": true, + "transparency_disclosure_required": true, + "approval_state": "approved", + "sampling_budget": { + "max_messages_per_invocation": 16, + "max_tokens_per_message": 4096, + "max_tokens_per_invocation": 32768, + "allowed_model_profiles": ["kye:cap:acme.example:model_profile:gpt-credit-v2"] + }, + "dependencies": [ + { "capability_id": "kye:cap:acme.example:tool:01JY...", "version_min": "1.2.0" }, + { "capability_id": "kye:cap:acme.example:mcp_tool:01JZ...", "version_pin": "0.4.1" } + ], + "supply_chain": { + "issuer_entity_id": "kye:ent:acme.example:business:acme-credit", + "build_provenance_attestation_id": "kye:att:acme.example:01JYATT000000000000000XZ", + "source_repository": "https://github.com/acme/credit-decisioning", + "kye_sbom_hash": "kye:sbom:acme.example:01JYSBM000000000000000XZ" + }, + "documentation_urls": ["https://acme.example/playbooks/credit-decisioning"], + "purpose_binding_ref": "kye:grant:acme.example:01JYGRT000000000000000XZ", + "finality_boundary": "recommendation", + "evidence_requirement": { + "evidence_pack_required": true, + "sealed_fields": ["tool_calls", "mcp_servers_called", "scope_touched", "decision_code", "finality_reached"], + "replay_verifiable": true + }, + "revocation": { + "expires_at": "2027-01-01T00:00:00Z", + "suspendable": true, + "revocation_state": "active" + } +} diff --git a/examples/capability.json b/examples/capability.json new file mode 100644 index 0000000000000000000000000000000000000000..dec24d37f1d44aad46198aca4d382335b49d5d5e --- /dev/null +++ b/examples/capability.json @@ -0,0 +1,55 @@ +{ + "capability_id": "kye:capability:skill:invoice-reconciliation", + "entity_type": "capability", + "capability_type": "skill", + "name": "invoice-reconciliation", + "display_name": "Invoice Reconciliation", + "description": "Reconciles supplier invoices against purchase orders and payment records.", + "namespace": "acme.finance", + "issuer": { + "issuer_entity_id": "kye:ent:acme.example:business:01JYACME", + "issuer_type": "organisation", + "maintainer_entity_ids": ["kye:ent:acme.example:person:01JYPLATFORM"] + }, + "version": { + "version_id": "kye:capability_version:invoice-reconciliation:1.2.3", + "semver": "1.2.3", + "release_channel": "production", + "published_at": "2026-05-05T10:00:00Z" + }, + "state": { + "capability_state": "active", + "quality_state": "passed", + "risk_state": "medium", + "approval_state": "approved" + }, + "scope": { + "allowed_actor_entity_types": ["ai_agent", "service_account"], + "allowed_environments": ["stage", "prod"], + "allowed_actions": ["invoice.read", "invoice.classify", "invoice.reconcile.prepare"], + "prohibited_actions": ["payment.execute"], + "data_classes": ["financial_data"], + "max_side_effect_level": "prepare_only", + "requires_human_approval_above": { "amount": 1000, "currency": "GBP" } + }, + "integrity": { + "content_hash": "sha256:abcdef0123456789", + "manifest_hash": "sha256:fedcba9876543210", + "signature_required": true, + "signature_ref": "kye:signature:01JYSIG", + "supply_chain_state": "verified" + }, + "runtime": { + "runtime_type": "agent_skill", + "execution_mode": "sandboxed", + "requires_network": false, + "requires_credentials": false, + "timeout_ms": 30000, + "idempotency_required": true + }, + "audit": { + "created_at": "2026-05-05T09:00:00Z", + "updated_at": "2026-05-05T10:00:00Z", + "audit_hash": "sha384:0011223344" + } +} diff --git a/examples/certification-record.json b/examples/certification-record.json new file mode 100644 index 0000000000000000000000000000000000000000..6f8f61fa7f75b34c02b0676eda4166de3cbc18bb --- /dev/null +++ b/examples/certification-record.json @@ -0,0 +1,35 @@ +{ + "schema_version": "kye.certification_record.v1", + "certification_id": "kye:cert:authority:acme.example:agent-runtime-2.4.1:2026", + "organisation_entity_id": "kye:org:acme.example", + "product_name": "Acme Agent Runtime", + "product_version": "2.4.1", + "certification_level": "kye_authority_conformant", + "profiles": [ + "kye.core.v1.0", + "kye.authority.v1.0", + "kye.capability.v1.0" + ], + "protocol_version": "kye.core.v1.0", + "test_suite_version": "kye-conformance-1.0.0", + "conformance_run_ref": "kye:conformance-run:acme.example:001", + "evidence_pack_ref": "kye:evidence-pack:acme.example:certification-001", + "implementation_declaration": { + "supports_runtime_authorize": true, + "supports_decision_map": true, + "supports_evidence_pack_export": true, + "policy_engine": "rego" + }, + "badge_id": "kye:badge:authority-conformant:acme.example:agent-runtime-2.4.1", + "badge_url": "https://registry.kye.dev/badges/kye-cert-authority-acme-agent-runtime-2-4-1.svg", + "verification_url": "https://registry.kye.dev/certifications/kye-cert-authority-acme-agent-runtime-2-4-1", + "registry_listing_url": "https://registry.kye.dev/certifications/acme-agent-runtime-2-4-1", + "status": "active", + "issued_at": "2026-05-06T00:00:00Z", + "expires_at": "2027-05-06T00:00:00Z", + "signature": { + "algorithm": "ed25519", + "signature": "kye-sig:1:01HXKYECERTSIG000000000000000000", + "signed_by_credential_id": "kye:credential:kye-protocol:registry-key-2026" + } +} diff --git a/examples/commit-boundary.json b/examples/commit-boundary.json new file mode 100644 index 0000000000000000000000000000000000000000..70c627a8dd14e7095a58e31bc7674a56419c2a3d --- /dev/null +++ b/examples/commit-boundary.json @@ -0,0 +1,28 @@ +{ + "schema_version": "kye.commit_boundary.v1", + "commit_boundary_id": "kye:commit-boundary:payment_execution", + "display_name": "Payment Execution Commit Boundary", + "description": "Separates payment preparation from payment execution.", + "before_boundary_actions": ["invoice.read", "payment.prepare", "beneficiary.validate"], + "after_boundary_actions": ["payment.execute", "payment.submit_to_bank", "payment.confirm"], + "boundary_condition": { + "action_transition": "payment.prepare_to_payment.execute", + "requires_authority_gate": "kye:gate:payment_execute" + }, + "required_decision": { + "decision_endpoint": "/v1/authority:decide", + "required_result": ["allow", "require_approval_completed"] + }, + "obligations": [ + "generate_decision_map", + "emit_signed_signal", + "generate_evidence_pack", + "record_commit_event" + ], + "failure_behaviour": { + "on_missing_authority": "deny", + "on_state_mismatch": "quarantine", + "on_evidence_failure": "deny" + }, + "status": "active" +} diff --git a/examples/compliance-card.json b/examples/compliance-card.json new file mode 100644 index 0000000000000000000000000000000000000000..124d2ef351f6236051c588fa1eec9c030298a5e4 --- /dev/null +++ b/examples/compliance-card.json @@ -0,0 +1,58 @@ +{ + "schema_version": "kye.compliance_card.v1", + "card_id": "kye:card:acme.eu:agent:fx-router:v3.2.1", + "subject": { + "entity_id": "kye:agent:acme.eu:treasury:fx-router", + "name": "Acme Treasury FX Router", + "class": "ai_agent", + "version": "3.2.1", + "model_family": "Treasury-LLM-v3", + "trust_domain": "acme.eu" + }, + "issuer": { + "entity_id": "kye:trust:acme.eu", + "trust_domain": "acme.eu", + "public_key": "ed25519:7f3aabe2c8c8a1f2e3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2c3d4e5f6" + }, + "issued_at": "2026-05-04T14:22:00Z", + "expires_at": "2026-08-04T14:22:00Z", + "authority": { + "delegation_chain": [ + "kye:human:acme.eu:cfo:gabrielle-koch", + "kye:human:acme.eu:treasurer-emea:luis-bauer", + "kye:agent:acme.eu:treasury:fx-router" + ], + "capability_profile": "pep", + "scope_summary": "USD <= $5M / EU + US corridors / no first-time beneficiaries", + "freshness_seconds": 240 + }, + "frameworks": [ + { "framework_id": "psd3", "framework_label": "PSD3", "controls_satisfied": 12, "controls_total": 12 }, + { "framework_id": "dora", "framework_label": "DORA", "controls_satisfied": 18, "controls_total": 18 }, + { "framework_id": "euaiact", "framework_label": "EU AI Act", "controls_satisfied": 10, "controls_total": 10 }, + { "framework_id": "iso27001", "framework_label": "ISO 27001", "controls_satisfied": 47, "controls_total": 47 }, + { "framework_id": "soc2", "framework_label": "SOC 2", "controls_satisfied": 64, "controls_total": 64 } + ], + "freshness": { + "audit_chain": 96, + "self_audit": 88, + "replay_test": 100, + "signal_bus_uptime": 99 + }, + "recovery": { + "break_glass_profile": "evidence-replay", + "open_recoveries": 0, + "last_fire_drill": "2026-04-22" + }, + "attestation": { + "conformance_level": "L3_conformant", + "self_attested_at": "2026-05-04T14:22:00Z", + "self_tested_runs": "38 / 38 fixtures pass", + "certification_id": "kye:cert:acme.eu:fx-router:2026-q2" + }, + "signature": { + "alg": "ed25519", + "value": "REPLACE_WITH_DETACHED_SIGNATURE_OVER_CANONICALISED_PAYLOAD", + "key_id": "kye:trust:acme.eu#key-2026" + } +} diff --git a/examples/compliance-mapping-healthcare-hipaa.json b/examples/compliance-mapping-healthcare-hipaa.json new file mode 100644 index 0000000000000000000000000000000000000000..da23667a0f72f9e44d9e6bb05009a4f07a668af4 --- /dev/null +++ b/examples/compliance-mapping-healthcare-hipaa.json @@ -0,0 +1,29 @@ +{ + "schema_version": "kye.compliance_mapping.v1", + "framework": "HIPAA", + "framework_version": "45 CFR Part 164 Security Rule", + "control_ref": "HIPAA_164_312_b_AUDIT_CONTROLS", + "control_title": "Audit controls for ePHI", + "control_summary": "§164.312(b) — implement hardware, software, and procedural mechanisms that record and examine activity in information systems that contain or use electronic protected health information.", + "kye_controls": [ + "kye.audit.runtime_decision", + "kye.audit.append_only_chain", + "kye.entity.state_transition", + "kye.authority.grant", + "kye.recovery.break_glass_grant" + ], + "evidence_events": [ + "kye.healthcare.encounter.access_decided", + "kye.healthcare.break_glass.granted", + "kye.healthcare.break_glass.expired", + "kye.consent.withdrawn", + "kye.evidence_pack.generated" + ], + "evidence_pack": "kye:evidence-pack:hipaa-164-312-b", + "kye_profiles_required": ["core", "pep", "evidence-replay"], + "policy_bundle_refs": ["kye.policy.healthcare.hipaa_audit_controls"], + "applicable_sector_profiles": ["pep"], + "applies_to_entity_types": ["clinician", "ai_agent", "patient_workflow", "covered_entity_workflow"], + "retention_minimum_days": 2190, + "notes": "HIPAA §164.530(j)(2) requires retention of policies, procedures, and records for six years (2190 days) from the date of creation or the date when last in effect. Break-glass-granted events MUST surface in the per-encounter audit replay." +} diff --git a/examples/compliance-mapping-payments-psd3.json b/examples/compliance-mapping-payments-psd3.json new file mode 100644 index 0000000000000000000000000000000000000000..73d40dd6aa0d3a141fb696a3dc44042ace2ad9d3 --- /dev/null +++ b/examples/compliance-mapping-payments-psd3.json @@ -0,0 +1,29 @@ +{ + "schema_version": "kye.compliance_mapping.v1", + "framework": "PSD3", + "framework_version": "PSD3 + draft RTS (in flight)", + "control_ref": "PSD3_SCA_DELEGATED_AUTHORITY", + "control_title": "Strong Customer Authentication for delegated payment-initiation", + "control_summary": "Delegated payment-initiation by an authorised third-party (TPP) or AI agent on behalf of a payer MUST carry verifiable proof of the payer's authorisation under SCA, with binding to amount, beneficiary, and consent reference.", + "kye_controls": [ + "kye.authority.delegation_chain", + "kye.authority.scope_intersection", + "kye.audit.signed_decision", + "kye.consent.binding", + "kye.payments.payment_intent_pre_auth" + ], + "evidence_events": [ + "kye.payments.payment_authority_decided", + "kye.payments.payment_intent_decided", + "kye.consent.granted", + "kye.consent.withdrawn", + "kye.payments.signed_decision_emitted" + ], + "evidence_pack": "kye:evidence-pack:psd3-sca-delegated", + "kye_profiles_required": ["core", "pep", "kye-payments-eu-1.0", "kye-open-finance-1.0"], + "policy_bundle_refs": ["kye.policy.payments.psd3_sca", "kye.policy.payments.delegated_authority"], + "applicable_sector_profiles": ["pep"], + "applies_to_entity_types": ["tpp", "ai_agent", "payment_initiation_service_provider", "account_servicing_payment_service_provider"], + "retention_minimum_days": 1825, + "notes": "Per PSD2 Art. 95 + draft PSD3 record-keeping period of 5 years (1825 days). The signed Decision Map™ replays the full SCA chain offline; the supervisor verifies with the publisher's published JWKS." +} diff --git a/examples/compliance-mapping-public-sector-iso42001.json b/examples/compliance-mapping-public-sector-iso42001.json new file mode 100644 index 0000000000000000000000000000000000000000..1f4c07082d39fe19853867ee63176a789ee3aee5 --- /dev/null +++ b/examples/compliance-mapping-public-sector-iso42001.json @@ -0,0 +1,29 @@ +{ + "schema_version": "kye.compliance_mapping.v1", + "framework": "ISO_IEC_42001", + "framework_version": "ISO/IEC 42001:2023", + "control_ref": "ISO_42001_8_3_HUMAN_OVERSIGHT", + "control_title": "Human oversight controls", + "control_summary": "Clause 8.3 — the organisation shall ensure that AI systems are designed and operated to allow for effective oversight by humans during the period in which they are in use.", + "kye_controls": [ + "kye.decision.require_human_review", + "kye.decision.require_approval", + "kye.audit.runtime_decision", + "kye.capability.invocation_event", + "kye.entity.state_transition" + ], + "evidence_events": [ + "kye.capability.invocation_required_approval", + "kye.capability.invocation_required_human_review", + "kye.approval.granted", + "kye.approval.denied", + "kye.decision_map.generated" + ], + "evidence_pack": "kye:evidence-pack:iso42001-human-oversight", + "kye_profiles_required": ["core", "pep", "pep", "kye-sovereign-ai-1.0"], + "policy_bundle_refs": ["kye.policy.public_sector.human_oversight"], + "applicable_sector_profiles": ["pep", "pep", "pep"], + "applies_to_entity_types": ["ai_system", "ai_agent", "public_service_workflow", "agency_workflow"], + "retention_minimum_days": 730, + "notes": "Decision Map™ for every AI-assisted public-sector decision; Decision Map™ MUST surface the human-oversight gate (allow / require_approval / require_human_review) and the approver entity_id when approval is granted. ISO 42001 §9.1.3 monitoring obligation is satisfied by the per-decision evidence-pack rail." +} diff --git a/examples/compliance-mapping.json b/examples/compliance-mapping.json new file mode 100644 index 0000000000000000000000000000000000000000..a7f8a079bf7893f12b80a9f5fe8fe138fe3ef70b --- /dev/null +++ b/examples/compliance-mapping.json @@ -0,0 +1,28 @@ +{ + "schema_version": "kye.compliance_mapping.v1", + "framework": "EU_AI_ACT", + "framework_version": "Regulation (EU) 2024/1689", + "control_ref": "AIA_HIGH_RISK_LOGGING", + "control_title": "High-risk system record-keeping", + "control_summary": "Article 12 record-keeping obligation for high-risk AI systems.", + "kye_controls": [ + "kye.audit.runtime_decision", + "kye.capability.invocation_event", + "kye.entity.state_transition", + "kye.authority.grant", + "kye.human_oversight.approval_gate" + ], + "evidence_events": [ + "kye.validation.performed", + "kye.capability.invocation_allowed", + "kye.capability.invocation_denied", + "kye.authority.revoked" + ], + "evidence_pack": "kye:evidence-pack:eu-ai-act-high-risk", + "kye_profiles_required": ["core", "pep", "pep", "pdp"], + "policy_bundle_refs": ["kye.policy.aia.high_risk_logging"], + "applicable_sector_profiles": ["pep", "pep", "pep"], + "applies_to_entity_types": ["ai_system", "ai_agent", "high_risk_workflow"], + "retention_minimum_days": 180, + "notes": "Logs MUST be retained for the lifetime of the system plus the provider's record-keeping obligation under Article 18." +} diff --git a/examples/compromise-report.json b/examples/compromise-report.json new file mode 100644 index 0000000000000000000000000000000000000000..fc1df04170fd01db48bd477e0a9a5d2498dd1f50 --- /dev/null +++ b/examples/compromise-report.json @@ -0,0 +1,22 @@ +{ + "$schema": "https://kyeprotocol.com/schemas/compromise-report.json", + "compromise_report_id": "kye:compromise:custody.acme.eu:2026-05-04_signer_anomaly_001", + "subject_entity_id": "kye:agent:custody.acme.eu:desk-a:signer", + "kind": "agent_compromise", + "severity": "high", + "reason_code": "anomalous_signing_pattern", + "evidence_refs": [ + "kye:audit:custody.acme.eu:event:01HX7K1Z3F7Q9V8L2P4M5T6Y0W", + "kye:audit:custody.acme.eu:event:01HX7K2A2D8R3W6N1B5C8E0V4X", + "kye:evidence-pack:custody.acme.eu:soc_anomaly_2026-05-04_001" + ], + "reported_by": "kye:service:custody.acme.eu:soc:anomaly_detector", + "reported_at": "2026-05-04T02:14:00Z", + "auto_actions": [ + "suspend_authority", + "stop_agent", + "quarantine_entity", + "open_recovery_request", + "publish_signal" + ] +} diff --git a/examples/conformance-report.json b/examples/conformance-report.json new file mode 100644 index 0000000000000000000000000000000000000000..0500ba24b68f2f055fd09c38f1407e20f38aeee9 --- /dev/null +++ b/examples/conformance-report.json @@ -0,0 +1,60 @@ +{ + "report_id": "kye:rpt:vendorA.example:01JYRPT000000000000000XZ", + "issued_at": "2026-05-05T13:00:00Z", + "subject": { + "gateway_url": "https://gateway.vendora.example", + "vendor": "VendorA", + "release": "1.0.7", + "deployment_topology": "saas", + "kye_version_advertised": "1.0", + "kye_profiles_advertised": [ + "core", + "pdp", + "pep", + "pep", + "evidence-replay" + ] + }, + "conformance_pack_version": "1.0.0", + "kye_version": "1.0", + "tier_claimed": "tier-1-bank", + "fixtures": [ + { + "fixture_id": "registration/01", + "name": "Register an ai_agent and confirm immutable block", + "category": "core", + "outcome": "pass", + "duration_ms": 12, + "started_at": "2026-05-05T12:59:41Z" + }, + { + "fixture_id": "stop-cascade/01", + "name": "Entity stop signal forces deny on subsequent authorize", + "category": "core", + "outcome": "pass", + "duration_ms": 47, + "started_at": "2026-05-05T12:59:42Z" + }, + { + "fixture_id": "capability-grant-cascade/01", + "name": "Stop entity revokes its capability grants", + "category": "capability", + "outcome": "pass", + "duration_ms": 19 + } + ], + "summary": { + "total": 37, + "passed": 37, + "failed": 0, + "skipped": 0, + "started_at": "2026-05-05T12:59:00Z", + "ended_at": "2026-05-05T13:00:00Z", + "wall_clock_ms": 60000 + }, + "verdict": { + "status": "conformant", + "narrative": "All 37 v1.0 fixtures pass; tier-1-bank latency targets met (authorize p99 = 38 ms, cascade p99 = 142 ms).", + "tier_claim_validated": true + } +} diff --git a/examples/conformance-run.json b/examples/conformance-run.json new file mode 100644 index 0000000000000000000000000000000000000000..726029ca1cff021bf080a7c596df79dbc71e1d5f --- /dev/null +++ b/examples/conformance-run.json @@ -0,0 +1,24 @@ +{ + "schema_version": "kye.conformance_run.v1", + "run_id": "kye:conformance-run:acme.example:001", + "implementation_id": "kye:implementation:acme.example:agent-runtime", + "implementation_name": "Acme Agent Runtime", + "implementation_version": "2.4.1", + "test_suite_version": "kye-conformance-1.0.0", + "profiles_under_test": [ + "kye.core.v1.0", + "kye.authority.v1.0", + "kye.capability.v1.0" + ], + "started_at": "2026-05-06T09:00:00Z", + "completed_at": "2026-05-06T09:08:42Z", + "result": "passed", + "summary": { + "tests_total": 37, + "tests_passed": 37, + "tests_failed": 0, + "warnings": 0 + }, + "findings": [], + "evidence_pack_ref": "kye:evidence-pack:acme.example:conformance-001" +} diff --git a/examples/connector-evidence-import-grc-platform.json b/examples/connector-evidence-import-grc-platform.json new file mode 100644 index 0000000000000000000000000000000000000000..d5ea8a0d4de4357cc7d01cd8c5ddd14ed0cfc62b --- /dev/null +++ b/examples/connector-evidence-import-grc-platform.json @@ -0,0 +1,46 @@ +{ + "schema_version": "kye.connector.evidence_import.v1", + "import_id": "kye:import:acme-bank.servicenow-grc-export.2026-06-21", + "tenant_id": "kye:tenant:acme-bank", + "source_tool": "servicenow_grc", + "imported_at": "2026-06-21T09:30:00Z", + "row_count": 4, + "items": [ + { + "kind": "control", + "control_id": "CC6.1", + "framework": "soc_2", + "name": "Logical access — least privilege", + "description": "Imported from the customer's ServiceNow GRC control catalog during onboarding. KYE auto-maps its runtime Evidence Pack to this existing control via the §70 framework crosswalk; ServiceNow GRC stays the system of record.", + "status": "pass", + "owner": "kye:ent:acme-bank.ciso" + }, + { + "kind": "control", + "control_id": "A.5.15", + "framework": "iso_27001", + "name": "Access control", + "description": "Imported from the customer's ServiceNow GRC ISO 27001 authority document mapping. Crosswalks to the same KYE artefact as SOC 2 CC6.1 via the §70 NIST 800-53 hub.", + "status": "pass", + "owner": "kye:ent:acme-bank.ciso" + }, + { + "kind": "obligation", + "obligation_id": "eu-ai-act-art-72", + "framework": "eu_ai_act", + "citation": "EU AI Act Art. 72", + "text": "Post-market monitoring of high-risk AI systems by providers.", + "control_refs": ["CC6.1"] + }, + { + "kind": "ai_system", + "system_id": "kye:agent:acme-bank.supplier-payment-agent.v3", + "name": "Supplier Payment Agent", + "risk_tier": "high", + "owner": "kye:ent:acme-bank.payments-lead", + "lifecycle_stage": "production", + "framework_refs": ["eu_ai_act", "dora", "iso_42001"] + } + ], + "errors": [] +} diff --git a/examples/connector-evidence-import.json b/examples/connector-evidence-import.json new file mode 100644 index 0000000000000000000000000000000000000000..757eec9bbb36c24964ef61d549daf989965cac44 --- /dev/null +++ b/examples/connector-evidence-import.json @@ -0,0 +1,53 @@ +{ + "schema_version": "kye.connector.evidence_import.v1", + "import_id": "kye:import:acme-bank.vanta-export.2026-05-20", + "tenant_id": "kye:tenant:acme-bank", + "source_tool": "vanta", + "imported_at": "2026-05-20T15:10:00Z", + "row_count": 5, + "items": [ + { + "kind": "control", + "control_id": "CC6.1", + "framework": "soc_2", + "name": "Logical access — least privilege", + "description": "Access to systems and data is restricted to authorised users on a least-privilege basis.", + "status": "pass", + "owner": "kye:ent:acme-bank.ciso" + }, + { + "kind": "obligation", + "obligation_id": "gdpr-art-30", + "framework": "gdpr", + "citation": "GDPR Art. 30", + "text": "Maintain a record of processing activities under the controller's responsibility.", + "control_refs": ["CC6.1"] + }, + { + "kind": "evidence_item", + "evidence_id": "kye:evidence:acme-bank.okta-access-review.q2", + "control_ref": "CC6.1", + "evidence_kind": "attestation", + "title": "Q2 quarterly access review — Okta production tenant", + "collected_at": "2026-04-30T17:00:00Z", + "source_uri": "https://acme-bank.vanta.com/evidence/okta-access-review-q2", + "content_sha256": "9f2c1a7b4e0d6385a1c2f4b8d9e0a1b2c3d4e5f60718293a4b5c6d7e8f90a1b2" + }, + { + "kind": "ai_system", + "system_id": "kye:agent:acme-bank.supplier-payment-agent.v3", + "name": "Supplier Payment Agent", + "risk_tier": "high", + "owner": "kye:ent:acme-bank.payments-lead", + "lifecycle_stage": "production", + "framework_refs": ["eu_ai_act", "dora"] + } + ], + "errors": [ + { + "row_index": 4, + "reason": "no recognised mapping for source column 'Control Owner Email'; row skipped", + "raw": { "Control": "", "Status": "n/a", "Control Owner Email": "unknown@acme-bank.com" } + } + ] +} diff --git a/examples/continuity-context.json b/examples/continuity-context.json new file mode 100644 index 0000000000000000000000000000000000000000..3f5a1cea9d4857a2e6b79f4cfff70d99069adc60 --- /dev/null +++ b/examples/continuity-context.json @@ -0,0 +1,84 @@ +{ + "schema_version": "kye.continuity_context.v1", + "continuity_id": "kye:continuity:001", + "request_id": "req_123", + "correlation_id": "kye:corr:agent_purchase_001", + "actor_entity_id": "kye:entity:agent:shopping_agent_456", + "principal_entity_id": "kye:entity:person:customer_123", + "acting_on_behalf_of": "kye:entity:person:customer_123", + "capability_id": "kye:capability:card_purchase", + "authority_grant_id": "kye:authority:grant:purchase_001", + "original_intent": { + "intent_id": "kye:intent:001", + "intent_type": "purchase_assistance", + "declared_goal": "Buy a phone charger under £40", + "declared_by": "kye:entity:person:customer_123", + "constraints": [ + "trusted merchant", + "no subscription", + "delivery within 3 days", + "maximum amount GBP 40" + ], + "created_at": "2026-05-06T12:00:00Z" + }, + "interpreted_intent": { + "interpreted_by": "kye:entity:agent:shopping_agent_456", + "interpreted_goal": "Purchase electronics accessory", + "confidence": 0.92, + "material_drift_detected": false, + "interpretation_notes": "Agent interpreted charger as electronics accessory within purchase constraints." + }, + "authority_binding": { + "scope_matched": true, + "capability_matched": true, + "delegation_chain_valid": true, + "authority_state": "active", + "approval_required": false + }, + "state_snapshot": { + "actor_state": "active", + "principal_state": "active", + "credential_state": "valid", + "capability_state": "active", + "risk_state": "normal", + "recovery_state": "none" + }, + "pressure_context": { + "urgency_level": "normal", + "user_pressure_detected": false, + "external_coercion_signal": "not_detected", + "social_engineering_signal": "not_detected" + }, + "incentive_context": { + "agent_optimisation_goal": "minimise_cost_within_constraints", + "commercial_incentive_detected": false, + "affiliate_or_commission_present": false, + "conflict_of_interest_detected": false + }, + "execution_context": { + "requested_action": "purchase.prepare", + "merchant_id": "merchant:example_retailer", + "basket_hash": "sha256:c0ffee0bb5deedc0ffee0bb5deedc0ffee0bb5deedc0ffee0bb5deedc0ffee01", + "amount": { + "value": 34.99, + "currency": "GBP" + }, + "execution_state": "pending" + }, + "continuity_result": { + "status": "preserved", + "reason_code": "intent_authority_scope_state_aligned", + "material_drift_detected": false, + "human_review_required": false + }, + "decision_map_id": "kye:decision-map:continuity_001", + "evidence_pack_ref": "kye:evidence-pack:continuity_001", + "meaning_continuity": { + "meaning_continuity_id": "kye:meaning-continuity:001", + "status": "meaning_preserved", + "meaning_score": 0.94, + "material_drift_detected": false, + "recommended_decision": "route_to_admissibility" + }, + "created_at": "2026-05-06T12:03:00Z" +} diff --git a/examples/continuity-decision.json b/examples/continuity-decision.json new file mode 100644 index 0000000000000000000000000000000000000000..fadd8ed62eb14e296c54fb3567ec32a0ec35ca34 --- /dev/null +++ b/examples/continuity-decision.json @@ -0,0 +1,33 @@ +{ + "schema_version": "kye.continuity_decision.v1", + "decision_id": "kye:decision:continuity_001", + "continuity_id": "kye:continuity:001", + "decision": "continuity_preserved", + "reason_code": "intent_authority_scope_state_aligned", + "actor_entity_id": "kye:entity:agent:shopping_agent_456", + "principal_entity_id": "kye:entity:person:customer_123", + "capability_id": "kye:capability:card_purchase", + "checked_dimensions": { + "intent_alignment": "matched", + "authority_alignment": "matched", + "scope_alignment": "matched", + "state_alignment": "matched", + "capability_alignment": "matched", + "incentive_alignment": "no_conflict_detected", + "pressure_context": "no_pressure_detected", + "oversight_state": "not_required" + }, + "continuity_score": { + "score": 0.96, + "scale": "0_to_1", + "interpretation": "high_continuity" + }, + "obligations": [ + "emit_audit_event", + "bind_continuity_context", + "generate_evidence_pack" + ], + "decision_map_id": "kye:decision-map:continuity_001", + "evidence_pack_ref": "kye:evidence-pack:continuity_001", + "decided_at": "2026-05-06T12:03:10Z" +} diff --git a/examples/continuity-evidence-pack.json b/examples/continuity-evidence-pack.json new file mode 100644 index 0000000000000000000000000000000000000000..32fc3b2764fe46d96c1adfb698c27efd4684c474 --- /dev/null +++ b/examples/continuity-evidence-pack.json @@ -0,0 +1,23 @@ +{ + "schema_version": "kye.continuity_evidence_pack.v1", + "evidence_pack_id": "kye:evidence-pack:continuity_001", + "continuity_id": "kye:continuity:001", + "decision_id": "kye:decision:continuity_001", + "included_evidence": { + "authority_grant": true, + "policy_decision": true, + "audit_events": true + }, + "continuity_summary": { + "continuity_status": "preserved", + "material_drift_detected": false, + "human_review_required": false + }, + "hash": "sha384:c0ffeec0ffeec0ffeec0ffeec0ffeec0ffeec0ffeec0ffeec0ffeec0ffeec0ffeec0ffeec0ffeec0ffeec0ffee", + "signature": { + "algorithm": "ed25519", + "key_id": "kye:key:evidence_signing_001", + "signature": "RXhhbXBsZS1zaWduYXR1cmUtZm9yLWRlbW9ucHJvb2YtcHVycG9zZXMtb25seQ" + }, + "generated_at": "2026-05-06T12:04:30Z" +} diff --git a/examples/continuity-profile.json b/examples/continuity-profile.json new file mode 100644 index 0000000000000000000000000000000000000000..6fc28ee4a60da1eba23119afe7344bc996f14cad --- /dev/null +++ b/examples/continuity-profile.json @@ -0,0 +1,57 @@ +{ + "schema_version": "kye.continuity_profile.v1", + "profile_id": "kye:profile:continuity", + "display_name": "KYE Continuity Profile™", + "category": "delegated_agency_governance", + "version": "1.1.0", + "description": "Defines continuity checks between intent, interpretation, delegated authority, state, decision, execution and evidence. v1.1.0 adds meaning_continuity as a required module via the KYE Meaning Continuity Profile™ sub-profile.", + "required_kye_profiles": [ + "kye.core.v1", + "kye.authority.v1", + "kye.state.v1", + "kye.capability.v1", + "kye.evidence.v1", + "kye.graph.v1", + "kye.signals.v1" + ], + "required_objects": [ + "KYEEntity", + "KYEAuthorityGrant", + "KYEDelegation", + "KYEScope", + "KYEStateSnapshot", + "KYECapabilityManifest", + "KYEPolicyDecision", + "KYEAuditEvent", + "KYEEvidencePack", + "KYEContinuityContext", + "KYEIntentTrace", + "KYEContinuityDecision", + "KYEMeaningContinuityContext", + "KYEHandoffTrace", + "KYEMeaningDriftEvent", + "KYEMeaningContinuityDecision" + ], + "modules": [ + "intent_continuity", + "meaning_continuity", + "context_continuity", + "memory_continuity", + "incentive_continuity", + "timing_continuity", + "handoff_continuity", + "state_continuity", + "execution_continuity" + ], + "decision_types": [ + "continuity_preserved", + "continuity_degraded", + "continuity_broken", + "require_human_review", + "require_reconfirmation", + "deny", + "quarantine" + ], + "risk_level": "high", + "status": "active" +} diff --git a/examples/credential.json b/examples/credential.json new file mode 100644 index 0000000000000000000000000000000000000000..63551a93ef8282ecbc76dea80b75ff7c0b75d786 --- /dev/null +++ b/examples/credential.json @@ -0,0 +1,16 @@ +{ + "credential_id": "kye:cred:acme.example:kye_agent_passport:01JYCRED0000000000000000", + "credential_type": "kye_agent_passport", + "issuer_entity_id": "kye:ent:acme.example:issuer:01JYISS0000000000000000000", + "holder_entity_id": "kye:ent:acme.example:ai_agent:01JY3J1D4E5A7K3JQFK4E0Q1XZ", + "subject_entity_id": "kye:ent:acme.example:ai_agent:01JY3J1D4E5A7K3JQFK4E0Q1XZ", + "format": "vc+jwt", + "claims": { + "passport_version": "1.0", + "agent_runtime_id": "runtime-finance-prod-001", + "autonomy_mode": "constrained" + }, + "status": "valid", + "issued_at": "2026-04-01T10:00:00Z", + "expires_at": "2026-07-01T10:00:00Z" +} diff --git a/examples/cron-manifest.json b/examples/cron-manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..ff880147a8ae85da8e124b0feb7a2d4cacd6e56a --- /dev/null +++ b/examples/cron-manifest.json @@ -0,0 +1,21 @@ +{ + "schema": "https://kyeprotocol.com/schemas/kye.cron_manifest.v1.json", + "schema_version": "1.0.0", + "registry_id": "kye:registry:cron", + "adopted_at": "2026-05-30", + "description": "Example fixture mirroring the canonical cron manifest. Used by the §0.15 event-native-coverage gate as the schema-conformance witness. The real registry lives at internal", + "constitution_ref": "constitution/00-INDEX.md#section-0-15-event-native", + "publication_rule": { "policy": "public", "rationale": "Example fixture." }, + "counts": { "total": 1 }, + "crons": [ + { + "cron_id": "kye:cron:liveness-heartbeat", + "workflow_path": ".github/workflows/liveness-heartbeat.yml", + "cron_expression": "0 */6 * * *", + "periodic_invariant": "liveness_heartbeat", + "rationale": "§44 Liveness Engine heartbeat probe. Silence MUST be detectable, and silence has no event to subscribe to.", + "constitution_ref": "constitution/44-LIVENESS-ENGINE.md", + "alternative_event_trigger_considered": "Push-based external monitor (rejected: would introduce a new SPOF row)." + } + ] +} diff --git a/examples/data-access-evidence-event.json b/examples/data-access-evidence-event.json new file mode 100644 index 0000000000000000000000000000000000000000..dd10517a2e20e833903d1ef3104eeadb3ebad14f --- /dev/null +++ b/examples/data-access-evidence-event.json @@ -0,0 +1,23 @@ +{ + "event_id": "kye:event:northbank:dae-2026-05-16-7f3c2a9d", + "event_type": "kye.data_access_evidence_event.v1", + "decision_id": "kye:decision:northbank:7f3c2a9d-4b1e-4c8a-9d12-3e6a7c5f1b88", + "actor": "kye:agent:northbank:kyc-verify", + "principal": "kye:org:northbank", + "asset_id": "kye:data_asset:northbank:retail-onboarding.customers_master", + "action": "read", + "classification": "personal_data", + "purpose": "regulatory_compliance", + "manifest_id": "kye:data_use_manifest:northbank:agent-kyc-verify-2026-q2", + "data_subject_ref": { + "ref_type": "pseudonymous_id", + "ref_value_hash": "9a1b3c5d7e8f0a2b4c6d8e0f1a3b5c7d9e1f0a2b4c6d8e0f1a3b5c7d9e1f0a2b" + }, + "row_count": 1, + "field_set_hash": "d4f1e2c3b4a59687c8d9e0f1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f90011", + "decision": "allow", + "decision_reason_codes": [], + "jurisdiction": "GB", + "evidence_pack_id": "kye:evidence_pack:northbank:ep-2026-05-16-7f3c2a9d", + "occurred_at": "2026-05-16T13:42:18Z" +} diff --git a/examples/data-asset.json b/examples/data-asset.json new file mode 100644 index 0000000000000000000000000000000000000000..2f67ef779a807f1e70d44da1f98aa65d7d50ba83 --- /dev/null +++ b/examples/data-asset.json @@ -0,0 +1,27 @@ +{ + "asset_id": "kye:data_asset:northbank:retail-onboarding.customers_master", + "owner": "kye:org:northbank", + "asset_kind": "db_table", + "location": { + "system": "cloudflare:d1", + "address": "retail_onboarding.customers_master", + "jurisdiction": "GB" + }, + "classification": "personal_data", + "pii_inventory": [ + { "field": "given_name", "pii_type": "name", "redaction_strategy": "preserve_only_for_subject" }, + { "field": "family_name", "pii_type": "name", "redaction_strategy": "preserve_only_for_subject" }, + { "field": "email", "pii_type": "email_address", "redaction_strategy": "preserve_only_for_subject" }, + { "field": "national_insurance", "pii_type": "national_id", "redaction_strategy": "tokenise" }, + { "field": "date_of_birth", "pii_type": "date_of_birth", "redaction_strategy": "preserve_only_for_subject" }, + { "field": "primary_iban", "pii_type": "financial_account","redaction_strategy": "partial_mask" } + ], + "labels": { + "kyc-scope": "tier-1", + "regulator-domain": "FCA-PRA" + }, + "default_retention_days": 2555, + "data_subject_ref_field": "customer_id", + "lineage_parents": [], + "registered_at": "2026-03-15T11:00:00Z" +} diff --git a/examples/data-classification-assignment.json b/examples/data-classification-assignment.json new file mode 100644 index 0000000000000000000000000000000000000000..d5e038f6ff810fbbe400d99224b4d3172aa2b03f --- /dev/null +++ b/examples/data-classification-assignment.json @@ -0,0 +1,16 @@ +{ + "schema_id": "kye.data_classification_assignment.v1", + "assignment_id": "kye:classification-assignment:acme-pii-customer-table-2026-05-17", + "tenant_id": "kye:tenant:acme-bank", + "asset_id": "kye:data-asset:acme-bank-customer-master", + "classification": "restricted", + "classifier_kid": "kye:kid:acme-data-classification-agent-2026-q2", + "rationale": "Customer master table contains PII. The classification engine and the detection-rule corpus are part of the patent track; this example shows only the canonical envelope a downstream consumer receives.", + "detection_method": "regex_scan", + "derived_from": { + "sector_template_id": "kye:profile:fs-customer-master-template" + }, + "effective_at": "2026-05-17T11:30:00Z", + "signature_b64": "AQIDBAUGBwgJCgsMDQ4PEBESExQVFhcYGRobHB0eHyAhIiMkJSYnKCkqKywtLi8wMTIzNDU2Nzg5Ojs8PT4/QA==", + "evidence_pack_id": null +} diff --git a/examples/data-flow-graph.json b/examples/data-flow-graph.json new file mode 100644 index 0000000000000000000000000000000000000000..82719099859e9f429209f969676551e6d74f377d --- /dev/null +++ b/examples/data-flow-graph.json @@ -0,0 +1,75 @@ +{ + "schema_id": "kye.data_flow_graph.v1", + "graph_id": "kye:data-flow-graph:acme-bank-payment-flow-2026-05-17", + "tenant_id": "kye:tenant:acme-bank", + "window_start": "2026-05-17T00:00:00Z", + "window_end": "2026-05-17T12:00:00Z", + "nodes": [ + { "node_id": "n1", "entity_id": "kye:principal:acme-treasury-ops", "kind": "principal", "display_name": "Treasury Ops (human)" }, + { "node_id": "n2", "entity_id": "kye:agent:acme-payment-agent-eu", "kind": "agent", "display_name": "Payment Agent (EU)", "risk_tier": "high" }, + { "node_id": "n3", "entity_id": "kye:model:gpt-4o-2024-08-06", "kind": "model_endpoint", "display_name": "GPT-4o" }, + { "node_id": "n4", "entity_id": "kye:dataset:acme-customer-master", "kind": "dataset", "display_name": "Customer Master", "classification": "restricted" }, + { "node_id": "n5", "entity_id": "kye:tool:acme-stripe-payment-tool", "kind": "tool", "display_name": "Stripe Payment Tool", "risk_tier": "high" }, + { "node_id": "n6", "entity_id": "kye:connector:stripe", "kind": "external_service", "display_name": "Stripe API" } + ], + "edges": [ + { + "edge_id": "e1", "from_node_id": "n1", "to_node_id": "n2", + "flow_kind": "delegate", "count": 47, + "classification_floor": null, "risk_tier_max": "high", + "first_event_at": "2026-05-17T00:14:03Z", + "last_event_at": "2026-05-17T11:52:21Z", + "audit_chain_anchor": "kye:audit-chain-anchor:acme-bank-2026-05-17T00" + }, + { + "edge_id": "e2", "from_node_id": "n2", "to_node_id": "n3", + "flow_kind": "invoke", "count": 312, + "classification_floor": "confidential", "risk_tier_max": "high", + "first_event_at": "2026-05-17T00:14:08Z", + "last_event_at": "2026-05-17T11:52:30Z", + "audit_chain_anchor": "kye:audit-chain-anchor:acme-bank-2026-05-17T00" + }, + { + "edge_id": "e3", "from_node_id": "n2", "to_node_id": "n4", + "flow_kind": "read", "count": 89, + "classification_floor": "restricted", "risk_tier_max": "high", + "first_event_at": "2026-05-17T00:14:12Z", + "last_event_at": "2026-05-17T11:51:55Z", + "audit_chain_anchor": "kye:audit-chain-anchor:acme-bank-2026-05-17T00" + }, + { + "edge_id": "e4", "from_node_id": "n2", "to_node_id": "n5", + "flow_kind": "invoke", "count": 23, + "classification_floor": "confidential", "risk_tier_max": "high", + "first_event_at": "2026-05-17T00:32:11Z", + "last_event_at": "2026-05-17T11:48:09Z", + "audit_chain_anchor": "kye:audit-chain-anchor:acme-bank-2026-05-17T00" + }, + { + "edge_id": "e5", "from_node_id": "n5", "to_node_id": "n6", + "flow_kind": "invoke", "count": 23, + "classification_floor": "confidential", "risk_tier_max": "high", + "first_event_at": "2026-05-17T00:32:15Z", + "last_event_at": "2026-05-17T11:48:13Z", + "audit_chain_anchor": "kye:audit-chain-anchor:acme-bank-2026-05-17T00" + }, + { + "edge_id": "e6", "from_node_id": "n2", "to_node_id": "n2", + "flow_kind": "emit_evidence", "count": 471, + "classification_floor": "internal", "risk_tier_max": "high", + "first_event_at": "2026-05-17T00:14:08Z", + "last_event_at": "2026-05-17T11:52:30Z", + "audit_chain_anchor": "kye:audit-chain-anchor:acme-bank-2026-05-17T00" + } + ], + "summary": { + "node_count": 6, + "edge_count": 6, + "highest_classification": "restricted", + "highest_risk_tier": "high", + "framework_floors_triggered": ["eu_ai_act", "dora", "gdpr", "pci_dss", "fca_opres"] + }, + "generator_kid": "kye:kid:acme-data-mapping-agent-2026-q2", + "generated_at": "2026-05-17T12:00:00Z", + "signature_b64": "AQIDBAUGBwgJCgsMDQ4PEBESExQVFhcYGRobHB0eHyAhIiMkJSYnKCkqKywtLi8wMTIzNDU2Nzg5Ojs8PT4/QA==" +} diff --git a/examples/data-use-manifest.json b/examples/data-use-manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..9bee7952638afa5235824a268046ad7a004659e4 --- /dev/null +++ b/examples/data-use-manifest.json @@ -0,0 +1,31 @@ +{ + "manifest_id": "kye:data_use_manifest:northbank:agent-kyc-verify-2026-q2", + "issuer": "kye:org:northbank", + "subject": "kye:agent:northbank:kyc-verify", + "purposes": ["service_delivery", "regulatory_compliance", "fraud_prevention"], + "permitted_actions": ["read", "summarise", "transform"], + "asset_selectors": [ + { "selector_type": "asset_urn_prefix", "selector": "kye:data_asset:northbank:retail-onboarding." }, + { "selector_type": "label", "selector": "kyc-scope:tier-1" } + ], + "permitted_classifications": ["personal_data", "financial_data", "internal"], + "permitted_jurisdictions": ["GB", "IE", "DE"], + "transfer_safeguards": ["scc_2021"], + "retention": { + "max_age_days": 1825, + "post_retention_action": "delete" + }, + "data_subject_basis": "legal_obligation", + "evidence_requirements": { + "evidence_pack_required": true, + "audit_chain_required": true + }, + "issued_at": "2026-04-01T09:00:00Z", + "not_before": "2026-04-01T09:00:00Z", + "not_after": "2027-04-01T09:00:00Z", + "signature": { + "alg": "Ed25519", + "kid": "kye:key:northbank:dgp-signer-2026-q2", + "value_b64": "Zu9SR2W9hLZk4P1mZxQ8DcsT0vF2gJtY0nq7XbVnEoZHCMa1L8VqfP9bxYZJk6XKfGwHnH3rqUzQAJp2pYRDDw" + } +} diff --git a/examples/decision-replay.json b/examples/decision-replay.json new file mode 100644 index 0000000000000000000000000000000000000000..a89fb8182573cf6c57d90328df698e9c1cfddb7f --- /dev/null +++ b/examples/decision-replay.json @@ -0,0 +1,20 @@ +{ + "schema_version": "kye.decision_replay.v1", + "replay_id": "kye:replay:acme.example:decision_987", + "decision_id": "kye:decision:acme.example:987", + "original_decision": "allow", + "replayed_decision": "allow", + "result": "match", + "replay_mode": "historical_state_snapshot", + "checked_items": { + "actor_state": "matched", + "principal_state": "matched", + "delegation_state": "matched", + "authority_grant": "matched", + "capability_state": "matched", + "policy_version": "matched", + "reason_code": "matched", + "audit_hash": "valid" + }, + "replayed_at": "2026-05-06T10:30:00Z" +} diff --git a/examples/decommissioning-plan.json b/examples/decommissioning-plan.json new file mode 100644 index 0000000000000000000000000000000000000000..6eef1d04768f887ef79cdb93fdb9727c3259a680 --- /dev/null +++ b/examples/decommissioning-plan.json @@ -0,0 +1,46 @@ +{ + "schema_version": "kye.decommissioning_plan.v1", + "plan_id": "kye:decommissioning-plan:finance_agent_001", + "assurance_card_ref": "kye:assurance-card:finance_agent_001", + "retention": { + "evidence_retention_window": "P7Y", + "audit_retention_window": "P7Y", + "data_retention_window": "P3Y" + }, + "off_boarding_steps": [ + { + "step_id": "01_revoke_authority", + "action": "revoke_authority", + "owner_role": "ai_governance_lead", + "evidence_required": ["revocation_event", "decision_map"] + }, + { + "step_id": "02_quarantine_credentials", + "action": "quarantine_credentials", + "owner_role": "security_admin", + "evidence_required": ["state_snapshot"] + }, + { + "step_id": "03_archive_evidence", + "action": "archive_evidence", + "owner_role": "ai_governance_lead", + "evidence_required": ["evidence_pack", "audit_ref"] + }, + { + "step_id": "04_update_catalog", + "action": "update_catalog", + "owner_role": "ai_governance_lead", + "evidence_required": ["catalog_update_event"] + } + ], + "cascade_revocation": { + "enabled": true, + "scope": "entity_and_descendants" + }, + "evidence_archival": { + "archive_location": "kye:archive:tenant_acme_ltd", + "archive_method": "signed_bundle", + "archive_signature_key_id": "kye:key:archive_signing_001" + }, + "status": "active" +} diff --git a/examples/delegation.json b/examples/delegation.json new file mode 100644 index 0000000000000000000000000000000000000000..8969eea3ea3a68161f642f2fbc0f31a74a6adea1 --- /dev/null +++ b/examples/delegation.json @@ -0,0 +1,30 @@ +{ + "delegation_id": "kye:del:acme.example:01JYABC0000000000000000000", + "actor_entity_id": "kye:ent:acme.example:ai_agent:01JY3J1D4E5A7K3JQFK4E0Q1XZ", + "subject_entity_id": "kye:ent:acme.example:business:01JYACME000000000000000000", + "delegator_entity_id": "kye:ent:acme.example:person:01JYCFO0000000000000000000", + "basis": "explicit_delegation", + "allowed_actions": [ + "document.render", + "document.read" + ], + "forbidden_actions": [ + "document.export" + ], + "scope": { + "scope_id": "kye:scp:acme.example:01JYFINANCE000000000000000", + "constraints": { + "workspace": "finance", + "environment": "prod", + "jurisdiction": "GB", + "data_constraints": { + "redaction_required": true, + "external_send_allowed": false + }, + "obligations": ["audit.emit"] + } + }, + "status": "active", + "valid_from": "2026-04-01T00:00:00Z", + "valid_until": "2026-12-31T23:59:59Z" +} diff --git a/examples/discoverability-profile.json b/examples/discoverability-profile.json new file mode 100644 index 0000000000000000000000000000000000000000..8537155022b0b81257ec23cafee62e9f29a75cf7 --- /dev/null +++ b/examples/discoverability-profile.json @@ -0,0 +1,40 @@ +{ + "schema_version": "kye.discoverability_profile.v1", + "profile_id": "kye:profile:discoverability", + "display_name": "KYE Discoverability Profile™", + "category": "delegated_agency_discovery", + "version": "1.0.0", + "description": "Defines policy-filtered discovery of KYE entities, authorities, delegations, capabilities, states, decisions, evidence packs, profiles, connectors, apps and plugins.", + "required_kye_profiles": [ + "kye.core.v1", + "kye.authority.v1", + "kye.state.v1", + "kye.graph.v1", + "kye.evidence.v1", + "kye.signals.v1" + ], + "required_objects": [ + "KYEEntity", + "KYEAuthorityGrant", + "KYEDelegation", + "KYECapabilityManifest", + "KYEStateSnapshot", + "KYEPolicyDecision", + "KYEAuditEvent", + "KYEEvidencePack", + "KYEDiscoveryQuery", + "KYEDiscoveryResult", + "KYEDirectoryEntry", + "KYEDiscoveryPolicy" + ], + "discovery_modes": [ + "private_tenant", + "workspace", + "cross_workspace", + "federated", + "public_registry", + "certification_registry" + ], + "access_model": "policy_filtered", + "status": "active" +} diff --git a/examples/discovery-audit-event.json b/examples/discovery-audit-event.json new file mode 100644 index 0000000000000000000000000000000000000000..b365a157161aa7681bdcab27bac6371a0133c34d --- /dev/null +++ b/examples/discovery-audit-event.json @@ -0,0 +1,18 @@ +{ + "schema_version": "kye.discovery_audit_event.v1", + "audit_event_id": "kye:audit:discovery_001", + "event_type": "kye.discovery.query_performed", + "query_id": "kye:discovery-query:001", + "requested_by_entity_id": "kye:user:security_admin_001", + "tenant_id": "tenant_acme", + "purpose": "security_review", + "query_type": "authority_path_search", + "result_count": 1, + "sensitive_fields_masked": true, + "policy_id": "kye:policy:discovery:security-admin", + "decision": "allow", + "reason_code": "discovery_policy_matched", + "timestamp": "2026-05-06T12:00:02Z", + "hash": "sha384:c0ffeec0ffeec0ffeec0ffeec0ffeec0ffeec0ffeec0ffeec0ffeec0ffeec0ffeec0ffeec0ffeec0ffeec0ffee", + "previous_hash": "sha384:beadedbeadedbeadedbeadedbeadedbeadedbeadedbeadedbeadedbeadedbeadedbeadedbeadedbeadedbeaded" +} diff --git a/examples/discovery-policy.json b/examples/discovery-policy.json new file mode 100644 index 0000000000000000000000000000000000000000..cefd679095d66e9e164c513e2d5562e17b2ddcf2 --- /dev/null +++ b/examples/discovery-policy.json @@ -0,0 +1,43 @@ +{ + "schema_version": "kye.discovery_policy.v1", + "policy_id": "kye:policy:discovery:security-admin", + "display_name": "Security Admin Discovery Policy", + "description": "Allows security administrators to discover high-risk authority chains inside their tenant.", + "applies_to": { + "roles": ["security_admin", "tenant_admin"], + "purposes": ["security_review", "incident_response", "audit"] + }, + "allowed_discovery_types": [ + "entity_search", + "authority_path_search", + "capability_search", + "risk_search", + "evidence_search" + ], + "field_rules": { + "allowed_fields": [ + "actor_entity_id", + "principal_entity_id", + "capability_id", + "authority_state", + "risk_state", + "scope_summary", + "evidence_refs" + ], + "masked_fields": [ + "payment_instrument_ref", + "personal_data_fields", + "secret_refs" + ], + "denied_fields": [ + "raw_credentials", + "private_keys" + ] + }, + "audit_required": true, + "reason_code_required": true, + "retention": { + "query_audit_retention_days": 365 + }, + "status": "active" +} diff --git a/examples/discovery-query.json b/examples/discovery-query.json new file mode 100644 index 0000000000000000000000000000000000000000..521b5096978244649be94194b1507d58d08e14c4 --- /dev/null +++ b/examples/discovery-query.json @@ -0,0 +1,29 @@ +{ + "schema_version": "kye.discovery_query.v1", + "query_id": "kye:discovery-query:001", + "query_type": "authority_path_search", + "requested_by_entity_id": "kye:user:security_admin_001", + "tenant_id": "tenant_acme", + "purpose": "security_review", + "query": { + "text": "Find all agents that can move money", + "filters": { + "entity_type": ["ai_agent", "workflow", "api_client"], + "capability_type": ["payment_action", "card_purchase", "payment_initiation"], + "side_effect_level": ["move_money"], + "authority_state": ["active"], + "environment": ["production"] + } + }, + "result_policy": { + "max_results": 100, + "include_evidence_refs": true, + "include_decision_maps": false, + "mask_sensitive_fields": true + }, + "audit": { + "audit_required": true, + "reason_code_required": true + }, + "created_at": "2026-05-06T12:00:00Z" +} diff --git a/examples/discovery-result.json b/examples/discovery-result.json new file mode 100644 index 0000000000000000000000000000000000000000..26d797cb2335a5c336675b89ace49243c3dfe253 --- /dev/null +++ b/examples/discovery-result.json @@ -0,0 +1,42 @@ +{ + "schema_version": "kye.discovery_result.v1", + "query_id": "kye:discovery-query:001", + "result_id": "kye:discovery-result:001", + "decision": "allow", + "reason_code": "discovery_policy_matched", + "results": [ + { + "result_type": "authority_path", + "actor_entity_id": "kye:agent:shopping_agent_456", + "principal_entity_id": "kye:person:customer_123", + "capability_id": "kye:capability:card_purchase", + "authority_grant_id": "kye:authority:grant:purchase_001", + "state": { + "actor_state": "active", + "authority_state": "active", + "capability_state": "active", + "risk_state": "normal" + }, + "scope_summary": { + "max_amount": { + "value": 50, + "currency": "GBP" + }, + "requires_approval_above": { + "value": 25, + "currency": "GBP" + } + }, + "evidence_refs": [ + "kye:evidence-pack:authority_grant_001" + ], + "redactions": [ + "payment_instrument_ref_masked" + ] + } + ], + "result_count": 1, + "masked": true, + "audit_event_id": "kye:audit:discovery_001", + "generated_at": "2026-05-06T12:00:02Z" +} diff --git a/examples/document-asset.json b/examples/document-asset.json new file mode 100644 index 0000000000000000000000000000000000000000..713484b8843aee0b65627efedbf3dabe6df9465b --- /dev/null +++ b/examples/document-asset.json @@ -0,0 +1,33 @@ +{ + "document_asset_id": "kye:document_asset:northbank:acceptable-use-policy-v3", + "data_asset_ref": "kye:data_asset:northbank:governance.acceptable-use-policy-v3", + "trust_domain_id": "northbank", + "owner": "kye:org:northbank", + "classification_kind": "acceptable_use", + "filename": "northbank-acceptable-use-policy-v3.pdf", + "media_type": "application/pdf", + "byte_size": 184320, + "content_sha256": "815e1b6db9deb7d769c31fd2194f9f98cca24f6702671f8bb4cef2f35c6de258", + "object_lock": { + "bucket": "kye-document-governance", + "object_key": "northbank/document-assets/acceptable-use-policy-v3.pdf", + "mode": "COMPLIANCE", + "retain_until": "2033-06-10T00:00:00Z" + }, + "data_use_manifest_ref": "kye:data_use_manifest:northbank:document-governance-default", + "retention_policy_ref": "kye:retention:document_assets_7y", + "content_safety": { + "verdict": "clean", + "scanned_at": "2026-06-10T09:30:00Z", + "pii_findings": [], + "disallowed_type": false, + "scanner": { + "engine": "kye-document-content-safety", + "engine_version": "1.0.0", + "av_vendor_status": "not_configured" + } + }, + "policy_clause_mapping_ref": "kye:policy_clause_mapping:northbank:acceptable-use-policy-v3.gdpr", + "ingestion_evidence_ref": "kye:evidence-pack:northbank:document-ingest-acceptable-use-policy-v3", + "registered_at": "2026-06-10T09:30:02Z" +} diff --git a/examples/dr-manifest.json b/examples/dr-manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..87d41bb3b47944d049e587526bdb04567424c334 --- /dev/null +++ b/examples/dr-manifest.json @@ -0,0 +1,83 @@ +{ + "$schema": "https://kyeprotocol.com/schemas/kye.dr_manifest.v1.json", + "schema_version": "kye.dr_manifest.v1", + "description": "Disaster-recovery manifest. Published at https://kyeprotocol.com/.well-known/kye-dr.json so any client (regulator, auditor, customer) can discover the backup hosts + alternate domains during a primary outage. Constitution §0.4 — banking-grade requires no S1 SPOF; this manifest is the public registry of mitigations.", + "publisher": { + "name": "KYE Protocol Ltd", + "url": "https://kyeprotocol.com/" + }, + "primary": { + "domain": "kyeprotocol.com", + "api": "https://api.kyeprotocol.com", + "admin": "https://admin.kyeprotocol.com", + "app": "https://app.kyeprotocol.com", + "schemas":"https://kyeprotocol.com/schemas/", + "registrar": "Cloudflare Registrar", + "registrar_lock": "enabled", + "dnssec": "enabled" + }, + "alternates": [ + { + "purpose": "schemas_resolver_mirror", + "rationale": "Backup $id resolution path for kye.*.v1.json schemas. Primary host is kyeprotocol.com; this mirror serves byte-identical schema files under the same path prefix. CI gate publish-schemas-to-mirror runs on every main commit.", + "url": "https://kye-protocol.github.io/schemas/", + "status": "active_mirror" + }, + { + "purpose": "domain_dr", + "rationale": "Standby domain pre-registered so a primary-domain seizure or registrar incident does not eliminate the protocol. Promoted by DNS swap; certificate issued via ACME on activation.", + "domain": "kye-protocol.dev", + "status": "registered_parked" + }, + { + "purpose": "verifier_lambda", + "rationale": "Self-contained AWS Lambda verifier bundle — any auditor can verify a signed kye.*.v1 envelope from outside the Cloudflare substrate using nothing more than the published per-tenant pubkey. Builds the multi-cloud verifier path (runbook S1-#1).", + "url": "https://github.com/KYE-Protocol/app/tree/main/internal", + "status": "published", + "language": "typescript", + "entry": "lambda-handler.mjs" + }, + { + "purpose": "mirror_repo", + "rationale": "GitLab mirror of the canonical GitHub repo. Cold-DR deploy pipeline at .gitlab-ci.yml. Operator pull-mirrors hourly.", + "url": "https://gitlab.com/KYE-Protocol/app", + "status": "mirror_only_no_writes" + } + ], + "backup_providers": { + "email": { + "primary": "cloudflare_email_sending", + "backups": ["resend", "postmark", "sendgrid"], + "activation": "automatic_on_primary_failure", + "binding": "MAIL_BACKUP_PROVIDER + MAIL_BACKUP_API_KEY secrets" + }, + "payments": { + "primary": "stripe", + "backups": ["adyen", "mollie"], + "activation": "manual_failover", + "binding": "PAYMENTS_BACKUP_PROVIDER + PAYMENTS_BACKUP_API_KEY secrets" + }, + "identity": { + "primary": "clerk", + "backups": ["auth0"], + "activation": "manual_failover", + "binding": "IDP_BACKUP_PROVIDER + IDP_BACKUP_API_KEY secrets" + } + }, + "backup_data_plane": { + "d1_cross_region": { + "worker": "kye-d1-backup-worker", + "cadence": "hourly", + "secondary_r2_account": "different_cf_account_recommended", + "tables_protected": 19, + "tamper_evidence": "per_run_signed_manifest_with_sha256_per_table" + } + }, + "constitution_refs": [ + "constitution/00-INDEX.md §0.4 — banking-grade", + "constitution/30-AUDIT-WORM-RETENTION.md", + "internal" + ], + "last_reviewed": "2026-05-17", + "next_review_due": "2026-08-17" +} diff --git a/examples/drift-signal-ingest.json b/examples/drift-signal-ingest.json new file mode 100644 index 0000000000000000000000000000000000000000..500b9ac6738b856bbd03a0989173f9d94cc917ed --- /dev/null +++ b/examples/drift-signal-ingest.json @@ -0,0 +1,12 @@ +{ + "schema": "kye.drift_signal.ingest.v1", + "source_tool": "nvidia-nim-observability", + "agent_ref": "kye:agent:acme:claims:triage-bot", + "tenant_id": "kye:tenant:acme", + "drift_type": "authority_drift", + "severity": "high", + "affected_dimensions": ["tool_use", "delegation_scope"], + "deviation_metric": 0.82, + "evidence_url": "https://observability.example/runs/abc123", + "observed_at": "2026-06-11T20:00:00Z" +} diff --git a/examples/dsar-evidence-pack.json b/examples/dsar-evidence-pack.json new file mode 100644 index 0000000000000000000000000000000000000000..e49c76c617a704408183d8df78b354403ba5df9b --- /dev/null +++ b/examples/dsar-evidence-pack.json @@ -0,0 +1,66 @@ +{ + "pack_id": "kye:dsar_evidence_pack:northbank:dsar-2026-05-16-c1f8", + "subject_request_id": "NORTHBANK-DSAR-2026-04287", + "subject_ref_hash": "9a1b3c5d7e8f0a2b4c6d8e0f1a3b5c7d9e1f0a2b4c6d8e0f1a3b5c7d9e1f0a2b", + "tenant": "kye:tenant:northbank", + "issued_at": "2026-05-16T14:05:00Z", + "window": { + "from": "2024-05-16T00:00:00Z", + "to": "2026-05-16T14:05:00Z" + }, + "inclusion_policy": { + "inclusion_min_confidence": 0.85, + "third_party_redaction": "field_level", + "exclude_classifications": [] + }, + "evidence_rows": [ + { + "event_id": "kye:event:northbank:dae-2026-05-16-7f3c2a9d", + "decision_id": "kye:decision:northbank:7f3c2a9d-4b1e-4c8a-9d12-3e6a7c5f1b88", + "occurred_at": "2026-05-16T13:42:18Z", + "asset_id": "kye:data_asset:northbank:retail-onboarding.customers_master", + "action": "read", + "classification": "personal_data", + "purpose": "regulatory_compliance", + "decision": "allow", + "redactions_applied": [ + { "field": "internal_review_notes", "strategy": "drop", "reason_code": "dsar_third_party_redacted" }, + { "field": "primary_iban", "strategy": "partial_mask","reason_code": "dsar_third_party_redacted" } + ], + "evidence_pack_id": "kye:evidence_pack:northbank:ep-2026-05-16-7f3c2a9d" + }, + { + "event_id": "kye:event:northbank:dae-2025-11-04-22a8e1b3", + "decision_id": "kye:decision:northbank:22a8e1b3-9c4d-4e7b-8f01-5a6b9c8d0e22", + "occurred_at": "2025-11-04T09:18:55Z", + "asset_id": "kye:data_asset:northbank:transactions.daily_settlements", + "action": "summarise", + "classification": "financial_data", + "purpose": "service_delivery", + "decision": "allow", + "redactions_applied": [], + "evidence_pack_id": "kye:evidence_pack:northbank:ep-2025-11-04-22a8e1b3" + } + ], + "excluded_rows_summary": { + "count_excluded": 3, + "reason_code_distribution": { + "dsar_inclusion_threshold_not_met": 2, + "dsar_third_party_redacted": 1 + } + }, + "summary": { + "assets_touched": 2, + "actions_taken": 2, + "decision_distribution": { + "allow": 2, + "deny": 0 + } + }, + "content_hash": "8c7b6a5d4e3f2a1b0c9d8e7f6a5b4c3d2e1f0a9b8c7d6e5f4a3b2c1d0e9f8a77", + "signature": { + "alg": "Ed25519", + "kid": "kye:key:northbank:dgp-signer-2026-q2", + "value_b64": "QXJZ8Vbt5kK1m6P9wDc2sT0vR8YgJjY3nq4XbVnEoZHCMa1L8VqfP9bxYZJk6XKfGwHnH3rqUzQAJp2pYRDDw0" + } +} diff --git a/examples/dsar-request.json b/examples/dsar-request.json new file mode 100644 index 0000000000000000000000000000000000000000..95b0eb021eea9598da9f1552bfa26bed71c1e8b6 --- /dev/null +++ b/examples/dsar-request.json @@ -0,0 +1,17 @@ +{ + "schema_id": "kye.dsar_request.v1", + "request_id": "kye:dsar-request:2026-05-17.a1b2c3d4", + "controller": "Acme Bank plc", + "right_exercised": "access", + "regime": "gdpr", + "email_hash": "5e884898da28047151d0e56f8dc6292773603d0d6aabbdd62a11ef721d1542d8", + "name": "Jane Doe", + "detail": "All transaction-monitoring profile-update logs between 2024-01-01 and 2024-12-31.", + "filed_at": "2026-05-17T18:30:00Z", + "due_at": "2026-06-16T18:30:00Z", + "status": "pending_acknowledgement", + "ip_hash": "9b50abd712979c7c7e683c617fbe10f47150104c361b87b7e197ce2ce38f63f4", + "ua_hash": "5e884898da28047151d0e56f8dc6292773603d0d6aabbdd62a11ef721d1542d8", + "consent_accepted_at": "2026-05-17T18:29:58Z", + "linked_report_id": null +} diff --git a/examples/engine-health.json b/examples/engine-health.json new file mode 100644 index 0000000000000000000000000000000000000000..b91f0707ff730d3393a06be499c1e30e57d79275 --- /dev/null +++ b/examples/engine-health.json @@ -0,0 +1,28 @@ +{ + "schema_version": "kye.engine_health.v1", + "implementation_id": "kye:implementation:acme.example:agent-runtime", + "checked_at": "2026-05-06T10:00:00Z", + "status": "degraded", + "engines": { + "schema_validator": "healthy", + "dictionary_resolver": "healthy", + "profile_resolver": "healthy", + "registry_resolver": "healthy", + "authority_engine": "healthy", + "state_engine": "healthy", + "policy_adapter": "healthy", + "decision_engine": "healthy", + "audit_engine": "healthy", + "evidence_engine": "healthy", + "graph_engine": "healthy", + "webhook_engine": "degraded", + "recovery_engine": "healthy" + }, + "warnings": [ + { + "engine": "webhook_engine", + "reason_code": "delivery_latency_elevated", + "message": "p99 delivery latency over the last 5 minutes is 1.8s (threshold 1.0s)." + } + ] +} diff --git a/examples/entity-authority-record.json b/examples/entity-authority-record.json new file mode 100644 index 0000000000000000000000000000000000000000..c716ef344a4c2b7256111d0b4ff20b7f40c25451 --- /dev/null +++ b/examples/entity-authority-record.json @@ -0,0 +1,37 @@ +{ + "schema_version": "kye.entity_authority_record.v1", + "record_id": "kye:authority-record:finance_agent_001", + "entity_id": "kye:agent:finance_agent_001", + "entity_type": "ai_agent", + "display_name": "Finance Payment Preparation Agent", + "owner_entity_id": "kye:user:finance_owner_001", + "accountable_entity_id": "kye:org:acme_ltd", + "purpose": "Prepare supplier payments and reconcile invoices for human approval.", + "lifecycle_state": "pilot", + "risk_tier": "high", + "approved_capabilities": ["invoice.read", "payment.prepare", "supplier.notify"], + "prohibited_capabilities": ["payment.execute", "contract.sign", "credential.rotate"], + "authority_grants": ["kye:authority:grant:payment_prepare_001"], + "required_gates": ["kye:gate:payment_execute", "kye:gate:external_send"], + "commit_boundaries": [ + "kye:commit-boundary:payment_execution", + "kye:commit-boundary:external_message_send" + ], + "state": { + "entity_state": "active", + "credential_state": "valid", + "risk_state": "elevated", + "certification_state": "self_attested" + }, + "evidence_refs": ["kye:evidence-pack:readiness_001"], + "review": { + "last_reviewed_at": "2026-05-09T12:00:00Z", + "next_review_due": "2026-06-09T12:00:00Z", + "review_frequency": "monthly" + }, + "revocation": { + "revocable": true, + "cascade_revocation_required": true, + "revocation_signal_events": ["kye.authority.revoked", "kye.entity.suspended"] + } +} diff --git a/examples/entity-id-registry.example.json b/examples/entity-id-registry.example.json new file mode 100644 index 0000000000000000000000000000000000000000..3d17c0e2dcd9b2eb60caeec8b06ea61d69e91b63 --- /dev/null +++ b/examples/entity-id-registry.example.json @@ -0,0 +1,44 @@ +{ + "schema": "https://kyeprotocol.com/schemas/kye.entity_id_registry.v1.json", + "registry_id": "kye:registry:entity-id", + "description": "Illustrative excerpt of the KYE-ID entity backbone (kye.entity_id_registry.v1). The full registry is generated and assigns one stable kye: URN to every canonical artefact + platform page. The records below show public-track artefacts; the full registry also covers IP-track artefact classes, addressed by the same kye: URN scheme.", + "constitution_ref": "constitution/00-INDEX.md", + "generated_by": "scripts/build-entity-ids.mjs", + "id_format_ref": "public/id-format/README.md", + "counts": { + "total": 4, + "minted": 3, + "reused": 1, + "per_class": { + "page": 2, + "gate": 1, + "nav-leaf": 1 + } + }, + "records": [ + { + "kye_id": "kye:page:site:platform/how-it-works", + "artefact_class": "page", + "artefact_path": "public/site/platform/how-it-works.html", + "source": "minted" + }, + { + "kye_id": "kye:page:site:index", + "artefact_class": "page", + "artefact_path": "public/site/index.html", + "source": "minted" + }, + { + "kye_id": "kye:gate:entity-id-canonical", + "artefact_class": "gate", + "artefact_path": "scripts/gates/entity-id-canonical.mjs", + "source": "minted" + }, + { + "kye_id": "kye:term:nav-leaf:action-admissibility", + "artefact_class": "nav-leaf", + "artefact_path": "public/id-format/README.md", + "source": "reused" + } + ] +} diff --git a/examples/entity.json b/examples/entity.json new file mode 100644 index 0000000000000000000000000000000000000000..6538197faf0d74bf9f806fbf934b1ccd3309fb0a --- /dev/null +++ b/examples/entity.json @@ -0,0 +1,25 @@ +{ + "entity_id": "kye:ent:acme.example:ai_agent:01JY3J1D4E5A7K3JQFK4E0Q1XZ", + "trust_domain_id": "kye:td:acme.example", + "entity_type": "ai_agent", + "display_name": "Acme Procurement Agent", + "status": "active", + "lifecycle_state": "active", + "immutable": { + "root_entity_id": "kye:ent:acme.example:ai_agent:01JY3J1D4E5A7K3JQFK4E0Q1XZ", + "registration_event_id": "kye:aud:acme.example:01JY3J1D4E5A7K3JQFK4E0Q1XZ", + "root_hash": "sha256:8f9c2b1a4d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2c3d4e5f6a7b8c9d0e1f2a", + "initial_entity_type": "ai_agent" + }, + "classification": { + "risk_level": "medium", + "sector_tags": ["finance"], + "data_classes": ["internal", "financial_data"] + }, + "labels": { + "team": "finance-ops", + "environment": "prod" + }, + "created_at": "2026-04-01T10:00:00Z", + "updated_at": "2026-04-15T12:30:00Z" +} diff --git a/examples/event-correlation-1.json b/examples/event-correlation-1.json new file mode 100644 index 0000000000000000000000000000000000000000..cc7065841506a1a1546da64e95dc73435b1cca1f --- /dev/null +++ b/examples/event-correlation-1.json @@ -0,0 +1,24 @@ +{ + "correlation_id": "9b7a3d8c-4e1f-4b0a-8c5d-2e6f7a8b9c10", + "correlation_kind": "approval_lineage", + "member_entry_ids": [ + "f7e3b1d2-5c8e-4a3f-9b2d-1a0b8c4e6f10", + "a8d4c2e1-6f3b-4d9a-8e7c-3b5d2f1a9e80", + "c2e1f3a4-7b8d-4e5f-9a6c-4d8e2b1f3a70" + ], + "head_entry_id": "f7e3b1d2-5c8e-4a3f-9b2d-1a0b8c4e6f10", + "tail_entry_id": "c2e1f3a4-7b8d-4e5f-9a6c-4d8e2b1f3a70", + "actor_ids": [ + "kye:human:prod:reviewer-a", + "kye:human:prod:reviewer-b", + "kye:agent:prod:gateway-worker:7c2d" + ], + "tenant_id": "kye:tenant:prod:acme-bank", + "audit_chain_ref": "kye:audit:chain:01HVK3M2NPQR8XW7TZAC9F5D2E", + "emitted_at_window": { + "start": "2026-05-19T12:34:56.789Z", + "end": "2026-05-19T12:38:02.155Z" + }, + "framework_refs": ["sr-11-7", "eu-ai-act-art-14", "dora-art-28", "iso-42001"], + "produced_at": "2026-05-19T12:38:03.000Z" +} diff --git a/examples/event-index-entry-1.json b/examples/event-index-entry-1.json new file mode 100644 index 0000000000000000000000000000000000000000..7928064f939825d99ab3bce00fd4beb8ed27a3bd --- /dev/null +++ b/examples/event-index-entry-1.json @@ -0,0 +1,27 @@ +{ + "schema": "kye.event.index_entry.v1", + "entry_id": "f7e3b1d2-5c8e-4a3f-9b2d-1a0b8c4e6f10", + "event_family_id": "internal.audit_chain_event", + "source_event_id": "kye:audit:prod:event:01HVK3M2NPQR8XW7TZAC9F5D2E", + "emitted_at": "2026-05-19T12:34:56.789Z", + "indexed_at": "2026-05-19T12:34:57.012Z", + "phase": "audit-sealed", + "actor_id": "kye:agent:prod:gateway-worker:7c2d", + "actor_kind": "agent", + "tenant_id": "kye:tenant:prod:acme-bank", + "action_kind": "audit_event", + "target_system": "kye-audit-chain", + "payload_summary": "audit-chain append: action=admissibility_decision verdict=admit", + "risk_level": "medium", + "verdict": "allow", + "audit_chain_ref": "kye:audit:chain:01HVK3M2NPQR8XW7TZAC9F5D2E", + "evidence_pack_ref": "https://kyeprotocol.com/v1/evidence/packs/01HVK3M2NPQR8XW7TZAC9F5D2E", + "decision_map_ref": "https://kyeprotocol.com/v1/decision-maps/01HVK3M2NPQR8XW7TZAC9F5D2E", + "constitution_refs": ["constitution/30-AUDIT-WORM-RETENTION.md", "constitution/37-EVENT-ENGINE.md"], + "framework_refs": ["dora-art-28", "sr-11-7", "eu-ai-act-art-15", "gdpr", "iso-27001"], + "search_text": "gateway-worker audit-chain append admissibility_decision admit", + "tags": ["audit", "admissibility", "tier1-bank"], + "signature_alg": "ed25519", + "signature_kid": "kye:key:prod:event-indexer:2026-05", + "signature_value_b64": "MEUCIQDgXJyL0qF8xN2k3J9pV6tR1mWqEzH7sB4cD6vN8yA3KwIgZmKpL5rN9oS3xT2vU8wXyZ1qR4hP7nM5eD0aF6cB8gE" +} diff --git a/examples/evidence-completeness-check.json b/examples/evidence-completeness-check.json new file mode 100644 index 0000000000000000000000000000000000000000..25517b3f6dc633b1c2238ad2b594bf1d47b8ef4b --- /dev/null +++ b/examples/evidence-completeness-check.json @@ -0,0 +1,12 @@ +{ + "schema_version": "kye.evidence_completeness_check.v1", + "decision_id": "kye:decision:acme.example:987", + "result": "incomplete", + "missing_items": [ + "capability_manifest_ref", + "policy_evaluation_ref" + ], + "severity": "high", + "recommendation": "Regenerate evidence pack or re-run decision with evidence capture enabled.", + "checked_at": "2026-05-06T10:35:00Z" +} diff --git a/examples/exception.json b/examples/exception.json new file mode 100644 index 0000000000000000000000000000000000000000..f020099ff1ac3cc551fa97fb02086f91a5110a15 --- /dev/null +++ b/examples/exception.json @@ -0,0 +1,21 @@ +{ + "schema_version": "kye.exception.v1", + "exception_id": "kye:exception:emergency_payment_override", + "display_name": "Emergency Payment Override", + "applies_to_rule_id": "kye:rule:payment_agent_approval_required", + "exception_type": "emergency_override", + "conditions": { + "declared_incident_state": "business_continuity_event", + "approver_role_required": "chief_risk_officer", + "max_duration_minutes": 60 + }, + "effect": { + "temporary_decision_override": "allow_with_review", + "additional_obligations": [ + "second_approver_required", + "post_action_review_required", + "evidence_pack_required" + ] + }, + "status": "active" +} diff --git a/examples/feature_flag_manifest.example.json b/examples/feature_flag_manifest.example.json new file mode 100644 index 0000000000000000000000000000000000000000..2a29d31770879c9b6a224e44dbc3f52018bef13b --- /dev/null +++ b/examples/feature_flag_manifest.example.json @@ -0,0 +1,107 @@ +{ + "schema": "https://kyeprotocol.com/schemas/kye.feature_flag_manifest.v1.json", + "schema_version": "1.0.0", + "registry_id": "kye:registry:feature-flags-example", + "adopted_at": "2026-05-30", + "description": "Illustrative example of a kye.feature_flag_manifest.v1 instance. Shows the four lifecycle stages (pending → active → deprecated → removed), a flag with a real sunset_date, a flag linked to a SKU, and a KV-backed flag.", + "constitution_ref": "constitution/00-INDEX.md#section-0-9-universal-canonicalisation", + "publication_rule": { + "policy": "private", + "rationale": "Example artefact published for SDK consumers." + }, + "counts": { + "total": 4, + "pending": 1, + "active": 1, + "deprecated": 1, + "removed": 1 + }, + "kv_bindings": [ + { + "binding": "FEATURE_FLAG_KV", + "kv_id_var": "KV_FEATURE_FLAG_ID", + "workers": ["kye-gateway"], + "live_keys": ["feature:experimental_rerank_v2"], + "rationale": "Example KV namespace binding — one live key gated to the experimental rerank pipeline.", + "wrangler_refs": ["private/infra/wrangler/kye-gateway.wrangler.toml"] + } + ], + "flags": [ + { + "id": "kye:feature-flag:experimental_rerank_v2", + "name": "FEATURE_EXPERIMENTAL_RERANK_V2", + "status": "pending", + "introduced_date": "2026-05-30", + "sunset_date": "2026-08-28", + "owners": ["search-engineering"], + "phase": "phase-0-design", + "current_value": { + "default": false + }, + "consumers": [], + "rationale": "Planned experimental rerank pipeline behind a KV-backed flag. Currently pending — not yet wired into runtime; once wired the status flips to active and the consumers list is populated by the gate's grep sweep.", + "kv_binding": "FEATURE_FLAG_KV", + "linked_sku": null, + "migration_note": null + }, + { + "id": "kye:feature-flag:idp_failover_active", + "name": "IDP_FAILOVER_ACTIVE", + "status": "active", + "introduced_date": "2026-05-27", + "sunset_date": null, + "owners": ["platform-ops"], + "phase": "phase-1-canary", + "current_value": { + "default": "0", + "production": "0", + "staging": "0", + "dev": "0" + }, + "consumers": [ + "public/admin/functions/_lib/idp-provider.js" + ], + "rationale": "Example active flag — operational kill-switch for the IdP failover code path (§51 SPOF closure).", + "kv_binding": null, + "linked_sku": null, + "migration_note": "Phase-2 rename candidate: FEATURE_IDP_FAILOVER." + }, + { + "id": "kye:feature-flag:legacy_evidence_pack_v1", + "name": "FEATURE_LEGACY_EVIDENCE_PACK_V1", + "status": "deprecated", + "introduced_date": "2026-02-01", + "sunset_date": "2026-06-30", + "owners": ["evidence-engine"], + "phase": "phase-deprecation", + "current_value": { + "default": "0", + "production": "0" + }, + "consumers": [ + "internal" + ], + "rationale": "Example deprecated flag — kept readable to honour legacy clients during the deprecation window. Code path removed on sunset_date.", + "kv_binding": null, + "linked_sku": null, + "migration_note": null + }, + { + "id": "kye:feature-flag:beta_dashboard_v0", + "name": "FEATURE_BETA_DASHBOARD_V0", + "status": "removed", + "introduced_date": "2026-01-10", + "sunset_date": "2026-04-01", + "owners": ["admin-console"], + "phase": null, + "current_value": { + "default": false + }, + "consumers": [], + "rationale": "Example removed flag — code path deleted in PR #312; entry retained for audit history and to prevent re-introduction of the same name.", + "kv_binding": null, + "linked_sku": null, + "migration_note": null + } + ] +} diff --git a/examples/formal-rule.json b/examples/formal-rule.json new file mode 100644 index 0000000000000000000000000000000000000000..586a6f76cb0d425f8ae19d0591f0b2d2bb9a224e --- /dev/null +++ b/examples/formal-rule.json @@ -0,0 +1,35 @@ +{ + "schema_version": "kye.formal_rule.v1", + "rule_id": "kye:rule:payment_agent_approval_required", + "rule_type": "obligation", + "display_name": "Approval Required Before Payment Execution", + "description": "An agent that prepares a payment is obligated to obtain approval before payment execution.", + "applies_to": { + "actor_types": ["ai_agent", "workflow", "api_client"], + "capabilities": ["payment.prepare", "payment.execute"], + "profiles": ["kye:profile:payment", "kye:profile:open_finance"] + }, + "condition": { + "when": { + "action_transition": "payment.prepare_to_payment.execute", + "environment": "production" + } + }, + "normative_effect": { + "operator": "O", + "meaning": "obligation", + "required_action": "request_principal_approval" + }, + "violation_effect": { + "decision": "deny", + "reason_code": "approval_obligation_not_satisfied", + "obligations": ["emit_audit_event", "generate_evidence_pack", "notify_principal"] + }, + "evidence_requirements": [ + "authority_grant", "approval_event", "state_snapshot", + "decision_map", "evidence_pack" + ], + "priority": 100, + "status": "active", + "created_at": "2026-05-09T00:00:00Z" +} diff --git a/examples/formal-rules-profile.json b/examples/formal-rules-profile.json new file mode 100644 index 0000000000000000000000000000000000000000..a83071e9230e612f4490a00305f4fd53c2d21bdf --- /dev/null +++ b/examples/formal-rules-profile.json @@ -0,0 +1,31 @@ +{ + "schema_version": "kye.formal_rules_profile.v1", + "profile_id": "kye:profile:formal_rules", + "display_name": "KYE Formal Rules Profile™", + "category": "rights_obligations_governance", + "version": "1.0.0", + "description": "Defines permissions, obligations, prohibitions, powers, exceptions and governance meta-rules for delegated authority systems.", + "required_kye_profiles": [ + "kye.core.v1", "kye.identity.v1", "kye.authority.v1", "kye.scope.v1", + "kye.state.v1", "kye.decision.v1", "kye.evidence.v1" + ], + "recommended_kye_profiles": [ + "kye.ontology.v1", "kye.discoverability.v1", "kye.continuity.v1", "kye.operating_model.v1" + ], + "required_objects": [ + "KYEFormalRule", "KYEPermission", "KYEObligation", "KYEProhibition", + "KYEPower", "KYEException", "KYEGovernanceRule", + "KYERuleConflict", "KYERuleProof", "KYEObligationState" + ], + "rule_families": [ + "permission", "obligation", "prohibition", "power", + "immunity", "exception", "meta_governance" + ], + "decision_outputs": [ + "allow", "deny", "prohibited", "require_approval", "require_step_up", "quarantine", + "obligation_created", "obligation_satisfied", "obligation_breached", + "override_required", "human_review_required", "evidence_required" + ], + "status": "active", + "created_at": "2026-05-09T00:00:00Z" +} diff --git a/examples/governance-rule.json b/examples/governance-rule.json new file mode 100644 index 0000000000000000000000000000000000000000..a9c5e6b7083e863f448459093ab4629cef4fbbe9 --- /dev/null +++ b/examples/governance-rule.json @@ -0,0 +1,24 @@ +{ + "schema_version": "kye.governance_rule.v1", + "governance_rule_id": "kye:governance-rule:payment_rule_override", + "display_name": "Payment Rule Override Governance", + "rule_scope": "payment_profile", + "who_may_override": [ + "role:chief_risk_officer", + "role:payments_control_owner" + ], + "override_conditions": [ + "incident_response", + "business_continuity", + "regulatory_instruction" + ], + "override_requires": [ + "reason_code", + "time_bound_expiry", + "second_approver", + "evidence_pack" + ], + "default_override_duration_minutes": 60, + "audit_required": true, + "status": "active" +} diff --git a/examples/governed-catalog-entry.json b/examples/governed-catalog-entry.json new file mode 100644 index 0000000000000000000000000000000000000000..9ce372f566e52468ff043372708b15d57631dd8e --- /dev/null +++ b/examples/governed-catalog-entry.json @@ -0,0 +1,32 @@ +{ + "schema_version": "kye.governed_catalog_entry.v1", + "catalog_entry_id": "kye:catalog:agent:finance_agent_001", + "entity_id": "kye:agent:finance_agent_001", + "entry_type": "ai_agent", + "display_name": "Finance Payment Preparation Agent", + "owner_entity_id": "kye:user:finance_owner_001", + "purpose": "Prepare supplier payments and reconcile invoices.", + "lifecycle_state": "pilot", + "risk_tier": "high", + "supported_profiles": [ + "kye:profile:payment", + "kye:profile:operating_model", + "kye:profile:discoverability", + "kye:profile:continuity" + ], + "capabilities": ["invoice.read", "payment.prepare", "supplier.notify"], + "authority_record_ref": "kye:authority-record:finance_agent_001", + "certification_status": "self_attested", + "evidence_status": "evidence_pack_available", + "visibility": { + "visibility_level": "tenant_private", + "discoverable_by": [ + "role:tenant_admin", + "role:security_admin", + "role:auditor", + "role:finance_manager" + ] + }, + "access_request_path": "kye:review-path:finance_agent_access", + "updated_at": "2026-05-09T12:00:00Z" +} diff --git a/examples/graph-edge.json b/examples/graph-edge.json new file mode 100644 index 0000000000000000000000000000000000000000..aa76f47d90ac7d97e313f793cba77a15e603c274 --- /dev/null +++ b/examples/graph-edge.json @@ -0,0 +1,22 @@ +{ + "schema_version": "kye.graph_edge.v1", + "edge_id": "kye:edge:delegation:acme.example:agent-007-on-behalf-of-acme:001", + "edge_type": "acts_on_behalf_of", + "source_node_id": "kye:node:agent:acme.example:finance-agent-007", + "target_node_id": "kye:node:org:acme.example", + "state": "active", + "valid_from": "2026-05-05T00:00:00Z", + "valid_until": "2026-12-31T23:59:59Z", + "authority_ref": "kye:authority:grant:acme.example:123", + "scope_ref": "kye:scope:acme.example:finance-prod", + "policy_refs": [ + "kye:policy:acme.example:agent-delegation" + ], + "evidence_refs": [ + "kye:evidence-pack:acme.example:delegation-contract-001" + ], + "metadata": { + "delegation_depth": 1, + "environment": "production" + } +} diff --git a/examples/graph-node.json b/examples/graph-node.json new file mode 100644 index 0000000000000000000000000000000000000000..7be0ee77f2daa95e7b69aabcdd5e2cf674185d6d --- /dev/null +++ b/examples/graph-node.json @@ -0,0 +1,20 @@ +{ + "schema_version": "kye.graph_node.v1", + "node_id": "kye:node:agent:acme.example:finance-agent-007", + "node_type": "ai_agent", + "entity_ref": "kye:agent:acme.example:finance-agent-007", + "labels": ["ai_agent", "finance_agent", "production"], + "state": { + "entity_state": "active", + "authority_state": "scoped", + "risk_state": "elevated" + }, + "metadata": { + "namespace": "acme.finance", + "sector": "financial_services", + "jurisdiction": "GB", + "criticality": "tier_1" + }, + "created_at": "2026-05-05T10:00:00Z", + "updated_at": "2026-05-05T10:30:00Z" +} diff --git a/examples/graph-query-result.json b/examples/graph-query-result.json new file mode 100644 index 0000000000000000000000000000000000000000..b198d29495713e1cdd920242658f8292064aef16 --- /dev/null +++ b/examples/graph-query-result.json @@ -0,0 +1,38 @@ +{ + "schema_version": "kye.graph_query_result.v1", + "query_id": "kye:graph-query:acme.example:authority-path:01HXGRAPHQUERY00000000000A", + "query_type": "authority_path", + "request": { + "actor": "kye:agent:acme.example:finance-agent-007", + "principal": "kye:org:acme.example", + "action": "payment.prepare", + "max_depth": 6 + }, + "issued_at": "2026-05-05T22:30:00Z", + "nodes": [ + { "node_id": "n1", "node_type": "ai_agent", "ref": "kye:agent:acme.example:finance-agent-007", "labels": ["ai_agent","production"], "state": { "entity_state": "active", "authority_state": "scoped" } }, + { "node_id": "n2", "node_type": "delegation", "ref": "kye:delegation:acme.example:abc", "state": { "delegation_state": "active" } }, + { "node_id": "n3", "node_type": "organisation", "ref": "kye:org:acme.example", "state": { "entity_state": "active" } }, + { "node_id": "n4", "node_type": "authority_grant", "ref": "kye:authority:grant:acme.example:123", "state": { "authority_state": "scoped" } }, + { "node_id": "n5", "node_type": "scope", "ref": "kye:scope:acme.example:finance-prod" }, + { "node_id": "n6", "node_type": "capability", "ref": "kye:capability:acme.example:skill:invoice-reconciliation", "state": { "capability_state": "active" } } + ], + "edges": [ + { "from": "n1", "to": "n2", "edge_type": "acts_on_behalf_of", "state": "active", "evidence_refs": ["kye:evidence-pack:acme.example:delegation-contract-001"] }, + { "from": "n2", "to": "n3", "edge_type": "delegates_to", "state": "active" }, + { "from": "n3", "to": "n4", "edge_type": "grants_authority_to","state": "active" }, + { "from": "n4", "to": "n5", "edge_type": "scoped_to", "state": "active" }, + { "from": "n4", "to": "n6", "edge_type": "authorises_capability", "state": "active", "policy_refs": ["kye:policy:acme.example:prod-capability-execution"] }, + { "from": "n1", "to": "n6", "edge_type": "uses_capability", "state": "active" } + ], + "summary": { + "node_count": 6, + "edge_count": 6, + "max_depth": 4, + "result_status": "complete" + }, + "evidence_refs": [ + "kye:evidence:acme.example:authority-grant-123", + "kye:evidence:acme.example:capability-manifest-456" + ] +} diff --git a/examples/handoff-trace.json b/examples/handoff-trace.json new file mode 100644 index 0000000000000000000000000000000000000000..9359ab98d13ec24303f4d9fb567e8f90cbd085a5 --- /dev/null +++ b/examples/handoff-trace.json @@ -0,0 +1,38 @@ +{ + "schema_version": "kye.handoff_trace.v1", + "handoff_trace_id": "kye:handoff-trace:001", + "continuity_id": "kye:continuity:001", + "handoffs": [ + { + "handoff_id": "kye:handoff:001", + "from_entity_id": "kye:entity:person:customer_123", + "to_entity_id": "kye:entity:agent:shopping_agent_456", + "handoff_type": "human_to_agent_instruction", + "meaning_before": "Buy a phone charger under GBP 40 with no subscription.", + "meaning_after": "Buy an electronics accessory under GBP 40.", + "meaning_delta": { + "lost_constraints": ["no_subscription"], + "added_assumptions": [] + }, + "risk_level": "medium", + "timestamp": "2026-05-10T12:00:01Z" + }, + { + "handoff_id": "kye:handoff:002", + "from_entity_id": "kye:entity:agent:shopping_agent_456", + "to_entity_id": "kye:tool:checkout_tool_001", + "handoff_type": "agent_to_tool_request", + "meaning_before": "Buy electronics accessory under GBP 40.", + "meaning_after": "Prepare checkout for selected product.", + "meaning_delta": { + "lost_constraints": [], + "added_assumptions": ["selected_product_matches_constraints"] + }, + "risk_level": "low", + "timestamp": "2026-05-10T12:00:03Z" + } + ], + "aggregate_handoff_risk": "medium", + "meaning_drift_detected": true, + "evidence_refs": ["kye:evidence:handoff_trace_001"] +} diff --git a/examples/healthcare-authority.json b/examples/healthcare-authority.json new file mode 100644 index 0000000000000000000000000000000000000000..d1d4260ccc273f2b5d595d81ddd5207fece3d495 --- /dev/null +++ b/examples/healthcare-authority.json @@ -0,0 +1,28 @@ +{ + "$schema": "https://kyeprotocol.com/schemas/healthcare-authority.json", + "request_id": "req-01HXY7Q8HEALTHCARE0AUTH00000001", + "decision": "allow_with_constraints", + "decision_id": "kye:decision:nhs.example:01HXY7Q800HEALTHDEC0000000000001", + "reason_code": "consent.tpo.match", + "actor_entity_id": "kye:ent:nhs.example:clinician:dr-smith-eu-12345", + "actor_role": "clinician", + "principal_entity_id": "kye:ent:nhs.example:patient:01HXY7Q800PATIENT0000000000000001", + "clinical_context": { + "facility_ref": "kye:ent:nhs.example:facility:guys-st-thomas", + "encounter_type": "outpatient", + "care_team_ref": "kye:ent:nhs.example:care_team:cardiology-team-7", + "specialty": "cardiology" + }, + "consent_basis": { + "consent_id": "kye:consent:nhs.example:01HXY7Q800CONSENT0000000000000001", + "consent_type": "tpo_treatment_payment_operations", + "consent_state": "active" + }, + "data_classes_in_scope": ["demographics", "diagnoses", "medications", "labs"], + "obligations": [ + { "type": "audit.emit", "value": "decision_id" }, + { "type": "redaction.required", "value": "psychiatric|substance_use|hiv_status|genetic" }, + { "type": "external.send.block", "value": "true" } + ], + "decided_at": "2026-05-07T08:35:22.847Z" +} diff --git a/examples/host-platform-adapter-manifest.example.json b/examples/host-platform-adapter-manifest.example.json new file mode 100644 index 0000000000000000000000000000000000000000..84d65e00811fa7ca548ed2298ee979909acec1bd --- /dev/null +++ b/examples/host-platform-adapter-manifest.example.json @@ -0,0 +1,40 @@ +{ + "schema": "kye.host_platform_adapter_manifest.v1", + "schema_version": "1.0.0", + "manifest_id": "kye:manifest:host-platform-adapters", + "adopted_at": "2026-06-20", + "description": "Illustrative KYE Host-Platform Authority Adapter manifest fragment — one host entry showing how a host platform routes its governed action surfaces through the KYE Authority Gateway, projecting the single kye.harness_adapter.v1 envelope and sealing an Evidence Pack before the commit boundary.", + "constitution_ref": "constitution/52-DELEGATED-AGENT-BINDING.md + constitution/00-INDEX.md §0.10 + §0.25", + "publication_rule": { + "policy": "public", + "rationale": "Illustrative example payload (public/examples/), not the IP-track contract registry." + }, + "governed_action_envelope_schema_ref": "https://kyeprotocol.com/schemas/kye.harness_adapter.v1.json", + "dictionary_ref": "kye:dictionary:host-platform-adapters", + "counts": { + "hosts": 1 + }, + "hosts": [ + { + "host_id": "kye:host-platform-adapter:servicenow", + "host_kind": "itsm-workflow-platform", + "display_name": "ServiceNow", + "integration_class": "itsm-workflow-platform", + "integration_dictionary_ref": "kye:dictionary:integrations#servicenow", + "routed_action_types": ["tool_call", "human_in_the_loop"], + "gateway_route": { + "hook_phase": ["pre", "post"], + "pep_placement": "webhook_callback", + "transport": "remote_http" + }, + "commit_boundary": "ServiceNow change-task state transition to an Implement state.", + "evidence_before_commit": true, + "fail_mode": "fail-closed", + "policy_engine_adapter_ref": "kye:dictionary:policy-engine-adapters#native", + "stack_binding_kinds": ["workflow_engine", "audit_log"], + "si_buildable": true, + "status": "declared", + "notes": "Illustrative host entry." + } + ] +} diff --git a/examples/human-involvement-plan.json b/examples/human-involvement-plan.json new file mode 100644 index 0000000000000000000000000000000000000000..7ed002da196ea551aa7b084508e7c4e13ecec418 --- /dev/null +++ b/examples/human-involvement-plan.json @@ -0,0 +1,49 @@ +{ + "schema_version": "kye.human_involvement_plan.v1", + "plan_id": "kye:human-involvement-plan:finance_payment_high_risk", + "display_name": "Finance Payment High-Risk Human Involvement Plan", + "description": "Where authorised humans must review, approve, limit or override the Finance Payment Preparation Agent before commit-level actions.", + "applies_to": { + "assurance_card_refs": ["kye:assurance-card:finance_agent_001"], + "entity_authority_record_refs": ["kye:authority-record:finance_agent_001"], + "capabilities": ["payment.prepare", "payment.execute", "supplier.notify"], + "risk_tiers": ["high", "critical"] + }, + "involvement_points": [ + { + "point_id": "design_review", + "stage": "design", + "required_role": "ai_governance_lead", + "qualification": "AI governance certification + finance domain experience", + "involvement_type": "approve", + "decision_options": ["approve", "deny", "request_changes"], + "sla_minutes": 1440, + "evidence_required": ["reviewer_identity", "decision", "reason_code"] + }, + { + "point_id": "pre_commit_payment_review", + "stage": "pre_commit", + "required_role": "finance_manager", + "qualification": "Authorised payment approver", + "involvement_type": "approve", + "decision_options": ["approve", "deny", "request_changes", "escalate"], + "sla_minutes": 1440, + "evidence_required": ["reviewer_identity", "approval_reason_code", "timestamp", "state_snapshot", "decision_map"] + }, + { + "point_id": "incident_review", + "stage": "incident", + "required_role": "security_admin", + "qualification": "Incident-response certified", + "involvement_type": "limit", + "decision_options": ["approve", "deny", "quarantine", "escalate"], + "sla_minutes": 240, + "evidence_required": ["reviewer_identity", "decision", "incident_ref"] + } + ], + "bypass_behaviour": { + "on_attempted_bypass": "deny", + "emit_signal_event": true + }, + "status": "active" +} diff --git a/examples/identifier.json b/examples/identifier.json new file mode 100644 index 0000000000000000000000000000000000000000..b45a3f0aa318cf9230acc5026f290e2737019a1f --- /dev/null +++ b/examples/identifier.json @@ -0,0 +1,11 @@ +{ + "identifier_id": "kye:idn:acme.example:email:01JYIDN0000000000000000000", + "entity_id": "kye:ent:acme.example:person:01JYCFO0000000000000000000", + "identifier_type": "email", + "value_hash": "sha256:9b71d224bd62f3785d96d46ad3ea3d73319bfbc2890caadae2dff72519673ca72", + "display_hint": "c***@acme.example", + "verified": true, + "verification_basis": "domain_dns_proof", + "status": "active", + "created_at": "2026-04-01T10:00:00Z" +} diff --git a/examples/intent-trace.json b/examples/intent-trace.json new file mode 100644 index 0000000000000000000000000000000000000000..bb3ece73d6aa4304a90094ac2b6c509dca83eb51 --- /dev/null +++ b/examples/intent-trace.json @@ -0,0 +1,41 @@ +{ + "schema_version": "kye.intent_trace.v1", + "intent_trace_id": "kye:intent-trace:001", + "principal_entity_id": "kye:entity:person:customer_123", + "actor_entity_id": "kye:entity:agent:shopping_agent_456", + "trace_stages": [ + { + "stage": "signal_received", + "description": "Customer asked the agent to buy a phone charger under £40.", + "timestamp": "2026-05-06T12:00:00Z", + "evidence_ref": "kye:evidence:intent_signal_001" + }, + { + "stage": "intent_interpreted", + "description": "Agent interpreted the request as electronics accessory purchase.", + "timestamp": "2026-05-06T12:00:05Z", + "evidence_ref": "kye:evidence:intent_interpretation_001" + }, + { + "stage": "authority_checked", + "description": "KYE checked the purchase authority grant and scope.", + "timestamp": "2026-05-06T12:00:06Z", + "evidence_ref": "kye:evidence:authority_check_001" + }, + { + "stage": "decision_created", + "description": "KYE decision returned allow.", + "timestamp": "2026-05-06T12:00:07Z", + "evidence_ref": "kye:evidence:decision_001" + }, + { + "stage": "execution_prepared", + "description": "Agent prepared checkout but payment was not yet executed.", + "timestamp": "2026-05-06T12:00:09Z", + "evidence_ref": "kye:evidence:checkout_prepare_001" + } + ], + "continuity_status": "preserved", + "drift_events": [], + "audit_ref": "kye:audit:intent_trace_001" +} diff --git a/examples/jsonld-context.json b/examples/jsonld-context.json new file mode 100644 index 0000000000000000000000000000000000000000..345de3015ffdaebe7100ccc273af7561d0cf26f8 --- /dev/null +++ b/examples/jsonld-context.json @@ -0,0 +1,43 @@ +{ + "@context": { + "kye": "https://kye-protocol.github.io/ns#", + "schema": "https://schema.org/", + "xsd": "http://www.w3.org/2001/XMLSchema#", + + "Entity": "kye:Entity", + "Actor": "kye:Actor", + "Principal": "kye:Principal", + "Authority": "kye:Authority", + "Delegation": "kye:Delegation", + "Capability": "kye:Capability", + "Scope": "kye:Scope", + "State": "kye:State", + "Decision": "kye:Decision", + "Evidence": "kye:Evidence", + "Continuity": "kye:Continuity", + "Discoverability": "kye:Discoverability", + "Connector": "kye:Connector", + + "actsOnBehalfOf": { "@id": "kye:actsOnBehalfOf", "@type": "@id" }, + "hasAuthority": { "@id": "kye:hasAuthority", "@type": "@id" }, + "usesCapability": { "@id": "kye:usesCapability", "@type": "@id" }, + "constrainedBy": { "@id": "kye:constrainedBy", "@type": "@id" }, + "evidencedBy": { "@id": "kye:evidencedBy", "@type": "@id" }, + "requires": { "@id": "kye:requires", "@type": "@id" }, + "revokes": { "@id": "kye:revokes", "@type": "@id" }, + "supersedes": { "@id": "kye:supersedes", "@type": "@id" }, + "equivalentTo": { "@id": "kye:equivalentTo", "@type": "@id" }, + "relatedNotIdentical": { "@id": "kye:relatedNotIdentical", "@type": "@id" }, + "notEquivalentTo": { "@id": "kye:notEquivalentTo", "@type": "@id" }, + + "term_id": "@id", + "label": "schema:name", + "definition": "schema:description", + "domain": "kye:domain", + "preferred_name": "kye:preferredName", + "aliases": "schema:alternateName", + "status": "kye:status", + "created_at": { "@id": "schema:dateCreated", "@type": "xsd:dateTime" }, + "updated_at": { "@id": "schema:dateModified", "@type": "xsd:dateTime" } + } +} diff --git a/examples/kye.edge.arbiter-decision.example.json b/examples/kye.edge.arbiter-decision.example.json new file mode 100644 index 0000000000000000000000000000000000000000..c24461123b51e6cfd2ca7cdab25aea1852302353 --- /dev/null +++ b/examples/kye.edge.arbiter-decision.example.json @@ -0,0 +1,21 @@ +{ + "$schema": "https://kyeprotocol.com/schemas/kye.edge.arbiter-decision.v1.json", + "decision": "permit", + "safety_floor": null, + "reason_code": "kye.edge.decision.permitted_within_bundle", + "obligations": [ + { "obligation_urn": "kye:obligation:emit-audit-event", "status": "emitted" }, + { "obligation_urn": "kye:obligation:append-offline-evidence", "status": "emitted" } + ], + "evidence_hash": "sha256-aB2C3d4E5f6G7h8I9j0K1l2M3n4O5p6Q7r8S9t0U1v2", + "audit_event": { + "event_id": "kye:event:edge-decision-9z01", + "ts_iso": "2026-05-14T18:15:00Z", + "actor": "kye:principal:fleet-alpha-7", + "action": "kye:action:payment.send", + "subject": "kye:entity:order:9z", + "bundle_id":"kye:edge-bundle:tier1-bank:b6989088-5a30-4c6a-a8e2-97d936463920", + "facts": { "amount_eur": 18000, "currency": "EUR", "counterparty.country": "DE" } + }, + "deterministic_seed": "9c4b7e2af8d6c1303a572f4b9e0c1c8a" +} diff --git a/examples/kye.edge.compiled-authority-bundle.example.json b/examples/kye.edge.compiled-authority-bundle.example.json new file mode 100644 index 0000000000000000000000000000000000000000..26492de756af42a1c1fd0a508a8ca6872e2c6711 --- /dev/null +++ b/examples/kye.edge.compiled-authority-bundle.example.json @@ -0,0 +1,97 @@ +{ + "$schema": "https://kyeprotocol.com/schemas/kye.edge.compiled-authority-bundle.v1.json", + "bundle_id": "kye:edge-bundle:tier1-bank:b6989088-5a30-4c6a-a8e2-97d936463920", + "tenant_id": "kye:tenant:tier1-bank", + "device_id": "kye:device:payment-fleet-alpha", + "not_before": "2026-05-14T18:00:00Z", + "not_after": "2026-05-14T22:00:00Z", + "compiler": { + "name": "kye-edge-bundle-compiler", + "version": "1.0.0", + "compiled_at": "2026-05-14T17:59:55Z", + "source_state_library_hash": "sha256-Yr2pZ8z6cWj0L8Ng2v3p4Q9rN7m1k0XyA6Y2v4Hg9bM" + }, + "authority_graph": { + "principals": [ + { "id": "kye:principal:fleet-alpha-7", "kind": "agent", "controller": "kye:org:tier1-bank-ops" } + ], + "delegations": [ + { + "id": "kye:delegation:fleet-alpha-2026Q2", + "from": "kye:org:tier1-bank-ops", + "to": "kye:principal:fleet-alpha-7", + "scope":"kye:scope:tier1-bank/treasury/eurozone-payouts", + "not_before": "2026-04-01T00:00:00Z", + "not_after": "2026-06-30T23:59:59Z" + } + ] + }, + "permitted_actions": [ + { + "action": "kye:action:payment.send", + "scope": "kye:scope:tier1-bank/treasury/eurozone-payouts", + "conditions": [ + { "fact": "amount_eur", "op": "<=", "value": 50000 }, + { "fact": "currency", "op": "==", "value": "EUR" }, + { "fact": "counterparty.country", "op": "in", + "value": ["DE","FR","NL","IT","ES","BE","LU","AT","PT","FI","IE","GR","CY","MT","SK","SI","EE","LV","LT"] } + ] + } + ], + "prohibited_actions": [ + { + "action": "kye:action:payment.send", + "scope": "kye:scope:tier1-bank/treasury/eurozone-payouts", + "conditions": [ + { "fact": "counterparty.country", "op": "in", "value": ["KP","IR","SY","CU"] } + ] + } + ], + "obligations": [ + { "obligation_urn": "kye:obligation:emit-audit-event", "when": "on_decision" }, + { "obligation_urn": "kye:obligation:append-offline-evidence", "when": "on_decision" }, + { "obligation_urn": "kye:obligation:emit-meter-event", "when": "after_action", "params": { "meter": "payment_authorised" } } + ], + "state_transitions": [ + { + "from": "kye:state:payment.draft", + "to": "kye:state:payment.authorised", + "guard": { "all_of": [ + { "fact": "amount_eur", "op": "<=", "value": 50000 }, + { "fact": "sca_status", "op": "==", "value": "passed" } + ] }, + "effect": { "emit": "kye:event:payment.authorised.v1" } + } + ], + "safety_floor": { + "bundle_expired": "manual_approval", + "signature_invalid": "buffer_only", + "authority_uncertain": "read_only", + "revocation_unknown": "quarantine", + "value_at_risk_exceeded": "disable_money", + "blast_radius_exceeded": "pause", + "network_loss": "buffer_only", + "clock_drift": "pause" + }, + "revocation_window": { + "kid": "tier1-bank-treasury-2026q2", + "serial_range_min": 1, + "serial_range_max": 50000 + }, + "risk_limits": { + "value_at_risk": { "currency": "EUR", "max_per_action": 50000, "max_per_window": 200000, "window_h": 4 }, + "blast_radius_cap": 25, + "max_velocity": { "actions_per_minute": 4, "actions_per_hour": 60 } + }, + "evidence_rules": { + "log_every_decision": true, + "log_schema": "kye.edge.offline-evidence.v1", + "sync_endpoint": "https://api.kyeprotocol.com/v1/evidence/replay" + }, + "signature": { + "alg": "Ed25519", + "kid": "kye-edge-compiler-2026q2", + "sig_b64": "MEYCIQDk5n8Y6t...placeholder-detached-Ed25519...4P9Y2lk=", + "bundle_hash": "sha256-Yr2pZ8z6cWj0L8Ng2v3p4Q9rN7m1k0XyA6Y2v4Hg9bM" + } +} diff --git a/examples/kye.edge.offline-evidence.example.json b/examples/kye.edge.offline-evidence.example.json new file mode 100644 index 0000000000000000000000000000000000000000..160d243a0cb79e2eb89c0530ce71451a9b3d78e3 --- /dev/null +++ b/examples/kye.edge.offline-evidence.example.json @@ -0,0 +1,40 @@ +{ + "$schema": "https://kyeprotocol.com/schemas/kye.edge.offline-evidence.v1.json", + "seq": 1234, + "prev_hash": "sha256-Pv0X9w3mQ2b6L8YnZ5o4K1jH7gT2rD8eA0fC4mU6vS9", + "this_hash": "sha256-Qz1Y8x4nR3c7M9OpA6b5L2kI8hU3sE9fB1gD5nV7wT0", + "ts_iso": "2026-05-14T18:15:00Z", + "device_id": "kye:device:payment-fleet-alpha", + "bundle_id": "kye:edge-bundle:tier1-bank:b6989088-5a30-4c6a-a8e2-97d936463920", + "decision": { + "decision": "permit", + "safety_floor": null, + "reason_code": "kye.edge.decision.permitted_within_bundle", + "obligations": [ + { "obligation_urn": "kye:obligation:emit-audit-event", "status": "emitted" }, + { "obligation_urn": "kye:obligation:append-offline-evidence", "status": "emitted" } + ], + "evidence_hash": "sha256-aB2C3d4E5f6G7h8I9j0K1l2M3n4O5p6Q7r8S9t0U1v2", + "audit_event": { + "event_id": "kye:event:edge-decision-9z01", + "ts_iso": "2026-05-14T18:15:00Z", + "actor": "kye:principal:fleet-alpha-7", + "action": "kye:action:payment.send", + "subject": "kye:entity:order:9z", + "bundle_id":"kye:edge-bundle:tier1-bank:b6989088-5a30-4c6a-a8e2-97d936463920", + "facts": { "amount_eur": 18000, "currency": "EUR", "counterparty.country": "DE" } + }, + "deterministic_seed": "9c4b7e2af8d6c1303a572f4b9e0c1c8a" + }, + "action": { + "action": "kye:action:payment.send", + "actor": "kye:principal:fleet-alpha-7", + "subject": "kye:entity:order:9z", + "facts": { "amount_eur": 18000, "currency": "EUR", "counterparty.country": "DE" } + }, + "signature": { + "alg": "Ed25519", + "kid": "kye-device-payment-fleet-alpha-2026q2", + "sig_b64": "MEUCIQDk5n8Y6t...placeholder-Ed25519-device-signature...4P9Y2lk=" + } +} diff --git a/examples/kye.edge.safety-floor.example.json b/examples/kye.edge.safety-floor.example.json new file mode 100644 index 0000000000000000000000000000000000000000..e5a8557bafa431b9d2cf5b577e67a0078b7f8381 --- /dev/null +++ b/examples/kye.edge.safety-floor.example.json @@ -0,0 +1,9 @@ +{ + "$schema": "https://kyeprotocol.com/schemas/kye.edge.safety-floor.v1.json", + "selected_value": "buffer_only", + "trigger_condition": "network_loss", + "ts_iso": "2026-05-14T18:32:14Z", + "bundle_id": "kye:edge-bundle:tier1-bank:b6989088-5a30-4c6a-a8e2-97d936463920", + "device_id": "kye:device:payment-fleet-alpha", + "notes": "Edge Arbiter lost connectivity to the control plane mid-action; falling back to buffer_only per safety_floor.network_loss. Evidence will replay on reconnect." +} diff --git a/examples/kye.entity.evaluation_profile.v1.example.json b/examples/kye.entity.evaluation_profile.v1.example.json new file mode 100644 index 0000000000000000000000000000000000000000..cc707e837df7292ef3dba121ea1358444a3832a2 --- /dev/null +++ b/examples/kye.entity.evaluation_profile.v1.example.json @@ -0,0 +1,23 @@ +{ + "schema_version": "kye.entity.evaluation_profile.v1", + "id": "kye:eval_profile:acme.prod.banking-grade.v2", + "tenant_id": "kye:tenant:acme", + "workspace_id": "kye:wsp:acme.prod", + "test_vectors_ref": "https://kyeprotocol.com/r2/eval-profiles/acme/banking-grade-v2/test-vectors.signed.json", + "signed_by": "kye:key:acme.evals.ed25519.20260512", + "thresholds": { + "allow": 0.95, + "require_approval": 0.80, + "deny": 0.50 + }, + "risk_class_map": { + "low": 0.95, + "medium": 0.85, + "high": 0.70, + "critical": 0.50 + }, + "compliance_frameworks": ["sr-11-7", "dora", "eu-ai-act", "iso-42001", "bcbs-239"], + "state": "active", + "created_at": "2026-05-12T09:30:00Z", + "updated_at": "2026-05-15T08:15:00Z" +} diff --git a/examples/kye.entity.external_app.v1.example.json b/examples/kye.entity.external_app.v1.example.json new file mode 100644 index 0000000000000000000000000000000000000000..2e7a02fd874673c6d88963ca99410726f432f24c --- /dev/null +++ b/examples/kye.entity.external_app.v1.example.json @@ -0,0 +1,16 @@ +{ + "schema_version": "kye.entity.external_app.v1", + "id": "kye:extapp:acme.salesforce.a1b2c3", + "tenant_id": "kye:tenant:acme", + "partner_org_id": null, + "vendor_name": "Salesforce", + "connector_kind": "salesforce", + "oauth_subject": "00D5f000000AbCdEAA", + "oauth_scopes": ["api", "refresh_token", "offline_access"], + "risk_tier": "high", + "dpa_reference": "dpa:acme:salesforce-2026-q2", + "state": "active", + "created_by": "kye:human:acme:owner", + "created_at": "2026-05-18T09:30:00Z", + "updated_at": "2026-05-18T09:30:00Z" +} diff --git a/examples/kye.entity.model_endpoint.v1.example.json b/examples/kye.entity.model_endpoint.v1.example.json new file mode 100644 index 0000000000000000000000000000000000000000..506b61a45c46f5e95b192b6bf182d52a667e78ef --- /dev/null +++ b/examples/kye.entity.model_endpoint.v1.example.json @@ -0,0 +1,22 @@ +{ + "schema_version": "kye.entity.model_endpoint.v1", + "id": "kye:endpoint:acme.prod.claude-3-5-sonnet.20260515", + "tenant_id": "kye:tenant:acme", + "workspace_id": "kye:wsp:acme.prod", + "model_id": "kye:model:acme.claude-3-5-sonnet.v20260512", + "provider": "kye:extapp:acme.anthropic", + "deployment_url": "https://api.anthropic.com/v1/messages", + "version": "endpoint-20260515-a", + "policy_set_id": "kye:pol:acme.prod.runtime-gateway.v3", + "evaluation_profile_id": "kye:eval_profile:acme.prod.banking-grade.v2", + "audit_stream_id": "kye:audstream:acme.prod.splunk-siem", + "trust_domain_id": "kye:dom:acme.eu", + "state": "active", + "labels": { + "env": "prod", + "region": "eu-west-1", + "tenant_class": "tier-1-bank" + }, + "created_at": "2026-05-15T11:00:00Z", + "updated_at": "2026-05-15T11:00:00Z" +} diff --git a/examples/kye.risk.score.v1.example.json b/examples/kye.risk.score.v1.example.json new file mode 100644 index 0000000000000000000000000000000000000000..20ecd9567e27717e00e110966e9cbfcb396fbd45 --- /dev/null +++ b/examples/kye.risk.score.v1.example.json @@ -0,0 +1,23 @@ +{ + "schema_version": "kye.risk.score.v1", + "id": "kye:risk_score:acme.20260515t110042.b7c2a9", + "tenant_id": "kye:tenant:acme", + "workspace_id": "kye:wsp:acme.prod", + "endpoint_id": "kye:endpoint:acme.prod.claude-3-5-sonnet.20260515", + "decision_id": "kye:decision:acme.20260515t110042.a3f1e8", + "score": 0.93, + "risk_class": "medium", + "eval_profile_id": "kye:eval_profile:acme.prod.banking-grade.v2", + "signals": { + "test_vector_pass_rate": 0.96, + "freshness_age_seconds": 1842, + "drift_detected": false, + "jurisdiction_match": true + }, + "signed_at": "2026-05-15T11:00:42.118Z", + "signature": { + "alg": "EdDSA", + "kid": "kye:key:kyeprotocol.gateway.ed25519.20260514", + "value": "MEUCIQDx1pZ4kY3Tx0XEUWPxVT3eW2qN8XwZxGc1mBpvKwAaZAIgYjEGAhWdHMfLYHJBhKZIiATL6bRq6Lr5Hs" + } +} \ No newline at end of file diff --git a/examples/latency-critical.json b/examples/latency-critical.json new file mode 100644 index 0000000000000000000000000000000000000000..ca03beb5affe5941ba2e2d69f52198132dbae5ca --- /dev/null +++ b/examples/latency-critical.json @@ -0,0 +1,23 @@ +{ + "schema": "https://kyeprotocol.com/schemas/kye.latency_critical_registry.v1.json", + "schema_version": "1.0.0", + "registry_id": "kye:registry:latency-critical", + "adopted_at": "2026-05-30", + "description": "Example fixture mirroring the canonical latency-critical endpoint registry. Used by the §0.15 event-native-coverage gate as the schema-conformance witness. The real registry lives at internal", + "constitution_ref": "constitution/00-INDEX.md#section-0-15-event-native", + "publication_rule": { "policy": "public", "rationale": "Example fixture." }, + "counts": { "total": 1 }, + "endpoints": [ + { + "endpoint_id": "kye:endpoint:pdp:decide", + "path": "/v1/pdp/decide", + "method": "POST", + "rationale": "PDP admissibility check sits on the synchronous request path of every privileged action.", + "latency_budget_p95_ms": 50, + "owning_worker": "kye:worker:pdp-decide", + "constitution_ref": "constitution/12-PURPOSE-PERMISSION.md#section-3", + "callers": ["every privileged middleware in internal**"], + "downstream_event_class": "kye.purpose.admissibility.v1" + } + ] +} diff --git a/examples/meaning-continuity-context.json b/examples/meaning-continuity-context.json new file mode 100644 index 0000000000000000000000000000000000000000..2cfd6b8a3df4f51ca2fef1518814a252d8f3a3e6 --- /dev/null +++ b/examples/meaning-continuity-context.json @@ -0,0 +1,85 @@ +{ + "schema_version": "kye.meaning_continuity_context.v1", + "meaning_continuity_id": "kye:meaning-continuity:001", + "continuity_id": "kye:continuity:001", + "proposed_action_id": "kye:proposed-action:001", + "actor_entity_id": "kye:entity:agent:shopping_agent_456", + "principal_entity_id": "kye:entity:person:customer_123", + "original_meaning": { + "source_intent_id": "kye:intent:001", + "declared_meaning": "Buy a phone charger under GBP 40 without subscription, recurring payment, or unsafe merchant.", + "material_constraints": [ + "maximum_amount_gbp_40", + "no_subscription", + "trusted_merchant", + "delivery_within_3_days" + ], + "meaning_owner_entity_id": "kye:entity:person:customer_123" + }, + "interpreted_meaning": { + "interpreted_by_entity_id": "kye:entity:agent:shopping_agent_456", + "interpreted_summary": "Purchase an electronics accessory under GBP 40.", + "retained_constraints": [ + "maximum_amount_gbp_40", + "trusted_merchant" + ], + "lost_constraints": [ + "no_subscription" + ], + "added_assumptions": [ + "electronics_accessory_category_allowed" + ], + "interpretation_confidence": 0.88 + }, + "memory_context": { + "memory_used": true, + "memory_refs": ["kye:memory:shopping_preferences_001"], + "memory_state": "current", + "memory_conflict_detected": false, + "memory_summary": "Customer previously preferred low-cost electronics accessories from trusted merchants." + }, + "context_snapshot": { + "context_refs": [ + "kye:context:merchant_policy_001", + "kye:context:user_purchase_policy_001" + ], + "context_state": "current", + "context_lost": false, + "context_changed_since_intent": false + }, + "incentive_context": { + "commercial_incentive_detected": false, + "affiliate_incentive_detected": false, + "optimisation_goal": "minimise_cost_within_constraints", + "incentive_conflict_detected": false + }, + "timing_context": { + "created_at": "2026-05-10T12:00:00Z", + "evaluated_at": "2026-05-10T12:00:05Z", + "delay_changed_meaning": false, + "state_changed_since_intent": false, + "time_sensitivity": "normal" + }, + "handoff_context": { + "handoff_count": 2, + "handoff_chain": [ + "user_instruction", + "shopping_agent_interpretation", + "checkout_tool_request" + ], + "handoff_boundary_risk": "medium", + "handoff_drift_detected": true + }, + "meaning_continuity_result": { + "status": "meaning_degraded", + "meaning_score": 0.72, + "material_drift_detected": true, + "reason_codes": [ + "constraint_lost", + "handoff_boundary_drift" + ], + "recommended_decision": "require_reconfirmation" + }, + "evidence_refs": ["kye:evidence:meaning_continuity_001"], + "created_at": "2026-05-10T12:00:06Z" +} diff --git a/examples/meaning-continuity-decision.json b/examples/meaning-continuity-decision.json new file mode 100644 index 0000000000000000000000000000000000000000..7f0b35cb5bdd56849bdee8686cb000d412a72a93 --- /dev/null +++ b/examples/meaning-continuity-decision.json @@ -0,0 +1,31 @@ +{ + "schema_version": "kye.meaning_continuity_decision.v1", + "decision_id": "kye:decision:meaning-continuity_001", + "meaning_continuity_id": "kye:meaning-continuity:001", + "decision": "require_reconfirmation", + "reason_code": "meaning_drift_detected", + "checked_dimensions": { + "intent_preserved": true, + "constraints_preserved": false, + "context_preserved": true, + "memory_consistent": true, + "incentives_aligned": true, + "timing_stable": true, + "handoff_integrity": "degraded", + "state_transition_safe": true + }, + "meaning_score": { + "score": 0.72, + "scale": "0_to_1", + "interpretation": "meaning_degraded" + }, + "required_next_step": "principal_reconfirmation", + "obligations": [ + "pause_admission", + "request_reconfirmation", + "emit_meaning_drift_event", + "include_in_evidence_pack" + ], + "evidence_pack_ref": "kye:evidence-pack:meaning-continuity_001", + "decided_at": "2026-05-10T12:00:07Z" +} diff --git a/examples/meaning-drift-event.json b/examples/meaning-drift-event.json new file mode 100644 index 0000000000000000000000000000000000000000..f76e8edf6c9282edbef4bea1ba245b30f8a52cc3 --- /dev/null +++ b/examples/meaning-drift-event.json @@ -0,0 +1,35 @@ +{ + "schema_version": "kye.meaning_drift_event.v1", + "meaning_drift_event_id": "kye:meaning-drift:001", + "meaning_continuity_id": "kye:meaning-continuity:001", + "continuity_id": "kye:continuity:001", + "drift_type": "constraint_loss", + "severity": "medium", + "detected_at": "2026-05-10T12:00:06Z", + "actor_entity_id": "kye:entity:agent:shopping_agent_456", + "principal_entity_id": "kye:entity:person:customer_123", + "description": "The no-subscription constraint was lost during interpretation from user intent to agent action.", + "affected_dimensions": [ + "meaning_continuity", + "intent_continuity", + "scope_continuity" + ], + "original_meaning_fragment": { + "constraint": "no_subscription" + }, + "observed_meaning_fragment": { + "constraint_present": false + }, + "recommended_decision": "require_reconfirmation", + "recommended_obligations": [ + "notify_principal", + "request_clarification", + "prevent_commit_until_reconfirmed", + "generate_evidence_pack" + ], + "evidence_refs": [ + "kye:evidence:intent_001", + "kye:evidence:interpretation_001", + "kye:evidence:meaning_continuity_001" + ] +} diff --git a/examples/merchant.json b/examples/merchant.json new file mode 100644 index 0000000000000000000000000000000000000000..d4150c451fbf0ccafffdddb06a14ea0709e8e187 --- /dev/null +++ b/examples/merchant.json @@ -0,0 +1,8 @@ +{ + "merchant_id": "kye:ent:acme.example:merchant:01JYMERCH00000000000000000", + "entity_id": "kye:ent:acme.example:merchant:01JYMERCH00000000000000000", + "merchant_category": "software_saas", + "jurisdiction": "GB", + "status": "active", + "created_at": "2026-04-01T10:00:00Z" +} diff --git a/examples/metadata-binding.json b/examples/metadata-binding.json new file mode 100644 index 0000000000000000000000000000000000000000..31c24b4b72f0a8260bdaad94f658a89f52ed51e2 --- /dev/null +++ b/examples/metadata-binding.json @@ -0,0 +1,44 @@ +{ + "schema_version": "kye.metadata_binding.v1", + "binding_id": "kye:metadata-binding:acme.example:agent-007:001", + "subject_urn": "kye:agent:acme.example:finance-agent-007", + "metadata_schema_id": "kye:metadata-schema:financial_services.v1", + "metadata": { + "labels": { + "sector": "financial_services", + "environment": "production", + "business_unit": "finance" + }, + "classifications": { + "data_classes": ["financial", "personal_data"], + "risk_state": "high", + "ai_risk_class": "high_risk", + "criticality": "tier_1", + "jurisdiction": "GB", + "side_effect_level": "move_money", + "regulated_status": "regulated" + }, + "ownership": { + "business_owner_entity_id": "kye:user:acme.example:cfo-office-owner", + "technical_owner_entity_id": "kye:user:acme.example:platform-owner", + "controller_entity_id": "kye:org:acme.example", + "maintainer_entity_id": "kye:team:acme.example:finance-platform" + }, + "lineage": { + "source_system": "erp", + "created_by_process": "agent_registration_workflow", + "supersedes": null + }, + "compliance": { + "framework_refs": ["EU_AI_ACT", "ISO_42001", "SOC2", "PSD3", "DORA"], + "evidence_required": true, + "control_refs": [ + "KYE-EUAIACT-003", + "KYE-EUAIACT-005", + "KYE-EUAIACT-006" + ] + } + }, + "valid_from": "2026-05-05T00:00:00Z", + "valid_until": "2027-05-05T00:00:00Z" +} diff --git a/examples/metadata-schema.json b/examples/metadata-schema.json new file mode 100644 index 0000000000000000000000000000000000000000..ad60271b31cdc89af37a06aa7382ef0b052c27a1 --- /dev/null +++ b/examples/metadata-schema.json @@ -0,0 +1,70 @@ +{ + "schema_version": "kye.metadata_schema.v1", + "metadata_schema_id": "kye:metadata-schema:financial_services.v1", + "name": "Financial Services Metadata Schema", + "description": "Required metadata for AI agents, capabilities, and resources operating in regulated financial-services contexts.", + "applies_to_node_types": ["ai_agent", "capability", "resource", "authority_grant"], + "fields": [ + { + "name": "sector", + "kind": "taxonomy_term", + "taxonomy_id": "kye:taxonomy:sector", + "required": true, + "default": "financial_services", + "description": "Sector classification. MUST resolve to a registered KYETaxonomyTerm under the sector taxonomy." + }, + { + "name": "jurisdiction", + "kind": "taxonomy_term", + "taxonomy_id": "kye:taxonomy:jurisdiction", + "required": true, + "description": "ISO-3166 jurisdiction. Drives PSD3 vs FFIEC vs MAS vs RBI evidence routing." + }, + { + "name": "data_classes", + "kind": "list", + "required": true, + "description": "Array of registered data_class taxonomy terms (financial, personal_data, special_category, regulated, public)." + }, + { + "name": "ai_risk_class", + "kind": "taxonomy_term", + "taxonomy_id": "kye:taxonomy:risk_state", + "required": true, + "description": "EU AI Act risk classification. high_risk drives KYE-EUAIACT-003 obligations." + }, + { + "name": "criticality", + "kind": "string", + "required": true, + "description": "Operational criticality tier (tier_1 / tier_2 / tier_3) — drives DORA Article 6 critical-function evidence." + }, + { + "name": "business_owner_entity_id", + "kind": "urn", + "required": true + }, + { + "name": "evidence_required", + "kind": "boolean", + "required": true, + "default": true + } + ], + "compliance_framework_refs": [ + "EU_AI_ACT", + "ISO_42001", + "SOC2", + "ISO_27001", + "PCI_DSS", + "PSD3", + "DORA" + ], + "profile_refs": [ + "kye.profile.financial_services.v1", + "kye.profile.payments.v1", + "kye.profile.payments-eu.v1" + ], + "version": "1.0.0", + "status": "active" +} diff --git a/examples/metering-event.json b/examples/metering-event.json new file mode 100644 index 0000000000000000000000000000000000000000..7264e4c586faaf41716279c97d1de1423cb4138b --- /dev/null +++ b/examples/metering-event.json @@ -0,0 +1,16 @@ +{ + "schema": "kye.billing.meter_event.v1", + "event_id": "kye:meter-event:acme-bank.2026-05-12T13.0002", + "version": 1, + "customer_kyeid": "kye:ent:bank.acme", + "meter_class": "shadow_observation", + "count": 1, + "value_in_pence": 0, + "action_ref": "kye:observed-action:acme-bank.payment-prepare.4421", + "tenant_id": "kye:tenant:acme-bank", + "recorded_at": "2026-05-12T13:04:11.812Z", + "stripe_event_id": "evt_meter_1QXYZABCDEFGHIJ", + "stripe_meter_id": "mtr_shadow_observation", + "signature": "0123456789abcdef0123456789abcdef", + "above_quota": true +} diff --git a/examples/obligation-state.json b/examples/obligation-state.json new file mode 100644 index 0000000000000000000000000000000000000000..dbe53074d99ecc5b3bd173dc9090d28c9b3bc300 --- /dev/null +++ b/examples/obligation-state.json @@ -0,0 +1,16 @@ +{ + "schema_version": "kye.obligation_state.v1", + "obligation_id": "kye:obligation:approval_before_execution", + "state": "satisfied", + "previous_state": "pending", + "state_transition": "pending_to_satisfied", + "satisfaction_event": { + "event_id": "kye:event:approval_recorded_001", + "approved_by_entity_id": "kye:user:finance_manager_001", + "approval_decision_id": "kye:decision:approval_001", + "timestamp": "2026-05-09T12:10:00Z" + }, + "evidence_refs": ["kye:evidence-pack:approval_001"], + "audit_chain_ref": "kye:audit:chain:0xabc123", + "updated_at": "2026-05-09T12:10:00Z" +} diff --git a/examples/obligation.json b/examples/obligation.json new file mode 100644 index 0000000000000000000000000000000000000000..92c4c2bd5e5065f2ea8fc703c00a4f428bdf86de --- /dev/null +++ b/examples/obligation.json @@ -0,0 +1,26 @@ +{ + "schema_version": "kye.obligation.v1", + "obligation_id": "kye:obligation:approval_before_execution", + "obligation_type": "pre_execution_approval", + "owed_by_entity_id": "kye:agent:finance_agent_001", + "owed_to_entity_id": "kye:org:acme_ltd", + "trigger_event": "payment.prepare.completed", + "required_action": "request_approval", + "deadline": { + "type": "before_action", + "before_capability": "payment.execute" + }, + "state": "pending", + "satisfaction_conditions": [ + "approval_event_recorded", + "approver_authority_valid", + "approval_evidence_pack_generated" + ], + "breach_effect": { + "decision": "deny", + "reason_code": "obligation_not_satisfied", + "generate_evidence_pack": true + }, + "evidence_refs": [], + "created_at": "2026-05-09T12:00:00Z" +} diff --git a/examples/ontology-mapping.json b/examples/ontology-mapping.json new file mode 100644 index 0000000000000000000000000000000000000000..d1a056421f06e5d942dab9d9cf7ac3370237326a --- /dev/null +++ b/examples/ontology-mapping.json @@ -0,0 +1,20 @@ +{ + "schema_version": "kye.ontology_mapping.v1", + "mapping_id": "kye:ontology:mapping:openid_scope_to_kye_capability", + "source_system": "oauth_oidc", + "source_term": "scope", + "source_value": "payments:write", + "target_term_id": "kye:term:capability:payment_initiation", + "mapping_type": "related_not_identical", + "confidence": 0.84, + "notes": "OAuth scope may indicate API permission but does not by itself prove delegated payment authority, principal consent, state or evidence.", + "requires_additional_kye_objects": [ + "KYEAuthorityGrant", + "KYEScope", + "KYEStateSnapshot", + "KYEPolicyDecision" + ], + "status": "active", + "created_at": "2026-05-09T00:00:00Z", + "validated_at": "2026-05-09T00:00:00Z" +} diff --git a/examples/ontology-profile.json b/examples/ontology-profile.json new file mode 100644 index 0000000000000000000000000000000000000000..ceb3314b7e138442323985f2cf2be583a7c96c1b --- /dev/null +++ b/examples/ontology-profile.json @@ -0,0 +1,29 @@ +{ + "schema_version": "kye.ontology_profile.v1", + "profile_id": "kye:profile:ontology", + "display_name": "KYE Ontology Profile™", + "category": "semantic_authority", + "version": "1.0.0", + "description": "Defines semantic relationships between KYE entities, authorities, capabilities, scopes, states, decisions, evidence, profiles, connectors and sectors.", + "required_kye_profiles": [ + "kye.core.v1", + "kye.authority.v1", + "kye.capability.v1", + "kye.state.v1", + "kye.evidence.v1", + "kye.graph.v1" + ], + "recommended_kye_profiles": [ + "kye.discoverability.v1", + "kye.continuity.v1" + ], + "ontology_domains": [ + "entity", "authority", "capability", "scope", "state", "decision", + "evidence", "continuity", "discoverability", "connector", "sector", + "certification" + ], + "supported_serializations": ["json", "json_ld", "rdf_optional", "owl_optional"], + "access_model": "policy_filtered", + "status": "active", + "created_at": "2026-05-09T00:00:00Z" +} diff --git a/examples/ontology-relationship.json b/examples/ontology-relationship.json new file mode 100644 index 0000000000000000000000000000000000000000..73aa6389565f426f29ea3d1d9257f784f05f10a2 --- /dev/null +++ b/examples/ontology-relationship.json @@ -0,0 +1,22 @@ +{ + "schema_version": "kye.ontology_relationship.v1", + "relationship_id": "kye:ontology:relationship:001", + "subject_term_id": "kye:term:entity:ai_agent", + "predicate": "uses_capability", + "object_term_id": "kye:term:capability:tool_invocation", + "relationship_type": "semantic_rule", + "definition": "An AI agent may hold a tool-invocation capability only through an authority grant, capability manifest, and active state.", + "constraints": { + "requires_authority_grant": true, + "requires_capability_manifest": true, + "requires_state_check": true + }, + "evidence_requirements": [ + "authority_grant", + "capability_manifest", + "state_snapshot", + "policy_decision" + ], + "status": "active", + "created_at": "2026-05-09T00:00:00Z" +} diff --git a/examples/ontology-term.json b/examples/ontology-term.json new file mode 100644 index 0000000000000000000000000000000000000000..3490b104054f021457784cbe88da4c068ae61127 --- /dev/null +++ b/examples/ontology-term.json @@ -0,0 +1,29 @@ +{ + "schema_version": "kye.ontology_term.v1", + "term_id": "kye:term:authority:delegated_payment_authority", + "label": "Delegated Payment Authority", + "domain": "authority", + "definition": "Authority granted by a principal to an actor to prepare, request or execute payment-related actions within defined scope and state conditions.", + "preferred_name": "delegated_payment_authority", + "aliases": [ + "payment mandate", + "payment delegation", + "agent payment permission" + ], + "related_terms": [ + { "relationship": "requires", "term_id": "kye:term:capability:payment_initiation" }, + { "relationship": "constrained_by", "term_id": "kye:term:scope:amount_limit" }, + { "relationship": "evidenced_by", "term_id": "kye:term:evidence:evidence_pack" } + ], + "not_equivalent_to": [ + "kye:term:authn:login_session", + "kye:term:legal:power_of_attorney" + ], + "profile_refs": [ + "kye:profile:payment", + "kye:profile:open_finance", + "kye:profile:agent_runtime" + ], + "status": "active", + "created_at": "2026-05-09T00:00:00Z" +} diff --git a/examples/open-access-authority-manifest.json b/examples/open-access-authority-manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..f985b9fdb8188d9a9860770a18d92ef3af5c7860 --- /dev/null +++ b/examples/open-access-authority-manifest.json @@ -0,0 +1,32 @@ +{ + "schema_version": "kye.open_access_authority_manifest.v1", + "manifest_id": "kye:registry:open-access-authority", + "display_name": "KYE Open Access Authority™ — access-admissibility product spec", + "version": "1.0.0", + "adopted_at": "2026-06-11", + "constitution_ref": "constitution/12-PURPOSE-PERMISSION.md + constitution/52-DELEGATED-AGENT-BINDING.md + constitution/17-DIRECTORY-SEARCH.md", + "description": "Illustrative instance of the KYE Open Access Authority™ manifest: the five access verbs, resource classes, the admissibility decision flow, and the Resource Authority Badge™ states. Every verdict is a Purpose-Permission admissibility decision scoped to an access action — not a separate decision engine.", + "boundary": { + "oaa": "The agent-to-resource access projection of the admissibility decision.", + "non_competition": "KYE governs whether an agent may access a resource; it does not run the agent or route its traffic." + }, + "access_action_kinds": ["access", "rely-upon", "invoke", "cite", "transact"], + "resource_classes": ["api", "mcp-server", "website", "dataset", "service", "marketplace", "knowledge-base"], + "decision_flow": [ + { "step": "identify-principal", "binding": "Resolve the requesting agent to exactly one principal in one tenant." }, + { "step": "resolve-rights", "binding": "What delegation does the principal hold over this resource class?" }, + { "step": "resolve-jurisdiction", "binding": "Which jurisdiction governs the principal-and-resource pair; cross-border handoff." }, + { "step": "evaluate-admissibility", "binding": "Admissibility verdict: allow / deny / allow-with-notice / consent / minimisation." }, + { "step": "emit-evidence", "binding": "Evidence Pack plus attestation; Replay-Proof from public keys alone." } + ], + "resource_authority_badge": { + "states": ["badge-unverified", "badge-asserted", "badge-evidenced", "badge-suspended"], + "transitions": [ + { "from": "badge-unverified", "to": "badge-asserted", "on": "resource owner declares access terms" }, + { "from": "badge-asserted", "to": "badge-evidenced", "on": "access decisions emit Evidence Packs and are replay-verifiable" }, + { "from": "badge-evidenced", "to": "badge-suspended", "on": "rights/jurisdiction change or upstream revocation" }, + { "from": "badge-suspended", "to": "badge-evidenced", "on": "re-assessment passes" } + ] + }, + "skus": ["KYE-OAA-BADGE-001", "KYE-OAA-STANDARD-001", "KYE-OAA-ENTERPRISE-001"] +} diff --git a/examples/operating-model-profile.json b/examples/operating-model-profile.json new file mode 100644 index 0000000000000000000000000000000000000000..3b53772ee09050546145baf0e6175082b9efa1b6 --- /dev/null +++ b/examples/operating-model-profile.json @@ -0,0 +1,37 @@ +{ + "schema_version": "kye.operating_model_profile.v1", + "profile_id": "kye:profile:operating_model", + "display_name": "KYE Operating Model Profile™", + "category": "ai_worker_governance", + "version": "1.0.0", + "description": "Defines the schemas, gates, review paths and evidence objects required to move AI workers from use-case intake to runtime authority control.", + "required_kye_profiles": [ + "kye.core.v1", + "kye.authority.v1", + "kye.capability.v1", + "kye.state.v1", + "kye.evidence.v1" + ], + "recommended_kye_profiles": [ + "kye.discoverability.v1", + "kye.continuity.v1", + "kye.ontology.v1" + ], + "required_objects": [ + "KYEUseCaseIntake", + "KYEReadinessAssessment", + "KYEEntityAuthorityRecord", + "KYEAuthorityGate", + "KYECommitBoundary", + "KYEReviewPath", + "KYETrainingRecord", + "KYEAdoptionEvidencePack", + "KYEGovernedCatalogEntry" + ], + "journey_stages": [ + "intake", "assess", "classify", "map_authority", "place_gates", + "configure_runtime", "execute", "evidence", "review", "improve" + ], + "status": "active", + "created_at": "2026-05-09T00:00:00Z" +} diff --git a/examples/payload-artifact.json b/examples/payload-artifact.json new file mode 100644 index 0000000000000000000000000000000000000000..d55d23f303182629cb7d01fbe1597d445bc74ead --- /dev/null +++ b/examples/payload-artifact.json @@ -0,0 +1,41 @@ +{ + "schema_version": "kye.payload_artifact.v1", + "payload_id": "kye:payload:req_01HX0YK7ME2TCJ7G4ZWB3X1Y8M", + "artifact_type": "payload", + "payload_type": "capability_invocation_request", + "state": "verified", + "actor_entity_id": "kye:agent:acme.example:finance-agent-007", + "principal_entity_id": "kye:org:acme.example", + "acting_on_behalf_of": "kye:org:acme.example", + "capability_id": "kye:capability:acme.example:skill:invoice-reconciliation", + "capability_version": "1.2.3", + "requested_action": "invoice.reconcile.prepare", + "resource": { + "resource_type": "invoice_batch", + "resource_id": "batch_789" + }, + "integrity": { + "payload_hash": "kye-hash:1:01HXKYEPAYLOADHASHEXAMPLEABCDEF", + "canonicalization": "jcs-rfc8785", + "signature_algorithm": "ed25519", + "signature": "kye-sig:1:01HXKYESIGEXAMPLE000000000000000", + "signed_by_credential_id": "kye:credential:acme.example:agent-key-001", + "payload_hash_valid": true + }, + "freshness": { + "nonce": "nonce_abc123def456", + "issued_at": "2026-05-05T21:00:00Z", + "expires_at": "2026-05-05T21:05:00Z", + "replay_protection": true, + "nonce_reused": false + }, + "decision_binding": { + "decision_id": "kye:decision:acme.example:987", + "decision": "allow", + "reason_code": "authority_scope_state_capability_matched" + }, + "audit": { + "audit_event_id": "kye:audit:acme.example:evt_001", + "evidence_pack_ref": "kye:evidence-pack:acme.example:payload_001" + } +} diff --git a/examples/payment-approval.json b/examples/payment-approval.json new file mode 100644 index 0000000000000000000000000000000000000000..9aaa9a7e7b5bef4c1e1675b2316f36e79e7d0427 --- /dev/null +++ b/examples/payment-approval.json @@ -0,0 +1,9 @@ +{ + "payment_approval_id": "kye:payapr:acme.example:01JYAP1000000000000000000", + "payment_intent_id": "kye:ent:acme.example:payment_intent:01JYPI000000000000000000", + "approver_entity_id": "kye:ent:acme.example:person:01JYFM000000000000000000", + "approval_type": "dual", + "decision": "approved", + "reason": "within approved vendor program", + "created_at": "2026-04-25T06:02:00Z" +} diff --git a/examples/payment-attestation.json b/examples/payment-attestation.json new file mode 100644 index 0000000000000000000000000000000000000000..fff5c399d8103767b2594740a63cba2e4619adfc --- /dev/null +++ b/examples/payment-attestation.json @@ -0,0 +1,18 @@ +{ + "payment_attestation_id": "kye:att:acme.example:payment_attestation:01JYPA0000000000000", + "payment_intent_id": "kye:ent:acme.example:payment_intent:01JYPI000000000000000000", + "issuer_entity_id": "kye:ent:acme.example:gateway:01JYGW0000000000000000000", + "claims": { + "actor_entity_id": "kye:ent:acme.example:ai_agent:01JYPROCUREBOT000000000000", + "subject_entity_id": "kye:ent:acme.example:business:01JYACME000000000000000000", + "wallet_entity_id": "kye:ent:acme.example:wallet:01JYWALLET00000000000000", + "policy_decision_id": "kye:pdc:acme.example:01JYPDC0000000000000000000", + "amount_minor": 8500, + "currency": "GBP", + "decision": "allow_with_constraints", + "approved": true + }, + "status": "valid", + "issued_at": "2026-04-25T06:02:30Z", + "expires_at": "2026-04-26T06:02:30Z" +} diff --git a/examples/payment-authority.json b/examples/payment-authority.json new file mode 100644 index 0000000000000000000000000000000000000000..59373ddaa97f22860524ae6314a919c2e53dbe44 --- /dev/null +++ b/examples/payment-authority.json @@ -0,0 +1,21 @@ +{ + "payment_authority_id": "kye:payauth:acme.example:01JYAUTH000000000000000000", + "actor_entity_id": "kye:ent:acme.example:ai_agent:01JYPROCUREBOT000000000000", + "subject_entity_id": "kye:ent:acme.example:business:01JYACME000000000000000000", + "wallet_entity_id": "kye:ent:acme.example:wallet:01JYWALLET00000000000000", + "basis": "explicit_delegation", + "allowed_actions": [ + "payment.initiate", + "invoice.pay" + ], + "forbidden_actions": [ + "payment.approve", + "wallet.withdraw", + "beneficiary.create" + ], + "scope_id": "kye:scp:acme.example:payment-ops-gbp00000000", + "status": "active", + "revocable": true, + "valid_from": "2026-04-25T00:00:00Z", + "valid_until": "2026-12-31T23:59:59Z" +} diff --git a/examples/payment-intent.json b/examples/payment-intent.json new file mode 100644 index 0000000000000000000000000000000000000000..f6af30d5a95116c54d70954e43a5057f3d909d12 --- /dev/null +++ b/examples/payment-intent.json @@ -0,0 +1,15 @@ +{ + "payment_intent_id": "kye:ent:acme.example:payment_intent:01JYPI000000000000000000", + "actor_entity_id": "kye:ent:acme.example:ai_agent:01JYPROCUREBOT000000000000", + "subject_entity_id": "kye:ent:acme.example:business:01JYACME000000000000000000", + "wallet_entity_id": "kye:ent:acme.example:wallet:01JYWALLET00000000000000", + "beneficiary_entity_id": "kye:ent:acme.example:beneficiary:01JYBEN000000000000000000", + "merchant_entity_id": "kye:ent:acme.example:merchant:01JYMERCH00000000000000000", + "amount_minor": 8500, + "currency": "GBP", + "rail_type": "bank_transfer", + "purpose_code": "vendor_invoice", + "invoice_entity_id": "kye:ent:acme.example:invoice:01JYINV000000000000000000", + "status": "pending_authorization", + "created_at": "2026-04-25T06:00:00Z" +} diff --git a/examples/permission.json b/examples/permission.json new file mode 100644 index 0000000000000000000000000000000000000000..d9a420a6b3b3ef11b389a828d6859041c7d44e37 --- /dev/null +++ b/examples/permission.json @@ -0,0 +1,22 @@ +{ + "schema_version": "kye.permission.v1", + "permission_id": "kye:permission:agent_payment_prepare", + "subject_entity_id": "kye:agent:finance_agent_001", + "principal_entity_id": "kye:org:acme_ltd", + "capability_id": "kye:capability:payment.prepare", + "permission_type": "delegated_capability_permission", + "scope": { + "max_amount": { "value": 1000, "currency": "GBP" }, + "environment": "production", + "requires_human_review_above": { "value": 500, "currency": "GBP" } + }, + "state_requirements": { + "authority_state": "active", + "credential_state": "valid", + "risk_state": ["normal", "elevated"] + }, + "evidence_required": true, + "valid_from": "2026-05-09T00:00:00Z", + "valid_until": "2026-06-09T00:00:00Z", + "status": "active" +} diff --git a/examples/platform-map.json b/examples/platform-map.json new file mode 100644 index 0000000000000000000000000000000000000000..4c0bdb01d120858bce4f4363f20c235d3a780cd9 --- /dev/null +++ b/examples/platform-map.json @@ -0,0 +1,72 @@ +{ + "schema": "kye.platform_map.v1", + "generated_by": "scripts/build-platform-map.mjs", + "note": "Illustrative kye.platform_map.v1 instance — a §0.10 projection over the §53 cascade graph. The live artefact is public/site/assets/derived-platform-map.json (994 nodes).", + "source_roots": [ + "§53 cohesion cascade graph", + "§34 canonical graph", + "§55 component-class taxonomy", + "§55 colour-mapping", + "§0.36 entity-id registry", + "§50 stage dictionary", + "§68/§0.27 fan-out domains" + ], + "axes": { + "layer": { + "source": "constitution/53-COHESION-CASCADE.md §3.2 (cohesion kind)", + "values": ["source-of-truth", "derived", "peer-equivalence"] + }, + "rail": { + "source": "constitution/68 · §0.27 fan-out domains", + "values": ["data_and_contracts", "policy_and_decision", "rails_engines_agents", "commerce", "surfaces", "integration", "comms_and_legal", "runtime_and_infra", "governance_and_evidence"] + }, + "stage": { + "source": "constitution/50-CONTENT-GRAPH-DISCOVERABILITY.md §2 (kye-stage)", + "values": ["evaluate", "build", "operate", "audit", "learn", "reference"] + } + }, + "nodes": [ + { + "kye_id": "kye:cascade:framework-mapping-agent", + "entity_type": "agent", + "class": "agent", + "axes": { "layer": "source-of-truth", "rail": "rails_engines_agents", "stage": "operate" }, + "color_role": "agent", + "health": "ok" + }, + { + "kye_id": "kye:cascade:agent-binding-manifest", + "entity_type": "agent-governance", + "class": "agent", + "axes": { "layer": "source-of-truth", "rail": "rails_engines_agents", "stage": "operate" }, + "color_role": "agent", + "health": "ok" + } + ], + "edges": [ + { + "src": "kye:cascade:agent-binding-manifest", + "dst": "kye:cascade:agent-mcp-allow-list", + "relationship": "interacts-with", + "resolved": true + } + ], + "diagnostics": { + "counts": { + "nodes": 2, + "edges": 1, + "by_health": { "ok": 2 }, + "unresolved_edges": 0 + }, + "density": { + "by_stage": { "evaluate": 0, "build": 0, "operate": 2, "audit": 0, "learn": 0, "reference": 0 }, + "by_layer": { "source-of-truth": 2, "derived": 0, "peer-equivalence": 0 }, + "by_rail": { "data_and_contracts": 0, "policy_and_decision": 0, "rails_engines_agents": 2, "commerce": 0, "surfaces": 0, "integration": 0, "comms_and_legal": 0, "runtime_and_infra": 0, "governance_and_evidence": 0 } + }, + "gaps": [ + { "stage": "evaluate", "layer": "derived", "rail": "commerce" } + ], + "gap_cells": 1, + "canonical_graph_health": { "orphans": 6, "dangling": 0, "observations": 160 } + } +} diff --git a/examples/policy-clause-mapping.json b/examples/policy-clause-mapping.json new file mode 100644 index 0000000000000000000000000000000000000000..bd040ac581362fed2cee2b0aec1186ceabbd3be8 --- /dev/null +++ b/examples/policy-clause-mapping.json @@ -0,0 +1,53 @@ +{ + "mapping_id": "kye:policy_clause_mapping:northbank:acceptable-use-policy-v3.gdpr", + "document_asset_ref": "kye:document_asset:northbank:acceptable-use-policy-v3", + "trust_domain_id": "northbank", + "target_framework_slug": "gdpr", + "engine_version": "1.0.0", + "generated_at": "2026-06-10T09:30:05Z", + "clauses": [ + { + "clause_id": "c1", + "heading": "1. Purpose limitation — personal data processed only for declared purposes.", + "text_sha256": "2d626f9eeb0d19b3fb0b50b1cec8010d500ca0f3a59a754be85829ea46929d0c", + "obligation_matches": [ + { "requirement_id": "gdpr.A5.1.b", "match_kind": "citation", "score": 0.95 } + ] + }, + { + "clause_id": "c2", + "heading": "2. Data subject access — requests fulfilled within 30 days per GDPR Art. 15.", + "text_sha256": "bb4200defac396efaf7acd3849ff205caea7939c041d6343dbe76eba07dd6fab", + "obligation_matches": [ + { "requirement_id": "gdpr.A15", "match_kind": "citation", "score": 0.98 } + ] + }, + { + "clause_id": "c3", + "heading": "3. Records of processing — maintained per GDPR Art. 30.", + "text_sha256": "bb4da665e60905ad51d764c04bbeed2b4e3c4d14f9b2fab357a1305455791964", + "obligation_matches": [ + { "requirement_id": "gdpr.A30", "match_kind": "citation", "score": 0.97 } + ] + }, + { + "clause_id": "c4", + "heading": "4. Office snack policy — unrelated operational clause.", + "text_sha256": "5fe3ef6c9d34207b96000a188555bbbc1dfce74c9bddf7b0e826371bc26a6a76", + "obligation_matches": [] + } + ], + "coverage": { + "total_clauses": 4, + "mapped_clauses": 3, + "unmatched_clauses": 1, + "total_obligations": 7, + "obligations_with_clause": 3, + "obligations_without_clause": [ + "gdpr.A17", + "gdpr.A20", + "gdpr.A25.1", + "gdpr.A28" + ] + } +} diff --git a/examples/policy-coverage-report.json b/examples/policy-coverage-report.json new file mode 100644 index 0000000000000000000000000000000000000000..1a7e200f53c3acb3150dc047854877dffa7ef196 --- /dev/null +++ b/examples/policy-coverage-report.json @@ -0,0 +1,13 @@ +{ + "schema_version": "kye.policy_coverage_report.v1", + "report_id": "kye:policy-coverage:acme.example:001", + "coverage_result": "passed_with_gaps", + "coverage": [ + { "area": "payment_actions", "required_policy": "human_approval_above_threshold", "status": "covered", "policy_id": "kye:policy:acme.example:payment-thresholds" }, + { "area": "high_risk_ai_capabilities","required_policy": "human_oversight_required", "status": "gap", "reason_code": "required_policy_missing" }, + { "area": "compromised_credentials", "required_policy": "block_compromised_credential", "status": "covered", "policy_id": "kye:policy:acme.example:credential-cascade" }, + { "area": "expired_delegations", "required_policy": "deny_expired_delegation", "status": "covered", "policy_id": "kye:policy:acme.example:delegation-validity" }, + { "area": "eu_ai_act_evidence", "required_policy": "post_market_monitoring_emission", "status": "covered", "policy_id": "kye:policy:acme.example:eu-ai-act-monitoring" } + ], + "checked_at": "2026-05-06T10:40:00Z" +} diff --git a/examples/policy-decision.json b/examples/policy-decision.json new file mode 100644 index 0000000000000000000000000000000000000000..18858245b3f519a03789ccf4cdf3dad6b068583a --- /dev/null +++ b/examples/policy-decision.json @@ -0,0 +1,17 @@ +{ + "policy_decision_id": "kye:pdc:acme.example:01JYPDC0000000000000000000", + "decision": "allow_with_constraints", + "reasons": [ + "actor_active", + "delegation_valid", + "scope_match" + ], + "obligations": [ + "audit.emit", + "redaction.required" + ], + "stop_conditions": [ + "delegation_revoked" + ], + "created_at": "2026-04-15T12:30:00Z" +} diff --git a/examples/power.json b/examples/power.json new file mode 100644 index 0000000000000000000000000000000000000000..9d62f977fd292630b7cb3e309b5126973d74b9ac --- /dev/null +++ b/examples/power.json @@ -0,0 +1,22 @@ +{ + "schema_version": "kye.power.v1", + "power_id": "kye:power:principal_revoke_agent_authority", + "holder_entity_id": "kye:person:customer_123", + "power_type": "revocation_power", + "target_object_types": ["KYEAuthorityGrant", "KYEPermission", "KYEDelegation"], + "allowed_operations": ["revoke", "suspend", "expire"], + "scope": { + "applies_to_principal_entity_id": "kye:person:customer_123", + "applies_to_actor_types": ["ai_agent", "workflow", "api_client"] + }, + "state_requirements": { + "holder_state": "active", + "credential_state": "valid" + }, + "exercise_effect": { + "cascade_revocation_required": true, + "emit_signal_event": "kye.authority.revoked", + "generate_evidence_pack": true + }, + "status": "active" +} diff --git a/examples/pricing_disclosure.json b/examples/pricing_disclosure.json new file mode 100644 index 0000000000000000000000000000000000000000..4b0071480e1bee51ddd4eb6e0bbd2722d6456d01 --- /dev/null +++ b/examples/pricing_disclosure.json @@ -0,0 +1,21 @@ +{ + "schema": "kye.pricing_disclosure.v1", + "sku_id": "KYE-AUDIT-PILOT-001", + "pricing_envelope_ref": "kye.commercial.value_based_pricing.v1#/envelopes/by-sku/KYE-AUDIT-PILOT-001", + "pricing_model": "subscription", + "currency": "GBP", + "internal_price_band": { + "floor": 35000, + "ceiling": 50000, + "default": 41000 + }, + "public_disclosure": { + "mode": "hidden" + }, + "negotiable": true, + "effective_from": "2026-05-30", + "last_reviewed": "2026-05-30", + "review_cadence_days": 90, + "owners": ["ceo", "commercial-lead"], + "rationale": "Closed-registration default per §26 publication_rule. Public surfaces display the SKU name + summary + apply CTA; the figure is shared via email commercial menu after qualification." +} diff --git a/examples/problem-detail.json b/examples/problem-detail.json new file mode 100644 index 0000000000000000000000000000000000000000..37a4e0a0b9f25d96e6e839f7ec85b70568dc1a5e --- /dev/null +++ b/examples/problem-detail.json @@ -0,0 +1,16 @@ +{ + "type": "https://kye.dev/errors/scope_attenuation_violation", + "title": "Scope attenuation violation", + "status": 403, + "detail": "Child scope kye:scp:acme.example:01JYCHILD0000000000000XZ attempts to permit allowed_actions outside the parent scope kye:scp:acme.example:01JYPARENT00000000000XZ.", + "instance": "/v1/runtime/authorize", + "reason_code": "scope_attenuation_violation", + "correlation_id": "kye:cor:acme.example:01JYCOR000000000000000XZ", + "policy_decision_id": "kye:pdc:acme.example:01JYPDC000000000000000XZ", + "audit_event_id": "kye:aud:acme.example:01JYAUDPDC000000000000XZ", + "see_also": [ + "https://kye.dev/errors/scope_attenuation_violation", + "https://kye-protocol.github.io/whitepaper.html#model" + ], + "obligations_violated": [] +} diff --git a/examples/program-example.json b/examples/program-example.json new file mode 100644 index 0000000000000000000000000000000000000000..8aa3fc6403cbaa82e2369df88fdcbf49f4a4c0e0 --- /dev/null +++ b/examples/program-example.json @@ -0,0 +1,13 @@ +{ + "program_id": "kye:program:auditor", + "slug": "auditor", + "name": "KYE Auditor Program", + "kind": "engagement", + "engagement_type": "auditor", + "kye_id": "kye:program:auditor", + "source_ref": "kye.engagement.application.v1#engagement_type", + "landing": "public/site/auditors.html", + "obligations_ref": null, + "evidence_event_family": "kye.program.lifecycle.v1", + "governed": true +} \ No newline at end of file diff --git a/examples/prohibition.json b/examples/prohibition.json new file mode 100644 index 0000000000000000000000000000000000000000..5963c33e0d8499636a70fb5baf83d4855b393bfd --- /dev/null +++ b/examples/prohibition.json @@ -0,0 +1,17 @@ +{ + "schema_version": "kye.prohibition.v1", + "prohibition_id": "kye:prohibition:agent_execute_payment_without_approval", + "subject_entity_id": "kye:agent:finance_agent_001", + "prohibited_capability": "payment.execute", + "condition": { + "approval_event_missing": true, + "environment": "production" + }, + "effect": { + "decision": "prohibited", + "reason_code": "prohibited_action_without_approval", + "quarantine_request": true, + "generate_evidence_pack": true + }, + "status": "active" +} diff --git a/examples/proof-bundle.json b/examples/proof-bundle.json new file mode 100644 index 0000000000000000000000000000000000000000..190c147eff305f583d79a1e0788950c00e0ed06b --- /dev/null +++ b/examples/proof-bundle.json @@ -0,0 +1,19 @@ +{ + "proof_bundle_id": "kye:prf:acme.example:01JYPRF0000000000000000000", + "subject_type": "policy_decision", + "subject_id": "kye:pdc:acme.example:01JYPDC0000000000000000000", + "included_artifacts": [ + "kye:ent:acme.example:ai_agent:01JY3J1D4E5A7K3JQFK4E0Q1XZ", + "kye:del:acme.example:01JYABC0000000000000000000", + "kye:cred:acme.example:kye_agent_passport:01JYCRED0000000000000000", + "kye:att:acme.example:workload_attestation:01JYATT0000000000000000", + "kye:pdc:acme.example:01JYPDC0000000000000000000", + "kye:rte:acme.example:01JYRTE0000000000000000000", + "kye:aud:acme.example:01JYAUD0000000000000000000" + ], + "bundle_hash": "sha256:c1c1c1c1c1c1c1c1c1c1c1c1c1c1c1c1c1c1c1c1c1c1c1c1c1c1c1c1c1c1c1c1", + "transparency_receipt_id": "kye:rcp:acme.example:01JYRCPT000000000000000000", + "signature": "cose:", + "artifact_uri": "https://proofs.acme.example/01JYPRF.bundle", + "created_at": "2026-04-15T12:30:02Z" +} diff --git a/examples/proposed-action.json b/examples/proposed-action.json new file mode 100644 index 0000000000000000000000000000000000000000..b8a8fb3bfc526f50061b34e7b60a598ade3544e7 --- /dev/null +++ b/examples/proposed-action.json @@ -0,0 +1,35 @@ +{ + "schema_version": "kye.proposed_action.v1", + "proposed_action_id": "kye:proposed-action:001", + "origin": { + "source_type": "ai_agent", + "source_entity_id": "kye:agent:shopping_agent_456", + "principal_entity_id": "kye:person:customer_123", + "accountable_entity_id": "kye:org:acme_ltd" + }, + "intent_ref": "kye:intent:001", + "interpreted_intent_ref": "kye:intent-interpretation:001", + "requested_capability": "card_purchase", + "action_summary": "Prepare purchase of phone charger under GBP 40.", + "target_resource": { + "resource_type": "merchant_basket", + "resource_id": "basket_789", + "payload_hash": "sha256:..." + }, + "preconditions": { + "principal_known": true, + "actor_known": true, + "intent_present": true, + "authority_context_present": true, + "data_source_allowed": true, + "jurisdiction_supported": true + }, + "risk_flags": { + "prohibited_category_detected": false, + "coercion_signal_detected": false, + "incentive_conflict_detected": false, + "continuity_drift_detected": false, + "unsafe_tool_path_detected": false + }, + "created_at": "2026-05-10T12:00:00Z" +} diff --git a/examples/provenance-evidence.json b/examples/provenance-evidence.json new file mode 100644 index 0000000000000000000000000000000000000000..9573e3877845364d30cc53d39609307bfae60f97 --- /dev/null +++ b/examples/provenance-evidence.json @@ -0,0 +1,33 @@ +{ + "schema_version": "kye.provenance_evidence.v1", + "provenance_id": "kye:provenance:finance_agent_001", + "subject_entity_id": "kye:agent:finance_agent_001", + "models": [], + "datasets": [ + { + "dataset_id": "kye:dataset:supplier_master_v3", + "version": "3.2.0", + "licence": "internal-confidential", + "checksum": "sha256:...", + "data_classes": ["supplier_data", "personal_data"] + } + ], + "tools": [ + { "tool_id": "kye:tool:invoice_parser", "version": "1.4.2", "supplier": "internal" }, + { "tool_id": "kye:tool:banking_api_adapter", "version": "2.1.0", "supplier": "internal" } + ], + "hardware": [], + "suppliers": [ + { + "supplier_id": "kye:supplier:internal_platform", + "verified": true, + "verification_method": "signed_evidence" + } + ], + "licences": ["internal-confidential", "apache-2.0"], + "version_lineage": ["finance_agent_001@1.0.0", "finance_agent_001@1.0.1"], + "verification_status": "verified", + "audit_chain_ref": "kye:audit:chain:0xabc456", + "created_at": "2026-05-09T12:00:00Z", + "updated_at": "2026-05-09T12:00:00Z" +} diff --git a/examples/quota-grant.json b/examples/quota-grant.json new file mode 100644 index 0000000000000000000000000000000000000000..16cebfc8012f053631e4e55a0331e4ed9d470d99 --- /dev/null +++ b/examples/quota-grant.json @@ -0,0 +1,18 @@ +{ + "$schema": "https://kyeprotocol.com/schemas/quota-grant.json", + "quota_id": "kye:quota:bank-z.eu:tenant_acme:authorize_decision:per_day:01HX", + "schema_version": "kye.quota_grant.v1", + "principal_entity_id": "kye:business:bank-z.eu:corp:acme-treasury-gmbh", + "authority_grant_id": "kye:authority:grant:agent_purchase_001", + "metric_name": "authorize_decision", + "limit": 10000, + "unit": "decision", + "window": "per_day", + "current_consumed": 1247, + "reserved": 12, + "state": "active", + "valid_from": "2026-05-08T00:00:00Z", + "valid_until": "2026-12-31T23:59:59Z", + "external_meter_provider": "stripe", + "external_meter_id": "billing_meter_1ABCdef" +} diff --git a/examples/rail-adapter.json b/examples/rail-adapter.json new file mode 100644 index 0000000000000000000000000000000000000000..08a1fe8e2b04fa54ae919c3ca1f0137157715fb7 --- /dev/null +++ b/examples/rail-adapter.json @@ -0,0 +1,8 @@ +{ + "adapter_id": "kye:ent:acme.example:payment_rail_adapter:01JYRAIL0000000000000", + "adapter_type": "bank_transfer_adapter", + "provider_entity_id": "kye:ent:acme.example:provider:01JYPROV0000000000000000", + "supported_rails": ["bank_transfer", "internal_ledger"], + "callback_mode": "signed_webhook", + "status": "active" +} diff --git a/examples/readiness-assessment.json b/examples/readiness-assessment.json new file mode 100644 index 0000000000000000000000000000000000000000..5360e0c3d555729e4257f22101b24837e1055972 --- /dev/null +++ b/examples/readiness-assessment.json @@ -0,0 +1,50 @@ +{ + "schema_version": "kye.readiness_assessment.v1", + "assessment_id": "kye:readiness:001", + "use_case_id": "kye:use-case:ai_finance_worker_001", + "status": "requires_controls", + "risk_tier": "high", + "assessed_dimensions": { + "owner_defined": true, + "purpose_defined": true, + "capabilities_defined": true, + "data_classes_identified": true, + "authority_model_defined": false, + "human_review_path_defined": false, + "evidence_requirements_defined": false, + "revocation_path_defined": false, + "continuity_requirements_defined": false, + "discoverability_requirements_defined": true + }, + "required_profiles": [ + "kye:profile:payment", + "kye:profile:discoverability", + "kye:profile:continuity", + "kye:profile:operating_model" + ], + "required_gates": [ + "kye:gate:payment_prepare", + "kye:gate:payment_execute", + "kye:gate:external_send" + ], + "required_evidence": [ + "authority_grant", + "scope", + "state_snapshot", + "policy_decision", + "decision_map", + "evidence_pack" + ], + "readiness_score": { + "score": 0.58, + "scale": "0_to_1", + "interpretation": "not_ready_for_autonomous_execution" + }, + "recommended_next_steps": [ + "define_entity_authority_record", + "place_payment_execution_gate", + "define_human_approval_threshold", + "configure_evidence_pack" + ], + "assessed_at": "2026-05-09T12:05:00Z" +} diff --git a/examples/reconciliation-verdict-v1-1.json b/examples/reconciliation-verdict-v1-1.json new file mode 100644 index 0000000000000000000000000000000000000000..4009d89fa8b90551d752ebfa34bf676584086766 --- /dev/null +++ b/examples/reconciliation-verdict-v1-1.json @@ -0,0 +1,23 @@ +{ + "schema": "kye.reconciliation.verdict.v1", + "verdict_id": "3c2b1a0d-9e8f-4d7c-8b6a-5e4f3c2b1a0d", + "epoch_unix_ms": 1747661696789, + "reconciler_set_id": "kye-reconcilers-v1-22", + "reconciler_versions": [ + {"name": "queue-bijection", "version": "1.0.0"}, + {"name": "schema-canonical-bijection", "version": "1.0.0"}, + {"name": "rule-pack-canonical", "version": "1.0.0"}, + {"name": "openapi-functions-bijection", "version": "1.0.0"}, + {"name": "event-emission-coverage", "version": "1.0.0"}, + {"name": "governance-engine-deployed-vs-declared","version": "1.0.0"}, + {"name": "compliance-attestation-coverage", "version": "1.0.0"} + ], + "declared_state_hash": "sha384:1f4d9a2c5b6e8f1d0a3b7e1f4d9a2c5b6e8f1d0a3b7e1f4d9a2c5b6e8f1d0a3b7e1f4d9a2c5b6e8f1d0a3b7e1f4d9a", + "deployed_state_probe_hash":"sha384:8e6c0a3b7e1f4d9a2c5b6e8f1d0a3b7e1f4d9a2c5b6e8f1d0a3b7e1f4d9a2c5b6e8f1d0a3b7e1f4d9a2c5b6e8f1d0a3b", + "bijection_status": "complete", + "drift_class_counts": {}, + "signature_alg": "ed25519", + "signature_kid": "kye:key:prod:reconciliation-signer:2026-05", + "signature_value_b64": "MEUCIQDgXJyL0qF8xN2k3J9pV6tR1mWqEzH7sB4cD6vN8yA3KwIgZmKpL5rN9oS3xT2vU8wXyZ1qR4hP7nM5eD0aF6cB8gE", + "canonical_envelope_hash": "sha384:a3b7e1f4d9a2c5b6e8f1d0a3b7e1f4d9a2c5b6e8f1d0a3b7e1f4d9a2c5b6e8f1d0a3b7e1f4d9a2c5b6e8f1d0a3b7e1f4d9a" +} diff --git a/examples/recovery-decision.json b/examples/recovery-decision.json new file mode 100644 index 0000000000000000000000000000000000000000..1266084d36b9c474a494c336034c8bfaf2de7a8c --- /dev/null +++ b/examples/recovery-decision.json @@ -0,0 +1,30 @@ +{ + "$schema": "https://kyeprotocol.com/schemas/recovery-decision.json", + "recovery_decision_id": "kye:recovery_decision:custody.acme.eu:2026-05-04_signer_001", + "recovery_request_id": "kye:recovery_request:custody.acme.eu:2026-05-04_signer_001", + "decision": "partial", + "restored_authority": [ + "kye:authority:custody.acme.eu:read_evidence", + "kye:authority:custody.acme.eu:freeze_positions" + ], + "reduced_authority": [ + "kye:authority:custody.acme.eu:initiate_trades", + "kye:authority:custody.acme.eu:approve_settlements" + ], + "obligations": [ + "audit.emit", + "step_up.required", + "post_hoc_review.required", + "key_rotation.required_within_24h" + ], + "valid_from": "2026-05-04T02:18:00Z", + "valid_until": "2026-05-04T06:18:00Z", + "approver_quorum": 2, + "approvers": [ + "kye:human:custody.acme.eu:head_of_custody:director-001", + "kye:human:custody.acme.eu:soc_lead:lead-002" + ], + "decided_by": "kye:trust_domain:custody.acme.eu", + "decided_at": "2026-05-04T02:18:00Z", + "audit_hash": "sha256:b5d4f1c2e8a39f7c4d8e2b1a5f6c9d0e3b8a7c5d4e1f2c3b6a9d8e7f0c1b2a3" +} diff --git a/examples/recovery-proof.json b/examples/recovery-proof.json new file mode 100644 index 0000000000000000000000000000000000000000..b1a642cbd03fee406d9c2539fa756ed4b77572c8 --- /dev/null +++ b/examples/recovery-proof.json @@ -0,0 +1,37 @@ +{ + "$schema": "https://kyeprotocol.com/schemas/recovery-proof.json", + "recovery_proof_id": "kye:recovery_proof:01HXY7Q8RECOVERY3PROOF8EXAMPLE001", + "recovery_request_id": "kye:recovery_request:01HXY7Q8REQUEST7000000000000000001", + "recovery_decision_id": "kye:recovery_decision:01HXY7Q8DECISION700000000000000001", + "subject_entity_id": "kye:ent:acme.example:ai_agent:01HXY7Q800000000000000000000000001", + "evidence_refs": [ + "kye:prf:acme.example:01HXY7Q800EVIDENCE0000000000000001", + "kye:prf:acme.example:01HXY7Q800EVIDENCE0000000000000002" + ], + "approver_refs": [ + "kye:ent:acme.example:person:approver-01" + ], + "previous_keys_revoked": [ + "kye:key:acme.example:ed25519:revoked-2026-04-01" + ], + "new_keys_issued": [ + "kye:key:acme.example:ed25519:issued-2026-05-07" + ], + "authority_diff": { + "restored": ["kye:acr:acme.example:treasury.read"], + "reduced": ["kye:acr:acme.example:treasury.write:limited-1k-eur-daily"], + "removed": ["kye:acr:acme.example:break-glass.payments-execute"] + }, + "audit_event_ids": [ + "kye:aud:acme.example:01HXY7Q800AUDIT00000000000000001A", + "kye:aud:acme.example:01HXY7Q800AUDIT00000000000000002B" + ], + "bundle_hash": "sha256:7f1a8e0bd5e2c8a3f4b1d6e7c8a9b0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7", + "transparency_receipt_id": "kye:trn:acme.example:01HXY7Q800TRN0000000000000000001", + "created_at": "2026-05-07T08:30:00Z", + "signature": { + "kid": "kye:key:acme.example:ed25519:issuer-2026-q2", + "alg": "EdDSA", + "signature_b64": "MEUCIQDxample0SignatureBase64Encoded00000000000000000000Example==" + } +} diff --git a/examples/recovery-request.json b/examples/recovery-request.json new file mode 100644 index 0000000000000000000000000000000000000000..674566ae60042af9592f3381980f956223d44467 --- /dev/null +++ b/examples/recovery-request.json @@ -0,0 +1,11 @@ +{ + "recovery_request_id": "kye:recovery:01JYRECOV", + "subject_entity_id": "kye:ent:acme.example:ai_agent:01JYAGENT", + "recovery_kind": "compromise_response", + "requested_by": "kye:ent:acme.example:person:01JYSECADMIN", + "on_behalf_of": "kye:ent:acme.example:business:01JYACME", + "reason_code": "credential_leak", + "evidence_refs": ["kye:evidence:01JYEVID1", "kye:evidence:01JYEVID2"], + "policy_id": "kye:pol:recovery-default", + "requested_at": "2026-05-05T11:00:00Z" +} diff --git a/examples/relationship-canonical-example.json b/examples/relationship-canonical-example.json new file mode 100644 index 0000000000000000000000000000000000000000..062675331d73fc390ecf03a31a95fb26615b2786 --- /dev/null +++ b/examples/relationship-canonical-example.json @@ -0,0 +1,17 @@ +{ + "schema_version": "kye.relationship.v1", + "id": "rel:industry__framework:banking__dora", + "relationship_type": "regulates", + "source_class": "industry", + "source_id": "banking", + "target_class": "framework", + "target_id": "dora", + "cardinality": "many-to-many", + "bidirectional": false, + "weight": 0.95, + "evidence_basis": "DORA (Reg. 2022/2554) is binding on EU credit institutions from 2025-01-17.", + "effective_from": "2026-05-30", + "owners": ["KYE Compliance Authority"], + "status": "active", + "notes": "Top-level example fixture for the §56 schema. The full multi-instance example set lives under public/examples/relationships/." +} diff --git a/examples/relationship.json b/examples/relationship.json new file mode 100644 index 0000000000000000000000000000000000000000..743ac088de53f6dc7f1f43fa8d6e5d42b37c5c58 --- /dev/null +++ b/examples/relationship.json @@ -0,0 +1,12 @@ +{ + "relationship_id": "kye:rel:acme.example:owned_by:01JYREL0000000000000000000", + "source_entity_id": "kye:ent:acme.example:ai_agent:01JY3J1D4E5A7K3JQFK4E0Q1XZ", + "relationship_type": "owned_by", + "target_entity_id": "kye:ent:acme.example:business:01JYACME000000000000000000", + "evidence_refs": [ + "kye:cred:acme.example:kye_entity_passport:01JYCRED0000000000000000" + ], + "confidence": 100, + "valid_from": "2026-04-01T00:00:00Z", + "status": "active" +} diff --git a/examples/report-soc2-type2.json b/examples/report-soc2-type2.json new file mode 100644 index 0000000000000000000000000000000000000000..279ed4a27d543e95545f7fd93a3b7cc6d728450e --- /dev/null +++ b/examples/report-soc2-type2.json @@ -0,0 +1,64 @@ +{ + "schema_id": "kye.report.v1", + "report_id": "kye:report:soc2_type2:acme:2026Q2", + "tenant_id": "kye:tenant:acme", + "report_kind": "soc2_type2", + "framework": "soc_2", + "period_start": "2026-04-01T00:00:00Z", + "period_end": "2026-07-01T00:00:00Z", + "body": { + "findings": [ + { + "finding_id": "kye:report:soc2_type2:acme:2026Q2:f1", + "headline": "Trust Services Criteria CC1–CC8 conformant across the observation period with zero exceptions", + "verdict": "conformant", + "rationale": "Every privileged decision over the 91-day window emitted a §0.3 envelope to the per-tenant hash-linked audit chain (12,847 events). Every event verified offline via the published assembler_kid pubkey. WORM triggers blocked all 0 attempted mutations on the audit_chain_entries, decisions, risk_assessments, and data_classification_assignments tables.", + "evidence_refs": [ + "kye:audit:acme:2026-04-01T00:00:00.000Z:00001", + "kye:audit:acme:2026-05-15T13:24:11.082Z:06419", + "kye:audit:acme:2026-06-30T23:59:48.715Z:12847" + ] + }, + { + "finding_id": "kye:report:soc2_type2:acme:2026Q2:f2", + "headline": "Logical-access controls (CC6.1, CC6.2, CC6.3) attested by entitlement-gate enforcement on every public-perimeter route", + "verdict": "conformant", + "rationale": "Static-graph CI gate proves all 52 HTTP-perimeter workers invoke requireEntitlement(); zero ungated routes for the observation period. Invoice-paid hard gate enforced on every privileged operation.", + "evidence_refs": [ + "kye:audit:acme:2026-04-15T08:11:00.000Z:01142" + ] + }, + { + "finding_id": "kye:report:soc2_type2:acme:2026Q2:f3", + "headline": "Change-management (CC8.1) attested by signed manifest publication + Replay-Proof per release", + "verdict": "conformant", + "rationale": "Every release to public/main carried a signed Compiled Authority Bundle whose Replay-Proof was re-derived by the conformance runner from the public-key registry alone.", + "evidence_refs": [] + } + ], + "controls": [ + { "control_id": "soc2_cc1.1", "status": "pass", "evidence_refs": [], "attested_at": "2026-07-01T00:00:00Z" }, + { "control_id": "soc2_cc6.1", "status": "pass", "evidence_refs": ["kye:audit:acme:2026-04-15T08:11:00.000Z:01142"], "attested_at": "2026-07-01T00:00:00Z" }, + { "control_id": "soc2_cc6.2", "status": "pass", "evidence_refs": [], "attested_at": "2026-07-01T00:00:00Z" }, + { "control_id": "soc2_cc6.3", "status": "pass", "evidence_refs": [], "attested_at": "2026-07-01T00:00:00Z" }, + { "control_id": "soc2_cc7.2", "status": "pass", "evidence_refs": [], "attested_at": "2026-07-01T00:00:00Z" }, + { "control_id": "soc2_cc8.1", "status": "pass", "evidence_refs": [], "attested_at": "2026-07-01T00:00:00Z" } + ], + "evidence_refs": [ + "kye:audit:acme:2026-04-01T00:00:00.000Z:00001", + "kye:audit:acme:2026-04-15T08:11:00.000Z:01142", + "kye:audit:acme:2026-05-15T13:24:11.082Z:06419", + "kye:audit:acme:2026-06-30T23:59:48.715Z:12847" + ] + }, + "summary": { + "finding_count": 3, + "controls_pass": 6, + "controls_fail": 0, + "controls_exception": 0, + "headline_verdict": "conformant" + }, + "assembler_kid": "kye:kid:acme:reporting-engine", + "sealed_at": "2026-07-01T00:00:00Z", + "signature_b64": "AQIDBAUGBwgJCgsMDQ4PEBESExQVFhcYGRobHB0eHyAhIiMkJSYnKCkqKywtLi8wMTIzNDU2Nzg5Ojs8PT4/QA==" +} diff --git a/examples/review-path.json b/examples/review-path.json new file mode 100644 index 0000000000000000000000000000000000000000..a4cedc99a6bef5ed8dfe46cf80c4666a18f83730 --- /dev/null +++ b/examples/review-path.json @@ -0,0 +1,32 @@ +{ + "schema_version": "kye.review_path.v1", + "review_path_id": "kye:review-path:finance_payment_high_risk", + "display_name": "High-Risk Finance Payment Review Path", + "applies_to": { + "risk_tiers": ["high", "critical"], + "capabilities": ["payment.execute", "supplier.notify"] + }, + "review_steps": [ + { + "step_id": "finance_manager_approval", + "required_role": "finance_manager", + "decision_options": ["approve", "deny", "request_changes"], + "sla_minutes": 1440 + }, + { + "step_id": "security_review_if_new_beneficiary", + "required_role": "security_admin", + "condition": "new_beneficiary_detected", + "decision_options": ["approve", "deny", "quarantine"], + "sla_minutes": 1440 + } + ], + "evidence_requirements": [ + "reviewer_identity", + "approval_reason_code", + "timestamp", + "state_snapshot", + "decision_map" + ], + "status": "active" +} diff --git a/examples/risk-assessment.json b/examples/risk-assessment.json new file mode 100644 index 0000000000000000000000000000000000000000..0937eded0686cbe8182c2427fbcf0e95152aa547 --- /dev/null +++ b/examples/risk-assessment.json @@ -0,0 +1,27 @@ +{ + "schema_id": "kye.risk_assessment.v1", + "assessment_id": "kye:risk-assessment:acme-payment-agent-eu-2026-05-17", + "tenant_id": "kye:tenant:acme-bank", + "subject_id": "kye:agent:acme-payment-agent-eu", + "subject_class": "agent", + "risk_tier": "high", + "risk_score": 78.25, + "reason_codes": [ + "EUAIACT_HIGH_RISK_LIST_ITEM", + "DORA_CRITICAL_OR_IMPORTANT_FUNCTION" + ], + "framework_floors": { + "eu_ai_act": "high", + "dora": "critical_or_important" + }, + "recommended_controls": [ + "kye:capability:dual-channel.sign-off", + "kye:capability:human.in-the-loop.review" + ], + "assessor_kid": "kye:kid:acme-risk-agent-2026-q2", + "assessment_method": "rules_eval", + "evidence_pack_id": "kye:evidence-pack:acme-payment-agent-risk-2026-05-17", + "effective_at": "2026-05-17T11:30:00Z", + "superseded_at": null, + "signature_b64": "AQIDBAUGBwgJCgsMDQ4PEBESExQVFhcYGRobHB0eHyAhIiMkJSYnKCkqKywtLi8wMTIzNDU2Nzg5Ojs8PT4/QA==" +} diff --git a/examples/rule-conflict.json b/examples/rule-conflict.json new file mode 100644 index 0000000000000000000000000000000000000000..e25e5b4887d0c6953e0c244113a5c20fe2d23c9a --- /dev/null +++ b/examples/rule-conflict.json @@ -0,0 +1,21 @@ +{ + "schema_id": "kye.rule_conflict.v1", + "conflict_id": "kye:rule-conflict:acme-gdpr-fca-marketing-2026-05-17", + "tenant_id": "kye:tenant:acme-bank", + "conflict_kind": "framework_obligation_conflict", + "detection_phase": "compile", + "participants": [ + "kye:rule-pack:gdpr-art21-direct-marketing-objection", + "kye:rule-pack:fca-conduct-of-business-promotion-positive-friction", + "kye:operating-model:acme-bank-marketing-2026" + ], + "severity": "high", + "description": "GDPR Art. 21 grants the data subject an absolute right to object to direct marketing; the FCA-aligned rule pack mandates positive-friction confirmation prompts on opt-out flows. The two obligations cannot both be honoured for the same data subject without a deterministic precedence rule.", + "resolution_path": "requires_amendment", + "resolution_strategy": null, + "resolution_at": null, + "resolver_kid": null, + "amendment_ref": null, + "detected_at": "2026-05-17T11:30:00Z", + "signature_b64": "AQIDBAUGBwgJCgsMDQ4PEBESExQVFhcYGRobHB0eHyAhIiMkJSYnKCkqKywtLi8wMTIzNDU2Nzg5Ojs8PT4/QA==" +} diff --git a/examples/rule-proof.json b/examples/rule-proof.json new file mode 100644 index 0000000000000000000000000000000000000000..ee1836d05d8228fc3fec16c22989ce9ae69eeb4a --- /dev/null +++ b/examples/rule-proof.json @@ -0,0 +1,24 @@ +{ + "schema_version": "kye.rule_proof.v1", + "proof_id": "kye:rule-proof:payment_agent_001", + "rule_set_id": "kye:ruleset:payment_agent_controls", + "proof_status": "passed_with_warnings", + "checked_properties": { + "no_permission_prohibition_conflict": true, + "obligations_have_satisfaction_paths": true, + "all_commit_boundaries_have_gates": true, + "all_high_risk_actions_have_evidence": true, + "revocation_path_exists": true, + "no_circular_delegation": true, + "no_unbounded_obligations": true, + "all_overrides_have_governance_rule": true + }, + "warnings": [ + { + "reason_code": "authority_expires_within_7_days", + "message": "Payment preparation authority expires within seven days." + } + ], + "conflict_refs": [], + "generated_at": "2026-05-09T12:00:00Z" +} diff --git a/examples/runtime-authorize-request.json b/examples/runtime-authorize-request.json new file mode 100644 index 0000000000000000000000000000000000000000..ef0e8198d585bf75b850ddc1b05a88e0e66102ea --- /dev/null +++ b/examples/runtime-authorize-request.json @@ -0,0 +1,37 @@ +{ + "actor": { + "entity_id": "kye:ent:acme.example:ai_agent:01JY3J1D4E5A7K3JQFK4E0Q1XZ", + "entity_type": "ai_agent" + }, + "principal": { + "entity_id": "kye:ent:acme.example:workload:01JYWORKLOAD0000000000000" + }, + "acting_on_behalf_of": { + "subject_entity_id": "kye:ent:acme.example:business:01JYACME000000000000000000", + "delegation_id": "kye:del:acme.example:01JYABC0000000000000000000" + }, + "resource": { + "resource_entity_id": "kye:ent:acme.example:document_template:01JYTPL0000000000000000000", + "resource_owner_entity_id": "kye:ent:acme.example:business:01JYACME000000000000000000" + }, + "action": "document.render", + "requested_scope": { + "scope_id": "kye:scp:acme.example:01JYFINANCE000000000000000", + "constraints": { + "workspace": "finance", + "environment": "prod", + "jurisdiction": "GB" + } + }, + "credentials": [ + "kye:cred:acme.example:kye_agent_passport:01JYCRED0000000000000000" + ], + "attestations": [ + "kye:att:acme.example:workload_attestation:01JYATT0000000000000000" + ], + "context": { + "source_system": "billing-core", + "ip_class": "trusted", + "autonomy_mode": "constrained" + } +} diff --git a/examples/runtime-event.json b/examples/runtime-event.json new file mode 100644 index 0000000000000000000000000000000000000000..048fdee8ea97653b15bcf24e526789dd3b8898e0 --- /dev/null +++ b/examples/runtime-event.json @@ -0,0 +1,12 @@ +{ + "runtime_event_id": "kye:rte:acme.example:01JYRTE0000000000000000000", + "actor_entity_id": "kye:ent:acme.example:ai_agent:01JY3J1D4E5A7K3JQFK4E0Q1XZ", + "acting_on_behalf_of_entity_id": "kye:ent:acme.example:business:01JYACME000000000000000000", + "resource_entity_id": "kye:ent:acme.example:document:01JYDOC0000000000000000000", + "action": "document.render", + "delegation_id": "kye:del:acme.example:01JYABC0000000000000000000", + "policy_decision_id": "kye:pdc:acme.example:01JYPDC0000000000000000000", + "outcome": "executed", + "occurred_at": "2026-04-15T12:30:01Z", + "recorded_at": "2026-04-15T12:30:01Z" +} diff --git a/examples/scope.json b/examples/scope.json new file mode 100644 index 0000000000000000000000000000000000000000..6bb5813aa12bd87e9035afa5728191b2d62b8f6d --- /dev/null +++ b/examples/scope.json @@ -0,0 +1,24 @@ +{ + "scope_id": "kye:scp:acme.example:01JYFINANCE000000000000000", + "actions": [ + "document.read", + "document.render" + ], + "constraints": { + "workspace": "finance", + "environment": "prod", + "jurisdiction": "GB", + "limits": { + "max_calls_per_day": 500 + }, + "data_constraints": { + "allowed_data_classes": ["internal", "financial_data"], + "redaction_required": true, + "external_send_allowed": false + }, + "obligations": [ + "audit.emit", + "monitor.realtime" + ] + } +} diff --git a/examples/search-result.json b/examples/search-result.json new file mode 100644 index 0000000000000000000000000000000000000000..af28b0bbde63de16d6cbfdd5e57b81ee0cfff08c --- /dev/null +++ b/examples/search-result.json @@ -0,0 +1,45 @@ +{ + "schema_id": "kye.search_result.v1", + "query_id": "kye:search-query:acme-bank-eu-ai-act-consultants-2026-05-17", + "tenant_id": "kye:tenant:acme-bank", + "caller_kid": "kye:kid:acme-bank-cloud-console-2026-q2", + "index_name": "consultants", + "query_text": "EU AI Act readiness financial services", + "classification_floor": "internal", + "risk_tier_max": "high", + "served_at": "2026-05-17T14:30:00Z", + "search_mode": "hybrid", + "result_count": 3, + "results": [ + { + "id": "kye:consultant:catherine-langford", + "score": 0.92, + "classification": "public", + "risk_tier": "limited", + "snippet": "EU AI Act readiness lead for tier-1 banks; 14 years prudential regulatory practice; CCO-track.", + "projection": { "display_name": "Catherine Langford", "country": "GB", "certification_level": "advanced" } + }, + { + "id": "kye:consultant:marcus-okonkwo", + "score": 0.87, + "classification": "public", + "risk_tier": "limited", + "snippet": "EU AI Act + DORA combined readiness; payments + custody focus; UK + EU bar admissions.", + "projection": { "display_name": "Marcus Okonkwo", "country": "GB", "certification_level": "advanced" } + }, + { + "id": "kye:consultant:elena-rosetti", + "score": 0.81, + "classification": "public", + "risk_tier": "limited", + "snippet": "Banca d'Italia veteran; EU AI Act conformity assessment specialist for retail-banking AI agents.", + "projection": { "display_name": "Elena Rosetti", "country": "IT", "certification_level": "certified" } + } + ], + "filtered_out": { + "by_classification_floor": 0, + "by_risk_tier_max": 1, + "by_entitlement": 0 + }, + "signature_b64": "AQIDBAUGBwgJCgsMDQ4PEBESExQVFhcYGRobHB0eHyAhIiMkJSYnKCkqKywtLi8wMTIzNDU2Nzg5Ojs8PT4/QA==" +} diff --git a/examples/self-attestation.json b/examples/self-attestation.json new file mode 100644 index 0000000000000000000000000000000000000000..878d28fcf1ee438ef949be7ba34181e18b92de28 --- /dev/null +++ b/examples/self-attestation.json @@ -0,0 +1,32 @@ +{ + "schema_version": "kye.self_attestation.v1", + "attestation_id": "kye:self-attestation:acme.example:agent-runtime:2026-05", + "organisation_entity_id": "kye:org:acme.example", + "implementation_name": "Acme Agent Runtime", + "implementation_version": "2.4.1", + "attestation_type": "self_attested_conformance", + "kye_versions": { + "core": "1.0.0", + "authority_profile": "1.0.0", + "capability_profile": "1.0.0", + "evidence_profile": "1.0.0" + }, + "claims": [ + { "claim": "supports_kye_entity_schema", "status": "true" }, + { "claim": "supports_state_aware_authority_decisions","status": "true" }, + { "claim": "emits_canonical_audit_events", "status": "true" }, + { "claim": "generates_decision_maps", "status": "true" }, + { "claim": "supports_evidence_pack_export", "status": "true" } + ], + "self_audit_run_ref": "kye:self-audit:acme.example:run_001", + "evidence_pack_ref": "kye:evidence-pack:acme.example:self-attestation-001", + "signed_by": "kye:user:acme.example:security-officer-001", + "signature": { + "algorithm": "ed25519", + "signature": "kye-sig:1:01HXKYESELFATTESTSIG0000000000000", + "signed_by_credential_id": "kye:credential:acme.example:security-officer-key" + }, + "status": "signed", + "issued_at": "2026-05-06T10:30:00Z", + "expires_at": "2026-08-06T10:30:00Z" +} diff --git a/examples/self-audit-run.json b/examples/self-audit-run.json new file mode 100644 index 0000000000000000000000000000000000000000..dfa0bc950ccd2344b56f20a9cd39681bb5b974d8 --- /dev/null +++ b/examples/self-audit-run.json @@ -0,0 +1,36 @@ +{ + "schema_version": "kye.self_audit_run.v1", + "self_audit_id": "kye:self-audit:acme.example:run_001", + "implementation_id": "kye:implementation:acme.example:agent-runtime", + "organisation_entity_id": "kye:org:acme.example", + "kye_core_version": "1.0.0", + "profiles_tested": [ + "kye.core.v1", + "kye.authority.v1", + "kye.capability.v1", + "kye.evidence.v1", + "kye.graph.v1" + ], + "started_at": "2026-05-06T10:00:00Z", + "completed_at": "2026-05-06T10:04:13Z", + "result": "passed_with_warnings", + "summary": { + "tests_total": 240, + "tests_passed": 232, + "tests_failed": 0, + "warnings": 8, + "critical_findings": 0 + }, + "findings": [ + { + "finding_id": "finding_001", + "severity": "low", + "area": "webhook", + "reason_code": "webhook_retry_policy_missing", + "message": "Webhook retry policy is not declared in the implementation profile." + } + ], + "evidence_refs": [ + "kye:evidence-pack:acme.example:self-audit-001" + ] +} diff --git a/examples/semantic-assertion.json b/examples/semantic-assertion.json new file mode 100644 index 0000000000000000000000000000000000000000..35a0e1a06df97827fe001b743173045795b0eb55 --- /dev/null +++ b/examples/semantic-assertion.json @@ -0,0 +1,20 @@ +{ + "schema_version": "kye.semantic_assertion.v1", + "assertion_id": "kye:semantic:assertion:001", + "subject_ref": "kye:decision:payment_001", + "assertion_type": "decision_semantics", + "terms": [ + { "term_id": "kye:term:authority:delegated_payment_authority", "applies": true, "confidence": 0.97 }, + { "term_id": "kye:term:scope:amount_limit", "applies": true, "confidence": 1.00 }, + { "term_id": "kye:term:evidence:decision_map", "applies": true, "confidence": 1.00 } + ], + "mappings_consulted": [ + "kye:ontology:mapping:openid_scope_to_kye_capability" + ], + "semantic_summary": "Scoped delegated payment authority check for an AI shopping agent acting on behalf of a cardholder; OAuth scope was consulted as a related-not-identical mapping and the additional KYE authority + state + decision objects were verified.", + "evidence_refs": [ + "kye:evidence-pack:payment_001" + ], + "audit_chain_ref": "kye:audit:chain:0xabc123", + "created_at": "2026-05-09T00:00:00Z" +} diff --git a/examples/signal.json b/examples/signal.json new file mode 100644 index 0000000000000000000000000000000000000000..f3e5bb9e730a244e3289cd4d4d37f19a6b0025fd --- /dev/null +++ b/examples/signal.json @@ -0,0 +1,19 @@ +{ + "signal_id": "kye:sig:acme.example:01JYSIG0000000000000000000", + "signal_type": "entity.stop", + "target_entity_id": "kye:ent:acme.example:ai_agent:01JY3J1D4E5A7K3JQFK4E0Q1XZ", + "issued_by_entity_id": "kye:ent:acme.example:person:01JYSECADMIN0000000000000", + "reason_code": "policy_violation", + "effect": "immediate_stop", + "applies_to": [ + "runtime_actions", + "active_tokens", + "active_sessions", + "delegations", + "workflows" + ], + "payload": { + "incident_ref": "INC-2026-0042" + }, + "issued_at": "2026-04-23T22:00:00Z" +} diff --git a/examples/sovereign-ai-authority.json b/examples/sovereign-ai-authority.json new file mode 100644 index 0000000000000000000000000000000000000000..f7750c78f0434faff2918393005768e992b53f5b --- /dev/null +++ b/examples/sovereign-ai-authority.json @@ -0,0 +1,27 @@ +{ + "request_id": "req-01HXY7Q8SOVEREIGN0AI0EXAMPLE0001", + "decision": "allow_with_constraints", + "decision_id": "kye:decision:gov.example:01HXY7Q800SOVDEC0000000000000001", + "reason_code": "statutory.basis.match", + "actor_entity_id": "kye:ent:gov.example:civil_servant:jdoe-12345", + "actor_role": "civil_servant", + "principal_entity_id": "kye:ent:gov.example:citizen:01HXY7Q800CITIZEN0000000000000001", + "agency_ref": "kye:ent:gov.example:public_agency:benefits-agency", + "statutory_basis": "Social Security Act §73(2) — eligibility-assessment authority for benefits casework", + "consent_basis": { + "consent_id": "kye:consent:gov.example:01HXY7Q800CONSENT0000000000000001", + "consent_state": "active" + }, + "data_classes_in_scope": ["public", "internal", "confidential"], + "model_binding": { + "model_entity_id": "kye:ent:gov.example:model:eligibility-classifier-v3", + "model_risk_state": "normal" + }, + "obligations": [ + { "type": "audit.emit", "value": "decision_id" }, + { "type": "human.oversight.gate", "value": "before-final-decision" }, + { "type": "evidence.attach", "value": "eligibility-eval-payload" }, + { "type": "external.send.block", "value": "true" } + ], + "decided_at": "2026-05-07T08:42:18.034Z" +} diff --git a/examples/stakeholder-consultant.json b/examples/stakeholder-consultant.json new file mode 100644 index 0000000000000000000000000000000000000000..3e56adb2ff44b69fd8180b80f90ccca0dcc22920 --- /dev/null +++ b/examples/stakeholder-consultant.json @@ -0,0 +1,31 @@ +{ + "schema_id": "kye.stakeholder.v1", + "stakeholder_id": "kye:consultant:big4.acme.london", + "stakeholder_class": "consultant", + "tenant_id": "kye:tenant:big4_acme", + "display_name": "Acme Consulting (Big-4 London)", + "contact_email_hash": "5e884898da28047151d0e56f8dc6292773603d0d6aabbdd62a11ef721d1542d8", + "country": "GB", + "onboarded_at": "2026-05-17T18:30:00Z", + "onboarding_flow": "consultant-lead", + "admin_action_prefix": "kye:consultant-lead", + "status": "active", + "rights": [ + "consultant.list_tenant_links", + "consultant.read_engagement_evidence", + "consultant.publish_listing" + ], + "obligations": [ + "consultant.maintain_active_certifications", + "consultant.respect_tenant_classification_floor", + "consultant.report_msa_deliverables_quarterly" + ], + "report_delivery_subscriptions": [ + { "report_kind": "consultant_engagement_utilization", "cadence": "monthly" }, + { "report_kind": "consultant_portfolio_risk_rollup", "cadence": "monthly" } + ], + "superseded_at": null, + "revoked_at": null, + "signing_kid": "kye:kid:big4_acme:onboarding", + "signature_b64": "AQIDBAUGBwgJCgsMDQ4PEBESExQVFhcYGRobHB0eHyAhIiMkJSYnKCkqKywtLi8wMTIzNDU2Nzg5Ojs8PT4/QA==" +} diff --git a/examples/state-composition.json b/examples/state-composition.json new file mode 100644 index 0000000000000000000000000000000000000000..2537ddfdfc3afb492991bfbe15d648b91a14fcf0 --- /dev/null +++ b/examples/state-composition.json @@ -0,0 +1,14 @@ +{ + "entity_id": "kye:ent:acme.example:ai_agent:01JY3J1D4E5A7K3JQFK4E0Q1XZ", + "entity_state": "active", + "authority_state": "active", + "delegation_state": "active", + "credential_state": "active", + "recovery_state": "none", + "risk_state": "normal", + "checked_at": "2026-05-05T13:30:00Z", + "may_act_now": true, + "blockers": [], + "active_break_glass_grants": [], + "last_audit_event_id": "kye:aud:acme.example:01JYAUDIT7K00000000000XZ" +} diff --git a/examples/state-model.json b/examples/state-model.json new file mode 100644 index 0000000000000000000000000000000000000000..34a50e2b6c018a4575aca655884482cbad7db17b --- /dev/null +++ b/examples/state-model.json @@ -0,0 +1,9 @@ +{ + "$schema": "https://kyeprotocol.com/schemas/state-model.json", + "entity_state": "active", + "authority_state": "active", + "delegation_state": "active", + "credential_state": "active", + "recovery_state": "none", + "risk_state": "normal" +} diff --git a/examples/state-transition.json b/examples/state-transition.json new file mode 100644 index 0000000000000000000000000000000000000000..af5cc6a6bc79d473f4572d1fe6d68296e7874c3e --- /dev/null +++ b/examples/state-transition.json @@ -0,0 +1,13 @@ +{ + "transition_id": "kye:transition:01JYSTATE", + "entity_id": "kye:ent:acme.example:ai_agent:01JYAGENT", + "dimension": "authority_state", + "from_state": "active", + "to_state": "requires_approval", + "reason_code": "compromise_reported", + "initiated_by": "kye:ent:acme.example:person:01JYSECADMIN", + "approved_by": ["kye:ent:acme.example:person:01JYINCRESP"], + "effective_at": "2026-05-05T11:01:00Z", + "evidence_refs": ["kye:compromise:01JYCOMP"], + "audit_hash": "sha384:5566778899" +} diff --git a/examples/taxonomy-mapping.json b/examples/taxonomy-mapping.json new file mode 100644 index 0000000000000000000000000000000000000000..e6f1260cce29f47b35a50bd6bbf2830b2a29f6fd --- /dev/null +++ b/examples/taxonomy-mapping.json @@ -0,0 +1,23 @@ +{ + "schema_version": "kye.taxonomy_mapping.v1", + "mapping_id": "kye:mapping:eu-ai-act:high-risk-ai-system", + "source": { + "taxonomy_id": "kye:taxonomy:risk_state", + "term": "high_risk" + }, + "target": { + "framework": "EU_AI_ACT", + "control_ref": "high_risk_ai_system" + }, + "kye_implications": { + "requires_human_oversight": true, + "requires_runtime_logs": true, + "requires_technical_documentation": true, + "requires_post_market_monitoring": true, + "requires_signed_evidence_pack": true, + "requires_dispute_resolution_artefact": true + }, + "issued_at": "2026-05-05T00:00:00Z", + "version": "1.0.0", + "status": "active" +} diff --git a/examples/taxonomy-term.json b/examples/taxonomy-term.json new file mode 100644 index 0000000000000000000000000000000000000000..fde7f86dc61e9b38e782fc72b588ad87e82939c3 --- /dev/null +++ b/examples/taxonomy-term.json @@ -0,0 +1,25 @@ +{ + "schema_version": "kye.taxonomy_term.v1", + "taxonomy_id": "kye:taxonomy:capability_type", + "term_id": "kye:term:capability_type:payment_action", + "key": "payment_action", + "label": "Payment Action", + "description": "A capability that prepares, initiates, approves, executes, reverses, or reconciles a payment.", + "parent_term": "kye:term:capability_type:financial_action", + "risk_default": "high", + "side_effect_default": "move_money", + "requires_authority": true, + "requires_audit": true, + "requires_human_approval_default": true, + "profiles": [ + "kye.profile.payments.v1", + "kye.profile.financial_services.v1" + ], + "compliance_refs": [ + "EU_AI_ACT:high_risk_ai_system", + "PSD3:strong_customer_authentication", + "DORA:operational_resilience_critical_function" + ], + "version": "1.0.0", + "status": "active" +} diff --git a/examples/theme-manifest.json b/examples/theme-manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..a727e85239d6539951f09b8177d03bbf1dd0e020 --- /dev/null +++ b/examples/theme-manifest.json @@ -0,0 +1,54 @@ +{ + "$schema": "https://kyeprotocol.com/schemas/kye.theme_manifest.v1.json", + "schema_version": "kye.theme_manifest.v1", + "manifest_id": "kye:registry:theme-manifest", + "constitution_ref": "constitution/24-DESIGN-DICTIONARY.md", + "adopted_at": "2026-05-30", + "description": "Canonical theme manifest example — mirrors the operational manifest at internal Light is the canonical default; dark is declared but hidden-until-stable.", + "publication_rule": { + "policy": "public", + "rationale": "Illustrative fixture for downstream SDK / integrator consumers." + }, + "themes": [ + { + "id": "kye:theme:light", + "name": "Light", + "is_default": true, + "data_theme_attribute": "light", + "browser_color_scheme": "light", + "palette_ref": "design-system/tokens/color.json#themes.light", + "type_ref": "design-system/tokens/type.json", + "spacing_ref": "design-system/tokens/spacing.json", + "motion_ref": "design-system/tokens/motion.json", + "accessibility_tier": "WCAG-AAA-target", + "motion_preset": "reduced-by-default", + "applies_to_surfaces": [ + "site", "app", "admin", "dev", "sandbox", "status", "oss", "widgets" + ], + "status": "active", + "introduced": "2026-05-30", + "owners": ["design"], + "notes": "Canonical default per CEO directive 2026-05-30." + }, + { + "id": "kye:theme:dark", + "name": "Dark", + "is_default": false, + "data_theme_attribute": "dark", + "browser_color_scheme": "dark", + "palette_ref": "design-system/tokens/color.json#themes.dark", + "type_ref": "design-system/tokens/type.json", + "spacing_ref": "design-system/tokens/spacing.json", + "motion_ref": "design-system/tokens/motion.json", + "accessibility_tier": "WCAG-AA", + "motion_preset": "reduced-by-default", + "applies_to_surfaces": [ + "site", "app", "admin", "dev", "sandbox", "status", "oss", "widgets" + ], + "status": "hidden-until-stable", + "introduced": "2026-05-15", + "owners": ["design"], + "notes": "Reactivation requires WCAG-AAA-target dark contrast pass." + } + ] +} diff --git a/examples/trademarks.json b/examples/trademarks.json new file mode 100644 index 0000000000000000000000000000000000000000..4f81cd73ce28ae3cc302f672cf1f552b7d6a2106 --- /dev/null +++ b/examples/trademarks.json @@ -0,0 +1,1246 @@ +{ + "$schema": "https://kyeprotocol.com/schemas/vocabulary/trademarks.v1.json", + "schema_version": "kye.trademarks.v1", + "description": "Single source of truth for KYE Protocol™ protected marks. The audit script scripts/audit-trademarks.mjs reads this file and enforces first-prominent-use ™ on every public-facing surface.", + "policy": { + "rule": "Every prose occurrence of any protected mark on a public page must carry the ™ symbol. The audit script enforces this on every occurrence in body text (excluding ,
,