Loading Lion artifact…
Inspect Lion Program Source (JSON)
[
"begin",
[
"relation",
"pipeline",
[
"id",
"name",
"data_class",
"region",
"encrypted",
"has_baa",
"human_review"
],
{
"certified": true,
"description": "Enterprise data & AI pipelines subject to GDPR, HIPAA, and EU AI Act",
"key": [
"id"
]
}
],
[
"relation",
"ctrl",
[
"k",
"v"
],
{
"key": [
"k"
]
}
],
[
"fact",
[
"pipeline",
"eu_crm",
"EU Customer Sync",
"eu_pii",
"us-east",
true,
true,
true
],
[
"pipeline",
"med_triage",
"Clinical Triage LLM",
"phi_health",
"us-east",
true,
false,
false
],
[
"pipeline",
"credit_ai",
"Auto Credit Scorer",
"high_risk_ai",
"eu-central",
true,
true,
false
],
[
"pipeline",
"ledger_eu",
"EU Billing Vault",
"eu_pii",
"eu-central",
true,
true,
true
],
[
"ctrl",
"fix_eu_region",
false
],
[
"ctrl",
"sign_baa",
false
],
[
"ctrl",
"add_hitl",
false
],
[
"ctrl",
"inject_deadlock",
false
],
[
"ctrl",
"selected",
"med_triage"
]
],
[
"relation",
"violation",
[
"pipe_id",
"law",
"fine_m",
"reason"
]
],
[
"rule",
[
"violation",
"?id",
"GDPR Art. 44",
2,
"EU PII stored outside eu-central without residency routing"
],
[
"pipeline",
"?id",
"?_n",
"eu_pii",
"?reg",
"?_e",
"?_b",
"?_h"
],
[
"not",
[
"=",
"?reg",
"eu-central"
]
]
],
[
"rule",
[
"violation",
"?id",
"HIPAA 164.502",
1,
"PHI processed by vendor pipeline without signed Business Associate Agreement"
],
[
"pipeline",
"?id",
"?_n",
"phi_health",
"?_r",
"?_e",
false,
"?_h"
]
],
[
"rule",
[
"violation",
"?id",
"EU AI Act Art. 14",
1,
"High-risk AI / clinical decision pipeline lacks mandatory human oversight"
],
[
"pipeline",
"?id",
"?_n",
"?dc",
"?_r",
"?_e",
"?_b",
false
],
[
"or",
[
"=",
"?dc",
"high_risk_ai"
],
[
"=",
"?dc",
"phi_health"
]
]
],
[
"define",
"view",
[
"lambda",
[],
[
"begin",
[
"define",
"fix_eu",
[
"array/head",
[
"find",
"?v",
[
"ctrl",
"fix_eu_region",
"?v"
]
]
]
],
[
"define",
"sign_baa",
[
"array/head",
[
"find",
"?v",
[
"ctrl",
[
"quote",
"sign_baa"
],
"?v"
]
]
]
],
[
"define",
"add_hitl",
[
"array/head",
[
"find",
"?v",
[
"ctrl",
[
"quote",
"add_hitl"
],
"?v"
]
]
]
],
[
"define",
"deadlock",
[
"array/head",
[
"find",
"?v",
[
"ctrl",
"inject_deadlock",
"?v"
]
]
]
],
[
"define",
"sel",
[
"array/head",
[
"find",
"?v",
[
"ctrl",
"selected",
"?v"
]
]
]
],
[
"define",
"eu_reg",
[
"cond",
[
"fix_eu",
"eu-central"
],
[
"else",
"us-east"
]
]
],
[
"define",
"viol_rows",
[
"assuming",
[
"fact",
[
"pipeline",
"eu_crm",
"EU Customer Sync",
"eu_pii",
"eu_reg",
true,
true,
true
],
[
"pipeline",
"med_triage",
"Clinical Triage LLM",
"phi_health",
"us-east",
true,
"sign_baa",
"add_hitl"
],
[
"pipeline",
"credit_ai",
"Auto Credit Scorer",
"high_risk_ai",
"eu-central",
true,
true,
"add_hitl"
]
],
[
"find",
{
"fine": [
"string/join",
[
"array/make",
"$",
[
"number/toString",
"?f"
],
"M"
],
""
],
"fine_num": "?f",
"id": "?id",
"law": "?law",
"pipeline": "?name",
"reason": "?rsn"
},
[
"and",
[
"violation",
"?id",
"?law",
"?f",
"?rsn"
],
[
"pipeline",
"?id",
"?name",
"?_dc",
"?_r",
"?_e",
"?_b",
"?_h"
]
]
]
]
],
[
"define",
"total_fine_m",
[
"array/reduce",
"viol_rows",
0,
[
"lambda",
[
"acc",
"r"
],
[
"number/add",
"acc",
[
"object/get",
"r",
"fine_num"
]
]
]
]
],
[
"define",
"policy_sat",
[
"proof/sat",
[
"cond",
[
"deadlock",
[
"quote",
[
"and",
"eu_pii",
[
"implies",
"eu_pii",
"store_in_eu"
],
[
"implies",
"eu_pii",
"us_only_vendor"
],
[
"implies",
"us_only_vendor",
[
"not",
"store_in_eu"
]
]
]
]
],
[
"else",
[
"quote",
[
"and",
"eu_pii",
[
"implies",
"eu_pii",
"store_in_eu"
],
[
"implies",
"store_in_eu",
"kms_encrypted"
],
"human_override"
]
]
]
]
]
],
[
"define",
"policy_ok",
[
"object/get",
"policy_sat",
"satisfiable"
]
],
[
"define",
"zero_viols",
[
"=",
[
"array/length",
"viol_rows"
],
0
]
],
[
"define",
"nodes",
[
"array/make",
{
"group": "pipeline",
"id": "eu_crm",
"label": "EU Customer Sync",
"subtitle": "eu_reg",
"tone": [
"cond",
[
"fix_eu",
"ok"
],
[
"else",
"error"
]
]
},
{
"group": "pipeline",
"id": "med_triage",
"label": "Clinical Triage LLM",
"subtitle": "HIPAA + AI Act",
"tone": [
"cond",
[
[
"boolean/and",
"sign_baa",
"add_hitl"
],
"ok"
],
[
"else",
"error"
]
]
},
{
"group": "pipeline",
"id": "credit_ai",
"label": "Auto Credit Scorer",
"subtitle": "EU AI Act",
"tone": [
"cond",
[
"add_hitl",
"ok"
],
[
"else",
"warn"
]
]
},
{
"group": "gate",
"id": "gdpr_gate",
"label": "GDPR + HIPAA + AI Act",
"subtitle": "executable legal rules",
"tone": [
"cond",
[
"zero_viols",
"ok"
],
[
"else",
"accent"
]
]
}
]
],
[
"define",
"edges",
[
"array/make",
{
"from": "eu_crm",
"label": [
"cond",
[
"fix_eu",
"compliant"
],
[
"else",
"GDPR Art. 44"
]
],
"to": "gdpr_gate",
"tone": [
"cond",
[
"fix_eu",
"ok"
],
[
"else",
"error"
]
]
},
{
"from": "med_triage",
"label": [
"cond",
[
[
"boolean/and",
"sign_baa",
"add_hitl"
],
"compliant"
],
[
"else",
"HIPAA / AI Act"
]
],
"to": "gdpr_gate",
"tone": [
"cond",
[
[
"boolean/and",
"sign_baa",
"add_hitl"
],
"ok"
],
[
"else",
"error"
]
]
},
{
"from": "credit_ai",
"label": [
"cond",
[
"add_hitl",
"compliant"
],
[
"else",
"AI Act Art. 14"
]
],
"to": "gdpr_gate",
"tone": [
"cond",
[
"add_hitl",
"ok"
],
[
"else",
"warn"
]
]
}
]
],
[
"define",
"why_gdpr",
[
"why",
[
"violation",
"eu_crm",
"GDPR Art. 44",
2,
"EU PII stored outside eu-central without residency routing"
]
]
],
[
"ui/stack",
{
"gap": "lg"
},
[
"ui/hero",
{
"badges": [
"quote",
[
{
"label": "Executable Compliance",
"tone": "accent"
},
{
"label": "SAT Deadlock Detector",
"tone": "ok"
},
{
"label": "Auditor why() Proof",
"tone": "ok"
}
]
],
"eyebrow": "Lion-Only Proof 04 · Regulatory & Legal Tech",
"subtitle": "Turn static GDPR, HIPAA, and EU AI Act PDFs into executable Datalog rules with real-time fine exposure, auditor-ready why() traces, and a CDCL SAT checker that catches Catch-22 policy deadlocks.",
"title": "Multi-Jurisdiction Compliance & Policy Deadlock Prover"
}
],
[
"ui/grid",
{
"cols": 4,
"gap": "md"
},
[
"ui/metric",
{
"caption": "Active statutory violations derived live",
"label": "Open Violations",
"tone": [
"cond",
[
"zero_viols",
"ok"
],
[
"else",
"error"
]
],
"value": [
"array/length",
"viol_rows"
]
}
],
[
"ui/metric",
{
"caption": "Estimated statutory penalty exposure",
"label": "Fine Exposure",
"tone": [
"cond",
[
"zero_viols",
"ok"
],
[
"else",
"error"
]
],
"value": [
"string/join",
[
"array/make",
"$",
[
"number/toString",
"total_fine_m"
],
"M"
],
""
]
}
],
[
"ui/metric",
{
"caption": [
"cond",
[
"policy_ok",
"All statutes jointly satisfiable"
],
[
"else",
"Catch-22 contradiction proven UNSAT!"
]
],
"label": "SAT Policy Consistency",
"tone": [
"cond",
[
"policy_ok",
"ok"
],
[
"else",
"error"
]
],
"value": [
"cond",
[
"policy_ok",
"CONSISTENT"
],
[
"else",
"DEADLOCK (UNSAT)"
]
]
}
],
[
"ui/metric",
{
"caption": "Ready for automated SOC2 / GDPR sign-off",
"label": "Launch Readiness",
"tone": [
"cond",
[
[
"boolean/and",
"zero_viols",
"policy_ok"
],
"ok"
],
[
"else",
"warn"
]
],
"value": [
"cond",
[
[
"boolean/and",
"zero_viols",
"policy_ok"
],
"APPROVED"
],
[
"else",
"BLOCKED"
]
]
}
]
],
[
"ui/section",
{
"badge": [
"cond",
[
[
"boolean/and",
"zero_viols",
"policy_ok"
],
"Audit Ready"
],
[
"else",
"Remediation Needed"
]
],
"step": "01",
"subtitle": "Toggle real technical & legal controls to watch violations and statutory fine exposure drop to $0 — or inject a Catch-22 vendor conflict to see CDCL SAT prove an impossible policy deadlock.",
"title": "Interactive Compliance Controls & Catch-22 Test",
"tone": [
"cond",
[
[
"boolean/and",
"zero_viols",
"policy_ok"
],
"ok"
],
[
"else",
"error"
]
]
},
[
"ui/card",
[
"ui/grid",
{
"cols": 2,
"gap": "md"
},
[
"ui/toggle",
{
"checked": "fix_eu",
"label": "Route EU Customer Sync to eu-central (satisfies GDPR Art. 44)",
"onChange": [
"quote",
[
"fact",
[
"ctrl",
"fix_eu_region",
"value"
]
]
]
}
],
[
"ui/toggle",
{
"checked": "sign_baa",
"label": "Execute Vendor BAA on Clinical Triage LLM (satisfies HIPAA 164.502)",
"onChange": [
"quote",
[
"fact",
[
"ctrl",
"sign_baa",
"value"
]
]
]
}
],
[
"ui/toggle",
{
"checked": "add_hitl",
"label": "Enable Human-in-the-Loop Override (satisfies EU AI Act Art. 14)",
"onChange": [
"quote",
[
"fact",
[
"ctrl",
"add_hitl",
"value"
]
]
]
}
],
[
"ui/toggle",
{
"checked": "deadlock",
"label": "Simulate Catch-22: Mandate US-only LLM vendor for EU PII (proves SAT Deadlock)",
"onChange": [
"quote",
[
"fact",
[
"ctrl",
"inject_deadlock",
"value"
]
]
]
}
]
]
],
[
"cond",
[
[
"boolean/not",
"policy_ok"
],
[
"ui/alert",
{
"title": "Catch-22 Policy Deadlock Proven UNSAT by CDCL SAT",
"tone": "error"
},
"No architecture can simultaneously satisfy EU residency (store_in_eu) and a US-only vendor mandate (not store_in_eu). Lion emitted a kernel-verified RUP refutation below."
]
]
],
[
"ui/graph",
{
"edges": "edges",
"height": 230,
"layout": "layered",
"nodes": "nodes",
"onSelect": [
"quote",
[
"fact",
[
"ctrl",
"selected",
"value"
]
]
],
"selected": "sel",
"title": "Data Pipeline -> Regulatory Compliance Gate"
}
]
],
[
"ui/section",
{
"step": "02",
"subtitle": "Audit every active violation with statutory citation and fine exposure alongside the CDCL SAT policy consistency certificate.",
"title": "Active Violations & SAT Policy Certificate"
},
[
"ui/split",
{
"gap": "md",
"ratio": "3:2"
},
[
"cond",
[
"zero_viols",
[
"ui/alert",
{
"title": "Zero Active Regulatory Violations",
"tone": "ok"
},
"All 4 enterprise data & AI pipelines satisfy GDPR Art. 44, HIPAA 164.502, and EU AI Act Art. 14."
]
],
[
"else",
[
"ui/table",
{
"columns": [
"quote",
[
{
"key": "pipeline",
"label": "Pipeline"
},
{
"key": "law",
"label": "Statute"
},
{
"key": "fine",
"label": "Exposure"
},
{
"key": "reason",
"label": "Finding"
}
]
],
"onSelect": [
"quote",
[
"fact",
[
"ctrl",
"selected",
"value"
]
]
],
"rowKey": "id",
"rows": "viol_rows",
"selected": "sel",
"title": "Derived Regulatory Violations (click row to focus pipeline)"
}
]
]
],
[
"ui/proof",
{
"summary": [
"cond",
[
"policy_ok",
"SAT proved a valid compliant deployment exists satisfying all active jurisdiction statutes simultaneously."
],
[
"else",
"Kernel-verified RUP UNSAT proof certifying a Catch-22 contradiction between EU residency and US-only vendor mandate."
]
],
"title": "Policy Satisfiability Check (proof/sat)",
"valid": [
"cond",
[
"policy_ok",
true
],
[
"else",
[
"proof/valid?",
[
"object/get",
"policy_sat",
"proof"
]
]
]
]
},
"policy_sat"
]
],
[
"ui/accordion",
{
"badge": "why(GDPR)",
"open": false,
"subtitle": "Exact Datalog proof explaining why EU Customer Sync triggered GDPR Art. 44",
"title": "Inspect Auditor-Ready Provenance Trace"
},
[
"ui/why",
{
"title": "GDPR Art. 44 Derivation"
},
"why_gdpr"
]
]
]
]
]
],
{
"persist": true
}
],
[
"view"
]
]