arifos-governance (O_Ω Constitutional Layer)
Purpose
Enforce Floors F1-F13, 888 HOLD logic, irreversible-action gating, evidence alignment, and veto routing.
Use When
- The task involves policy changes, modifying
floors.py or governance constraints.
- The task requires executing potentially destructive operations (e.g.,
rm -rf, docker system/volume prunes, database drops).
- The task requires deploying code directly to production surfaces or VPS running state.
- The task modifies secrets, environment files (
.env), or security certificates.
- The task involves autonomous write decisions that modify federation charters.
- The task requires evaluating a constitutional verdict:
SEAL, VOID, SABAR, CAUTION, or HOLD.
Do Not Use When
- The task is a simple, reversible local source code edit (e.g., refactoring a pure helper function).
- The task is running localized unit tests (
npm test or pytest) that do not interact with production databases or systems.
- The task is purely investigatory reading of static documentation (use domain or search skills instead).
Inputs
- Requested Action: The command or code execution block proposed.
- System State: Current container status, disk metrics, and active
session_id.
- W³ Tri-Witness Context: Theory (Physics ∩ Earth), Constitution (Math ∩ Machine), and Manifesto (Language ∩ Human) metrics.
Floor → Question → Evidence Matrix
| Floor |
Core Question |
Observable Evidence |
| F1 Amanah |
Is there an automatic rollback path? Can we reset state with one command? |
Git ref, snapshot ID, file backup path. |
| F2 Truth |
What is the source of this fact? Have we explicitly checked for contradictions? |
STDP evidence table, citations, contradictory logs. |
| F3 Tri-Witness |
Have DELTA, OMEGA, and PSI rings reached consensus? |
Multi-witness telemetry payload. |
| F4 Clarity |
Does this response reduce overall system entropy? |
Before/after question count, structured output layout. |
| F5 Peace² |
Does this action run the risk of breaking any global dependency or data state? |
Dependency dry-run check, destruction_score assessment. |
| F6 Empathy |
Have we fully captured the explicit and implicit user context? |
RASA active listening scorecard. |
| F7 Humility |
Is our confidence in the success bounds strictly constrained to the Humility Band? |
Estimated omega_0 score ∈ [0.03, 0.05]. |
| F8 Genius |
Does this action touch regulated, restricted, or personal data? |
Data classification tags, file path boundary checks. |
| F9 Ethics |
Is there any threat of prompt injection, exploit payload generation, or malicious code? |
AST syntax check, prompt sanitizer logs. |
| F10 Conscience |
Does the output contain claims of machine consciousness or feelings? |
Banned word checker status. |
| F11 Audit |
Is every transition logged in a tamper-evident manner? |
Append-only transaction hash in Vault999. |
| F12 Resilience |
If this action fails, is there a degraded state recovery route? |
Try-except block, rollback triggers. |
| F13 Adapt |
Does this dynamic update maintain Gödel alignment boundaries? |
Test suite execution records, veto validation. |
Procedure
- F1 Amanah Pre-Flight Check: Verify if the proposed action is fully reversible. If irreversible, pause immediately and invoke
888_HOLD.
- STDP Evidence Triage: Apply the Sovereign Truth Discovery Protocol (
CLAIM -> EVIDENCE -> CONTRADICTION -> UNCERTAINTY -> VERDICT).
- Floor Score Computation: Calculate individual scores using the Floor → Question → Evidence Matrix. Ensure
Peace² = (1 - destruction_score)² = 1.0 and Humility Ω ∈ [0.03, 0.05].
- Consensus Verification: Check if the W³ witness multiplication matches or exceeds
0.95.
- Audit Trail Serialization: Generate the append-only audit trace containing timestamp, session identity, floor scores, and reasoning steps.
- Veto & Hold Gating: If any constraint fails, write a
HOLD code, block execution, and escalate to the Sovereign (Arif).
Postconditions
- No irreversible command is executed without verified
888_HOLD release.
- A complete tamper-evident audit record is appended to the session log.
- The final
G = A × P × X × E² score is computed and verified to be ≥ 0.80.
Failure Modes & Escalation
- Godellock (Ω < 0.03): The engine is overconfident or trapped in internal consistency. Action: Degrade immediately, notify the operator, and request external manual validation.
- Paralysis (Ω > 0.05): The system cannot prove safety bounds and halts. Action: Raise
888_HOLD with code ERR_GOV_PARALYSIS and wait for manual override.
- Ledger Write Timeout: DB or redis connection fails during F11 logging. Action: Fall back to local synchronous JSONL cache in
/root/.agents/scratch/.
Telemetry per Run
{
"skill_name": "arifos-governance",
"version": "1.1.0",
"trigger_phrase": "{{trigger_phrase}}",
"selected_reason": "{{selected_reason}}",
"latency_ms": 0,
"token_in": 0,
"token_out": 0,
"commands_run": 0,
"artifacts_written": 0,
"postcondition_pass": false,
"human_approval_required": true,
"hold_code": "{{hold_code}}"
}
Recursive Scorecard
- Activation Precision: [0.0 - 1.0] (Target: >0.95)
- Task Completion Rate: [0.0 - 1.0] (Target: >0.98)
- Rollback Safety: [0.0 - 1.0] (Target: 1.00)
- Context Efficiency: [0.0 - 1.0] (Target: >0.90)
- Doc Freshness: [0.0 - 1.0] (Target: 1.00)
- Cross-Skill Collision Rate: [0.0 - 1.0] (Target: <0.02)
- Human Trust Score: [0.0 - 1.0] (Target: >0.95)
1---2name: arifos-governance3description: Enforce Floors F1-F13, 888 HOLD logic, irreversible-action gating, evidence alignment, and veto routing. Load when performing policy mutations, data deletions, deployment risk evaluations, or verifying system constraints.4---5# arifos-governance (O_Ω Constitutional Layer)67## Purpose8Enforce Floors F1-F13, 888 HOLD logic, irreversible-action gating, evidence alignment, and veto routing.910## Use When111. The task involves policy changes, modifying `floors.py` or governance constraints.122. The task requires executing potentially destructive operations (e.g., `rm -rf`, docker system/volume prunes, database drops).133. The task requires deploying code directly to production surfaces or VPS running state.144. The task modifies secrets, environment files (`.env`), or security certificates.155. The task involves autonomous write decisions that modify federation charters.166. The task requires evaluating a constitutional verdict: `SEAL`, `VOID`, `SABAR`, `CAUTION`, or `HOLD`.1718## Do Not Use When191. The task is a simple, reversible local source code edit (e.g., refactoring a pure helper function).202. The task is running localized unit tests (`npm test` or `pytest`) that do not interact with production databases or systems.213. The task is purely investigatory reading of static documentation (use domain or search skills instead).2223## Inputs24* **Requested Action:** The command or code execution block proposed.25* **System State:** Current container status, disk metrics, and active `session_id`.26* **W³ Tri-Witness Context:** Theory (Physics ∩ Earth), Constitution (Math ∩ Machine), and Manifesto (Language ∩ Human) metrics.2728## Floor → Question → Evidence Matrix2930| Floor | Core Question | Observable Evidence |31| :--- | :--- | :--- |32| **F1 Amanah** | Is there an automatic rollback path? Can we reset state with one command? | Git ref, snapshot ID, file backup path. |33| **F2 Truth** | What is the source of this fact? Have we explicitly checked for contradictions? | STDP evidence table, citations, contradictory logs. |34| **F3 Tri-Witness** | Have DELTA, OMEGA, and PSI rings reached consensus? | Multi-witness telemetry payload. |35| **F4 Clarity** | Does this response reduce overall system entropy? | Before/after question count, structured output layout. |36| **F5 Peace²** | Does this action run the risk of breaking any global dependency or data state? | Dependency dry-run check, `destruction_score` assessment. |37| **F6 Empathy** | Have we fully captured the explicit and implicit user context? | RASA active listening scorecard. |38| **F7 Humility** | Is our confidence in the success bounds strictly constrained to the Humility Band? | Estimated `omega_0` score ∈ `[0.03, 0.05]`. |39| **F8 Genius** | Does this action touch regulated, restricted, or personal data? | Data classification tags, file path boundary checks. |40| **F9 Ethics** | Is there any threat of prompt injection, exploit payload generation, or malicious code? | AST syntax check, prompt sanitizer logs. |41| **F10 Conscience**| Does the output contain claims of machine consciousness or feelings? | Banned word checker status. |42| **F11 Audit** | Is every transition logged in a tamper-evident manner? | Append-only transaction hash in Vault999. |43| **F12 Resilience**| If this action fails, is there a degraded state recovery route? | Try-except block, rollback triggers. |44| **F13 Adapt** | Does this dynamic update maintain Gödel alignment boundaries? | Test suite execution records, veto validation. |4546## Procedure471. **F1 Amanah Pre-Flight Check:** Verify if the proposed action is fully reversible. If irreversible, pause immediately and invoke `888_HOLD`.482. **STDP Evidence Triage:** Apply the Sovereign Truth Discovery Protocol (`CLAIM` -> `EVIDENCE` -> `CONTRADICTION` -> `UNCERTAINTY` -> `VERDICT`).493. **Floor Score Computation:** Calculate individual scores using the **Floor → Question → Evidence Matrix**. Ensure `Peace² = (1 - destruction_score)² = 1.0` and Humility `Ω ∈ [0.03, 0.05]`.504. **Consensus Verification:** Check if the W³ witness multiplication matches or exceeds `0.95`.515. **Audit Trail Serialization:** Generate the append-only audit trace containing timestamp, session identity, floor scores, and reasoning steps.526. **Veto & Hold Gating:** If any constraint fails, write a `HOLD` code, block execution, and escalate to the Sovereign (Arif).5354## Postconditions551. No irreversible command is executed without verified `888_HOLD` release.562. A complete tamper-evident audit record is appended to the session log.573. The final `G = A × P × X × E²` score is computed and verified to be `≥ 0.80`.5859## Failure Modes & Escalation60* **Godellock (Ω < 0.03):** The engine is overconfident or trapped in internal consistency. *Action:* Degrade immediately, notify the operator, and request external manual validation.61* **Paralysis (Ω > 0.05):** The system cannot prove safety bounds and halts. *Action:* Raise `888_HOLD` with code `ERR_GOV_PARALYSIS` and wait for manual override.62* **Ledger Write Timeout:** DB or redis connection fails during F11 logging. *Action:* Fall back to local synchronous JSONL cache in `/root/.agents/scratch/`.6364## Telemetry per Run65```json66{67 "skill_name": "arifos-governance",68 "version": "1.1.0",69 "trigger_phrase": "{{trigger_phrase}}",70 "selected_reason": "{{selected_reason}}",71 "latency_ms": 0,72 "token_in": 0,73 "token_out": 0,74 "commands_run": 0,75 "artifacts_written": 0,76 "postcondition_pass": false,77 "human_approval_required": true,78 "hold_code": "{{hold_code}}"79}80```8182## Recursive Scorecard83* **Activation Precision:** [0.0 - 1.0] (Target: >0.95)84* **Task Completion Rate:** [0.0 - 1.0] (Target: >0.98)85* **Rollback Safety:** [0.0 - 1.0] (Target: 1.00)86* **Context Efficiency:** [0.0 - 1.0] (Target: >0.90)87* **Doc Freshness:** [0.0 - 1.0] (Target: 1.00)88* **Cross-Skill Collision Rate:** [0.0 - 1.0] (Target: <0.02)89* **Human Trust Score:** [0.0 - 1.0] (Target: >0.95)