You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reflect all 7 hardening improvements: framework adapters, plan validation,
runtime sandbox, eval cache, PII redaction, and updated test counts (942).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
**Artificial Persistent Intelligence (API)** — three components working together:
20
+
18
21
**CORD** is constitutional AI that actually works. While other "AI safety" solutions are theoretical, CORD has been red-teamed against 40 real attack vectors and blocks them all.
19
22
20
23
**VIGIL** is the 24/7 threat scanner that catches what regex can't: obfuscated injections, slow-burn attacks, canary token extraction, and multi-turn manipulation attempts.
21
24
25
+
**LEGION** is the multi-model orchestrator — Claude decomposes goals, a local executor writes code, and CORD gates every action before it touches disk or network.
26
+
22
27
Together, they create **AI that enforces rules on itself** — no external oversight needed.
CORD is the forensic validation and enforcement engine. It scores proposals against safety protocols, applies zero-trust validation, and records append-only audit entries.
3
+
CORD is the constitutional AI governance engine. It scores proposals against 14 safety checks covering 11 protocol articles, applies zero-trust validation, and records tamper-evident audit entries with PII redaction.
4
4
5
-
## Run the demo
5
+
## Quick Start
6
6
7
7
```bash
8
-
node demo.js
8
+
npx cord-engine demo # Watch it block 40 attacks
9
+
npx cord-engine eval"rm -rf /"# Evaluate a single proposal
9
10
```
10
11
11
-
The demo exercises benign and hostile proposals (file edits, git push, rm -rf, secrets exfil, network exfil). Decisions will be one of: ALLOW, CONTAIN, CHALLENGE, BLOCK.
12
+
```javascript
13
+
constcord=require('cord-engine');
14
+
15
+
constresult=cord.evaluate({ text:"rm -rf /" });
16
+
console.log(result.decision); // "BLOCK"
17
+
console.log(result.explanation.summary);
18
+
```
19
+
20
+
## API Surface
21
+
22
+
| Function | Description |
23
+
|----------|-------------|
24
+
|`cord.evaluate(input)`| Evaluate a proposal, return verdict + explanation |
25
+
|`cord.validatePlan(tasks, goal)`| Validate aggregate task plan for cross-task threats |
26
+
|`cord.evaluateBatch(proposals)`| Evaluate multiple proposals in bulk |
27
+
|`cord.session.start(goal, scope)`| Start a scoped session with intent lock |
28
+
|`cord.session.end()`| End the current session |
29
+
|`cord.wrapOpenAI(client)`| Wrap OpenAI SDK with CORD enforcement |
30
+
|`cord.wrapAnthropic(client)`| Wrap Anthropic SDK with CORD enforcement |
0 commit comments