Back to Projects
🔬

ATSF Framework

Active Open Source MIT License

Agentic Trust Scoring Framework - The reference implementation of the BASIS standard. Production-ready TypeScript runtime for trust calculation, behavioral scoring, and governance.

Installation

Terminal
npm install @vorionsys/atsf-core

Core Modules

/trust-engine

Behavioral trust calculation with decay and recovery

Why signals decay

Same reason PagerDuty debounces alerts. If the same error fires 50 times in a retry loop, you don't want it counted 50 times. Exponential decay: first signal hits hard, repeats fade (1.0 → 0.5 → 0.25 → floor 0.0625).

/intent

Intent classification and processing

/enforce

Policy enforcement and decision gates

The thermostat problem

Your thermostat doesn't flip between heating and cooling every tenth of a degree. There's a dead zone so the system doesn't thrash. Same with trust tiers — hysteresis bands [25, 25, 20, 20, 15, 10, 10, 10] create buffer zones. Wider at bottom tiers (new agents fluctuate more), tighter at top (trusted agents are stable).

/proof

Audit trail and decision provenance

/cognigate

Fastify server for runtime API

/basis

Rule parser and evaluator

/persistence

Memory, file, and Supabase adapters

/langchain

LangChain integration tools

Quick Start

TypeScript
import {
  TrustEngine,
  IntentService,
  EnforcementService,
  createServer
} from '@vorionsys/atsf-core';

// Create core services
const trustEngine = new TrustEngine({
  gainRate: 0.05,
  failureThreshold: 0.3,
  successThreshold: 0.7,
});

const intentService = new IntentService();
const enforcement = new EnforcementService(trustEngine);

// Start the Cognigate API server
const server = await createServer({
  trustEngine,
  intentService,
  enforcement,
});

await server.listen({ port: 3000 });
console.log('Cognigate running on http://localhost:3000');

Related