Skip to main content

Compliance Tests

Overview

The BASIS compliance test suite validates your implementation against the specification.

Installation

npm install -g @basis-protocol/compliance-tests

Running Tests

basis-test --target http://localhost:8000

# Output:
✓ INTENT layer: 12/12 tests passed
✓ ENFORCE layer: 18/18 tests passed
✓ PROOF layer: 15/15 tests passed
✓ CHAIN layer: 8/8 tests passed

Score: 100/100

Test Categories

INTENT Tests

  • Intent ID generation
  • Capability detection
  • Risk classification
  • Schema compliance

ENFORCE Tests

  • Trust verification
  • Capability gating
  • Policy evaluation
  • Rate limiting
  • Escalation handling

PROOF Tests

  • Record creation
  • Hash chaining
  • Signature verification
  • Query functionality

CHAIN Tests

  • Anchor submission
  • Merkle proof generation
  • On-chain verification

Certification Levels

ScoreLevel
95-100Platinum
85-94Gold
70-84Silver
50-69Bronze
Below 50Not compliant