/white-verify

Color Teams L3 Production low usage

/white-verify

Overview

/white-verify is a production command in the Color Teams category of the Prismatic Platform. It executes constructive verification campaigns through the White Team, the platform's verification-focused security team that proves systems hold rather than attempting to break them (which is the Red Team's domain). The White Team produces formal proofs, contract validations, invariant verifications, and property-based evidence that system components satisfy their specified requirements. Unlike testing (which searches for failures), White Team verification constructs positive evidence of correctness.

This command operates under the L3 authority level and is executed by the white-verifier-commander agent. It is part of the platform's 216-command slash command registry, built on the AIAD (Autonomous Intelligence Agent Design) standard. The White Team is one of six Color Teams in the platform's adversarial-defensive security architecture. The L3 authority level grants verification access across the entire codebase, including security-sensitive modules.

The White Team operates with 3 agents: the white-verifier-commander (L3 Strategic Commander) who orchestrates verification campaigns, the white-contract-validator (L4 Specialist) who validates interface contracts and behavioral specifications, and the white-invariant-prover (L4 Specialist) who constructs property-based tests, Lean4 formal proofs, and fault injection analyses. All White Team output passes through the Trinity Gate before being accepted as verification evidence.

Architecture

The White Team verification system operates as a progressive methodology pipeline with increasing rigor levels.

Verification Architecture

             /white-verify
                   |
          White Verifier Commander
                   |
          +--------+--------+
          |                 |
    Contract           Invariant
    Validator          Prover
          |                 |
    +-----+-----+    +-----+-----+
    |     |     |    |     |     |
   API   Proto  Behav Prop  Lean4  Fault
   Valid  Valid  Valid Test  Proof  Inject
    |     |     |    |     |     |
    +-----+-----+----+-----+-----+
                   |
          Evidence Assembler
                   |
          +--------+--------+
          |        |        |
       Proof     Contract  Property
       Artifact  Report    Report
          |        |        |
          +--------+--------+
                   |
          Trinity Gate Submission

Verification Levels

LevelNameMethodRigorTool
L0SmokeBasic function call verificationLowExUnit
L1ContractInterface contract testingMediumExUnit + Custom
L2PropertyProperty-based testingMedium-HighStreamData
L3InvariantSystem invariant verificationHighStreamData + Custom
L4Fault InjectionBehavior under failure conditionsHighCustom + Chaos
L5Formal ProofMathematical proof of correctnessMaximumLean4

White Team Agents

AgentRoleKey CapabilityAuthority
white-verifier-commanderStrategic CommanderCampaign orchestration, composite proof constructionL3
white-contract-validatorContract SpecialistInterface/behaviour/protocol/API validationL4
white-invariant-proverInvariant SpecialistProperty-based testing, Lean4 proofs, fault injectionL4

Verification Evidence Types

Evidence TypeDescriptionWeightSource
Formal ProofLean4 mechanically verified proof1.0Invariant Prover
Property ProofStreamData property holding over 1000+ inputs0.8Invariant Prover
Contract SatisfactionAll contract assertions pass0.7Contract Validator
Fault ToleranceSystem recovers from injected faults0.6Invariant Prover
Smoke EvidenceBasic functionality confirmed0.3Commander

Usage

# Run White Team verification campaign
/white-verify

# Verify specific module
/white-verify --target PrismaticPerimeter.SecurityRating

# Run specific verification level
/white-verify --level L2 --target PrismaticPerimeter.AssetDiscovery

# Verify all contracts for an application
/white-verify --contracts --app prismatic_perimeter

# Run formal proof campaign
/white-verify --level L5 --target PrismaticPerimeter.SecurityRating.calculate

# Property-based verification
/white-verify --level L2 --property "score always between 300 and 900"

# Fault injection verification
/white-verify --level L4 --target PrismaticStorage.ETS.Adapter

# Export verification evidence
/white-verify --format json --export ./verification-evidence.json

# Show verification status dashboard
/white-verify --status

# Dry run showing verification plan
/white-verify --dry-run --target PrismaticPerimeter

Practical Examples

# Pre-release verification campaign across critical modules
/white-verify --level L3 --app prismatic_perimeter --format markdown --export ./release-verification.md

# Formal proof of security property
/white-verify --level L5 --property "unauthenticated requests never access protected data" --verbose

# Contract verification for all storage adapters
/white-verify --contracts --app prismatic_storage_core --verbose

# Fault injection testing for OTP supervision trees
/white-verify --level L4 --target PrismaticSupervisor --faults "process_crash,timeout,network_partition"

# Comprehensive verification with Trinity Gate submission
/white-verify --level L3 --all --submit-to-trinity --format json --export ./trinity-evidence.json

# Property-based verification of data integrity
/white-verify --level L2 --target PrismaticPerimeter.ComplianceAssessment --properties ./properties.yaml

Options

OptionTypeDefaultDescription
--targetstringnoneModule or function to verify
--appstringnoneApplication to verify
--allflagfalseVerify all eligible modules
--levelenumL2Verification level: L0, L1, L2, L3, L4, L5
--contractsflagfalseFocus on contract verification
--propertystringnoneSpecific property to verify
--propertiespathnoneYAML file with property definitions
--faultsstringautoFault types for injection testing
--submit-to-trinityflagfalseSubmit evidence to Trinity Gate
--formatenumtextOutput format: text, json, markdown
--exportpathnoneExport evidence to file
--statusflagfalseShow verification status dashboard
--verboseflagfalseDetailed verification output
--dry-runflagfalseShow verification plan
--lean4-timeoutduration60sLean4 proof search timeout
--streamdata-runsinteger1000Number of StreamData test runs

