import { useState, useCallback } from "react"; // ───────────────────────────────────────────────────────────── // PRIMORDIAL CALCULUS · PRE-CARCERAL DUE-PROCESS INTEGRITY LAYER // HIR × OAM APPLICATION · Created from Collin D. Weber's OSF Package // ───────────────────────────────────────────────────────────── const THREAT_CATEGORIES = [ { id: "warrant", label: "Warrant Integrity", code: "WI", oamPressures: [ { key: "I_oam", label: "Institutional Penetration", desc: "Bureaucratic rubber-stamp displacing judicial scrutiny of probable cause" }, { key: "K", label: "Compliance Rigidity", desc: "System resists scrutiny of warrant basis; deviation from template is penalized" }, { key: "R_oam", label: "Ideological Saturation", desc: "Pre-conviction narrative embedded in warrant language before any finding" }, ], hirChecks: [ { key: "H", label: "Honesty", question: "Does the warrant affidavit accurately reflect the actual factual basis, free from exaggeration or omission?" }, { key: "I_hir", label: "Integrity", question: "Is the stated basis structurally consistent with the supporting documents and timeline?" }, { key: "R_hir", label: "Respect", question: "Were the subject's Fourth Amendment protections meaningfully preserved — not merely formally invoked?" }, ], description: "Warrants become degraded when institutional pressure (high I_oam) and compliance rigidity (high K) replace genuine judicial review. The HIR check restores Honesty to the factual basis, Integrity to internal consistency, and Respect to the constitutional threshold.", }, { id: "report", label: "Police Report Fidelity", code: "RF", oamPressures: [ { key: "D", label: "Accumulated Degradation", desc: "Sedimented departmental norms normalizing selective or misleading documentation" }, { key: "Ac", label: "Alchemical Continuity (loss)", desc: "Depletion of the living capacity for honest judgment — replaced by template-filling" }, { key: "M", label: "Coercive Enforcement Index", desc: "Narrative shaped by enforcement outcome desired rather than events witnessed" }, ], hirChecks: [ { key: "H", label: "Honesty", question: "Does the written report faithfully reflect what was observed, without omission of exculpatory detail?" }, { key: "I_hir", label: "Integrity", question: "Are the sequence of events, timings, and officer roles internally consistent throughout?" }, { key: "F", label: "Fidelity", question: "Does the report maintain stable truth-alignment — consistent language for comparable events across the document?" }, ], description: "Report degradation occurs when accumulated departmental norms (high D) and depleted human judgment (low Ac) convert documentation into enforcement narrative. Honesty, Integrity, and Fidelity are the restorative checks.", }, { id: "bodycam", label: "Bodycam Discrepancy", code: "BD", oamPressures: [ { key: "M", label: "Coercive Enforcement Index", desc: "Footage disabled, lost, or withheld under enforcement pressure" }, { key: "K", label: "Compliance Rigidity", desc: "Institutional resistance to accountability via visual record" }, { key: "D", label: "Accumulated Degradation", desc: "Pattern of bodycam failures in high-stakes encounters signals systemic degradation" }, ], hirChecks: [ { key: "H", label: "Honesty", question: "Is the visual record complete, unedited, and consistent with what the written report claims occurred?" }, { key: "F", label: "Fidelity", question: "Where footage exists, does it maintain stable correspondence with the written timeline and witness accounts?" }, { key: "C", label: "Cohesion", question: "Do all video sources (body, dash, surveillance) fit together without unexplained gaps or contradictions?" }, ], description: "Bodycam discrepancies sit at the intersection of coercive enforcement pressure (high M) and compliance rigidity (high K). Fidelity and Cohesion checks detect where visual and written records diverge — a critical signal of record tampering or selective documentation.", }, { id: "evidence", label: "Evidence Gap Analysis", code: "EG", oamPressures: [ { key: "N", label: "Social Harm / Agency Loss", desc: "The subject's capacity to contest evidence is already eroded before any proceeding" }, { key: "G_oam", label: "Agency Erosion Multiplier", desc: "Each unexplained gap compounds the subject's downstream agency loss" }, { key: "I_oam", label: "Institutional Penetration", desc: "Chain-of-custody procedures replaced by pro forma documentation" }, ], hirChecks: [ { key: "I_hir", label: "Integrity", question: "Is the chain of custody complete, documented, and internally consistent from collection to courtroom?" }, { key: "C", label: "Cohesion", question: "Does the full evidence set cohere — no missing items, unexplained absences, or late-appearing materials?" }, { key: "R_hir", label: "Respect", question: "Was the subject's right to contest evidence preserved — through timely disclosure and proper preservation?" }, ], description: "Evidence gaps compound agency loss (high N) through the agency erosion multiplier (G_oam), which magnifies the effect of each gap downstream. Integrity and Cohesion checks map the structural completeness of the evidentiary record.", }, { id: "criminalization", label: "Wrongful Criminalization Risk", code: "WC", oamPressures: [ { key: "D", label: "Accumulated Degradation", desc: "Full OAM trajectory: each prior degradation (D) compounds into terminal system failure" }, { key: "N", label: "Social Harm / Agency Loss", desc: "Subject's independent agency within the proceeding is fully eroded" }, { key: "Ac", label: "Alchemical Continuity (loss)", desc: "Human judgment displaced at every node; the person becomes a case number" }, ], hirChecks: [ { key: "H", label: "Honesty", question: "Across all record sources, is there a consistent, honest account — or does the picture only cohere under a prosecutorial frame?" }, { key: "C", label: "Cohesion", question: "Does the totality of the record cohere without reliance on assumption, inference, or template-filling?" }, { key: "Rn", label: "Resonance", question: "Is the cumulative documentary record sufficient to support a fair proceeding — or has degradation made resonance impossible?" }, ], description: "Wrongful criminalization is the terminal OAM state: D accumulated, N maximized, Ac depleted. The Resonance (Rn) check is the final gateway — it asks whether the full record, after all degradation pressures, can still support due process.", }, ]; const HIR_BASELINE = { H: 0.86, I_hir: 0.84, R_hir: 0.82, F: 0.85, C: 0.86, Rn: 0.85 }; const OAM_BASELINE = { I_oam: 0.12, K: 0.22, R_oam: 0.18, D: 0.05, M: 0.20, N: 0.15, G_oam: 1.015, Ac: 0.88 }; const OAM_CURRENT = { I_oam: 0.70, K: 0.65, R_oam: 0.75, D: 0.72, M: 0.45, N: 0.60, G_oam: 1.09, Ac: 0.42 }; function ScoreBar({ value, max = 1, invert = false, compact = false }) { const pct = Math.min(100, (value / max) * 100); const isGood = invert ? value < 0.4 : value > 0.6; const isMid = invert ? (value >= 0.4 && value <= 0.6) : (value >= 0.4 && value <= 0.6); const color = isGood ? "#4ade80" : isMid ? "#fbbf24" : "#f87171"; return (
{cat.description}
OAM is the zero-tolerance hard-fault test built after HIR. In the pre-carceral context, OAM variables map the pressures that degrade documentary integrity. HIR variables — Honesty, Integrity, Respect, Fidelity, Cohesion, Resonance — provide the restorative baseline checks. This layer does not replace legal process; it identifies where OAM degradation has made fair process structurally difficult.
| {h} | ))}|||
|---|---|---|---|
|
{cat.code}
{cat.label}
|
{cat.oamPressures.map(p => (
{p.key}
· {p.label}
))}
|
{cat.hirChecks.map(c => (
{c.key}
· {c.label}
))}
|
{cat.id === "criminalization" ? "Rn > 0.65 required" : "F, C > 0.60 required"}
Baseline: Rn ≈ 0.85 (pre-OAM)
|
Framework derived exclusively from: Primordial Calculus OSF Canonical Package v1.0 + 018 (Weber, C.D., 2026). HIR as bedrock constructive triad (H + I → F; R + I → C; F + C → Rn). OAM as the zero-tolerance hard-fault test built after HIR. Baseline calibration from 003_HIR_OAM_Historical_Baseline_Calibration_v0_1.txt (HIR/Rn ≈ 0.85; D ≈ 0.05). This application is bounded to documentary integrity assessment and does not constitute externally validated science. It inherits the package's provisional status accordingly.