Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 15 additions & 10 deletions .github/workflows/baseline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,16 @@ jobs:

# Tier 1. THE BLUEPRINT, READ AND PLACED BY THE BINARY A BOOTSTRAP RUNS.
#
# Pinned at the bootstrap floor (BOOTSTRAP.md), not the bot's lane pin:
# every test here reads YAML with PyYAML, which parses anything well-formed;
# Pinned at v2.96.0, not the bot'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
# bot'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
# nothing. Then the leak gate (what a product would carry, derived by the
# floor too), and the placement tier (the offline bootstrap: both phases
# same orun), and the placement tier (the offline bootstrap: both phases
# placed and finished by the blueprint's own hooks, then the product's own
# `orun plan` for the 01-product merge — the KV apply before the Worker's
# deploy — by an orun at or above the product's lane pin, below).
Expand All @@ -76,7 +79,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
Expand Down Expand Up @@ -112,10 +115,11 @@ jobs:
# offline bootstrap before it reads the blueprint, which takes the
# bootstrap floor (v2.88.0: the one `secrets` reconcile, the task set-up
# in the background, the landings checked in the box), so this tier
# runs the floor, which is newer than the lane pin.
# runs v2.96.0, above the floor and the first orun that reads
# `spec.preview`, which is newer than the lane pin.
- uses: sourceplane/orun-action@v1.2.0
with:
version: v2.88.0
version: v2.96.0
- name: placement — the offline bootstrap, and the product's own plan
run: |
git config --global user.email ci@example.invalid
Expand All @@ -129,17 +133,18 @@ jobs:
# dry deploy in the tree orun stages, and the built Worker served and
# smoke-tested with the deploy's own smoke step — with no bot token, then
# with one, bound to a stand-in Telegram API and answering an update
# through a stand-in model API. Pinned at the
# bootstrap floor (v2.88.0): the offline bootstrap reads the blueprint, and
# the floor is newer than the product's lane pin (v2.78.4), which is all the
# through a stand-in model API. 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, and
# the pin is newer than the product's lane pin (v2.78.4), which is all the
# lane steps need.
site:
runs-on: ubuntu-latest
steps:
- 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
Expand Down
23 changes: 23 additions & 0 deletions apps/bot/component.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,29 @@ spec:
- profile: deploy
when:
triggerRef: github-push-main
# How the bot 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.
# The Worker serves the pages (packages/web, built into one HTML string) and
# their /rpc, so the tab shows its home page. Its libraries are imported
# from their dist/, so they are built first, as the Worker's own build does;
# an edit under packages/ shows after a rebuild, an edit under apps/bot
# reloads the Worker. `--local` keeps remote bindings off: Workers AI has no
# local mode, and without it wrangler would open a remote session that needs
# a Cloudflare credential, and stop when it has none. KV is local; the bot's
# Telegram secrets are never in a preview, so it answers no chat.
preview:
run:
- sh
- -c
- pnpm install --frozen-lockfile --prefer-offline --filter "@app/bot..." && pnpm --filter "@app/bot^..." run build && exec node_modules/.bin/wrangler dev --local --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"
Expand Down
7 changes: 7 additions & 0 deletions intent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 bot. Its own
# `spec.preview` (apps/bot/component.yaml) says how it runs; `orun preview`
# runs it.
preview:
component: bot

discovery:
roots:
- apps/
Expand Down
Loading