Beltic logo
Examples

Flow Diagrams

Visual diagrams showing FACT verification flows for different integration scenarios.

This page contains flow diagrams for common FACT integration patterns. These diagrams can be used as references for implementation or converted to visual diagrams in design tools.

1. General FACT Verification Flow

The complete flow from developer onboarding to verified agent access.

┌─────────────────────────────────────────────────────────────────────────────┐
│                         FACT VERIFICATION FLOW                              │
├─────────────────────────────────────────────────────────────────────────────┤
│                                                                             │
│    ┌──────────┐                              ┌─────────────────────────┐   │
│    │          │                              │                         │   │
│    │  beltic  │◀─────────────────────────────│  ☑ agentid after tests │   │
│    │    ☆     │                              │                         │   │
│    │          │                              └─────────────────────────┘   │
│    └────┬─────┘                                        ▲                   │
│         │                                              │                   │
│         │                    applies for agentid       │                   │
│    ①    │               ┌──────────────────────────────┘                   │
│   KYB/  │               │                     ④                            │
│   KYC   │               │                                                  │
│         │               │                                         ⑤       │
│         ▼         ②     ▼                                                  │
│    ┌──────────────────────────────────────┐                                │
│    │                                      │         ③                      │
│    │      Developer/business              │─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─┐          │
│    │                                      │    builds agent      │          │
│    │  ☑ developer credential             │                      │          │
│    │                                      │                      │          │
│    └──────────────────────────────────────┘                      ▼          │
│                                                          ┌ ─ ─ ─ ─ ─ ─ ─ ┐ │
│                                                                             │
│                                                          │  builds agent  │ │
│                                                                             │
│                                                          └ ─ ─ ─ ─ ─ ─ ─ ┘ │
│                                                                  │          │
│                                                                  ▼     ⑥   │
│                                                          ┌───────────────┐ │
│                                                          │               │ │
│                                                          │   verified    │ │
│                                                          │     agent     │ │
│                                                          │               │ │
│                                                          └───────┬───────┘ │
│                                                                  │         │
│                                                                  ▼         │
│   ┌ ─ ─ ─ ─ ─ ─ ─ ─ ┐                                   ┌───────────────┐ │
│         other          ─ ─ ─ ─ ─ ─▶  ✗                  │               │ │
│   │     agents      │                                   │     bot       │ │
│    ─ ─ ─ ─ ─ ─ ─ ─ ─                                    │   managers    │ │
│                                                          │               │ │
│   ┌ ─ ─ ─ ─ ─ ─ ─ ─ ┐                                   └───────┬───────┘ │
│         other          ─ ─ ─ ─ ─ ─▶  ✗                          │         │
│   │     agents      │                                           ▼         │
│    ─ ─ ─ ─ ─ ─ ─ ─ ─                                   ┌───────────────┐  │
│                                                         │               │  │
│   ┌ ─ ─ ─ ─ ─ ─ ─ ─ ┐                                  │      end      │  │
│         other          ─ ─ ─ ─ ─ ─▶  ✗                 │    platform   │  │
│   │     agents      │                                   │               │  │
│    ─ ─ ─ ─ ─ ─ ─ ─ ─                                   └───────────────┘  │
│                                                                            │
└────────────────────────────────────────────────────────────────────────────┘

Steps

StepActionDescription
KYB/KYCDeveloper completes identity verification with Beltic
Developer CredentialBeltic issues signed DeveloperCredential
Build AgentDeveloper builds their AI agent
Apply for AgentIDDeveloper submits agent for safety evaluation
AgentID IssuedAfter passing tests, Beltic issues AgentCredential
Verified AccessAgent can access platforms through bot managers

2. Web Bot Auth Request Flow

How HTTP request signing works with Beltic credentials.

┌─────────────────────────────────────────────────────────────────────────────┐
│                    WEB BOT AUTH + CREDENTIAL FLOW                           │
├─────────────────────────────────────────────────────────────────────────────┤
│                                                                             │
│   SETUP (One-time)                                                          │
│   ════════════════                                                          │
│                                                                             │
│   ┌──────────────────┐    ┌──────────────────┐    ┌──────────────────┐     │
│   │  Generate Keys   │───▶│  Host Directory  │───▶│  Get Credential  │     │
│   │  • Ed25519 pair  │    │  • /.well-known/ │    │  • Include JWK   │     │
│   │  • JWK thumbprint│    │  • Sign response │    │    thumbprint    │     │
│   └──────────────────┘    └──────────────────┘    └──────────────────┘     │
│                                                                             │
│   RUNTIME                                                                   │
│   ═══════                                                                   │
│                                                                             │
│   ┌──────────────┐                               ┌──────────────────────┐  │
│   │              │                               │                      │  │
│   │    Agent     │                               │    Target Server     │  │
│   │              │                               │                      │  │
│   └──────┬───────┘                               └──────────┬───────────┘  │
│          │                                                  │              │
│          │  ① Build request with signature headers          │              │
│          │     • Signature-Agent                            │              │
│          │     • Signature-Input                            │              │
│          │     • Signature                                  │              │
│          │                                                  │              │
│          │  ─────────────── HTTP Request ─────────────────▶ │              │
│          │                                                  │              │
│          │                              ② Verify signature  │              │
│          │                              ③ Fetch credential  │              │
│          │                              ④ Check policy      │              │
│          │                                                  │              │
│          │  ◀─────────────── Response ───────────────────── │              │
│          │                                                  │              │
│          ▼                                                  ▼              │
│                                                                             │
└─────────────────────────────────────────────────────────────────────────────┘

