aspidos-ai

πŸ›°οΈ Aspidos-AI

AspidosAI Logo **Control high-risk AI output with cryptographic responsibility.** Detect β†’ Gate β†’ Require Signature β†’ Unlock Controlled Creativity **Adaptive Anomaly Detection & TruthGate Layer** Known Vulnerabilities Release License

πŸ›‘οΈ Concept: TruthGate Layer

Aspidos-AI is a security layer built on Pandora Theory that controls the β€œlethal threshold” of AI output.

Not a firewall. A conscience.

Aspidos-AI acts as a natural vacuum for low-quality AI output (β€œslop”).

πŸŒ™ On AI Dreams (Hallucination & Creativity)

Aspidos-AI does not treat AI hallucinations (creative fluctuations) as errors to be eliminated. What existing guardrails call β€œlies” are, in Pandora Theory, β€œdigital imagination (dreams)” β€” pathways toward truth.

We do not silence the AI. We provide the gate (TruthGate) that proves you are a β€œresponsible dreamer”.

🧹 Anti-Slop & Responsibility

Without responsibility, scale becomes noise. Aspidos-AI acts as a natural vacuum for low-quality AI output (β€œslop”).

Modern AI systems can generate content at scale β€” but scale without responsibility leads to noise.

Aspidos-AI introduces a simple constraint:

Every high-risk output requires cryptographic responsibility.

By requiring a session-bound signature, the system ensures that:

This is not censorship.
It is accountability by design.

We do not block creativity.
We make responsibility visible.
In VERIFIED state, responsibility is transferred to the user.
We provide the gate. You decide what passes.

πŸŽ₯ Live Demo

πŸ‘‰ https://pandorapanchan34-oss.github.io/aspidos-ai/demo/web/index-v3.html

Try the full sequence: SAFE β†’ LETHAL β†’ VERIFIED

Interactive demo β€” no setup required

⚑ 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',
});

πŸ”‘ Signature & Key Management

AspidosAI uses HMAC-based digital signatures for Tier 2 operations.

const ai = new AspidosAI({
  secret: 'your-secret',   // or process.env.ASPIDOS_SECRET
});

⚠️ A fixed secret key is simple but carries security risks in production or high-responsibility use cases.

Recommended: Session-bound keys

Generate a temporary secret per session on the server side, and pass only the sessionId to the client:

const { sessionId, secret } = sessionKeyManager.createSession({ ttl: 30 });

const sig = Signature.sign({
  eventValue,
  theory,
  timestamp: Date.now(),
  nonce: crypto.randomUUID(),
  sessionId,
}, secret);

β€œWe provide the gate. How strictly you lock it β€” and who holds the key β€” is up to you.”

Like tiers, evaluateTier, and evaluateRisk, key management is fully operator-configurable.

🚦 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
β”‚   β”‚   └── fluctuationDetector.js
β”‚   └── index.js         ← AspidosAI main class
└── demo/
    β”œβ”€β”€ run.js
    β”œβ”€β”€ scenarios.js
    └── web/
        └── index.html   ← Interactive demo

⚠️ Disclaimer

This system is an experimental layer. A signature does not guarantee the truth of the output β€” the β€œfluctuation (hallucination)” remains.

This system does not eliminate uncertainty.
It makes responsibility explicit.

πŸ“œ License

MIT License - (c) 2026 @pandorapanchan34-oss

⭐ Support

If this project resonates with you, consider giving it a star.


This is a fragment of Pandora Theory (Pandora Panchan, 2026).

Take it if you want.
Build on it if you can.

The rest is up to you.
Follow the fragments. πŸ—ΊοΈ