Execution Flow

Phase 1: Campaign Planning

The commander analyzes the verification target and plans the campaign: which modules need verification, what verification levels are appropriate, what properties should be checked, and how evidence should be assembled. The plan considers existing verification evidence to avoid redundant work.

Phase 2: Contract Validation

The contract validator examines all module interfaces: @spec types are tested with representative inputs, Behaviour implementations are verified against their callbacks, Protocol implementations are tested against protocol contracts, and API endpoints are validated against their OpenApiSpex schemas. Each passing contract becomes evidence.

Phase 3: Property-Based Verification

The invariant prover generates StreamData generators for property-based testing. Properties are derived from @spec types, documentation assertions, and explicitly specified properties. Each property is tested over the configured number of runs (default 1000). Properties that hold become strong verification evidence.

Phase 4: Fault Injection (Level L4)

For fault injection verification, the prover systematically introduces failures: process crashes, timeout conditions, network partitions, and resource exhaustion. System behavior under each fault condition is observed and verified against recovery expectations. OTP supervision trees are specifically tested for correct restart behavior.

Phase 5: Formal Proof (Level L5)

For formal proof verification, critical properties are translated into Lean4 theorems. The Lean4 proof assistant searches for proofs within the configured timeout. Successful proofs provide the highest-weight verification evidence. Failed proof searches do not prove the property false -- they indicate that automated proof is insufficient.

Phase 6: Evidence Assembly and Trinity Submission

All evidence from the campaign is assembled into a composite verification report. Evidence is weighted by type, cross-referenced for consistency, and formatted for the requested output. When --submit-to-trinity is enabled, evidence is submitted to the Trinity Gate for rigidity score updating.

Integration Points

ComponentIntegration TypeDescription
/color-teamParentWhite Team is part of the 6-team color infrastructure
/red-teamCounterRed findings drive White verification priorities
/blue-teamConsumerBlue Team uses White evidence for defensive confidence
/purple-teamSynthesisPurple coordinates Red-Blue-White closure loops
/trinityConsumerTrinity Gate consumes White Team evidence
/trinity-3nl-fusionConsumerFusion pipeline uses White evidence for Gate 3
/leanEngineLean4 backend for formal proofs
/formal-verifyPeerGeneral formal verification operations
TelemetryMonitoringVerification campaign metrics

Best Practices

Progressive Verification

Start at L0 (smoke) and progress upward. Each level builds on the confidence established by the previous level. Jumping directly to L5 (formal proof) wastes resources if the module fails basic contract validation at L1.

Red-White Pairing

After every Red Team adversarial scenario, run a corresponding White Team verification. Red findings identify weaknesses; White verification confirms that fixes actually work. This Red-White cycle is more rigorous than either operation alone.

Evidence Persistence

Always use --export and --submit-to-trinity for verification campaigns. Transient verification evidence that is not persisted must be regenerated on every assessment cycle. Persisted evidence accumulates, building an increasingly strong verification portfolio.

Fault Injection Scope

When using L4 fault injection, start with the most likely failure modes (process crashes, timeouts) before testing exotic scenarios (network partitions, disk failures). The most common failures should be verified first because they are most likely to occur in production.

Error Handling

Error CodeDescriptionResolution
TARGET_NOT_FOUNDVerification target module does not existCheck module name and path
NO_CONTRACTModule has no verifiable contractsAdd @spec, @behaviour, or @protocol
STREAMDATA_FAILUREProperty falsified during testingProperty does not hold; investigate counterexample
LEAN4_TIMEOUTFormal proof search exceeded timeoutSimplify property or increase timeout
LEAN4_UNAVAILABLELean4 toolchain not availableInstall Lean4 or skip L5 verification
FAULT_INJECTION_CRASHSystem did not recover from injected faultSupervision tree or recovery logic needs attention
TRINITY_SUBMISSION_FAILEDCannot submit evidence to Trinity GateCheck Trinity Gate availability
EVIDENCE_INCONSISTENTConflicting evidence from different levelsManual review of conflicting results required

Advanced Usage

Custom Property Definitions

Define verification properties in YAML:

/white-verify --properties ./verification/security-properties.yaml --level L3 --verbose

Verification Campaign Templates

Use predefined campaign templates:

/white-verify --campaign "pre-release" --app prismatic_perimeter --export ./pre-release-evidence.json

Cross-Module Verification

Verify properties that span multiple modules:

/white-verify --cross-module --targets "PrismaticPerimeter.SecurityRating,PrismaticPerimeter.ComplianceAssessment" --property "rating consistency"

Doctrine Compliance

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

  • NO MERCY: Zero tolerance for incomplete execution or quality violations. Every verification level is executed completely. Evidence artifacts are never fabricated or approximated. Failed verifications are reported without exception.
  • NO DOUBTS: Full investigation before action, evidence-based results. All White Team output passes Trinity Gate validation. Verification evidence includes methodology, inputs, outputs, and reproducibility instructions.
  • /color-team - Color team status overview across all 6 teams
  • /red-team - Red team adversarial simulation scenario execution
  • /blue-team - Blue team epistemic defense posture assessment
  • /purple-team - Purple team synthesis and Red-Blue closure coordination
  • /trinity - Trinity system status and rigidity score verification
  • /trinity-3nl-fusion - Validate input through Trinity-3NL fusion pipeline
  • /lean - Execute Lean 4 code or prove a theorem with the lean-specialist agent
  • /formal-verify - Formal verification of system properties and invariants

Connect & Contribute

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