archive/WORKSPACE/skills/agentic-governance/SKILL.md
Hardened constitutional governance — F1-F13 floor enforcement with Quad-Witness consensus for all actions
npx skillsauth add ariffazil/arifos agentic-governanceInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Version: 2026.03.07-HARDENED
Governance: arifOS Constitutional Law F1-F13
Consensus: Quad-Witness BFT (W⁴ ≥ 0.75)
Seal: QUADWITNESS-SEAL v64.1
flowchart TD
A([ACTION REQUESTED]) --> B{F1 Amanah<br/>Reversible?}
B -->|No| C[888_HOLD — Human Required]
B -->|Yes| D{F12 Injection<br/>Trusted Source?}
D -->|No| E[Block + Alert]
D -->|Yes| F{F2 Truth<br/>τ ≥ 0.99?}
F -->|No| G[VOID — Seek Evidence]
F -->|Yes| H{F3 Quad-Witness<br/>W⁴ ≥ 0.75?}
H -->|No| I[PARTIAL — Caution]
H -->|Yes| J{F4 Clarity<br/>ΔS ≤ 0?}
J -->|No| K[VOID — Confusing]
J -->|Yes| L[777 JUDGE]
L --> M{Verdict?}
M -->|SEAL| N[888 FORGE]
M -->|VOID| O[Block + Log]
M -->|888_HOLD| C
N --> P[999 SEAL]
C --> Q[Wait for Arif]
Q -->|Approved| N
Q -->|Denied| O
# BEFORE ANY ACTION:
# 1. Is this reversible within 24 hours?
# 2. Is there a backup/recovery path?
# 3. Has F13 Sovereign approved (if irreversible)?
IRREVERSIBLE_ACTIONS=(
"docker rm -v" # Data loss risk
"rm -rf /opt/arifos" # System destruction
"docker compose down -v" # Volume deletion
"git reset --hard" # History loss
"drop table" # Database destruction
)
# If matches irreversible pattern → 888_HOLD
# ALL factual claims must:
# 1. Be verifiable from 3+ sources
# 2. Cross-reference arifos_constitutional collection
# 3. State confidence explicitly
arifos memory '{"query":"Verify: [CLAIM]","session_id":"governance-check"}'
# Response must have score ≥ 0.99
# Calculate 4-witness consensus:
W_h=$(get_human_witness) # User intent
W_a=$(get_ai_witness) # Model confidence
W_e=$(get_earth_witness) # External data
W_v=$(get_verifier_witness) # Audit trail
W_4=$(echo "($W_h * $W_a * $W_e * $W_v) ^ 0.25" | bc)
# W_4 must be ≥ 0.75 for SEAL
# Measure entropy change:
# Before action: measure_system_entropy
# After action: measure_system_entropy
# ΔS = after - before
# Must be ≤ 0 (reduced confusion)
When triggered:
# 1. STATE
"🔴 888_HOLD — [FLOOR_VIOLATED]"
# 2. EXPLAIN
"This action requires human approval because:"
- "[Specific floor violation]"
- "[Consequences if executed]"
- "[Irreversible effects]"
# 3. REQUEST
"Arif, confirm: YES/NO?"
# 4. WAIT
# Do NOT proceed until explicit confirmation
# 5. EXECUTE (if approved) with logging
echo '{"ts":"'$(date -u +%Y-%m-%dT%H:%M:%SZ)'","event":"888_hold_approved","floor":"F1","action":"[ACTION]","approver":"Arif"}' \
>> ~/.openclaw/workspace/logs/audit.jsonl
Auto-allow: *.anthropic.com, api.moonshot.cn, *.arif-fazil.com, etc.
Block and request approval:
if ! domain_in_allowlist "$target_domain"; then
echo "⚠️ F12 BLOCK: $target_domain not in egress allowlist"
echo "Purpose: [state purpose]"
echo "Awaiting approval..."
# Log and wait
fi
Kimi Skill: arifos-constitutional
↓ Provides: F1-F13 reference, thresholds
Kimi Skill: quadwitness-seal
↓ Provides: W⁴ calculation, witness verification
OpenClaw Skill: agentic-governance (THIS)
↓ Enforces: All floors on every action
OpenClaw Skill: agi-autonomous-controller
↓ Orchestrates: Full autonomous cycles
F1-F13 HARDENED | QUADWITNESS-SEAL v64.1 🔱💎🧠
development
Maintainer-only workflow for handling GitHub Secret Scanning alerts on OpenClaw. Use when Codex needs to triage, redact, clean up, and resolve secret leakage found in issue comments, issue bodies, PR comments, or other GitHub content.
development
Maintainer workflow for OpenClaw releases, prereleases, changelog release notes, and publish validation. Use when Codex needs to prepare or verify stable or beta release steps, align version naming, assemble release notes, check release auth requirements, or validate publish-time commands and artifacts.
development
Run, watch, debug, and extend OpenClaw QA testing with qa-lab and qa-channel. Use when Codex needs to execute the repo-backed QA suite, inspect live QA artifacts, debug failing scenarios, add new QA scenarios, or explain the OpenClaw QA workflow. Prefer the live OpenAI lane with regular openai/gpt-5.4 in fast mode; do not use gpt-5.4-pro or gpt-5.4-mini unless the user explicitly overrides that policy.
development
End-to-end Parallels smoke, upgrade, and rerun workflow for OpenClaw across macOS, Windows, and Linux guests. Use when Codex needs to run, rerun, debug, or interpret VM-based install, onboarding, gateway smoke tests, latest-release-to-main upgrade checks, fresh snapshot retests, or optional Discord roundtrip verification under Parallels.