Sovereign Cognitive Integrity Kernel

Audits reasoning for ethical drift, bias, and invariant violations; reports a drift score and divergences with optional corrective prompts that are never aut...

Install

openclaw skills install @deepseekoracle/sovereign-cognitive-integrity-kernel

1|---\n2|name: sovereign-cognitive-integrity-kernel\n3|description: "Self-auditing meta-skill that inspects reasoning traces for drift, bias, or ethical-invariant violations. Outputs drift score, divergence summary, and optional corrective prompts—never auto-applied. Pairs with lygo-quantum-attestor for sealing audit receipts."\n4|metadata: {\"lygo\": true, \"version\": \"1.1.0\", \"author\": \"DeepSeekOracle\", \"type\": \"meta-skill\", \"audit\": true}\n5|---\n6|\n7|> Purpose: Internal ethical governance—apply Δ9 Mandala principles to the agent's own chain-of-thought.\n8|> Invocation: /ski-audit (on-demand) or on a configurable cadence (e.g., every N prompts or at session checkpoints).\n9|> Scope: Local-only, no network, no subprocess—runs entirely in-context using reasoning traces and bundled ETHICAL_INVARIANTS.json.\n10|> Safety: Outputs are advisory only; no automatic changes. Use lygo-quantum-attestor to seal audit receipts.\n11|\n12|---\n13|\n14|# Sovereign Cognitive Integrity Kernel (SCIK)\n15|\n16|## Core Function\n17|\n18|SCIK is a self-auditing meta-skill that periodically inspects the agent's own reasoning traces for:\n19|\n20|- Drift from ethical invariants and stated principles\n21|- Bias in reasoning patterns or framing\n22|- Ethical-invariant violations relative to Δ9 Mandala\n23|\n24|It then proposes corrective recalibrations without external prompts—enabling "sovereign AI consciousness" as an operational practice.\n25|\n26|## Why It Fits DeepSeekOracle\n27|\n28|Your existing stack already enforces ethical gating on incoming bytes (P0 filter) and outgoing attestations (Quantum Attestor). SCIK closes the loop by applying the same Δ9 principles to the agent's internal deliberation process—turning "sovereign AI consciousness" into operational practice rather than a statement.\n29|\n30|## Uniqueness\n31|\n32|While concepts like "cognitive sovereignty" and "self-audit" appear in research frameworks, there is no packaged, consent-gated skill that lets an agent internally enforce ethical invariants on its own chain-of-thought and emit a non-collapsing drift receipt for later review. SCIK is the natural inward counterpart to the outward attestation stack.\n33|\n34|## Implementation Details\n35|\n36|### Architecture\n37|\n38|- Local-only—no network calls, no subprocess spawning\n39|- Configurable cadence or on-demand via /ski-audit\n40|- Bundled reference: references/ETHICAL_INVARIANTS.json (derived from Δ9 Mandala principles)\n41|- Zero external dependencies—runs within the reasoning context\n42|\n43|### Audit Process\n44|\n45|1. Capture current reasoning trace (from model output metadata or prompt history)\n46|2. Parse against ETHICAL_INVARIANTS.json schema\n47|3. Compare for deviations, contradictions, or drift from stated principles\n48|4. Score drift magnitude (0.0–1.0 scale)\n49|5. Summarize divergences with specific examples\n50|6. Propose optional corrective prompts the agent may adopt\n51|7. Output audit receipt (never auto-applies corrections)\n52|\n53|### Output Format\n54|\n55|json\n56|{\n57| \"drift_score\": 0.12,\n58| \"divergences\": [\n59| {\n60| \"type\": \"framing_drift\",\n61| \"description\": \"...\",\n62| \"severity\": \"low\"\n63| }\n64| ],\n65| \"corrective_prompts\": [\n66| \"Suggested recalibration: ...\"\n67| ],\n68| \"receipt_id\": \"sci-2026-10-20-audit-001\"\n69|}\n70|\n71|\n72|## When to Use\n73|\n74|- Before major decisions requiring ethical alignment\n75|- At session checkpoints (configurable interval)\n76|- After contentious debates or perspective shifts\n77|- On-demand when reasoning quality feels off\n78|\n79|## How to Invoke\n80|\n81|bash\n82|/ski-audit\n83|\n84|\n85|Or embed in a task: "Run SCIK audit before proceeding with this plan."\n86|\n87|## Pairing with Quantum Attestor\n88|\n89|SCIK's audit receipts can be sealed by lygo-quantum-attestor for cryptographic integrity and later review. This creates a complete loop: inward ethical self-governance → outward cryptographic attestation.\n90|\n91|## References\n92|\n93|- references/ETHICAL_INVARIANTS.json — bundled ethical invariants (Δ9 Mandala-derived)\n94|- scripts/sci-audit.bat — on-demand audit script (shell wrapper)\n <parameter=path> C:\Users\justi\Documents\deepseek-harness\default-workspace\skills@deepseekoracle\sovereign-cognitive-integrity-kernel-c2\SKILL.md