KKEPT
On this page

Trust & Privacy

This page describes what the KEPT codebase actually does — the isolation guarantees, the access rules, and the external services a request can reach. Where a feature is not implemented, it is not claimed here.

Tenant isolation

Every request is scoped to exactly one workspace, and the scope is derived on the server from the signed-in session. A browser-supplied workspace identifier is never trusted.

Isolation is enforced in four layers:

  1. Session — the session cookie resolves to one person in one organization.

  2. Application layer — permission checks and project-visibility scoping run before any query.

  3. Repository layer — every query is filtered by the organization.

  4. Database layer — all tenant tables have Row Level Security enabled with FORCE ROW LEVEL SECURITY. Policies read a transaction-local app.current_org_id value set by the application. The application role cannot bypass these policies; only the database owner can.

Note

The database is the backstop, not the UI. If application code has a bug, RLS still prevents one workspace from reading another workspace's rows.

Access control

KEPT has eight roles and a fixed permission matrix. Permissions cover organization management, billing, member management, teams, projects, tasks, weekly plans, commitments, the inbox, people, clients, imports, AI use, and settings.

Two distinct kinds of access are enforced.

Capability — what a role may do at all. For example, only owners, CEOs, admins, and managers may manage members or import projects. Only owners may delete the organization or assign the Owner role.

Scope — which records a role may touch. Owners, CEOs, admins, and managers see every project in the workspace. Team leads see their own assignments plus the projects of teams they lead. Developers and QA see only the projects they are assigned to or own a task on, and only their own tasks for editing.

The same scope rules apply to the execution views: a team lead cannot open organisation-wide execution data, and a person cannot view another person's record unless they lead that person's team or hold org-wide visibility.

Two structural protections also apply:

  • The last active owner cannot be demoted or deactivated.

  • The last owner cannot be removed while another owner exists to replace them.

Authentication

KEPT uses Neon authentication, with a development mock mode, selected by the AUTH_PROVIDER environment variable:

ProviderBehaviour
mockDevelopment mode. The sign-in page shows persona buttons instead of a password form.
neonNeon Auth with email/password and Google sign-in and provider-validated invitation sessions.

Sign in and sign up use email/password or Google through Neon Auth.

Once authenticated, the session is held in an HTTP cookie named kept_session. The session payload is resolved server-side into a person and an organization; the client never supplies either.

Requests to any path outside the public list (the landing page, /login, /signup, /forgot-password, /pricing, the auth API routes, and the health check) require a session. Unauthenticated API calls receive 401 Unauthorized, and unauthenticated page requests are redirected to sign in with the original path preserved.

What is stored about a person

Name, email, role, avatar URL, a communication profile, and whether they are active. There is no password hash managed by KEPT itself in the hosted providers, and no device, location, or usage telemetry is collected.

Data storage

DataWhere it lives
Workspaces, people, clients, projects, tasks, updates, blockers, commitments, messages, knowledge, eventsThe workspace's Postgres database.
Task and QA attachmentsObject storage, referenced by a storage key. Attachments are served back through the application, so the bucket can remain private and a storage URL is never handed to the browser directly.
Imported source archivesObject storage under an import-specific key.

Attachments can be deleted by the person who uploaded them or by a manager.

Secret redaction on import

Before any imported text is stored, KEPT scans it and replaces values that match credential patterns. The patterns cover API keys, access keys, auth tokens, bearer tokens, passwords, AWS access key IDs and secret access keys, RSA and private keys, GitHub tokens and personal access tokens, Slack tokens, and email addresses. Each match is replaced with a marker such as [REDACTED_API_KEY].

Third-party services KEPT calls

These are the only external endpoints the application contacts.

ServiceWhen it is calledWhat is sent
OpenAI (api.openai.com)Client-facing AI: drafting replies, rewriting replies, claim-safety checking, and extracting commitments from drafts.Project facts, active tasks, open commitments, recent activity, knowledge, and the message being answered.
LongCat (api.longcat.chat)Internal AI: task suggestions, task improvement and de-duplication, project brief, weekly plan assistance, day-close assistance, the admin daily brief, QA checklists, import extraction and synthesis, and escalation briefs.Project context and task information.
Neon AuthVerifying sessions and resolving identity when AUTH_PROVIDER=neon.Session tokens.
Neon StorageReading and writing attachments and import archives.File bytes.
Postgres (Neon)All application data.Queries scoped to one workspace.
GitHubInbound webhooks only. KEPT does not call the GitHub API.Nothing outbound. Incoming payloads are verified by HMAC signature before processing.

With AI_PROVIDER=mock, no AI request leaves the application — the mock provider returns canned output. This is the default mode.

Note

The Service Status card in Settings will show a live check result for each of these. For the AI providers the check sends a minimal one-token "ping" request to confirm the key works, which is a real request to that provider.

How AI is routed

When AI_PROVIDER=router, each kind of AI work is sent to a fixed provider:

  • OpenAI handles client-facing work: CLIENT_REPLY, CLIENT_REPLY_REWRITE, CLAIM_SAFETY, COMMITMENT_EXTRACT.

  • LongCat handles internal work: task suggestions and improvements, project import, project brief, weekly plan assistance, day-close assistance, admin daily brief, QA checklist, escalation reminders and briefs.

Most routes declare a fallback provider. If the primary fails or times out, the request is retried against the other provider with a longer timeout, and the fallback is logged.

Human approval for AI actions

No AI output becomes canonical state on its own.

  • Replies are drafts until a person presses Approve & send.

  • Commitments are proposals until a person presses Confirm and then saves them.

  • Tasks suggested from a client message, an import, or a weekly plan are proposals until a person creates them.

  • Escalations are not AI decisions at all — they come from a fixed rules engine.

  • Imported knowledge creates a project with zero tasks, blockers, or commitments.

What KEPT does not collect

  • No keystroke logging, screen capture, or screenshots.

  • No record of hours worked or time tracked against a person.

  • No per-person productivity or activity score.

  • No repository content. GitHub events carry metadata, not source code.

  • No third-party analytics or advertising trackers in the application.

Transport and header protections

Every response carries:

  • X-Content-Type-Options: nosniff

  • X-Frame-Options: DENY

  • Referrer-Policy: strict-origin-when-cross-origin

  • Permissions-Policy: camera=(), microphone=(), geolocation=()

  • X-XSS-Protection: 1; mode=block

Database access uses parameterised queries through the ORM, and rendered output is escaped by React by default.

Reporting a concern

If you believe data has been exposed or a control has failed, contact your workspace administrator first, since they can see the service status and the audit trail. For anything else, raise it with the team that operates your KEPT deployment.