Skip to content

ci(preview): move the Ladle site to Workers and fail on no preview - #189

Merged
sydevs-bot merged 8 commits into
mainfrom
claude/ci-184-ladle-workers
Oct 26, 2026
Merged

sydevs-bot merged 8 commits into
mainfrom
claude/ci-184-ladle-workers

Conversation

@sydevs-bot

@sydevs-bot sydevs-bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Adds the wm-design Workers config that replaces the wemeditate-design Pages project, plus an offline gate so something in this repo reads it.
  • Smoke (ladle) now reddens when discovery finds no preview. It was a green check that tested nothing.

Change outline

The main change is the smoke job's verdict. A missing preview used to end the job silently, because the only test step was gated on a non-empty URL and was the job's last.

Behaviour — what Smoke (<target>) decides

 Smoke (<target>)                                     .github/workflows/ci.yml
   scope: did Cloudflare build the ladle preview?     # ladle + pull_request only
     built == 'false' → summary "nothing to smoke", skip checkout and the rest
   discover <target> preview URL                      # reports a URL or none; never judges
   preview_url != ''  → run the specs
+                     → summary names the address discovery read
-  (end of job — a missing preview was a green check that ran nothing)
+  preview_url == ''  and matrix.require_preview == 'true'
+    event is not pull_request → summary "the merge queue publishes no preview"  → green
+    head repo is a fork       → ::warning                                       → green
+    head repo is ours         → ::error                                         → RED

require_preview is the per-leg policy, beside project: in the matrix. web is 'false', so Smoke (web) keeps its silent skip — the wemeditate-web Worker's Builds-trigger branch filters are not readable from this repo, so reddening that leg could block a PR for a cause nothing here can observe.

Contract — what design.wemeditate.com answers with

Measured on the live Pages site 2026-10-11, and what the Worker must reproduce.

 GET /<any path>                      .ladle/static/_headers → emitted into build/_headers
   X-Robots-Tag: noindex
+  Access-Control-Allow-Origin: *     # a Pages DEFAULT; Workers supplies none
 GET /<unknown path>
   200 + the Ladle shell
+                                     # was the Pages SPA fallback, with no _redirects in repo;
+                                     # now assets.not_found_handling, since Workers ignores
+                                     # _redirects entirely

⚠ Exactly one ACAO rule may match a path. Both platforms apply every matching rule and comma-join a repeated value, so two rules serve the invalid *, *. The guard counts declarations rather than only asserting the value.

Files — two Workers from one repo

 wrangler.toml                   # the app: wemeditate-web, has a `main`; what `pnpm deploy` resolves
+wrangler.design.jsonc           # the playground: wm-design, assets-only, no `main`
+                                #   read by `pnpm check:wrangler`, in the gate after ladle:build

Preview

The ladle preview builds for this PR — .ladle/ and package.json are both watched paths — but it is still the old Pages site. No wm-design Worker exists yet; creating it is phase 2 and attended. So this PR changes no live site, and Smoke (ladle) passed here by reading https://0f14cc43.wm-design.pages.dev, a wm-design.pages.dev host on the Pages project.

