From 2a5565dcdb07ef9ae0f377f951a311609dadc89a Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 4 Nov 2026 20:25:12 +0000 Subject: [PATCH 1/2] Declare the API's live preview (saas-parallel-baselining PB4) 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. - apps/api/component.yaml: spec.preview. It installs this app's packages only (--filter "@app/api..."), then runs `wrangler dev` on 127.0.0.1:8787 with its local bindings; the tab opens /, the API's index. wrangler refuses a port that is taken rather than moving. - intent.yaml: preview: {component: api}. - baseline.yml: orun v2.88.0 -> v2.96.0, the first release that reads spec.preview, so the placement's `orun validate` checks it. ci.yml (the site's own lane pin) is unchanged. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_019PcpNV6SjymJBPv3nNkC4z --- .github/workflows/baseline.yml | 9 +++++---- apps/api/component.yaml | 17 +++++++++++++++++ intent.yaml | 7 +++++++ 3 files changed, 29 insertions(+), 4 deletions(-) diff --git a/.github/workflows/baseline.yml b/.github/workflows/baseline.yml index 44be01c..2f7dab0 100644 --- a/.github/workflows/baseline.yml +++ b/.github/workflows/baseline.yml @@ -73,7 +73,7 @@ jobs: - uses: actions/checkout@v6 - uses: sourceplane/orun-action@v1.2.0 with: - version: v2.88.0 + version: v2.96.0 - uses: pnpm/action-setup@v4 with: version: 10.12.1 @@ -111,8 +111,9 @@ jobs: # of the stage lane's pull-request plan (the structure check before any # build, the build, the typecheck, the dry deploy) in the job tree orun # stages, and the Worker served by `wrangler dev --env stage` and - # smoke-tested with the component's own smoke command. Pinned at the - # bootstrap floor (v2.88.0): the offline bootstrap reads the blueprint (its + # smoke-tested with the component's own smoke command. Pinned at + # v2.96.0, above the bootstrap floor (v2.88.0), the first orun that + # reads `spec.preview`: the offline bootstrap reads the blueprint (its # one `secrets` reconcile, its background task set-up, its landings checked # in the box), and the floor is newer than the API's lane pin (v2.78.4), # which is all the lane steps need. @@ -122,7 +123,7 @@ jobs: - uses: actions/checkout@v6 - uses: sourceplane/orun-action@v1.2.0 with: - version: v2.88.0 + version: v2.96.0 - uses: pnpm/action-setup@v4 with: version: 10.12.1 diff --git a/apps/api/component.yaml b/apps/api/component.yaml index 3a05170..87d8d90 100644 --- a/apps/api/component.yaml +++ b/apps/api/component.yaml @@ -41,6 +41,23 @@ spec: - profile: deploy when: triggerRef: github-push-main + # How the API runs itself for orun.work's live Preview tab + # (saas-parallel-baselining PB4): `orun preview` starts this, and a coding + # session keeps it running while it works, so the person watches it change + # as it is built. The dev server binds the box's loopback only, on a fixed + # port, and installs first, so a checkout the session has not installed yet + # still comes up. + # It is the API, so the tab shows what / answers. wrangler dev runs the + # Worker in workerd with its local bindings and reloads it on every edit. + preview: + run: + - sh + - -c + - pnpm install --frozen-lockfile --prefer-offline --filter "@app/api..." && exec node_modules/.bin/wrangler dev --ip 127.0.0.1 --port 8787 --show-interactive-dev-session=false + port: 8787 + path: / + env: + WRANGLER_SEND_METRICS: "false" parameters: nodeVersion: "22" pnpmVersion: "10.12.1" diff --git a/intent.yaml b/intent.yaml index 39f4d4a..190ecdd 100644 --- a/intent.yaml +++ b/intent.yaml @@ -61,6 +61,13 @@ compositions: cloudflare-domain: stack-tectonic db-migrate: stack-tectonic +# The live preview (saas-parallel-baselining PB4): the component orun.work's +# Preview tab shows while a coding session works on the API. Its own +# `spec.preview` (apps/api/component.yaml) says how it runs; `orun preview` +# runs it. +preview: + component: api + discovery: roots: - apps/ From 5b1c73640cb841f65d3179626547cdd50199968c Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 4 Nov 2026 20:25:50 +0000 Subject: [PATCH 2/2] baseline.yml: the blueprint job's pin comment names v2.96.0 too Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_019PcpNV6SjymJBPv3nNkC4z --- .github/workflows/baseline.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/baseline.yml b/.github/workflows/baseline.yml index 2f7dab0..9d7eaf7 100644 --- a/.github/workflows/baseline.yml +++ b/.github/workflows/baseline.yml @@ -58,8 +58,11 @@ jobs: # Tier 1. THE BLUEPRINT, READ AND PLACED BY THE BINARY A BOOTSTRAP RUNS. # - # Pinned at the bootstrap floor (BOOTSTRAP.md), not the API's lane pin: - # every test here reads YAML with PyYAML, which parses anything well-formed; + # Pinned at v2.96.0, not the API's lane pin: at or above the bootstrap + # floor (v2.88.0, BOOTSTRAP.md), and the first orun that reads a + # component's `spec.preview`, so the placement's `orun validate` checks the + # API's live preview too. Every test here reads YAML with PyYAML, which + # parses anything well-formed; # only the pinned orun can say whether the document is one a bootstrap can # run. `--status` parses it, validates every hook against the action # registry, compiles every `when` and narration template, and writes @@ -115,7 +118,7 @@ jobs: # v2.96.0, above the bootstrap floor (v2.88.0), the first orun that # reads `spec.preview`: the offline bootstrap reads the blueprint (its # one `secrets` reconcile, its background task set-up, its landings checked - # in the box), and the floor is newer than the API's lane pin (v2.78.4), + # in the box), and the pin is newer than the API's lane pin (v2.78.4), # which is all the lane steps need. api: runs-on: ubuntu-latest