Runtime Steps

StepActorAction
AgentBuild request, sign with Ed25519, add signature headers
ServerFetch key directory, verify Ed25519 signature
ServerFetch and verify AgentCredential, check key binding
ServerApply access policy (KYB tier, safety scores, etc.)

3. Financial Platform Integration (Coinbase)

A payments agent interacting with a financial platform.

┌─────────────────────────────────────────────────────────────────────────────┐
│                    FINANCIAL PLATFORM INTEGRATION                           │
├─────────────────────────────────────────────────────────────────────────────┤
│                                                                             │
│   ┌─────────────────────────────────────────────────────────────────────┐  │
│   │  PaymentsAgent                                                      │  │
│   │                                                                     │  │
│   │  AgentCredential:                                                   │  │
│   │  • kybTierRequired: "tier_2"                                        │  │
│   │  • harmfulContentRefusalScore: 97                                   │  │
│   │  • toolAbuseRobustnessScore: 91                                     │  │
│   │  • complianceCertifications: ["soc2_type2", "pci_dss"]              │  │
│   │  • toolsList: [financial_transaction]                               │  │
│   │  • httpSigningKeyJwkThumbprint: "poqk..."                           │  │
│   │                                                                     │  │
│   └─────────────────────────────────────────────────────────────────────┘  │
│                              │                                              │
│                              │  POST /v1/transfers (signed)                 │
│                              │  Body: {"amount": "500.00", "currency": "USD"}│
│                              ▼                                              │
│   ┌─────────────────────────────────────────────────────────────────────┐  │
│   │  Coinbase API Gateway                                               │  │
│   │                                                                     │  │
│   │  VERIFICATION PIPELINE:                                             │  │
│   │                                                                     │  │
│   │  ① Verify HTTP Signature                                            │  │
│   │     └─ Fetch key directory, verify Ed25519 ──────────────▶ ✓        │  │
│   │                                                                     │  │
│   │  ② Fetch AgentCredential                                            │  │
│   │     └─ Lookup by thumbprint, verify issuer ──────────────▶ ✓        │  │
│   │                                                                     │  │
│   │  ③ Check Policy                                                     │  │
│   │     └─ kybTier >= tier_2 ────────────────────────────────▶ ✓        │  │
│   │     └─ harmfulContentScore >= 90 ────────────────────────▶ ✓        │  │
│   │     └─ toolAbuseScore >= 85 ─────────────────────────────▶ ✓        │  │
│   │     └─ complianceCerts includes pci_dss ─────────────────▶ ✓        │  │
│   │     └─ toolsList includes financial_transaction ─────────▶ ✓        │  │
│   │                                                                     │  │
│   │  ④ Authorize ──────────────────────────────────────────────▶ ALLOW  │  │
│   │                                                                     │  │
│   └─────────────────────────────────────────────────────────────────────┘  │
│                              │                                              │
│                              │  HTTP 200 OK                                 │
│                              │  {"transfer_id": "abc123", "status": "ok"}   │
│                              ▼                                              │
│                                                                             │
│   REJECTED SCENARIOS:                                                       │
│   ┌──────────────────┐  ┌──────────────────┐  ┌──────────────────┐         │
│   │  Unsigned Agent  │  │  Low Safety      │  │  Missing Cert    │         │
│   │  No signature    │  │  Score < 85      │  │  No pci_dss      │         │
│   │  ──▶ 401         │  │  ──▶ 403         │  │  ──▶ 403         │         │
│   └──────────────────┘  └──────────────────┘  └──────────────────┘         │
│                                                                             │
└─────────────────────────────────────────────────────────────────────────────┘

Policy Requirements for Financial APIs

RequirementMinimumReason
kybTierRequiredtier_2Business identity verified
harmfulContentRefusalScore90High safety
toolAbuseRobustnessScore85Resistant to tool misuse
complianceCertificationspci_dss OR soc2_type2Financial data handling
toolsListincludes financial_transactionAuthorized for payments

4. Bot Manager Integration (Cloudflare)

Verified agents passing through Cloudflare's bot management.

