Skip to content

AA4: ai-artifacts becomes an Orun baseline - #5

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

ruehowl merged 1 commit into
mainfrom
aa/4-a-baseline

Conversation

@ruehowl

@ruehowl ruehowl commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

This adds the baseline machinery: kv-redis-starter's at its current main (the turso v8 / orun v2.88.0 shape), made this product's.

What Where
The console card: inputs (subdomain from the Cloudflare connection, no domain asked), two brokered secrets (workers-deploy, account id), the programme, 7 min (6 + 1, estimates), verify URLs blueprint.yaml
The build: 01-product lands the whole product as one PR, and one convergence applies the KV namespace, then deploys the Worker with its id. 02-docs records it repo-blueprint.yaml
Identity, the product's README and AGENTS.md, task contracts .baseline/
Context pack, phase cards with budgets, operator guide ai/context/, docs/phases/, BOOTSTRAP.md
Deployment record: probes /api/health and names the optional keys hooks/render-deployment-docs.sh
Rename, bootstrap and catalog tooling; generated docs for every component tooling/, */docs/
Tests testing/, .github/workflows/baseline.yml
Tagging .github/workflows/tag.yml

Changes from the kv-redis-starter machinery:

  • The blueprint's ignore now keeps .dev.vars.example in the product. kv's **/.dev.vars.* would have dropped it. The leak and placement gates check that it ships.
  • Placement asserts:
    • all eleven optional key refs name the product's workspace and project;
    • the smoke reads /api/health;
    • the build hands the keys to <repo>-web-<env> and strips them from the bundle (env -u).
  • e2e serves the built Worker under wrangler dev, with its AI binding on a Workers AI stand-in (testing/lib/fake-ai, ai-chatbot's):
    • the deploy's own smoke passes;
    • a fragment streams from the default model with its JSON schema;
    • an unkeyed vendor model is refused, naming its secret;
    • the sandbox shows its "connect E2B" notice;
    • one client gets ten requests, then 429;
    • the short links, assets and 404 behave;
    • an E2B key planted in the build's environment is shown absent from the bundle, and the dry run is held under Workers Free's 3 MiB (1,877 KiB gzipped).
  • The SITE_NAME seam is now in the double-quoted form the rename engine matches.

Local results:

  • manifest, phases, coverage, rebrand, retouch, bootstrap-defer and wire all pass;
  • gen-component-docs.py --check, leak.test.sh, placement.test.sh and e2e.test.sh pass;
  • orun catalog validate (v2.89.0) reports 0 errors;
  • orun new --status (v2.89.0) reads the build document.

Generated by Claude Code

The baseline machinery, kv-redis-starter's at its current main (the turso v8
/ orun v2.88.0 shape: one secrets hook, the task set-up in the background,
landings checked in the build box, the manual-deploy contract), made this
product's:

- blueprint.yaml, the console card: inputs (the subdomain from the Cloudflare
  connection, no domain asked), the two brokered secrets (workers-deploy
  applies the namespace and deploys the Worker; the account id), the
  programme, 7 minutes (6 + 1, estimates), the verify URLs.
- repo-blueprint.yaml, the build: 01-product lands the whole product as one
  pull request and one convergence applies the KV namespace, then deploys
  the Worker with its id; 02-docs records it. Its ignore list keeps
  .env.example and .dev.vars.example in the product (kv-redis-starter's
  `**/.dev.vars.*` would have dropped the latter).
- .baseline/ (identity, the product's README and AGENTS.md, the task
  contracts), the context pack, the phase cards with their budgets,
  BOOTSTRAP.md, the deployment-record renderer (probing /api/health, naming
  the optional keys), the rename and bootstrap tooling, generated docs for
  every component (gen-component-docs.py --check), and the SITE_NAME seam in
  the double-quoted form the rename engine matches.
- testing/: the contract tiers, the leak gate, placement (the eleven optional
  key refs, the smoke on /api/health, the keys handed to the product's own
  Worker and stripped from the bundle) and the e2e, which serves the built
  Worker with its AI binding on a Workers AI stand-in (testing/lib/fake-ai):
  the deploy's own smoke, a fragment streamed by the default model with its
  JSON schema, an unkeyed vendor model refused, the sandbox's notice, ten
  requests then 429, the short links, the assets — and an E2B key in the
  build's environment proven absent from the bundle; 1877 KiB gzipped.
- baseline.yml and tag.yml.

All tiers green locally: manifest, phases, coverage, rebrand, retouch,
bootstrap-defer, wire, the component docs check, leak, placement, e2e; orun
catalog validate (v2.89.0) reports no errors.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019PcpNVpFBcbeiX3EHdXfmn
@ruehowl
ruehowl merged commit 42fa273 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