Skip to content

Studio bootstrap: apps/ workspace, BFF, shell, image, CI, release #1746

Closed

Description

@samuv

Parent: #1736. Stack layers: plan/studio-bootstrap (plan + ADR 0351), studio/bootstrap (implementation).

Scope

Bring Mecatl Studio, the browser UI, into the repository as a self-contained pnpm workspace at apps/ and release it as a container image.

  • apps/contracts: Zod schemas, committed and drift-gated openapi.json, generated Hey API client.
  • apps/server: a Hono backend for frontend over the published @stacklok-oss/mecatl-sdk, with spawn / mock / external runtime modes, RFC 9728 discovery (MECATL_RESOURCE_URL or derived, fail-closed), PKCE browser login with sealed HttpOnly cookies, server-side 401 gating, single-flight refresh, security headers and CSP, same-origin plus double-submit CSRF on mutations, per-client rate limiting with trusted proxy hops, structured audit records, SPA serving, and the image-only refusals (STUDIO_IMAGE=1, STUDIO_ALLOW_UNAUTHENTICATED=1).
  • apps/web: Vite + React shell, auth gate, connection banner, CSRF request interceptor.
  • Packaging: multi-stage apps/Dockerfile on Chainguard node by digest, apps/docker/mecated.Dockerfile, apps/docker-compose.yml, task studio:*.
  • CI and release: studio relevance category and job with a no-push image build; publish-studio release job publishing ghcr.io/stacklok/mecatl/studio; ac-trace resolver support for apps/ proofs.
  • Docs: apps/README.md, docs/architecture.md Studio section, AGENTS.md bullet, ADR 0351.

Contract

docs/acceptance/studio-bootstrap.md (Architectural) and docs/adr/0351-mecatl-studio-in-repo-web-ui.md.

Verification

task studio:check (26 server + 3 web Vitest proofs at this layer), task lint:actions, task docs, task ac-trace; smoke against a spawned mecated --mock and the built image.

Activity

  1. added
    enhancement
    on Sep 22, 2026
  2. self-assigned this
    on Sep 22, 2026
  3. samuv commented on Sep 23, 2026

    @samuv
    ContributorAuthor

    Delivered: #1753 (plan and ADR 0351) and #1754 (implementation) merged into main on 2026-09-23 as part of stack #1766. See #1736 for the whole series and its follow-ups.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions