AI Engineering Workspace
PartialChat, 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- ..
- ai.ts
- apps.ts
- audit.ts
- auth.ts
- central-core.d.mts
- central-core.mjs
- central.ts
- cloud.ts
- config.ts
- crypto.ts
- db.ts
- design.ts
- engines.ts
- files.ts
- gates.ts
- gateway.ts
- marketplace-core.d.mts
- marketplace-core.mjs
- metrics.ts
- modules.ts
- motion.ts
- nexus-core.d.mts
- nexus-core.mjs
- oidc-core.d.mts
- oidc-core.mjs
- oidc.ts
- providers.ts
- proxy-core.d.mts
- proxy-core.mjs
- pwauth-core.d.mts
- pwauth-core.mjs
- requirements.ts
- rls.sql.d.mts
- rls.sql.mjs
- services-content.ts
- ssrf.ts
- status.ts
- tenant.ts
- tlsgate.ts
- workspace.ts
docs/ZOO-CENTRAL-INTEGRATION.md
1# Zoo Central integration (v0.7.0 readiness)23**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`).45## Boundaries6| 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 |1314## Identity15`(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.1617## Registration contract18`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`.1920## 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.2223## States shown in Super Admin → Zoo Central integration24`Blocked` (needs something outside this project) · `Cloud side prepared` · `Endpoint set, untested` · `Live` (reserved for a recorded successful probe — currently impossible).25
Conversation
PartialSign in to start AI sessions.
Task checklist
- Application shell deployed
- Persistent projects
- Agent runtime
- Sandboxed terminal
Execution activity
No agent sessions. Git HEAD fb22adb on master.
Approval requests
None pending.