Skip to content

AV4: agent-visibility becomes an Orun baseline - #5

Merged
ruehowl merged 1 commit into
mainfrom
av4-baseline
Oct 29, 2026
Merged

ruehowl merged 1 commit into
mainfrom
av4-baseline

Conversation

@ruehowl

@ruehowl ruehowl commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

What (AV-5)

The repository becomes an Orun baseline on the Cirrus conventions. It builds a product in ONE landing.

  • blueprint.yaml (the console card):

    • requires: [github, cloudflare]
    • CLOUDFLARE_API_TOKEN (workers-deploy) and CLOUDFLARE_ACCOUNT_ID shown as a preview; the admin token is deliberately not among them
    • the programme 01-product and 02-docs, expectedMinutes 6 (5 + 1)
  • repo-blueprint.yaml (the build document):

    • 01-product places every module, brands it, checks it locally (checks: local) and lands it as one PR, then watches the convergence and probes both workers.dev URLs.
    • 02-docs is hook-only: it renders the deployment record from probed /api/health and restores the promotion gate and dev's lanes.
  • The order. web depends on cloudflare-kv: the edge is enforced on a push to main and advisory on a PR. The product's own plan is checked in testing/placement.test.sh.

  • The rename engine (tooling/rebrand/rebrand.mjs) renames:

    • the slug, the Worker, the KV namespace titles, the secret refs, the domain and subdomain placeholders
    • the product name in two seams: "SITE_NAME" in the wrangler template and its render (JSON-encoded), and the dashboard's <title> (HTML-escaped)

    UPSTREAM protects the two upstream names that begin with the slug: agent-visibility-template and the agent-visibility/0.1 index protocol, which upstream's own test asserts.

  • Product docs and tooling: the product's README, AGENTS.md and ai/context pack; BOOTSTRAP.md; docs/phases; generated component docs (gen-component-docs.py --check); the bootstrap helpers; the deployment-record hook.

  • Testing tiers:

    • contract tests: manifest, phases, coverage, rebrand, retouch, bootstrap-defer, wire
    • the leak gate
    • placement: the offline bootstrap, then the product's own plans
    • e2e: the product is built in orun's staged job tree with a planted admin-token marker, which shows up in nothing the build writes or logs. It is dry-deployed with VISIBILITY_CACHE, AI and ASSETS bound, then served under wrangler dev, with a Workers AI stand-in (testing/lib/fake-ai) in place of the model. That run checks every surface with its Content-Signal header and the product name, and that writes are refused. With the token in .dev.vars, a page is posted, a page the model fails on gets the fallback, and the cache is cleared.
  • baseline.yml and tag.yml.

Verified locally

  • Every tier is green: manifest, phases, coverage, rebrand (46 cases), retouch, bootstrap-defer, wire, leak (78 files), placement and e2e (47 s).
  • gen-component-docs --check passes.
  • orun catalog validate (v2.89.0) reports 0 errors.
  • orun new --status parses the blueprint.

No live bootstrap has run yet (risk AV-G).


Generated by Claude Code

blueprint.yaml (the console card: requires github and cloudflare, the two
brokered keys as a preview, the programme 01-product and 02-docs, six
minutes) and repo-blueprint.yaml (every module placed by 01-product and
landed as one pull request; 02-docs hook-only) take a new product from
nothing to live on stage and prod in one landing: cloudflare-kv applies
before web, enforced on main and advisory on a pull request.

The rename engine renames the slug, the Worker, the namespace titles, the
secret refs, the domain and subdomain, and the product's name in its two
seams (SITE_NAME in the wrangler template and its render, the dashboard's
title), and protects the two upstream names that begin with the slug:
agent-visibility-template and the agent-visibility/0.1 index protocol.

Adds the bootstrap tooling, the deployment-record hook, the product's
README, AGENTS.md and context pack, generated component docs, baseline.yml
and tag.yml, and the testing tiers: contract tests, the wiring path, the
leak gate, the offline bootstrap with the product's own plan, and an
end-to-end tier that builds the product in orun's staged job tree, dry
deploys it and serves it under wrangler dev with a Workers AI stand-in:
every surface, writes refused, then admitted with a token.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019PcpNVpFBcbeiX3EHdXfmn
@ruehowl
ruehowl merged commit 1c20a07 into main Oct 29, 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