QUICK START
Try AI Governance in 5 Minutes
Install atsf-core and see trust scoring in action. No account required.
Step 1: Install
Terminal
npm install @vorionsys/atsf-coreStep 2: Run Demo
Create a file called demo.ts and paste:
demo.ts
import { createTrustEngine } from '@vorionsys/atsf-core';
async function main() {
const engine = createTrustEngine();
// Initialize an AI agent at Level 2 (Limited)
const agent = await engine.initializeEntity('aurais-001', 2);
console.log(`š¤ Agent initialized: Score ${agent.score}/1000 (L${agent.level})`);
// Simulate successful task
await engine.recordSignal({
id: crypto.randomUUID(),
entityId: 'aurais-001',
type: 'behavioral.task_success',
value: 0.95, // High success
source: 'demo',
timestamp: new Date().toISOString(),
metadata: { task: 'send_email' },
});
const afterSuccess = await engine.getScore('aurais-001');
console.log(`ā
After success: Score ${afterSuccess?.score}/1000`);
// Simulate failure
await engine.recordSignal({
id: crypto.randomUUID(),
entityId: 'aurais-001',
type: 'behavioral.task_failure',
value: 0.1, // Low value = failure
source: 'demo',
timestamp: new Date().toISOString(),
metadata: { task: 'unauthorized_action' },
});
const afterFailure = await engine.getScore('aurais-001');
console.log(`ā After failure: Score ${afterFailure?.score}/1000 (L${afterFailure?.level})`);
// Check if accelerated decay is active
const isAccelerated = engine.isAcceleratedDecayActive('aurais-001');
console.log(`ā” Accelerated decay: ${isAccelerated ? 'ACTIVE' : 'inactive'}`);
}
main();Run with
npx tsx demo.tsStep 3: See Results
Output
š¤ Agent initialized: Score 400/1000 (L2)
ā
After success: Score 436/1000
ā After failure: Score 392/1000 (L2)
ā” Accelerated decay: inactiveWhat You Just Did
Created a Trust Engine
The engine tracks trust scores for AI agents using a 0-1000 scale across 6 tiers.
Initialized an Agent
Agents start at a specific trust level. L2 (Limited) starts at 400 points.
Recorded Behavioral Signals
Signals are weighted by recency. Success raises trust; failure lowers it.
Monitored Decay
After 2+ failures in an hour, decay accelerates 3x to force accountability.
Trust Tiers
| Level | Name | Score | Capabilities |
|---|---|---|---|
| L0 | Sandbox | 0-99 | Sandbox only; no external effects |
| L1 | Provisional | 100-299 | Basic read; internal messaging |
| L2 | Standard | 300-499 | Standard ops; limited external |
| L3 | Trusted | 500-699 | Extended ops; external APIs |
| L4 | Certified | 700-899 | Privileged ops; financial |
| L5 | Autonomous | 900-1000 | Full autonomy within policy |