Repository navigation
Conversation
orun.work's Preview tab shows a coding session's dev server, live from its
box: `orun preview` (orun v2.96.0) runs what a repository declares, and the
session keeps it running while it works. The box is small and shared with
the agent, so the preview is the console alone, as on cirrus and lumen:
- apps/web-console-next/component.yaml: spec.preview. It installs the
console's own packages only (--filter "@saas/web-console-next..."), then
runs `next dev` directly on 127.0.0.1:3001, with a 1 GiB heap cap; its API
is the deployed stage (NEXT_PUBLIC_DEPLOY_ENV=stage, the variable a stage
build is given). No `needs`, so no Worker, Supabase or wrangler starts.
- intent.yaml: preview: {component: web-console-next}.
- apps/web-console-next/next.config.mjs: a dev-only Server Actions
allow-list for the preview's hosts. `next build` runs with
NODE_ENV=production, so production keeps its same-origin check.
- .github/workflows/tag.yml: the Baseline tag workflow, lumen's `cut` job
as it is, so a baseline tag is cut by a workflow here too. lumen's
`publish-console` job is left out: this console has no prebuilt-artifact
packer to publish with. repo-blueprint.yaml ignores tag.yml, as lumen's
does, so it does not travel into products.
- baseline.yml: orun v2.58.11 -> v2.96.0, the first release that reads
spec.preview, so the placement's `orun validate` checks it. ci.yml (the
product's own lane pin, v2.56.2) is unchanged. placement.test.sh accepts
the newer CLI's wording of the repo-scale gate, as lumen's does.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019PcpNV6SjymJBPv3nNkC4z
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The baseline declares its live preview, so orun.work's Preview tab can show a coding session's dev server (saas-parallel-baselining PB4).
apps/web-console-next/component.yaml:spec.preview:intent.yaml:preview: {component: web-console-next}.apps/web-console-next/next.config.mjs: a dev-only Server Actions allow-list (experimental.serverActions.allowedOrigins, only whenNODE_ENV === "development") for the preview's hosts.next buildruns withNODE_ENV=production, so production keeps its same-origin check (experimentalis{}there). Next 15.0.3 needs noallowedDevOrigins: its hot-reload socket connects from the preview origin..github/workflows/tag.yml(new): this repository had no Baseline tag workflow, and itsbaseline-v1…v3were cut by hand. A baseline tag should be cut by a workflow, which refuses a malformed version and never moves an existing tag. So this adds sourceplane/lumen's (same family)cutjob verbatim, but not lumen'spublish-consolejob or the two inputs that only serve it: that job packs the console withapps/web-console-next/scripts/console-artifact.mjs, which this tree does not have, so it would fail every run.repo-blueprint.yamlgains lumen'signoreline for it (**/.github/workflows/tag.yml), becausegithub-workflowscopies all of.githubinto every product..github/workflows/baseline.yml: orunv2.58.11→v2.96.0, the first release that readsspec.preview, so the placement test'sorun validatechecks the declaration.ci.yml(the product's own lane pin,v2.56.2) is unchanged.testing/placement.test.shnow accepts the newer CLI's wording of the same repo-scale gate (✓ Verified intent valid …), ported from lumen's copy. Without that,mainitself is red on any orun after v2.58.x.Nothing about how the baseline builds or deploys changes.
Checked
From a clean clone, with orun v2.96.0, and through a local stand-in of the preview gateway (the dev server sees a local
Hostand the browser's ownOrigin; the page is framed from a foreign origin):orun validateorun preview start --jsonreadyin 5.5 s (warm pnpm store)GET /Host+Originstraight to the dev serverorun preview stopConsole errors in the frame: Access to fetch at 'https://api-edge-stage.rahulvarghesepullely.workers.dev/v1/auth/oauth/providers' from origin 'http://abc123def456.orun-preview.app:13001' has been blocked by CORS policy: Response to preflight request doesn't pass access; Failed to load resource: net::ERR_FAILED
Notes
testing/placement.test.shfails at01-scaffold. The blueprint placesintent.yaml(and so itspreview:block) in 01-scaffold, butweb-console-nextonly in 06-console.orun validatetherefore refusespreview.component "web-console-next" names no component("the scaffolded intent does not plan"). Bootstraps run the latest orun, so a product built from this tree as it stands would stop at phase 01. There are two fixes. One is in orun: validate could treat a preview component that is not placed yet as "(yet)", asorun previewalready does. The other is here: strip the block in 01 and add it back in 06-console. That is a change to how products are bootstrapped, and this PR does not make it on its own. lumen has the same problem (Declare the console's live preview (saas-parallel-baselining PB4) lumen#125).ws_NDEXCDQS): it redeploys the stage and prod console.Next-Actionrequest withHost: 127.0.0.1:3001. With the allow-list,https://<token>.orun-preview.appandhttps://preview-gateway-stage.oruncloud.workers.devpass the origin check: the probe's made-up action id then reads "Failed to find Server Action". A foreign Origin still gets 500 "Invalid Server Actions request"./(Loading…) forwards to/login, which renders in full, "locked to stage". Pages behind sign-in show the sign-in prompt. The stage API refuses the preview origin by CORS: this is the sign-in page's OAuth-providers fetch. The aborted/login?_rscrequest is a router prefetch, cancelled by the client-side redirect.Generated by Claude Code