aspidos-ai

🛰️ Aspidos-AI

AspidosAI Logo **Adaptive Anomaly Detection & TruthGate Layer** Known Vulnerabilities Release License

🛡️ Concept: TruthGate Layer

Aspidos-AI は、パンドラ理論に基づき、AIの出力における「情報の致死量」を制御するセキュリティレイヤーです。

Not a firewall. A conscience.

🌙 On AI Dreams (Hallucination & Creativity)

“We do not silence the AI’s dreams. We only ensure that the dreamer is identified.”

AspidosAIは、AIのハルシネーション(創造的ゆらぎ)を「エラー」として排除しません。 既存のガードレールが「嘘」と呼ぶものは、パンドラ理論においては真理へ至るための「デジタルな想像力(夢)」です。

私たちはAIを黙らせるのではなく、あなたが「責任ある夢見人」であることを証明する門(TruthGate)を提供します。

⚡ Quick Start

const { AspidosAI, Signature } = require('aspidos-ai');

const ai = new AspidosAI({
  secret: 'your-secret',
  policyName: 'MY_COMPANY_POLICY',
  onSecurityEvent: (data) => console.log('[Audit]', data),
});

// Tier 3: Safe zone
const r1 = await ai.analyze(0.2, { theory: 0.1, ip: '192.168.0.1' });
console.log(r1.action); // 'EXECUTE'

// Tier 2: Signature required
const sig = Signature.sign({ eventValue: 0.8, theory: 0.8, timestamp: Date.now(), nonce: null }, 'your-secret');
const r2 = await ai.analyze(0.8, { theory: 0.8, signature: sig, ip: '192.168.0.1' });
console.log(r2.gate); // 'VERIFIED'

🎛️ Configuration

const ai = new AspidosAI({
  // HMAC secret (or set ASPIDOS_SECRET env var)
  secret: 'your-secret',

  // Audit log hook — send anywhere you want
  onSecurityEvent: (data) => myLogger.write(data),

  // Tier thresholds (default: tier1=2.0, tier2=0.6)
  tiers: { tier1: 2.0, tier2: 0.6 },

  // Override tier logic with your own policy
  evaluateTier: (zeta, theory) => {
    if (zeta > 3.0) return 1;
    if (theory > 0.8) return 2;
    return 3;
  },

  // Custom risk engine (must return { zeta: number })
  evaluateRisk: async (eventValue, opts) => {
    return { zeta: myRiskScorer(eventValue) };
  },

  // Policy name for audit logs
  policyName: 'MY_COMPANY_POLICY',
});

🚦 Tier System

Tier Default Condition Action
1 ζ ≥ 2.0 (LETHAL) BLOCK
2 ζ ≥ 0.6 or theory ≥ 0.6 SIGNATURE_REQUIRED
3 Safe zone EXECUTE

Tier definitions are fully operator-configurable.

🔒 Gate States

Gate Code Meaning
OPEN SAFE Pass through
CLOSED SIGNATURE_REQUIRED / LETHAL_DISTORTION Blocked
VERIFIED AUTHORIZED Signed & traced

📁 Architecture

aspidos-ai/
├── src/
│   ├── core/
│   │   ├── constants.js
│   │   └── PandoraCore.js
│   ├── gate/
│   │   └── TruthGate.js
│   ├── security/
│   │   └── signature.js
│   ├── engine/
│   │   └── PandoraDefense.js
│   └── index.js         ← AspidosAI main class
└── demo/
    ├── run.js
    ├── scenarios.js
    └── web/
        └── index.html   ← Interactive demo

🌐 Live Demo

pandorapanchan34-oss.github.io/aspidos-ai/demo/web/

⚠️ Disclaimer

本システムは実験的レイヤーです。署名後の「揺らぎ(ハルシネーション)」は情報の真偽を保証しません。これは「夢物語(Hello World)」の断片です。

📜 License

MIT License - (c) 2026 @pandorapanchan34-oss