Skip to content

TB4: telegram-ai-bot becomes an Orun baseline - #5

Merged
ruehowl merged 1 commit into
mainfrom
tb/4-becomes-a-baseline
Oct 28, 2026
Merged

ruehowl merged 1 commit into
mainfrom
tb/4-becomes-a-baseline

Conversation

@ruehowl

@ruehowl ruehowl commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

A new bot from nothing to live on stage and prod in one landing, then the record of what went live (TB-5).

The card (blueprint.yaml): one Cloudflare provider and one brokered token (workers-deploy applies the namespace, deploys the Worker and pushes its secrets), the subdomain read from the connection, no domain and no bot token asked — the bot deploys and serves without one, and its owner stores it after the build.

The build (repo-blueprint.yaml, turso v8 / orun v2.88.0 shape): 01-product places every module (root files, KV root, the nine upstream libraries, the Worker, the tests, the tooling), brands them, lands one PR checked in the box (checks: local) and watches the one convergence — the namespace applied, then the Worker deployed bound to it, stage and prod side by side — then probes /health; 02-docs restores the promotion gate and dev's lanes and records the deployment from what /health answered. One secrets reconcile, the task set-up in the background, the watch every 5 s, no lockfile hook, no final docs probe. Phase minutes 7 + 1 = 8 (estimated).

The machinery: identity and the rename seam (BOT_NAME), the bootstrap tooling, the deployment-record renderer (no platform calls), the product's README (with "Deploy by hand") and operating contract, ai/context/, baseline.yml and tag.yml.

The tests (all run locally, green):

  • contract tiers: manifest, phases, coverage, rebrand, retouch, bootstrap-defer, wire; gen-component-docs.py --check;
  • leak.test.sh — upstream's licence and the deploy's scripts must ship, nothing of the factory may;
  • placement.test.sh — the product branded, every secret ref its own (the optional bot secrets included), the token kept out of the build, the merge's plan ordering cloudflare-kv → bot per environment;
  • e2e.test.sh — the stage lane's every step in a staged job tree (the stage namespace id rendered and bound in the dry run), the Worker served with no token (the binding a named no-op), then with one: the admin configures the bot through the admin page's own RPC, the deploy's planned smoke binds the webhook against a stand-in Telegram API, and an update posted to the webhook is answered through a stand-in model API.

Also: orun new --status parses the build with orun v2.89.0; orun catalog validate exits 0.


Generated by Claude Code

A new bot from nothing to live on stage and prod in one landing, then the
record of what went live.

blueprint.yaml is the console card: one Cloudflare provider and one
brokered token (workers-deploy applies the namespace, deploys the Worker and
pushes its secrets), the subdomain read from the connection, no domain and
no bot token asked — the bot deploys and serves without one, and its owner
stores it after the build. repo-blueprint.yaml is the build on the turso v8
/ orun v2.88.0 shape: 01-product places every module (the root files, the
KV root, the nine upstream libraries, the Worker, the tests, the tooling),
brands them, lands them as one pull request checked in the box and watches
the one convergence — the namespace applied, then the Worker deployed bound
to it, stage and prod side by side — then probes /health; 02-docs restores
the promotion gate and dev's lanes and records the deployment from what
/health answered. One secrets reconcile, the task set-up in the background,
the watch every 5 s.

The identity and the rename seam (BOT_NAME in apps/bot/src/identity.ts), the
bootstrap tooling, the product's README and operating contract, and the
baseline's tests: the contract tiers; the leak gate (upstream's licence and
the deploy's scripts must ship, nothing of the factory may); placement (the
product branded, every secret ref its own — the optional bot secrets
included — the token kept out of the build, the merge's plan ordering the
namespace before the Worker); and the e2e — the stage lane's every step in a
staged job tree, the Worker served with no token (the binding a named
no-op), then with one: the admin configures the bot through the admin
page's own RPC, the deploy's planned smoke binds the webhook against a
stand-in Telegram API, and an update posted to the webhook is answered
through a stand-in model API.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019PcpNVpFBcbeiX3EHdXfmn
@ruehowl
ruehowl merged commit 3598dad into main Oct 28, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants