SDK (Sovereign Edge) vs Firewall (Trust Core)
Truslay is not a wrapper, and it is not "a server that traffic passes through". It ships as two complementary halves: a Sovereign Edge that enforces inside your code, and a Trust Core that governs and notarizes the fleet.
At a glance
| SDK — Sovereign Edge | Firewall — Trust Core | |
|---|---|---|
| What it is | Local-first execution engine, zero network dependency | Governance system and immutable notary |
| Runs where | Inside your process / agent runtime | Your control plane + decentralized ledger |
| Layers | 1 Signal · 2 Lattice · 3 Shield · 4 Gate · 5 Seal · 6 Ledger | 7 Anchor · 8 Prism |
| Latency | Under 1 ms | Asynchronous anchoring and reporting |
| Blocks execution | Yes — physically, fail-closed | No — it governs, notarizes and observes |
| Owns | Policy enforcement, local signature | Fleet policy, immutable audit, dashboards |
| Network required | No | Yes for anchoring; optional for local audit |
The SDK: the guardian in your code
The SDK is the enforcer. It lives in the same process as the agent and answers one question before every risky tool call: is this action allowed?
- Coverage: layers 1 to 6, including the local ledger.
- Scope: intent interception, policy-graph evaluation, physical blocking of the tool call, and local cryptographic signing.
- Guarantee: it protects the agent with the network unplugged.
const truslay = new TruslayUniversalClient(
{mode: 'collaboration', firewallMode: 'live', apiKey: process.env.TRUSLAY_API_KEY},
'agent',
);
const decision = await truslay.evaluateAction({
intent: 'database_write',
payload: {table: 'invoices', rows: 1},
});
The Firewall: the vault on the network
The Firewall is the policy brain and the immutable notary. It receives the hashes signed by the SDK, chains them into a ledger, anchors the root of that ledger and makes the trail visible to humans.
- Coverage: layers 7 and 8.
- Scope: fleet-wide cryptographic truth, macro policy management, human audit interface and evidence export.
- Guarantee: a decision recorded once cannot be silently rewritten.
The synergy
- The agent proposes an action.
- The SDK intercepts the intent and evaluates it locally in milliseconds.
- If the action is safe, the SDK seals it and lets it execute.
- If the action is complex, denied, or needs human context, the SDK pushes the signed hash to the Firewall.
- The Firewall anchors it and surfaces it in Prism for audit and escalation.
Why not a wrapper?
A wrapper filters text. Truslay removes the decision from the model's hands:
| Typical guardrail | Truslay | |
|---|---|---|
| Decision | A second model scores the prompt | A policy graph evaluates the intent |
| Failure mode | Fail-open (allows when unsure) | Fail-closed (blocks when unsure) |
| Enforcement | Suggestion in the prompt | Blocked tool call at the Gate |
| Evidence | Editable log row | Signed decision + anchored ledger root |
| Offline | Usually unusable | Layers 1–6 fully functional |
Both halves deploy inside your perimeter. See On-premise deployment for the air-gapped topology.