/trinity

Formal Verification L2+ Production low usage

/trinity

Overview

/trinity is a production command in the Formal Verification category of the Prismatic Platform. It displays the current status of the Trinity Gate verification system, reports rigidity scores across all verified entities, and provides health metrics for the three-layer verification infrastructure. The Trinity Gate is the platform's foundational epistemic barrier: no claim, belief, or system property is considered established without passing all three gates (Structural Consistency, Logical Consistency, Formal Necessity). /trinity provides visibility into this critical infrastructure.

This command operates under the L2+ authority level and is executed by the trinity-specialist agent. It is part of the platform's 216-command slash command registry, built on the AIAD (Autonomous Intelligence Agent Design) standard. The L2+ authority level enables any qualified operator to inspect the Trinity system's health without requiring the elevated L3 authority needed for active verification operations.

The platform currently maintains 629 Trinity-verified entities across agents, commands, policies, and system properties. Each entity has a rigidity score reflecting the strength of its verification: entities verified through all three gates with formal Lean4 proofs have the highest rigidity, while entities with only structural verification have lower rigidity. /trinity provides the dashboard for monitoring this verification estate, identifying entities with declining rigidity, and tracking the overall epistemic health of the platform.

Architecture

The Trinity status system reads from the Trinity verification registry and presents comprehensive health metrics.

Trinity Status Architecture

             /trinity
                 |
          Status Renderer
                 |
          +------+------+------+
          |      |      |      |
       Gate    Entity  Rigidity Health
       Status  Registry Scorer  Monitor
          |      |      |      |
    +-----+-+ +--+--+ +-+--+ +--+--+
    |   |   | |  |  | |  | | |  |  |
   G1  G2  G3 Agent Cmd Prop Avg  Trend
   Stat Stat Stat List List List Score Track
    |   |   | |  |  | |  | | |  |  |
    +---+---+-+--+--+-+--+-+-+--+--+
                 |
          Trinity Dashboard

Trinity Gate Layers

GateNameVerification MethodToolRigidity Weight
Gate 1Structural ConsistencyBelief network DAG validationGraph theory0.25
Gate 2Logical ConsistencyRule-based proposition checkingProlog0.35
Gate 3Formal NecessityModal logic + formal proofsLean40.40

Rigidity Score Scale

Score RangeClassificationMeaning
0.95 - 1.00DiamondFormally proven with Lean4; maximum rigidity
0.85 - 0.94SteelAll three gates passed; high confidence
0.70 - 0.84IronGates 1 + 2 passed; formal proof pending
0.50 - 0.69BronzeGate 1 passed; logic and formal pending
0.00 - 0.49ClayUnverified or partially verified

Entity Categories

CategoryCountTypical RigidityVerification Scope
Agents404Steel-DiamondBehavioral contracts, capability claims
Commands216Iron-SteelInput/output contracts, authority claims
Policies50+Steel-DiamondEnforcement rules, violation definitions
Properties100+VariableSystem invariants, performance claims

Usage

# Show Trinity system overview
/trinity

# Show detailed gate status
/trinity status --verbose

# Show rigidity scores for all entities
/trinity rigidity

# Show rigidity for specific category
/trinity rigidity --category agents

# Show entities below rigidity threshold
/trinity rigidity --below 0.80

# Show Trinity health metrics
/trinity health

# Show rigidity trends over time
/trinity trends --since 30d

# Export Trinity status report
/trinity --format json --export ./trinity-status.json

# Show specific entity verification details
/trinity entity "PrismaticPerimeter.SecurityRating"

# Show gate pass/fail statistics
/trinity gates --stats

Practical Examples

# Pre-release Trinity verification dashboard
/trinity rigidity --below 0.85 --format markdown --export ./pre-release-trinity.md

# Check if specific critical entity is fully verified
/trinity entity "PrismaticPerimeter.discover/1" --verbose

# Monitor Trinity health after system changes
/trinity health --compare-baseline

# Identify entities needing verification attention
/trinity rigidity --category commands --below 0.70 --verbose

# Generate compliance report showing verification coverage
/trinity --format json --export ./compliance/trinity-report.json

Options

OptionTypeDefaultDescription
statussubcommanddefaultShow overall Trinity system status
rigiditysubcommand--Show rigidity scores
healthsubcommand--Show health metrics
trendssubcommand--Show rigidity trends
entitysubcommand--Show specific entity details
gatessubcommand--Show gate-level statistics
--verboseflagfalseDetailed output with per-entity breakdown
--categoryenumallFilter by: agents, commands, policies, properties, all
--belowfloatnoneShow only entities below rigidity threshold
--abovefloatnoneShow only entities above rigidity threshold
--formatenumtextOutput format: text, json, markdown
--exportpathnoneExport report to file
--sincedurationallTime filter for trends
--compare-baselineflagfalseCompare against saved baseline

Execution Flow