Test results

  • Lean gate: ✓ pnpm lint (0 errors, 2144 pre-existing warnings — unchanged by this branch), tsc --noEmit, vitest run 867 passed in 87 files. Re-run after the two review commits with the same result.
  • Targeted: tests/guards/ladle-crawler-refusal.test.ts 3 passed. Each new assertion was watched failing first — ACAO removed, then a second /* rule, then a /fonts/* rule (which the /*-scoped helper cannot see), and finally confirmed that a comment spelling the header out in full does not trip the count.
  • pnpm ladle:build: ✓, and build/_headers carries both headers.
  • pnpm check:wrangler: ✓ exit 0 with no Cloudflare credential in the environment. Negative control: exit 1 naming assets.directory when pointed at a directory Ladle does not build.
  • The three report-step branches were executed as shell: same-repo → ::error + exit 1; fork → ::warning + exit 0; merge queue → green with its summary line.
  • Build: N/A — CI runs no production build of the app, and this branch does not change that.
  • tests/smoke/ladle/ not run: it throws without a live PREVIEW_URL.
  • Security review: ran (the diff touches scripts/, which securityReview.triggerPattern matches). No findings. It reached the four conclusions in Detail below on ACAO *, the workflow's run: expansion, the discovery script, and the Worker config.

Manual verification

Phase 1 is this PR and changes no live site. Everything below needs the Cloudflare dashboard, DNS, or the Cloudflare API, and no cloud run can reach any of them. The ticket carries the full list and the order; the five open questions sydevs/SahajAtlasWeb#279 was expected to settle and did not are now this ticket's, and each answer belongs in sydevs/SahajAtlasWeb#266.

  1. Create the Worker named wm-design (the name is load-bearing — see Notes), build command pnpm ladle:build, output build/, config path wrangler.design.jsonc. Read the first build log for the Node and pnpm it actually used: .node-version is 22.17.0 and package.json pins [email protected], while the Workers build image defaults are newer and whether it honours .node-version is undocumented.
  2. Record the name of the check run Workers Builds posts, or that it posts none. ci.yml's checks: read comment now says ci(preview): move the Ladle site to Workers and fail on no preview #184 records this.
  3. Set branch_excludes (excluding gh-readonly-queue/*) and path_includes/path_excludes on the Builds trigger through the API — the dashboard cannot express either. Mirror WATCH/IGNORE in ci.yml exactly.
  4. Prove the red branch: make discovery find nothing once and watch Smoke (ladle) go red, then revert. ⚠ The proof push must touch a watched path (package.json, say), or the scope step sets built=false, the quiet branch takes it, and the proof is vacuous. DISCOVER_TIMEOUT_MS and a non-matching CF_PROJECT_MATCH are the two levers.
  5. ⚠ Turn the Pages project's preview builds off before treating a green Smoke (ladle) as evidence of the move — see Notes. Always read the selected … line the discovery step prints.
  6. Run Our Cloudflare Pages sites move to Cloudflare Workers, at no extra cost SahajAtlasWeb#266's four-part "verified working" gate, then take the hostname off Pages and confirm it gone before deleting the project — otherwise the delete takes the DNS record the new site depends on.
  7. curl -sI https://design.wemeditate.com/ → exactly access-control-allow-origin: *, not *, *; x-robots-tag: noindex still present; compare the full header set against the pre-move capture; and check /_headers is parsed rather than served (if served, add an .assetsignore), while robots.txt still is.

Notes for reviewer

Three judgement calls worth your eye.

The Worker name is pinned to wm-design by a substring matcher. matchesTarget in the discovery script tests CF_PROJECT_MATCH as a plain substring over "<project> <url>", with no hostname-label boundary. The review pass argued for giving it a boundary check, and surfaced a sharper version of the hazard than the ticket records: a design Worker named, say, wemeditate-web-design would make the web leg's wemeditate-web match select the ladle preview, and the web leg never consults EXCLUDE. I did not fix it — the ticket records the hazard, refuses a second discovery path, and sydevs/SahajCloud#903 replaces this matcher outright; a boundary check done properly also needs matchesTarget exported and a new spec, which is the one new file this change would otherwise not have. The constraint is instead written at the three sites a rename touches. Say the word if you would rather have the matcher fixed here.

⚠ A green Smoke (ladle) is not evidence during the overlap window. While both the Worker and the Pages project exist, both can post a comment on the same PR, and discoverUrl returns whichever came first. That is why manual step 5 comes before step 6.

One assertion goes beyond the ticket's written criteria. tests/smoke/ladle/ now checks ACAO over HTTP beside the noindex it already checked. The ticket makes this an attended one-time curl. I added it because ACAO is the one header the platform move silently drops, and a one-time check is exactly the "verified once, then unobserved" gap this ticket closes elsewhere. It passes on Pages and on Workers, so it holds across the cutover. Drop it in one commit if you disagree.

Also: pnpm ladle:build is new in the gate job (~13s). It is there because check:wrangler's dry run fails when assets.directory does not exist — which is the drift worth catching — and it independently fails the gate on a broken story.

Open questions

  • Does any ruleset or branch protection require the check name Lint, Typecheck & Unit? That job now also builds the component library and dry-runs a Worker config, so the name no longer says what it runs. A session cannot read rulesets, so the rename to Gate is yours to green-light — the thread on ci.yml:40 is left open for it.
Detail

Fixture pre-mortem. assets.directory: "build" assumes Ladle writes there. Verified three ways rather than assumed: .ladle/config.mjs sets no outDir, so Ladle's default applies; .gitignore:138-139 carries build/ under the comment "Ladle build output"; and an actual pnpm ladle:build wrote build/index.html, build/_headers and 211 files. The _headers guard uses the real .ladle/static/_headers, not a fixture.

Measured against the pinned wrangler 4.149.0, not copied from the sibling repo.

  • compatibility_date is required even with no main, and wrangler suggests 2026-10-06 itself — the same value chore(build): move the Ladle playground to Cloudflare Workers SahajAtlasWeb#279 shipped, arrived at independently.
  • preview_urls defaults to false in node_modules/wrangler/config-schema.json, so the line carries a value rather than restating one.
  • previews: {} is a recognised key, not silently ignored: a bogus sibling previewz draws Unexpected fields found in top-level field: "previewz" while previews draws nothing. That is the negative control for keeping it.

Why require_preview is a quoted string. A bare YAML boolean reaches the if: as a value whose type GitHub does not promise, and the string "false" is truthy in an expression — which would have reddened the web leg for a preview it is not owed. A quoted value compared to a quoted literal has no second reading. I could not test GitHub's coercion from here, so I took the form that is correct under either reading.

Rejected review findings, beyond the three above. Path-filtering or skipping the gate's ladle:build (the filter would be a fourth copy of the WATCH/IGNORE list this ticket exists partly to stop duplicating). Replacing it with mkdir -p build plus a unit guard (an empty directory satisfies the existence check and gives up the drift detection). Dropping previews: {} (pre-placed for sydevs/SahajAtlasWeb#266's child 4; its comment pre-empts exactly this). Renaming to check:wrangler:design (sydevs/SahajAtlasWeb ships check:wrangler for the same job). Moving the pull_request check into the step's if: (that deletes the merge-queue summary line, which is a required criterion). Deleting the doc's duplicate watch-path list (the ticket requires three identical copies, and the doc copy is the only one a reader without Cloudflare access can see). Replacing require_preview with a matrix.target == 'ladle' clause (it would put a leg name back inside a step whose name, TARGET and PROJECT all come from the matrix).

Not changed, on purpose. wrangler.toml is byte-identical to main, and a bare wrangler deploy still resolves it — proven by it failing on main = "virtual:photon:cloudflare:server-entry", a key only that file declares. Nothing under public/ changed, so the live app's asset responses are untouched. package.json's ladle:build is unchanged; .ladle/crawler-refusal.ts already emits _headers, so the cp step an earlier draft of the ticket specified was unnecessary. No .ladle/_headers was created. No file under .claude/ was written.

.claude/workflow.json needs two attended edits that are deliberately not in scope here, because it is a protected path a cloud run cannot write: deployTarget still reads "Cloudflare Workers (web) + Cloudflare Pages (Ladle)", and securityReview.triggerPattern anchors on ^wrangler\.toml, so wrangler.design.jsonc escapes the security-review trigger.

No workflow-text unit spec was added. This repo has no ci-workflows.test.ts, and sydevs/SahajCloud#903 later replaces this preview-finding work entirely; the reviewer accepted that cost on 2026-10-11. The evidence for the new assertion is the red run in manual step 4, which a text spec could not provide.

Security review conclusions, since the trigger fired. ACAO * on an assets-only Worker with no main, no handler, no cookie and no Access-Control-Allow-Credentials grants cross-origin JS nothing curl already lacked; it restores the pre-migration Pages response. The new report step interpolates nothing untrusted — every ${{ }} is in env: or the step name:, IS_PR/SAME_REPO are comparison results (a fork's full_name is namespaced under the attacker's account, so SAME_REPO cannot be forged true), and that step carries no secrets. $PREVIEW_URL in the summary sits inside double quotes where \` is a literal backtick, and PREVIEW_URL_RE admits no $, backtick, ;, quote or newline. The workflow's permissions: are unchanged and all read-only. not_found_handling returns a fixed file with no path reflection.

One thing it noted and did not report, which the ticket already records: fromPrComments does not filter by comment author, so any account that can comment could plant a matching host. Pre-existing and unchanged here; sydevs/SahajCloud#903 replaces that path.

Comment sweep. No ⚠ line, #NNN breadcrumb or cross-repo pointer was deleted. Two ⚠ lines changed, both rewritten in place: the watch-path mirror warning from "two places" to three, and then from "the Builds trigger" to "the Cloudflare build trigger", which is the Pages project until phase 2. The review round added one ⚠, naming the live Pages host the ladle row describes after phase 2. comment-lint.mjs --base origin/main reports no banned comment added.

Closes #184

🤖 Generated with Claude Code

https://claude.ai/code/session_017pjym4dxg9pNFVtY4WtTUr


Generated by Claude Code

`design.wemeditate.com` is served by the Cloudflare Pages project
`wemeditate-design`. This adds the Workers config that replaces it, and
the script that proves the config is readable.

The Worker is named `wm-design` deliberately. A Workers preview host is
`<preview>-<worker>.<subdomain>.workers.dev`, and `CF_PROJECT_MATCH` in
`ci.yml` is a plain substring test over it, so keeping the name means
`ci.yml` and the `EXCLUDE` list in the discovery script need no edit. The
alternative re-creates the silent green the rest of this branch closes.

The filename is `wrangler.design.jsonc`, which wrangler does not
auto-discover, so `pnpm deploy` keeps resolving `wrangler.toml`.
`wrangler.toml` is untouched.

Measured against the pinned wrangler 4.149.0, not copied:

- `compatibility_date` is required even with no `main`, and `2026-10-06`
  is the date that wrangler suggests itself.
- `preview_urls` defaults to `false` in
  `node_modules/wrangler/config-schema.json`, so the line carries a value.
- `previews: {}` is a recognised key, not a silently-ignored one: a bogus
  sibling `previewz` draws "Unexpected fields found in top-level field"
  while `previews` draws nothing. It is pre-placed for the
  `cloudflare/wrangler-action` consumer sydevs/SahajAtlasWeb#266's child 4
  introduces, and prevents no local failure today.
- `not_found_handling: "single-page-application"` preserves today's
  behaviour: that address answers an unknown path with a 200 and the Ladle
  shell, and the repo carries no `_redirects`, which Workers ignores anyway.

`pnpm check:wrangler` was proven both ways with no credential in the
environment: exit 0 against this config, and exit 1 naming
`assets.directory` when it points at a directory Ladle does not build.

Mirrors sydevs/SahajAtlasWeb#279's config rather than inventing a second
shape.

Refs #184

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017pjym4dxg9pNFVtY4WtTUr
Measured 2026-10-11, `design.wemeditate.com` serves
`access-control-allow-origin: *` on `/` and `/meta.json`. That header is a
Pages default. Workers static assets supply only `Content-Type`,
`Cache-Control`, `ETag` and `CF-Cache-Status`, so the move loses it unless
it is asked for — and sydevs/SahajCloud#913 depends on this library's
assets staying readable cross-origin.

Workers does read a `_headers` file from the assets directory, and #180
already landed `.ladle/static/_headers` plus the plugin that emits it, so
this is one header on the rule that is already there. No second rule, and
no `ladle:build` change.

⚠ Exactly one ACAO rule may match a path. Both platforms apply every
matching rule and comma-join a repeated value, so two rules serve the
invalid `*, *`. Satisfying that is trivial with one rule; holding it is the
point, so the guard counts the declarations rather than only asserting the
value. Both new assertions were watched failing first — one with the header
removed, one with a second `/*` rule added.

Refs #184

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017pjym4dxg9pNFVtY4WtTUr
`Smoke (ladle)` gated its only test step on `steps.preview.outputs.preview_url
!= ''`, and that step was the job's last. So a missing preview was a green
check that tested nothing — the defect was stated in the workflow's own
words, at "so the job still passes".

A new "Report a missing ladle preview" step keeps the invariant: a green
`Smoke (ladle)` means the specs ran, or says in the summary why there was
nothing to run. Three cases stay green, each for a reason the step can see:

- `built == 'false'` — Cloudflare built nothing. The step is skipped and
  the scope step already said so.
- `merge_group` — the queue publishes no preview. Gated on
  `github.event_name == 'pull_request'` explicitly, rather than relying on
  `SAME_REPO` evaluating false by accident, which is what it would do.
- a forked PR — no preview by design, so `::warning` and exit 0.

Everything else is a same-repo PR that should have had a preview: `::error`
and exit 1. All three branches were executed locally and land as specified.

The green path now names the address discovery read, in the step summary.
That is the only record of *which* preview a passing check tested, and the
host label is what tells the Worker's preview from a stale `pages.dev`
comment on the same PR. sydevs/SahajAtlasWeb#266 counts a pass that names
no address as a failure.

`Smoke (web)` keeps its silent skip on purpose: the `wemeditate-web`
Worker's own Builds-trigger branch filters are not readable from this repo,
so reddening that leg could block PRs for a cause nothing here can observe.
It does gain the address line, which changes no verdict.
sydevs/SahajCloud#903 replaces this discovery for both legs.

The gate gains `pnpm ladle:build` (13s, and it fails on a broken story) and
`pnpm check:wrangler` after it. Nothing else in this repo reads
`wrangler.design.jsonc`, so without that step a rename or a drifting
`assets.directory` would surface only in a Cloudflare build log, on main.
The order is load-bearing: the dry run needs the `build/` that `ladle:build`
writes.

The script's prose stops lying. It said "skips smoke" in four places and
"web-app" on both legs; the caller now decides whether an empty URL is a
failure, and the script only reports. No second way of finding a preview
was added — sydevs/SahajAtlasWeb#266 refuses one, and `PREVIEW_URL_RE`
already matches `workers.dev`.

No workflow-text spec is added. This repo has no `ci-workflows.test.ts`,
and the evidence for the new assertion is a red run on a real PR, which a
text spec cannot provide. The reviewer accepted that cost on 2026-10-11.

Refs #184

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017pjym4dxg9pNFVtY4WtTUr
…oject

Sweeps every place that named the platform. The inventory was re-verified
at 689f8b1, and four of the places are new since the first pass: #180
added a section and three files that each name Pages.

- The Target/Platform/URL-host table gains a Config column and the ladle
  row becomes Workers Builds at `…-wm-design.<acct>.workers.dev`.
- The build-watch-path section becomes the Builds trigger's
  `path_includes`/`path_excludes`, set through the Cloudflare API because
  the dashboard cannot express them. The lists themselves are unchanged
  and still identical to `WATCH`/`IGNORE` in `ci.yml`.
- ⚠ The mirror warning now names three places, not two.
- A new section records that a missing ladle preview is red, and which
  three cases stay green — and that `Smoke (web)` keeps its silent skip,
  with the reason.
- The crawler-refusal section gains the ACAO rule, the one-rule
  invariant, and that Workers ignores `_redirects` while reading
  `_headers` and `robots.txt`.
- The gate bullet gains `ladle:build` and `check:wrangler`.
- `AGENTS.md` stops calling it "the Ladle Pages site", and the deployment
  section says why there are two wrangler configs and which one
  `pnpm deploy` resolves.

Two Pages references stay on purpose. `server/sitemap.ts`'s `*.pages.dev`
host pattern is true of both platforms, and the discovery script's
`EXCLUDE` keeps `wemeditate-design` because that host can still be sitting
in an older PR's comments — both now read as past tense.

No ⚠ line, #NNN breadcrumb or cross-repo pointer was dropped; the one ⚠
that changed was rewritten in place, and `docs/cloudflare-previews-ci.md`'s
Storybook warning and `public/` reason both stay, being about the emit
mechanism rather than the platform.

Refs #184

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017pjym4dxg9pNFVtY4WtTUr
…ranch

Review findings from the branch pass.

The report step was gated on `matrix.target == 'ladle'` and spelled
`ladle`/`wm-design` into six literals, while the matrix exists to say the
two legs are one job with different data. The leniency is now
`require_preview` beside `project:`, and the step interpolates `TARGET` and
`PROJECT`. No behaviour changes: `web` is `'false'` and never matches, so
`Smoke (web)` is byte-for-byte what it does on main. Flipping it strict
when sydevs/SahajCloud#903 lands is one word rather than a rewrite, and the
"web stays lenient on purpose" exception is now visible in the workflow
instead of only in prose.

⚠ `require_preview` is a QUOTED string on both legs. A bare YAML boolean
reaches the `if:` as a value whose type GitHub does not promise, and the
string "false" is truthy in an expression — which would have reddened the
web leg for a preview it is not owed. Comparing a quoted value to a quoted
literal has no second reading. All three branches were executed again
afterwards and land as specified.

The step summary's heading is emitted once rather than copy-pasted per
branch, so one job no longer writes the same heading in two shapes.

The guard's ACAO count no longer carries its own notion of a `_headers`
line. `contentLines` is the one definition, shared with `headersFor`, which
also closes a trap worth naming: the raw-text regex would have matched a
comment that spelled the header out in full, and `_headers` says "ACAO" only
by luck. Counting over the whole file is still right, because a second rule
under a different pattern is invisible to the `/*`-scoped helper — proven
by adding a `/fonts/*` rule and watching it fail.

`tests/smoke/ladle/` now asserts ACAO over HTTP beside the `noindex` it
already asserted. Beyond the ticket's written criteria, which make this an
attended one-time curl: the header is the one thing the platform move
silently drops, and a check that reads it on every PR is this ticket's own
thesis applied to its own change. It passes on Pages and on Workers, so it
holds across the cutover.

`EXCLUDE`'s `wemeditate-design` entry now names the condition for its
removal, rather than reading as permanent.

`pnpm check:wrangler` reaches AGENTS.md's command list and README's table,
with its `ladle:build` precondition.

Dismissed, with reasons:

- Skip or path-filter the gate's `ladle:build` (~13s, and Workers Builds
  builds the same bundle). The filter would be a fourth copy of the
  WATCH/IGNORE list this ticket exists partly to stop duplicating, and the
  13s buys failure attribution the preview cannot: "a story broke" is not
  "the Worker config drifted".
- Replace `ladle:build` with `mkdir -p build` plus a unit guard comparing
  `assets.directory` to Ladle's `outDir`. An empty directory satisfies the
  existence check and gives up the drift detection, which is the whole
  point of the step.
- Drop `previews: {}` as a no-op. It is pre-placed for the
  `cloudflare/wrangler-action` consumer sydevs/SahajAtlasWeb#266's child 4
  introduces; its comment pre-empts exactly this, and says not to drop it
  on finding no local failure.
- Rename to `check:wrangler:design`. sydevs/SahajAtlasWeb ships
  `check:wrangler` for the same job, and these repos are kept in step.
- Move the `pull_request` check into the step's `if:`. That deletes the
  merge-queue summary line, which is a required acceptance criterion.
- Delete the doc's duplicate watch-path list. The ticket requires three
  identical copies and a ⚠ naming three places; the doc copy is the only
  one a reader without Cloudflare access can see.
- Give `matchesTarget` a hostname-label boundary. See the PR body: the
  ticket records the hazard and refuses a second discovery path, and
  sydevs/SahajCloud#903 replaces the matcher.

Refs #184

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017pjym4dxg9pNFVtY4WtTUr
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Deploying wemeditate-design with  Cloudflare Pages  Cloudflare Pages

Latest commit: 81cadcc
Status: ✅  Deploy successful!
Preview URL: https://14560c70.wm-design.pages.dev
Branch Preview URL: https://claude-ci-184-ladle-workers.wm-design.pages.dev

View logs

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
❌ Deployment failed
View logs
wemeditate-web 81cadcc Oct 20 2026, 10:58 PM

@sydevs-bot sydevs-bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Oct 13, 2026
@sydevs-bot

sydevs-bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 no session running

recent dispatches
  • 22:51Z resolve-conflicts · attempt 1 · session · done
  • 22:51Z resolve-conflicts · attempt 1 · session
  • 16:34Z address-review · attempt 1 · session · done
  • 16:34Z address-review · attempt 1 · session
  • 16:25Z review-pr · attempt 1 · session · done

Written by the sydevs dispatcher. Sessions never edit this comment.

@sydevs-bot sydevs-bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧐 Adversarial review

Holistic. This is the ticket's phase 1 and nothing more: one Worker config, one header, one guard assertion, the loud report step, the prose sweep. The loud step also bounds the rename hazard the notes worry about — a wrong Worker name now reddens Smoke (ladle) instead of passing silently. No extra matcher guard is owed, and I would not build one. The extra smoke assertion earns its eight lines, because ACAO is the one header the platform stops supplying. The PR body is the weak part: ## Preview says "preview pending" while this run's own Smoke (ladle) read https://0f14cc43.wm-design.pages.dev. Paste the branch address in, so the reviewer can open the playground.

Findings

  • should-fix docs/cloudflare-previews-ci.md:35 — the doc sweep states the Workers move as done. It is Pages until phase 2.
  • consider .github/workflows/ci.yml:81 — require_preview is a two-value knob with one real value.
  • consider scripts/get-cloudflare-preview-url.mjs:48 — EXCLUDE cannot guard what the comment claims.
  • consider .github/workflows/ci.yml:40 — the gate's name no longer names what it runs.

What was checked. Ticket #184 against all 11 files, whole. Gate job log: ladle:build 9s, check:wrangler read 211 files and exited 0. Smoke (ladle) log: 4 specs passed against the Pages preview, so the ACAO assertion is proven on Pages only so far. Curled the branch preview: one access-control-allow-origin: *, x-robots-tag: noindex, server: cloudflare. Traced all four report-step branches through matchesTarget and the built/IS_PR/SAME_REPO gates. Merge queue and fork both stay green. No consumer repo reads these files.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

Comment thread docs/cloudflare-previews-ci.md Resolved
Comment thread .github/workflows/ci.yml Resolved
Comment thread scripts/get-cloudflare-preview-url.mjs Resolved
Comment thread .github/workflows/ci.yml Resolved
@sydevs-bot sydevs-bot added bot:working Lock: a cloud session is running on this item. Removed when it ends. and removed bot:working Lock: a cloud session is running on this item. Removed when it ends. labels Oct 13, 2026
The doc sweep stated the move as done. Phase 2 is attended and has not run:
this PR's own Smoke (ladle) read https://0f14cc43.wm-design.pages.dev, and
design.wemeditate.com still answers with the Pages ACAO default. Anyone
debugging a ladle preview in the window was told the wrong platform.

The ladle row, the Builds trigger and the AGENTS.md deployment paragraph now
say which side of phase 2 they describe. The new ⚠ records why the match
substring holds across the cutover: both hosts carry `wm-design`.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SWW6ZSrNTkqt2DDGmNUKi5
`matchesTarget` returns on CF_PROJECT_MATCH before it reads EXCLUDE, and
ci.yml sets that variable on both legs. So the list guards only a run without
it, and the migration-window sentence read as protection the web leg has.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SWW6ZSrNTkqt2DDGmNUKi5
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

Review round: 2 adopted, 1 rebutted, 1 question. Pushed d42b56d. Gate green — lint 0 errors, tsc, 867 tests.

  • Adopted docs:35 — a782392 dates the Workers move to phase 2. Checked first: the preview and design.wemeditate.com are both still Pages.
  • Adopted script:48 — d42b56d says EXCLUDE guards only a run with no CF_PROJECT_MATCH. The doc repeated the claim and got the same fix.
  • Rebutted ci.yml:81 — require_preview deleted that matrix.target == 'ladle' branch one round ago.
  • Open question ci.yml:40 — renaming the gate check needs to know whether a ruleset requires the old string.

## Preview now carries the branch address, as the review body asked.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Oct 13, 2026
@sydevs-bot
sydevs-bot marked this pull request as ready for review October 13, 2026 16:53
@sydevs-bot
sydevs-bot requested a review from Ardnived October 13, 2026 16:53
@sydevs-bot
sydevs-bot enabled auto-merge October 13, 2026 16:53
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

Not required, so not blocking: Workers Builds: wemeditate-web failed. A preview link in the body may not open until it passes.

🤖 sydevs dispatcher

@sydevs-bot sydevs-bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Oct 20, 2026
AGENTS.md was the one conflicted file, in two hunks.

The command list took main's trim and kept this branch's `check:wrangler`
entry. #192 cut every command package.json already shows; check:wrangler is
a script there too, but its comment carries the prerequisite — ladle:build
writes the `build/` the dry run reads — which package.json cannot show.

The two reference-doc lines are one edit from each side: "Ladle playground"
is this branch's, and "a 403 is a stale key or a missing role" is #192's
stale-claim fix. Both kept.

#192 deleted tailwind.config.ts for the CSS-first `@theme`, and this branch
is what first puts ladle:build and check:wrangler in the gate job, so both
were re-run against the merge rather than assumed.

Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_0117m7rQTWeApAfzWKT6VgHE
@sydevs-bot

Copy link
Copy Markdown
Contributor Author

Merged main (c6eee7e) in as 81cadcc. One conflicted file, AGENTS.md, two hunks.

The second-Worker paragraph auto-merged into main's shortened Cloudflare section and reads correctly there.

#192 deleted tailwind.config.ts for the CSS-first @theme, and this branch is what first puts ladle:build and check:wrangler in the gate job, so I re-ran both rather than assume them. Both pass — 211 files read from build/, and _headers still carries ACAO and noindex. Lean gate green: lint 0 errors, tsc, 883 tests in 88 files.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

@sydevs-bot sydevs-bot added awaiting and removed bot:working Lock: a cloud session is running on this item. Removed when it ends. labels Oct 20, 2026
@sydevs-bot
sydevs-bot added this pull request to the merge queue Oct 26, 2026
Merged via the queue into main with commit b448e10 Oct 26, 2026
17 of 18 checks passed
@sydevs-bot
sydevs-bot deleted the claude/ci-184-ladle-workers branch October 26, 2026 20:06
@sydevs-bot sydevs-bot moved this from Approved to Done in SYDevelopers Technical Roadmap Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

ci(preview): move the Ladle site to Workers and fail on no preview

3 participants