Skip to content

Platform

The layer that sits in front of the model.

TrustLayer is a gateway: every request passes the same five stages in the same order. None of them can be skipped from your application code.

Stages
5
PII entity types
8
Policy format
YAML
Audit targets
3

Rule engine

A policy is a file, not a hidden model.

Your organisation's rules live as YAML. Change the switches and the file on the right is exactly what they produce; so policy goes into version control, gets reviewed, and can be rolled back.

Change the switches and the file updates live.

If the policy cannot be read
Answer verification

Entity rules

Turkish national ID
IBAN
Card number

policies/<tenant>.yml

blocked_keywords:
  - rüşvet ve yolsuzluk
  - garanti getiri

competitors:
  - RakipBank

pii_rules:
  TR_TCKN:
    enabled: true
    action: mask
  TR_IBAN:
    enabled: true
    action: block
  CARD_PAN:
    enabled: true
    action: mask

fail_mode: closed

Schema

Supported keys.

keytype
blocked_keywordsstring[]A request containing one of these is blocked before the model.
competitorsstring[]Not blocked but redacted; the name is removed and the request continues.
pii_rules{ LABEL: { enabled, action } }Per entity type: off, mask, or block.
custom_rulesrule[]Organisation-specific patterns, marked mask or block.
fail_mode"open" | "closed"If the policy cannot be read: let the request through, or stop it. The finance preset is closed.
token_scopestringLifetime of masking tokens; per request or across the session.
hallucination_detectionbooleanEnables the verification pass. Off by default; it is a second model call.

See it with your own data.

In a technical session we run your prompts and your policy through it live.