Services
| Service | Responsibility | Scaling boundary |
|---|---|---|
API (claims-api) |
Browser pages, authenticated APIs, admission, reads | API replicas and database connection budget |
Worker (claims-worker) |
Driver, judgment, assignment, projections, outputs, delivery, subscriptions, connectors, membership | Selected modules and their partitions or leases |
Extraction (claims-extract) |
Read and interpret documents using the OCR runtime | Extraction replicas and memory limits |
Judge (jev, when selected) |
Local advisory model service | Model runtime capacity |
The worker can run modules together or as separately selected processes. worker.modules: [all] selects the available modules; an explicitly selected subset must include every service your workflows require. Extraction is a separate chart workload. Email and SMS modules are selected only for enabled notification channels.
Infrastructure dependencies
| Dependency | Pledge requires | Ownership |
|---|---|---|
| Kafka-compatible broker | TLS, transactions, consumer groups, topic metadata/configuration APIs, persistent history | Install and operate separately, or use a managed provider |
| PostgreSQL | Primary and read connection URLs, verified TLS, schema access | Your database team, a database operator, or managed provider |
| S3-compatible storage | HTTPS, a versioned documents bucket for document versions and outputs, and a separate bucket for the log archive | Your storage team or managed provider |
| Secret management | Platform credentials, signing keys, provider credentials, tenant secret references | Your security/platform team |
| Identity provider | OIDC discovery, authorization-code flow, token and signing-key endpoints | Your identity team or provider |
| Certificate infrastructure | Server certificates and trust bundles for each connection | Your platform team |
All infrastructure dependencies are provisioned independently of the Pledge application release, whether self-hosted or managed. Pledge connects to their endpoints and credentials; it does not install their servers or operators. Kafka provider setup describes the broker contract, and database, storage, and secrets covers the other connections. We recommend Redpanda for Kafka-compatible messaging.
Data that must survive
The log holds claim facts, commands, configuration history, and other durable streams. Kafka holds the recent part of each stream; Pledge archives every record to object storage as signed, hash-chained segments and never trims the broker past what the archive has committed. A reader from the beginning reads the archive and then the broker as one log. The application checks topic partition counts and retention settings before processing. Compaction would discard earlier records for a claim, so Pledge topics use cleanup.policy=delete, and the broker never expires retained topics on its own.
PostgreSQL holds projections, configuration versions, and operational state. Projections are rebuilt from the log, so the archive can rebuild the system; keep database backups so that a restore does not depend on a full replay.
Object storage retains the log archive in its own bucket, and the exact document versions confirmed at upload, generated artifacts, and signed checkpoints in the documents bucket. A current document with the same filename is not a replacement for an earlier pinned version.
A recovery plan must cover the archive and documents buckets, database backups, the secret manager and signing keys, and the public signing-key history. See backup and recovery.
Network boundary
The API serves HTTPS. Application connections to the broker, PostgreSQL, and object storage use TLS. Provider calls use a separate outbound trust bundle. Tenant-selected endpoints are subject to an egress policy that rejects private addresses unless explicitly permitted.
A self-hosted deployment can keep processing and storage in your network. External identity, notification, model, or webhook services create explicit outbound connections; review those integrations when defining data residency.