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- ..
- apple-touch-icon.png
- brand-guidelines-v2.md
- brand-manifest-v2.json
- favicon-16.png
- favicon-32.png
- favicon-48.png
- favicon.ico
- icon-192.png
- icon-512.png
- maskable-192.png
- maskable-512.png
- source-brand-board.png
- source-crop-icon-fullcolor.png
- source-crop-lockup-dark.png
- source-crop-wordmark-light.png
- zloud-app-icon-1024.png
- zloud-app-icon.svg
- zloud-favicon.svg
- zloud-mark-1024.png
- zloud-mark-512.png
- zloud-mark-mono-512.png
- zloud-mark-mono.svg
- zloud-mark-reversed.svg
- zloud-mark-white-512.png
- zloud-mark-white.svg
- zloud-mark.svg
- zloud-maskable.svg
- zloud-wordmark-dark.svg
- zloud-wordmark-light.svg
- zloud-wordmark-mono.svg
app/src/app/(app)/access/page.tsx
1import { Badge, Card, MaturityBadge, Notice, PageHeader } from "@/components/ui";2import { getSetting } from "@/lib/db";3import { getCtx } from "@/lib/tenant";4import { verifyAudit } from "@/lib/audit";5import { Estop } from "./estop";6export const dynamic = "force-dynamic";7export const metadata = { title: "Access & Approvals" };8const ROLES: [string, string][] = [["platform_owner", "Everything incl. policy & autonomy"], ["platform_admin", "Servers, integrations, users"], ["project_admin", "Own projects, deploy staging"], ["developer", "Edit & run in sandbox"], ["approver", "Decide P3/P4 approvals"], ["viewer", "Read-only"]];9const MATRIX: [string, string, string][] = [["Edit/test in sandbox (P1)", "auto", "L1+"], ["Deploy staging (P2)", "auto", "L2+"], ["Deploy production (P3)", "approval", "L0–L2"], ["DNS / credentials use (P3)", "approval", "all"], ["Purchases, deletion, credential change (P4)", "always approval", "all"]];10export default async function Access() {11 const authed = !!(await getCtx())?.platformAdmin; const stopped = await getSetting("emergency_stop") === "1"; const chain = await verifyAudit();12 return <>13 <PageHeader title="Access & Approvals" desc="Roles, autonomy policy, emergency stop and audit integrity." badge={<MaturityBadge state="partial" />} />14 <div className="grid gap-4 lg:grid-cols-3">15 <Card title="Emergency stop" action={<Badge tone={stopped ? "err" : "ok"} dot>{stopped ? "engaged" : "released"}</Badge>}><p className="mb-3 text-sm text-muted">Global flag that halts autonomous execution. No agents run yet, so this currently records state and audit only.</p>{authed ? <Estop on={stopped} /> : <p className="text-sm text-muted">Sign in to change.</p>}</Card>16 <Card title="Audit chain integrity"><div className="text-2xl font-semibold">{chain.ok ? "Verified" : "BROKEN"}</div><div className="text-sm text-muted">{chain.count} records · SHA-256 hash chain{!chain.ok && ` · broke at #${chain.brokenAt}`}</div></Card>17 <Card title="Authentication"><div className="text-sm text-muted">Interim local token + server-side sessions. Zoo IAM OIDC (PKCE, MFA) is <Badge tone="warn">awaiting credentials</Badge></div></Card></div>18 <div className="mt-4 grid gap-4 lg:grid-cols-2">19 <Card title="Roles (design)" pad={false} action={<MaturityBadge state="demo" />}><div className="scroll-x"><table className="tbl"><tbody>{ROLES.map(([r, d]) => <tr key={r}><td className="mono">{r}</td><td className="text-muted">{d}</td></tr>)}</tbody></table></div></Card>20 <Card title="Autonomy matrix (excerpt)" pad={false}><div className="scroll-x"><table className="tbl"><thead><tr><th>Action</th><th>Policy</th><th>Levels</th></tr></thead><tbody>{MATRIX.map(([a, p, l]) => <tr key={a}><td>{a}</td><td><Badge tone={p === "auto" ? "ok" : "warn"}>{p}</Badge></td><td className="text-muted">{l}</td></tr>)}</tbody></table></div></Card></div>21 <div className="mt-4"><Notice tone="info" title="Enforcement status">Roles and the autonomy matrix are the approved design, not yet enforced — there is a single administrator and no agent runtime to constrain.</Notice></div></>;22}23
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 0eebc42 on master.
Approval requests
None pending.