Repository navigation
TB4: telegram-ai-bot becomes an Orun baseline - #5
Merged
Merged
Conversation
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
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.
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-deployapplies 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-productplaces 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-docsrestores the promotion gate and dev's lanes and records the deployment from what/healthanswered. Onesecretsreconcile, 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.ymlandtag.yml.The tests (all run locally, green):
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 orderingcloudflare-kv→botper 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 --statusparses the build with orun v2.89.0;orun catalog validateexits 0.Generated by Claude Code