Phase 1: Registry Load

The Trinity verification registry is loaded from the platform's verification store. This registry contains every verified entity with its gate pass/fail status, rigidity score, verification timestamps, and proof references.

Phase 2: Gate Status Assessment

Each of the three gates is assessed for overall health: number of entities passing, failure rate, last verification run time, and any degradation since the previous assessment. Gate health reflects the verification infrastructure's operational status.

Phase 3: Rigidity Computation

For each entity, the rigidity score is computed from gate results weighted by gate importance (Gate 3 = 0.40, Gate 2 = 0.35, Gate 1 = 0.25). Entities are classified into rigidity tiers (Diamond, Steel, Iron, Bronze, Clay). Aggregate statistics are computed per category.

Phase 4: Trend Analysis

When historical data is available, rigidity trends are computed: improving entities (rigidity increasing over time), declining entities (rigidity decreasing), and stable entities. Declining rigidity triggers alerts because it indicates verification erosion -- typically caused by code changes that invalidate previous proofs.

Phase 5: Dashboard Rendering

All metrics are assembled into the requested output format. The dashboard shows: system overview (total entities, average rigidity, gate health), category breakdowns, entities below threshold, trend indicators, and recommendations for verification improvements.

Integration Points

ComponentIntegration TypeDescription
/trinity-3nl-fusionActive verificationFusion pipeline for claim verification
/leanEngineLean4 backend for Gate 3 proofs
/prologEngineProlog backend for Gate 2 logic
/formal-verifyPeerGeneral formal verification operations
/nabla-statusConsumerTrinity health feeds NABLA epistemic status
/white-verifyPeerWhite team verification uses Trinity infrastructure
NABLA InfinityFrameworkEpistemic framework requiring Trinity passage
TelemetryMonitoringVerification performance metrics

Best Practices

Regular Status Monitoring

Run /trinity at session start to verify the verification infrastructure itself is healthy. Trinity Gate failures can cascade: if Gate 3 (Lean4) is offline, new formal proofs cannot be generated, and entities will gradually lose Diamond/Steel rigidity as code changes invalidate previous proofs.

Rigidity Floor Enforcement

Maintain a minimum rigidity threshold per category. Critical categories (security policies, authentication contracts) should maintain Diamond or Steel rigidity. Use /trinity rigidity --below 0.85 --category policies to identify entities needing attention.

Pre-Release Verification

Before every release, run /trinity rigidity --below 0.80 to identify all entities below the Iron tier. Low-rigidity entities should be either re-verified or explicitly acknowledged as acceptable risks in the release notes.

Trend-Driven Verification

Use /trinity trends to identify entities with declining rigidity. Proactive re-verification of declining entities prevents verification debt accumulation, which is analogous to technical debt but in the epistemic domain.

Error Handling

Error CodeDescriptionResolution
REGISTRY_UNAVAILABLECannot load verification registryCheck verification store accessibility
GATE_OFFLINEOne or more gates are not operationalVerify Lean4/Prolog infrastructure
STALE_VERIFICATIONEntity verification older than thresholdRe-verify with /trinity-3nl-fusion
RIGIDITY_COMPUTATION_ERRORCannot compute rigidity for entityCheck entity has at least one gate result
TREND_DATA_INSUFFICIENTNot enough historical data for trendsRequires at least 2 data points
BASELINE_MISSINGNo baseline for comparisonRun without --compare-baseline

Advanced Usage

Custom Rigidity Weights

Override default gate weights for domain-specific assessment:

/trinity rigidity --weights "gate1:0.10,gate2:0.30,gate3:0.60" --category security

Verification Gap Analysis

Identify entities with no verification at all:

/trinity gaps --verbose --format markdown --export ./verification-gaps.md

Cross-Category Rigidity Comparison

Compare rigidity distributions across categories:

/trinity compare --categories "agents,commands,policies" --format json

Doctrine Compliance

All commands operate under the NO MERCY, NO DOUBTS doctrine:

  • NO MERCY: Zero tolerance for incomplete execution or quality violations. Trinity status reporting is exhaustive; no entity is omitted, no declining rigidity is hidden.
  • NO DOUBTS: Full investigation before action, evidence-based results. Every rigidity score is traceable to specific gate results. No scores are estimated or interpolated.
  • /trinity-3nl-fusion - Validate input through Trinity-3NL fusion pipeline
  • /lean - Execute Lean 4 code or prove a theorem with the lean-specialist agent
  • /prolog - Prolog-based logical reasoning and inference operations
  • /formal-verify - Formal verification of system properties and invariants
  • /nabla-status - NABLA Infinity epistemic framework health and status
  • /white-verify - White team constructive verification and formal proofs
  • /quality-gates - Enforce quality gate checkpoints with zero-warning compilation validation

Connect & Contribute

Created by Tomáš Korcak (korczis) | Open Source under GHL