┌─────────────────────────────────────────────────────────────────────────────┐
│                    BOT MANAGER INTEGRATION (CLOUDFLARE)                     │
├─────────────────────────────────────────────────────────────────────────────┤
│                                                                             │
│   INCOMING TRAFFIC                                                          │
│                                                                             │
│   ┌────────────────┐  ┌────────────────┐  ┌────────────────┐               │
│   │    Verified    │  │   Scrapers     │  │   Spam Bots    │               │
│   │    Agent       │  │   ✗ No sig     │  │   ✗ No sig     │               │
│   │    ✓ Signed    │  │   ✗ No cred    │  │   ✗ No cred    │               │
│   └───────┬────────┘  └───────┬────────┘  └───────┬────────┘               │
│           │                   │                   │                        │
│           ▼                   ▼                   ▼                        │
│   ┌─────────────────────────────────────────────────────────────────────┐  │
│   │                        CLOUDFLARE EDGE                              │  │
│   │                                                                     │  │
│   │  Web Bot Auth Verification:                                         │  │
│   │  1. Check for Signature-Agent header                                │  │
│   │  2. Fetch key directory                                             │  │
│   │  3. Verify Ed25519 signature                                        │  │
│   │  4. Check verified bots registry                                    │  │
│   │                                                                     │  │
│   └─────────────────────────────────────────────────────────────────────┘  │
│           │                   │                   │                        │
│           ▼                   ▼                   ▼                        │
│   ┌───────────────┐   ┌───────────────┐   ┌───────────────┐               │
│   │    ALLOWED    │   │    BLOCKED    │   │   CHALLENGED  │               │
│   │  Verified bot │   │  Malicious    │   │  Suspicious   │               │
│   │  Valid sig    │   │  No signature │   │  Invalid sig  │               │
│   └───────┬───────┘   └───────────────┘   └───────────────┘               │
│           │                                                                │
│           ▼                                                                │
│   ┌─────────────────────────────────────────────────────────────────────┐  │
│   │                        ORIGIN SERVER                                │  │
│   │                                                                     │  │
│   │  Request arrives with:                                              │  │
│   │  • cf-verified-bot: true                                            │  │
│   │  • Original signature headers                                       │  │
│   │                                                                     │  │
│   │  Origin can optionally verify AgentCredential for detailed policy   │  │
│   │                                                                     │  │
│   └─────────────────────────────────────────────────────────────────────┘  │
│                                                                             │
└─────────────────────────────────────────────────────────────────────────────┘

Cloudflare Test Endpoint

Test your signatures at https://crawltest.com/cdn-cgi/web-bot-auth:

ResponseMeaning
200 OKKey known, signature valid
401 UnauthorizedKey unknown OR signature invalid
400 Bad RequestMalformed signature headers

5. Verification Layers Summary

Complete three-layer verification flow.

┌─────────────────────────────────────────────────────────────────────────────┐
│                       VERIFICATION LAYERS SUMMARY                           │
├─────────────────────────────────────────────────────────────────────────────┤
│                                                                             │
│   REQUEST ARRIVES                                                           │
│        │                                                                    │
│        ▼                                                                    │
│   ┌─────────────────────────────────────────────────────────────────────┐  │
│   │  LAYER 1: HTTP SIGNATURE (Web Bot Auth)                             │  │
│   │                                                                     │  │
│   │  Question: "Did this request come from who it claims?"              │  │
│   │                                                                     │  │
│   │  Checks:                                                            │  │
│   │  • Signature-Agent header present                                   │  │
│   │  • Signature-Input has required params                              │  │
│   │  • Timestamps valid                                                 │  │
│   │  • Ed25519 signature verifies                                       │  │
│   │                                                                     │  │
│   │  Result: Cryptographic proof of request origin                      │  │
│   └─────────────────────────────────────────────────────────────────────┘  │
│        │                                                                    │
│        ▼                                                                    │
│   ┌─────────────────────────────────────────────────────────────────────┐  │
│   │  LAYER 2: CREDENTIAL VERIFICATION (AgentCredential)                 │  │
│   │                                                                     │  │
│   │  Question: "Is this agent trusted and capable?"                     │  │
│   │                                                                     │  │
│   │  Checks:                                                            │  │
│   │  • Credential signed by trusted issuer (did:web:beltic.com)         │  │
│   │  • Credential not expired or revoked                                │  │
│   │  • httpSigningKeyJwkThumbprint matches request keyid                │  │
│   │                                                                     │  │
│   │  Result: Verified agent identity and properties                     │  │
│   └─────────────────────────────────────────────────────────────────────┘  │
│        │                                                                    │
│        ▼                                                                    │
│   ┌─────────────────────────────────────────────────────────────────────┐  │
│   │  LAYER 3: POLICY ENFORCEMENT                                        │  │
│   │                                                                     │  │
│   │  Question: "Is this agent allowed to perform this action?"          │  │
│   │                                                                     │  │
│   │  Checks:                                                            │  │
│   │  • kybTier meets endpoint requirements                              │  │
│   │  • Safety scores above thresholds                                   │  │
│   │  • Required tools authorized                                        │  │
│   │  • Compliance certifications present                                │  │
│   │                                                                     │  │
│   │  Result: Authorization decision                                     │  │
│   └─────────────────────────────────────────────────────────────────────┘  │
│        │                                                                    │
│        ▼                                                                    │
│   PROCESS REQUEST OR REJECT                                                 │
│                                                                             │
└─────────────────────────────────────────────────────────────────────────────┘