Full-Stack Build Waves (Core v1.12.1 → Full Platform & Web UI)¶
This roadmap defines the actionable 4-wave implementation sequence taking Stravin from the currently shipped stravin-dev/core (v1.12.1) bare Git engine to a locally runnable, full-stack developer platform and web application.
Locked-In Stack Defaults¶
The following five architectural defaults are locked across stravin-dev/core and stravin-dev/platform so Wave 1–4 teams can build independently without contract drift:
- Web Frontend Stack (
stravin-web+ SPA): React 19 + TypeScript + Vite + Tailwind CSS +@pierre/diffs(diffs.com, Apache-2.0, Shiki syntax highlighting, virtualized split/unified diffs) mounted inside the lazy-loadedDiffRendererregistry per ADR-0004. Zero Node.js/Bun runtime processes run in production. - Repository Layout:
stravin-dev/core(standalone repository): Stateless multi-region Git storage engine (stravin-edge,stravin-node,stravin-pack,stravin-ctrl,stravin-relay),stravin-admin,stravin-loadgen, andstravin-chaos.stravin-dev/platform(single monorepo): Sharedbufproto/contracts, all upper Go services (auth,review,run,gate,index,webhooks,notify,web), database migrations, React 19 web workspace, and the unified local Docker Compose stack linkingcore+platform.
- Upper-Service Database — Geo-Ready PostgreSQL (Option 4):
- Stravin Core keeps S3 + DynamoDB (unchanged).
- Upper platform services (
auth,review,gate,runmetadata,webhooks,notify) use PostgreSQL:- Local Compose: One shared PostgreSQL container with isolated per-service schemas (
auth,review,gate,run,webhooks,notify). - Production: Regional HA PostgreSQL (Aurora Global Database or CloudNativePG), matching Core's tenant/repository home-region model.
- Local Compose: One shared PostgreSQL container with isolated per-service schemas (
- Geo-Ready Schema Guardrails (non-negotiable for zero-rewrite upgrade to YugabyteDB / CockroachDB RPO=0 later):
- Composite primary key
(tenant_id, id)on every table using time-ordered ULID / UUIDv7 (never globalSERIAL/BIGSERIALsequences). tenant_idas the leading column in every secondary index and mandatory in everyWHEREclause and foreign key.- No Postgres-only extensions or features that break YugabyteDB / CockroachDB wire compatibility: no advisory locks, no
LISTEN/NOTIFYas a durable bus (use NATS JetStream), and no custom C extensions. - Clean Repository / DAO seam behind
pgxso Regional HA PostgreSQL runs on Day 1 with a drop-in upgrade path to RPO=0 distributed SQL.
- Composite primary key
- API & BFF Contract: Protobuf + ConnectRPC (
buf) — a single canonical schema generating Go gRPC services (internal Cilium eBPF mTLS) and typed TypeScript clients for React with zero hand-written OpenAPI drift. - Transport, Events & Workflows: Cilium (eBPF) sidecarless mTLS, NATS JetStream internal async event bus, and Temporal durable workflows for
Stravin RunandStravin Gateper ADR-0001.
Wave Dependency Graph¶
flowchart LR
Base["stravin-dev/core v1.12.1\n(Floci S3/DDB, Valkey, 5 Daemons)"]
subgraph W1["Wave 1: Core vNext Foundation (stravin-dev/core)"]
W1Relay["stravin-hook → stravin-relay\n(JetStream Event Envelopes)"]
W1GitAPI["Core Git Data / Diff gRPC API\n(GetDiff, GetBlob, ListTree)"]
W1EdgeAuth["stravin-edge JWKS + Valkey jti\n(StaticAuthenticator Fallback)"]
W1Nats["Local Compose: nats -js"]
end
subgraph W2["Wave 2: First Runnable Full-Stack UI (stravin-dev/platform)"]
W2Boot["Platform Monorepo Bootstrap\n(buf protos, Go + pnpm, Postgres, Compose)"]
W2Auth["stravin-auth\n(Passkeys/Argon2id, SSH & GPG Keys, PAT, JWKS, RBAC)"]
W2Review["stravin-review\n(PRs, Inline Comments, Stacked PRs, GPG/SSH Sig Verify)"]
W2Web["stravin-web BFF + React 19 UI\n(Tailwind, @pierre/diffs, PRs/Verified Badges & Settings)"]
end
subgraph W3["Wave 3: Actions, Merge Queue & Temporal (stravin-dev/platform)"]
W3Temp["Local Compose: temporal start-dev"]
W3Run["stravin-run\n(Temporal DAG, Hosted + External OIDC Seam)"]
W3Gate["stravin-gate\n(Merge Queue, Branch Protection, Stacked Merges)"]
W3UI["UI Tabs: packages/run & packages/gate\n(DAG Canvas, Live WS/SSE Logs)"]
end
subgraph W4["Wave 4: Webhooks, Notify, Index & Enterprise SSO (stravin-dev/platform)"]
W4Hooks["stravin-webhooks\n(Per-Endpoint Queues, KMS HMAC, SSRF, DLQ)"]
W4Notify["stravin-notify\n(Prefs, RBAC Filter, WS Popups, Email/Slack)"]
W4Index["stravin-index\n(Incremental Indexing, PR Symbol Hover)"]
W4SSO["stravin-auth SSO & DirectorySync\n(Google & External OIDC, SCIM 2.0, Optional WorkOS)"]
W4Img["Phase 2 ImageDiffRenderer\n(2-up, Swipe, Onion-Skin, Pixel Diff)"]
end
Base --> W1Relay
Base --> W1GitAPI
Base --> W1EdgeAuth
Base --> W1Nats
W1Nats --> W1Relay
W1Relay --> W2Boot
W1GitAPI --> W2Review
W1EdgeAuth --> W2Auth
W2Boot --> W2Auth
W2Boot --> W2Review
W2Auth --> W2Web
W2Review --> W2Web
W2Web --> W3Temp
W3Temp --> W3Run
W3Temp --> W3Gate
W3Run --> W3UI
W3Gate --> W3UI
W1Relay --> W4Hooks
W1Relay --> W4Notify
W1Relay --> W4Index
W2Auth --> W4SSO
W2Web --> W4Img
W3UI --> W4Notify
Wave 1 — Core vNext Foundation (stravin-dev/core)¶
Goal: Equip stravin-dev/core with the event outbox, read-only Git Data/Diff RPCs, and JWKS JWT verification required by upper platform services while preserving 100% backward compatibility with standalone v1.12.x local workflows.
Deliverables¶
- Evolve
stravin-hook→stravin-relay(stravin-dev/core#188):- Rename/evolve the DynamoDB Streams consumer into
stravin-relayper ADR-0001. - Publish Standard Async Event Envelopes (
stravin.core.*.*.ref.updated,repo.created,repo.deleted) to theSTRAVIN_CORENATS JetStream stream. - Propagate deterministic
Nats-Msg-Iddeduplication keys and W3Ctraceparentheaders on every published message.
- Rename/evolve the DynamoDB Streams consumer into
- Core Read-Only Git Data / Diff gRPC API (stravin-dev/core#189):
- Implement the
GitDatagRPC service defined in Core ⟷ Review:GetDiffreturningDiffFileEntrydescriptors (path,old_path,change_kind,mime_type,is_binary,old_blob_oid,new_blob_oid,old_size_bytes,new_size_bytes, and texthunks).GetBlobfor streaming raw blob bytes by OID (poweringstravin-web's sandboxed blob proxy).ListTreefor repository tree browsing and file-tree navigation.
- Implement the
- Local JWKS + Valkey
jtiVerification instravin-edge(stravin-dev/core#190):- Add local JWKS signature verification and Valkey
jtideny-list checks instravin-edgeper ADR-0003 sostravin-authis never on the Git push/fetch hot path. - Retain
StaticAuthenticatoras an explicit fallback for standalone Core development andstravin-loadgen.
- Add local JWKS signature verification and Valkey
- Local JetStream Container (stravin-dev/core#187):
- Add a single
nats -jscontainer tostravin-dev/core'sdocker-compose.ymlwith stream bootstrap seeding and Prometheus metrics export.
- Add a single
Wave 1 Exit Criteria¶
make upinstravin-dev/coreboots Floci, Valkey,nats -js, and all 5 daemons (withstravin-relay).- Pushing a commit via Git emits a verified
STRAVIN_COREJetStream envelope withNats-Msg-Idandtraceparent. GitData.GetDiff,GetBlob, andListTreepass integration tests covering text diffs, renames, and binary files.stravin-edgeaccepts valid JWKS-signed JWTs, rejects Valkey-revokedjtitokens, and passes existingmake load-testbenchmarks with zero regressions.
Wave 2 — First Runnable Full-Stack Web UI (stravin-dev/platform)¶
Goal: Stand up the stravin-dev/platform monorepo and deliver the first end-to-end runnable Stravin experience: push code over Git, open a stacked PR in the browser, review virtualized diffs with @pierre/diffs, comment, and merge cleanly.
Deliverables¶
- Bootstrap
stravin-dev/platformMonorepo:proto/(buf): Canonical Protobuf + ConnectRPC definitions generating Go gRPC stubs and typed TypeScript clients (buf generate).- Go workspace: Shared
pkg/packages (pgxGeo-Ready DAO helpers, ULID/UUIDv7 IDs, NATS JetStream client, Cilium/mTLS &tenant_idcontext middleware, OTel instrumentation). - Web workspace (
web/):pnpm+ Vite + React 19 + TypeScript + Tailwind CSS modular monorepo (apps/shell,packages/review,packages/settings,packages/ui). - Database migrations: Per-service PostgreSQL schemas (
auth,review) strictly enforcing the Geo-Ready Schema Guardrails ((tenant_id, id)composite PKs, ULID/UUIDv7, leadingtenant_idindexes, zero Postgres-only extensions). - Unified Local Docker Compose: Single
make uplinkingstravin-dev/corecontainers with Postgres,stravin-auth,stravin-review, andstravin-web.
- Standalone
stravin-auth:- Local passkeys (WebAuthn) and Argon2id password login, SSH and GPG public key management, Personal Access Tokens (PATs), JWKS keypair rotation, Valkey
jtirevocation writes,STRAVIN_AUTHrevocation events, and coarse RBAC (owner,maintainer,write,read) per ADR-0003. - Exposes user GPG and SSH signing public keys for commit signature verification.
- Local passkeys (WebAuthn) and Argon2id password login, SSH and GPG public key management, Personal Access Tokens (PATs), JWKS keypair rotation, Valkey
stravin-review:- Pull Request lifecycle, inline line/file comment threads, review states, and Stacked PRs (
FULL_STACK_ATOMICandBOTTOM_UP_CASCADEmerge modes with automatic branch-on-branch base resolution). - GPG and SSH commit signature verification against registered user public keys in
stravin-auth, surfacing verification status (Verifiedbadge) on commits and PRs. - Consumes
STRAVIN_COREref updates and publishesSTRAVIN_REVIEWJetStream events.
- Pull Request lifecycle, inline line/file comment threads, review states, and Stacked PRs (
stravin-web(Go BFF) + React 19 UI:- Go BFF:
HttpOnly,Secure,SameSite=Laxcookie session termination, CSRF enforcement, ConnectRPC proxy/aggregator with mandatorytenant_idpropagation, authenticated blob proxy (/api/v1/repos/{tenant}/{repo}/blobs/{oid}), strict CSP/security headers, and thin Go OpenGraph/SEO meta injection per ADR-0004. - React 19 Frontend: Full-width responsive shell (
<768px,768–1023px,1024–1439px,≥1440px), PR List, PR Detail with Stacked PR Navigation Strip andVerifiedcommit signature badges, lazy-loadedCodeDiffRendererpowered by@pierre/diffs(Shiki highlighting, virtualized split/unified diffs), inline comment composer, and basic Settings (SSH Keys,GPG Keys,PATs,Auth).
- Go BFF:
Wave 2 Exit Criterion¶
Local
make upboots Core + Platform; a developer pushes a branch stack viagit push, opens a stacked PR in the browser, reviews virtualized diffs via@pierre/diffs, posts inline comments, and merges cleanly end-to-end.
Wave 3 — Actions, Merge Queue & Temporal (stravin-dev/platform)¶
Goal: Introduce durable workflow orchestration with Temporal to power CI pipelines (stravin-run), serialized merge queues (stravin-gate), and real-time UI streaming.
Deliverables¶
- Temporal in Local Compose:
- Add
temporal server start-dev(with Web UI) to the unified Docker Compose stack alongside per-service PostgreSQL schemas (run,gate).
- Add
stravin-run(CI / Runners):- Temporal DAG workflows executing
.stravin/workflows/*.ymland.stravin/workflows/*.cuepipeline graphs via the CUE#Workflowschema and canonical Protobuf Workflow IR (reservingon.workflow_calland theWorkflowCallJobjob-leveluses:union variant per ADR-0005), withtree_oidverdict reuse and<200mscancellation propagation on supersede/eviction. - Static Go
stravin-runner(hosted ephemeral pool +stravin-runner localDocker parity with embedded loopbackSTRAVIN_CACHE_URL/STRAVIN_RUNTIME_URL), OCI/Wasm-first hybrid action execution, first-partystravin-actions/*repositories (checkout,cache,upload-artifact,download-artifact,setup-*), presigned multipart artifacts & branch-isolated cache service (Run Artifacts & Cache), and Day-1 third-party microVM runner hooks (run.job.queuedwebhook, single-use JIT OIDC registration tokens, overridable cache/artifact endpoints) per ADR-0002 and ADR-0005. - Real-time ANSI step log streaming and
STRAVIN_RUNJetStream check/verdict events.
- Temporal DAG workflows executing
stravin-gate(Merge Queue & Policy):- Temporal merge-queue workflows implementing speculative batches, branch protection enforcement (paired with Core's Tier 1 Wasm pre-receive gate), and stacked PR
FULL_STACK_ATOMIC+BOTTOM_UP_CASCADEexecution. - Strict
app_id-bound verdict validation ((tree_oid, commit_oid, policy_version, app_id)) per Run ⟷ Gate.
- Temporal merge-queue workflows implementing speculative batches, branch protection enforcement (paired with Core's Tier 1 Wasm pre-receive gate), and stacked PR
- Actions & Merge Queue UI (
packages/run/,packages/gate/):- Lazy-loaded Actions tab with interactive Temporal DAG canvas, hosted vs. external runner pool badges, and live WebSocket/SSE step log streaming proxied through
stravin-web. - Merge Queue tab and PR Merge Box integration showing queue position, speculative batch status, and policy checks per Actions & Workflows UI and Pull Requests UI.
- Lazy-loaded Actions tab with interactive Temporal DAG canvas, hosted vs. external runner pool badges, and live WebSocket/SSE step log streaming proxied through
Wave 3 Exit Criteria¶
- Pushing a PR triggers a
stravin-runTemporal DAG workflow with live log streaming in the browser. - Enqueuing a PR (single or stacked) into
stravin-gateruns speculative checks, reuses unchangedtree_oidverdicts, cancels evicted runs in<200ms, and atomically advances the protected target branch.
Wave 4 — External Webhooks, Notifications, Code Index & Enterprise SSO (stravin-dev/platform)¶
Goal: Complete the full platform surface with outbound webhooks, human notifications, incremental code intelligence, enterprise SSO/DirectorySync add-ons, and Phase 2 visual diff renderers.
Deliverables¶
stravin-webhooks(Outbound Machine-to-Machine Delivery):- JetStream consumer (
STRAVIN_CORE,STRAVIN_REVIEW,STRAVIN_RUN,STRAVIN_GATE) with per-endpoint delivery queues, KMS-backed HMAC-SHA256 signing, SSRF-isolated egress proxy, exponential retry backoff, and DLQ/redelivery UI in Settings per External Webhooks.
- JetStream consumer (
stravin-notify(Human-Facing Notifications — Parallel to Webhooks):- Per-user notification preferences, quiet hours, digest batching,
stravin-authRBAC leak-prevention filtering, live In-App WebSocket toast/inbox popups viastravin-web, and pluggable Email / Slack / TeamsChannelAdapterdelivery per Platform Notify.
- Per-user notification preferences, quiet hours, digest batching,
stravin-index(Code Search & Inline Intelligence):- Incremental indexing driven by
STRAVIN_COREJetStream events, trigram full-text search, and low-latency PR diff symbol hover / go-to-definition popovers (packages/index-client/) per Core ⟷ Index and Review ⟷ Index.
- Incremental indexing driven by
- Enterprise SSO & Directory Sync (
stravin-authAdd-Ons):- Google OIDC and other external OIDC providers (e.g., Okta, Entra ID), SCIM 2.0, and optional WorkOS stay in Wave 4 rather than expanding Wave 2's standalone local auth surface.
- Pluggable
IdentityProvider(native OIDC including Google OIDC + optional WorkOS SSO adapter) andDirectorySyncAdapter(native SCIM 2.0 + optional WorkOS Directory Sync adapter) per ADR-0003.
- Phase 2
ImageDiffRenderer:- Register the lazy-loaded
ImageDiffRendererchunk insidepackages/review/src/diff/supporting2-up,Swipe,Onion-Skin, andPixel Diffview modes overstravin-web's sandboxed blob proxy.
- Register the lazy-loaded
- Reusable Workflow Calls (
workflow_call):- Activate the reserved
on.workflow_call/WorkflowCallJobseam instravin-runwith same-repo and cross-repo full-SHA-pinned resolution, Temporal subgraph / child-workflow expansion enforcing cycle detection and max nesting depth (<= 4), and strict explicitsecrets:isolation (secrets: inheritforbidden across untrusted or external repository boundaries) per ADR-0005.
- Activate the reserved
Wave 4 Exit Criteria¶
- Outbound webhooks deliver signed payloads with SSRF protection and support one-click DLQ replay from Settings.
- Mentioning a reviewer delivers an RBAC-checked real-time in-app toast and respects configured notification channels.
- Hovering a symbol inside a PR diff surfaces type/definition context from
stravin-index. - PRs modifying raster images render in
2-up,Swipe,Onion-Skin, andPixel Diffmodes without loading image codec bundles on pure-code PRs. - Same-repo and cross-repo SHA-pinned
workflow_calljobs expand cleanly within max nesting depth (<= 4), reject cyclic references, and enforce explicitsecrets:passing across external repository boundaries.
Core ⟷ Platform Development & Cloud Deployment Workflow¶
To keep daily iteration fast while preserving clean repository boundaries and production-parity network security, stravin-dev/core and stravin-dev/platform follow three distinct operating modes:
- Daily Local Development (100% Docker Compose):
stravin-dev/platform's unified Docker Compose stack linksstravin-dev/corecontainers (Floci, Valkey, 5 Core daemons) with PostgreSQL, NATS JetStream, and Temporal on a shared local Docker network.- No Kubernetes or Cilium is required for day-to-day feature work, frontend development, or integration testing.
- Local Cilium eBPF Policy Testing (
kindon OrbStack):- Because OrbStack's built-in Kubernetes cluster ships with a fixed CNI, local Cilium eBPF mTLS and
CiliumNetworkPolicyverification runs inside akindcluster on OrbStack configured withdisableDefaultCNI: trueand Cilium installed as the CNI.
- Because OrbStack's built-in Kubernetes cluster ships with a fixed CNI, local Cilium eBPF mTLS and
- Cloud Deployment (Independent Charts + Thin Umbrella Chart):
stravin-dev/coreandstravin-dev/platformbuild, version, and publish independent OCI container images and Helm charts on their own release cadences.- Production and staging environments pin tested Core and Platform chart versions together through a thin umbrella Helm chart rather than coupling their build or release pipelines.
Related Documents¶
- ADR-0001: Platform Transport, Internal Events, External Webhooks, and Durable Workflows
- ADR-0002: External Runner Seam, State-Machine Ownership, and OIDC App Authentication
- ADR-0003: Platform IAM, Authentication, STS, and Pluggable SSO Seam (
stravin-auth) - ADR-0004: Web Frontend Stack — Static TypeScript SPA + Go BFF (
stravin-web) - ADR-0005: Declarative YAML Workflow Execution, First-Party Action Repositories, and Runner Runtime
- Product-Stack Interface Overview & Matrix
- Run Artifacts & Cache Interface
- UI Design Overview & Shell
- Local Development