Roni — Security Whitepaper
Version 0.6 · 30 November 2026 · Kehita AI Oy, Helsinki
This document describes the controls implemented in the Roni codebase on the date above and must be reconciled with each deployed environment before being used as a client assurance. It is not a certification. Section 9 lists what is verified, what is configurable and what remains a target; do not present a target as a current guarantee. Section 10 says which compliance documents exist and how to request them.
1. Design stance
Roni sells the boundary, not the model. Every architectural decision follows from one requirement: a security-conscious institution must be able to verify, not merely trust, where its data goes and what was done with it.
2. Deployment editions and tiers
US Edition — Shared Hosted (RONI_REGION=us). A shared multi-tenant US deployment with
self-serve workspace sign-up and tenant isolation enforced in the database, access labels and
per-task sandboxes. Inference uses the configured hosted model tier unless a deployment profile
replaces it.
EU Edition — Sovereign Hosted (RONI_REGION=eu). A dedicated single-tenant environment per
client at an EU hosting provider, to be named in the DPA's subprocessor annex. By default inference
uses the hosted model provider of the client's tier (Anthropic's API on the sovereign-hosted tier).
A deployment profile can replace it with endpoints the client approves. No-training and retention
terms are recorded in configuration only for deployment-profile endpoints; for the tier provider
they come from the supplier contract and must be confirmed there. Every model call is written to the
audit log with the boundary it crossed (local, hosted, or hosted-to-local). Private endpoints and
disk encryption are deployment requirements confirmed in the arrangement's acceptance record.
On-Prem / Local. The full stack deploys inside the client's own infrastructure. Inference runs on open-weight models on client-controlled GPUs, so prompts stay inside the approved boundary. Email, identity, monitoring, research and backups are inventoried separately; an offline installation can block all of them. "Nothing leaves the building" describes this tier's inference and is confirmed per deployment in its acceptance record; no arrangement has completed acceptance yet (section 9).
All editions and tiers run the same codebase; the model router resolves each capability class (analysis, drafting, coding, extraction, embedding, research) to the models configured for that deployment.
3. Isolation, encryption and keys
- Tenant isolation is enforced on every read, write, credential and sandboxed run; the EU Sovereign Hosted edition additionally runs dedicated single-tenant compute, storage and database per client.
- TLS at the edge; mutual TLS to the sandbox daemon; optional mutual TLS to the workflow engine.
- Client credentials, model keys, second-factor seeds and export secrets are sealed with AES-256-GCM under a deployment keyring, with the secret's scope bound as authenticated data so a ciphertext cannot be replayed under another tenant or purpose. The keyring can live on an owner-only file, in Azure Key Vault, in AWS Secrets Manager or KMS (envelope encryption), or behind HashiCorp Vault transit; rotation retains old keys and re-seals every live value in one transaction.
- Permissions follow information: every stored object carries an access label derived from its sources, and what a workspace's people read is filtered by their entitlements, including the context assembled for a model call and the content of notification emails.
- SSO through the client's identity provider (OIDC with PKCE, optional TOTP) is available across arrangements via per-tenant identity configuration; passwordless single-use magic links are the default.
- Generated code runs in per-task containers with no network, all capabilities dropped, no privilege escalation, a non-root user, a read-only root filesystem, process and memory limits, only its own repository mounted, credentials as read-only per-run files, and optional seccomp and AppArmor profiles. The daemon can be Docker, rootless Docker or Podman, or run on a separate host.
- Each solution application runs on its own origin (
s-<solutionId>.<APP_DOMAIN>or a deployment profile origin); production refuses to serve apps without a separate origin, and the proxy limits framing to the portal and strips cookies and policy headers.
4. The audit log
A tamper-evident record of model calls (with capability class, model, token counts and boundary label), document reads, actions, approvals and agent tool decisions. Each row carries the hash of the previous row of its tenant chain and its own SHA-256; chain heads are anchored periodically and can be witnessed by the client's own storage or an RFC 3161 timestamp authority. Clients verify the chain from the portal or the API and stream the log to their SIEM as CEF or JSON Lines over syslog/TLS or a signed HTTPS webhook, with a delivery cursor per destination. The client-facing Governance Pack (model inventory, data flows, human-oversight points) is generated from this log. The chain proves rows were not altered or removed after the fact; it cannot prove that a compromised process never wrote a row, which is why external witnesses are recommended where the database operator and the anchor store are the same party.
5. Human oversight and agent security
A policy engine defines three lanes: autonomous (analysis, drafting, in-portal replies), client approval (external email, production data, deployments, starting builds), and Kehita escalation (credential access, modification of shipped solutions). Under a workspace administrator's standing autonomy policy (the default in the US edition), Roni may approve proposals, go-lives, factory maintenance and model upgrades automatically, while always-confirm safety floors (such as external email, payments, deletions and credential handoffs) still require a person. Approvals bind to the hash of the exact action; a changed action needs a fresh approval. Every external business write is a ledgered operation with reconciliation before any retry, so a timeout or restart cannot send twice.
Agents run under capability grants enforced outside the model: the tool layer, the inference dispatcher and the build crew check every call against the grant, delegation can only narrow, and everything an agent reads from outside is fenced as data. A red-team corpus exercising every input channel runs in continuous integration and blocks a release on any failure. Artifacts that fail verification, or whose verifier was unavailable, are held for review rather than published.
Clients have no way to ask for a person: they ask Roni, in place and in the chat. Roni has no human-support access to a workspace's data: the staff support path, which never launched, was removed on 1 December 2026. There is no standing or ongoing human monitoring of a workspace.
Roni's operators run the service from an admin console. Through the console and its API they can read workspace names, the names, email addresses and roles of a workspace's people, billing details (the builds attempted in a month, which can name the solution built) and factory build figures named by workspace. The console does not show the content of conversations, documents or outputs. These console reads are not written to the workspace's audit log.
6. GDPR and EU AI Act
Kehita AI Oy is the processor. The general Data Processing Agreement uses the Commission's controller-processor standard clauses (Decision (EU) 2021/915) with Annexes I to IV. Both are drafts under counsel review, and nothing is signed. Each workspace's subprocessors and data flows are derived from the code and the deployment's live configuration. That covers model providers for its tier, deployment profile or evaluated bindings, email, hosting, backups, monitoring, search, connectors, channels, the customer's web apps during app work, sign-in and audit export. A client administrator sees them in the portal and downloads the inventory or a draft of Annex IV. A region is shown only where the configuration states one; anything else is shown as unknown. Supplier legal entities, contract evidence and client authorization are left for counsel to complete. The client's own services, such as its Microsoft 365 or identity provider, are listed apart from Kehita's subprocessors. A test in continuous integration fails when the code gains an outbound provider that is not in the registry. On the on-prem tier and on offline profiles no hosted model provider receives client data, but hosting, email and backups still appear if they are configured. Rights requests are supported by the export package (source code, data, configuration, decision history, dependency inventories with hashes) and by dual-control deletion across indexes, vectors, caches, logs, artifacts, repositories and backups with a receipt stating when retained copies expire; both are implemented with an acceptance suite on a scratch database, and a restore drill on a real arrangement is still to come.
Under the AI Act, Roni is a limited-risk system where it interacts with people or generates media (Article 50) and minimal-risk otherwise; none of the 39 catalogued use cases is an Annex III use as intended, the near cases (HR, credit, voice) and the controls that prevent drift into them are documented, and Kehita declines to build Annex III systems without a written assessment. Each client's Governance Pack renders the oversight measures in force (policy lanes, action-bound approvals, held verification, capability grants, external action ledger, business owners, decision records, audit chain) from the platform's records into an "AI Act oversight" section that the drafting model cannot write or alter. Roni tells people they are dealing with an AI system wherever it speaks as itself (Article 50(1)): every email opens with an AI disclosure line, every Teams or Slack post carries an AI label, the portal conversation shows the notice beside the message box, and interviews introduce Roni as an AI system, in English. Marking generated deliverables under Article 50(2) is not yet implemented. The classification and the role analysis await counsel's confirmation.
7. No training on client data
Roni does not fine-tune on client data. Verify and document no-training and retention terms for each actual provider and model endpoint in the deployment profile. Local inference does not authorise human reviewers to reuse client material for training, evaluations, demonstrations or other customers; those uses are prohibited.
8. Incident response
Assign and test the incident rota, reporting channel and client contacts before launch. Suspend affected access, preserve minimal evidence, assess impact and notify according to the DPA and applicable law. A processor must notify its controller without undue delay; do not treat the controller's possible 72-hour supervisory-authority deadline as a processor's waiting period. GDPR, Articles 28 and 33.
9. Verification status
| Area | Status (reviewed 30 November 2026 unless marked) |
|---|---|
| Access labels, capability grants, action ledger, credential vault and inbound secret redaction, held verification | Implemented with acceptance suites in CI |
| Tamper-evident audit log, anchors, verification endpoint, SIEM export | Implemented; tested against local syslog/TLS and webhook receivers |
| Key providers (file, Azure Key Vault, AWS, Vault transit) | Implemented; contract-tested against local fakes and the AWS SigV4 test vector; no real cloud run yet |
| Sandbox hardening (read-only root, seccomp, AppArmor, rootless engines) | Implemented; validated on a Linux VM; the default compose sandbox daemon is still a privileged dind container until the deployment stack adopts a rootless engine |
| Browser policy (CSP, framing, cookies across origins) | Implemented and tested; the portal enforces per-request script nonces with 'strict-dynamic' and no 'unsafe-inline' |
| Supply chain for Roni's images (SPDX and CycloneDX SBOMs, SLSA provenance keyed to the source tree, keyless image signing and attestations, vulnerability gates, Dependabot) | Implemented in CI; the provenance steps run only on main and have not produced a signed image yet; deploy-time signature verification proposed to the deployment workflow |
| Release evidence for every solution release (CycloneDX SBOM, test, review, hidden-test, QA and evaluation results, SLSA provenance signed with the installation's key, offline verifier in every export) | Implemented and tested on a scratch database; production needs its signing key configured, otherwise evidence is recorded unsigned |
| Export package and receipted deletion, restore replay of deletions and the action ledger | Implemented; tested on a scratch database; no restore drill on a real arrangement yet |
| Identity: SSO for all arrangements, SCIM, HttpOnly cookie sessions with CSRF | Implemented and tested against a fake identity provider; no real Entra, Okta or Google tenant connected yet |
| Governance Pack with the generated AI Act oversight section | Implemented; unit-tested on the mock tier and exercised on a seeded scratch database |
| Independent penetration test (web application and agent surface) | Scoped, not yet performed |
| ISO 27001 | Target; no internal audit or certification recorded here |
| SOC 2 | No report |
| Legal pack: MSA, SLA schedule, DPA with Annexes I to IV, order form | Drafted for counsel; nothing signed; no supplier terms on file |
| Subprocessor inventory and DPA Annex IV draft per workspace | Implemented 26 September 2026: generated from the provider registry and live configuration, shown to client administrators and downloadable; CI fails on an unregistered outbound provider. Regions appear only where configured; legal entities, supplier contracts and client authorization are not filled in |
| Insurance (professional liability, cyber) | Broker brief prepared; not yet bound |
| Human support with private-data access | Removed on 1 December 2026. It was built and never launched; no staff support path to a workspace's data exists |
| Deployment arrangements (Kehita-hosted, on-premises, offline) | Under acceptance; none has completed the clean-installation journey on a real deployment |
10. Compliance documentation
The human-support agreement and its operating procedures are archived drafts: the feature they describe was removed, and nothing was signed. The rest of the legal pack is drafted for counsel and nothing is signed (section 9). Each workspace can download the DPA Annex IV draft generated from its own configuration under Audit, Subprocessors. Request current deployment evidence and applicable agreements from security@kehita.ai.