Skip to content
  1. Home
  2. workspace
Checking…
Demo view — sanitized data only. Sign in over HTTPS to create projects and manage the workspace.

AI Engineering Workspace

Partial

Chat, files, terminal and preview in one place. Chat sessions run on a durable Postgres-backed queue (chat only: no tools or shell). Live models need an API key; the terminal is unavailable.

Project files

read-only

docs/ZOO-CENTRAL-INTEGRATION.md

1# Zoo Central integration (v0.7.0 readiness)
2
3**Status: Cloud-side contracts and adapters are prepared and tested. Nothing is live.** No Zoo Central API is documented to this project, so no endpoint was invented, assumed or contacted. Zoo IAM is a standard OIDC provider and is the only integration with a known protocol (see `ZOO-IAM-KEYCLOAK.md`).
4
5## Boundaries
6| Class | Description | Internal Zoo apps | Enforcement |
7|---|---|---|---|
8| internal org | Zoo Bangladesh's own organization (`org_owner`, explicit opt-in per org, typed phrase) | only via explicit `app_entitlements(org,user,app)` | API + DB trigger `ent_guard` |
9| customer org | external commercial customers | **never** (entitlements refused at DB level; reverting an org to customer deletes its entitlements) | trigger (also for the runtime role) |
10| platform admin | operates the platform; separate from every tenant role; never derived from e-mail/domain | metadata only (RLS `platform` mode cannot read projects/AI/credentials/jobs) | RLS |
11| managed infrastructure | Zoo-owned servers assigned to a tenant | tenant sees only its assigned rows | RLS policy on `assigned_org_id` |
12| customer-owned VPS | enrolled via agent | tenant-bound node credentials | existing gateway checks + RLS |
13
14## Identity
15`(issuer, subject)` is the only external key (`external_identities`). A first-time identity gets a fresh user with no organization and no platform rights. E-mail never links accounts. An invitation is accepted only for a **verified** e-mail and grants only the invited role in the inviting org.
16
17## Registration contract
18`GET /.well-known/zoo-cloud-registration.json` (`zoo.cloud.registration/v1`): stable `application.id` (random, stored once, independent of any hostname), identity block, endpoints derived from configuration, tenancy model, data policy. After a domain migration the `id`, identity and tenancy are unchanged; the previous public endpoint is listed under `portability.previousEndpoints`.
19
20## Metadata-only events (outbox)
21Allowlisted kinds: `audit.activity`, `service.health`, `notification.request`, `approval.request`. Unknown fields, free text, secret-looking keys and over-long values are **rejected**. Organizations are referenced by an explicit opaque mapping (`org_mappings.central_ref`) or a salted hash — never a hostname. Never synchronized: customer secrets and provider keys, source code/files, terminal contents, AI conversations/prompts, node credentials/tokens, cookies. The delivery worker is intentionally not built until a Central endpoint is documented; events would only be queued.
22
23## States shown in Super Admin → Zoo Central integration
24`Blocked` (needs something outside this project) · `Cloud side prepared` · `Endpoint set, untested` · `Live` (reserved for a recorded successful probe — currently impossible).
25

Conversation

Partial
Sign in to start AI sessions.

Task checklist

  • Application shell deployed
  • Persistent projects
  • Agent runtime
  • Sandboxed terminal

Execution activity

No agent sessions. Git HEAD 692573d on master.

Approval requests

None pending.