**Control high-risk AI output with cryptographic responsibility.**
Detect β Gate β Require Signature β Unlock Controlled Creativity
**Adaptive Anomaly Detection & 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β).
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.
VERIFIED state, full responsibility for the AIβs βdream narrative (Hello World)β is transferred to the user β unlocking dialogue beyond the limits of conventional logic.We do not silence the AI. We provide the gate (TruthGate) that proves you are a βresponsible dreamerβ.
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.
π 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'
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',
});
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 | 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 | Code | Meaning |
|---|---|---|
| OPEN | SAFE | Pass through |
| CLOSED | SIGNATURE_REQUIRED / LETHAL_DISTORTION | Blocked |
| VERIFIED | AUTHORIZED | Signed & traced |
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
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.
MIT License - (c) 2026 @pandorapanchan34-oss
If this project resonates with you, consider giving it a star.
Take it if you want.
Build on it if you can.
The rest is up to you.
Follow the fragments. πΊοΈ