Skip to content

CM5: the cirrus standard — no kiox, generated component docs, the context pack - #6

Merged
ruehowl merged 3 commits into
mainfrom
claude/brave-mccarthy-4l2qxb
Oct 21, 2026
Merged

ruehowl merged 3 commits into
mainfrom
claude/brave-mccarthy-4l2qxb

Conversation

@ruehowl

@ruehowl ruehowl commented Oct 18, 2026

Copy link
Copy Markdown
Contributor

Brings commerce to cirrus-baseline's standard. The storefront itself is unchanged.

What changes

  • kiox removed. kiox.yaml/kiox.lock and their root-kiox/root-kiox-lock blueprint modules are gone, along with the rebrand skip entry and the phases.test.sh partition entries. Nothing ran the kiox pin (v2.15.0). Every workflow pins orun itself through orun-action version:.
  • Component docs. apps/web, infra/terraform/cloudflare-r2 and tests/web now have docs/overview.md, docs/architecture.md and docs/runbook.md, 9 pages in all. They cover the R2 bucket, both Durable Objects, the self-reference and ASSETS bindings, the R2 root's resources and outputs, and the smoke. tooling/catalog/gen-component-docs.py generates them; it is byte-identical to the pilot's. A new Baseline CI step runs it with --check. The leak gate confirms the pages name no factory path and spell the slug only in identity forms.
  • Context pack. ai/context/current.md, decisions.md and open-risks.md sit next to the two pages that ship. They describe this repository and no module places them. The open risks are CM-P and CM-M.
  • Status docs match the tags and CM4.
    • CM4's status row said "this PR (CM-5), to be tagged". It now reads #5, tagged baseline-v1. CM5 (task CM-6) is recorded in epic.yaml, the plan, the status file and the epic README.
    • The status file's "Around the template" section cited .dev.vars.example and a SITE_URL in .env.example; CM4 removed both. It now describes apps/web/.env.example as it is. baseUrl/SITE_URL is marked as CM3-only.
    • Risk CM-B (RESOLVED) still listed COMPANY_NAME/SITE_NAME/SITE_URL as wrangler vars and said an unset store renders upstream's "not configured" state. It now records that the Worker has had no vars since CM4 and that an unset store serves the demo catalogue.
    • design.md §2 listed the same vars, and §7 called CM-B "open". Both are reconciled.
    • Epic README: "Shipped as" said main after CM3: ready to instantiate #4; it now names baseline-v1 (CM4: commerce becomes an Orun baseline #5). The "Gate" row claimed terraform validate and plan; it now says offline is validate only, because the root's plan calls the Cloudflare API (adopt.tf).

Verified locally

  • testing/{manifest,phases,coverage,rebrand,retouch,bootstrap-defer,wire}.test.sh pass. gen-component-docs.py --check passes (3 components).
  • testing/leak.test.sh at orun v2.58.11: 147 files derived (140 − 2 kiox + 9 doc pages). 140 shipped sources name no factory path, and the slug check passes.
  • testing/placement.test.sh at v2.78.4 (the lane pin, as baseline.yml runs it; CM-Q): 147 files placed and two landings branded.
    • Push to main: cloudflare-r2 applies at level 0 with the r2-data key, then web deploys at level 1 on stage and prod.
    • Pull request: nothing waits. The 02-docs merge plans 0 jobs, and --resume is a no-op.
  • pnpm install --frozen-lockfile, wire:fixture with git diff --exit-code (no diff), typecheck, lint (0 errors, 6 warnings), test (33 tests) and build pass.
  • testing/e2e.test.sh at v2.78.4 passes:
    • Stage lane: its 4 steps run in the staged job tree.
    • wrangler dev, with no Shopify key: the demo storefront serves. An item goes into the cart twice through the build's server action, then /cart, then checkout's "Connect a payment provider".
  • orun task check CM-6 reports complete.

Generated by Claude Code

…text pack

- Remove kiox.yaml/kiox.lock and their two blueprint modules: nothing ran
  the kiox pin (v2.15.0); every workflow pins orun through orun-action.
- Generate docs/{overview,architecture,runbook}.md for every component
  from what it declares (tooling/catalog/gen-component-docs.py), and fail
  Baseline CI when they drift (--check).
- Add ai/context/{current,decisions,open-risks}.md (this repository's own;
  nothing places them).
- Close out CM4 (shipped in #5, tagged baseline-v1) and record CM5 (CM-6).
- Make the docs say what CM4 built: risk CM-B and design §2/§7 no longer
  list wrangler vars or call CM-B open; the status file no longer cites a
  .dev.vars.example that CM4 folded into .env.example; the epic README's
  gate says offline is terraform validate only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D8AmgTwmnp4M8mgmnS9aha
The generator now lays tables out the way prettier does (an app whose lint
is `prettier --check` accepts the pages as written), lists the WIRING_*
failure only for Workers that take wiring, and no longer claims a package
holds no credentials.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D8AmgTwmnp4M8mgmnS9aha
The generator now reads `optionalSecretEnv` (listed as "(optional)") and
secrets declared per environment under `subscribe.environments[]`, so a
page no longer leaves out a secret its component declares. Its tables are
laid out as prettier lays them out, the WIRING_* failure is listed only
for Workers that take wiring, and a package is no longer said to hold no
credentials. Every starter now carries the identical generator.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01D8AmgTwmnp4M8mgmnS9aha
@ruehowl
ruehowl marked this pull request as ready for review October 18, 2026 14:39
@ruehowl
ruehowl merged commit aece348 into main Oct 21, 2026
6 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