Repository navigation
ci(preview): move the Ladle site to Workers and fail on no preview - #189
Conversation
`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
Deploying wemeditate-design with
|
| 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 |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
wemeditate-web | 81cadcc | Oct 20 2026, 10:58 PM |
|
🤖 no session running recent dispatchesWritten by the sydevs dispatcher. Sessions never edit this comment. |
sydevs-bot
left a comment
There was a problem hiding this comment.
🧐 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-fixdocs/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_previewis a two-value knob with one real value.considerscripts/get-cloudflare-preview-url.mjs:48—EXCLUDEcannot 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
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
|
Review round: 2 adopted, 1 rebutted, 1 question. Pushed
🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
|
Not required, so not blocking: 🤖 sydevs dispatcher |
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
|
Merged
The second-Worker paragraph auto-merged into main's shortened Cloudflare section and reads correctly there. #192 deleted 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
Summary
wm-designWorkers config that replaces thewemeditate-designPages 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>)decidesSmoke (<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 → REDrequire_previewis the per-leg policy, besideproject:in the matrix.webis'false', soSmoke (web)keeps its silent skip — thewemeditate-webWorker'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.comanswers withMeasured on the live Pages site 2026-10-11, and what the Worker must reproduce.
⚠ 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
Preview
The ladle preview builds for this PR —
.ladle/andpackage.jsonare both watched paths — but it is still the old Pages site. Nowm-designWorker exists yet; creating it is phase 2 and attended. So this PR changes no live site, andSmoke (ladle)passed here by readinghttps://0f14cc43.wm-design.pages.dev, awm-design.pages.devhost on the Pages project.Test results
pnpm lint(0 errors, 2144 pre-existing warnings — unchanged by this branch),tsc --noEmit,vitest run867 passed in 87 files. Re-run after the two review commits with the same result.tests/guards/ladle-crawler-refusal.test.ts3 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: ✓, andbuild/_headerscarries both headers.pnpm check:wrangler: ✓ exit 0 with no Cloudflare credential in the environment. Negative control: exit 1 namingassets.directorywhen pointed at a directory Ladle does not build.::error+ exit 1; fork →::warning+ exit 0; merge queue → green with its summary line.tests/smoke/ladle/not run: it throws without a livePREVIEW_URL.scripts/, whichsecurityReview.triggerPatternmatches). No findings. It reached the four conclusions in Detail below on ACAO*, the workflow'srun: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.
wm-design(the name is load-bearing — see Notes), build commandpnpm ladle:build, outputbuild/, config pathwrangler.design.jsonc. Read the first build log for the Node and pnpm it actually used:.node-versionis22.17.0andpackage.jsonpins[email protected], while the Workers build image defaults are newer and whether it honours.node-versionis undocumented.ci.yml'schecks: readcomment now says ci(preview): move the Ladle site to Workers and fail on no preview #184 records this.branch_excludes(excludinggh-readonly-queue/*) andpath_includes/path_excludeson the Builds trigger through the API — the dashboard cannot express either. MirrorWATCH/IGNOREinci.ymlexactly.Smoke (ladle)go red, then revert. ⚠ The proof push must touch a watched path (package.json, say), or the scope step setsbuilt=false, the quiet branch takes it, and the proof is vacuous.DISCOVER_TIMEOUT_MSand a non-matchingCF_PROJECT_MATCHare the two levers.Smoke (ladle)as evidence of the move — see Notes. Always read theselected …line the discovery step prints.curl -sI https://design.wemeditate.com/→ exactlyaccess-control-allow-origin: *, not*, *;x-robots-tag: noindexstill present; compare the full header set against the pre-move capture; and check/_headersis parsed rather than served (if served, add an.assetsignore), whilerobots.txtstill is.Notes for reviewer
Three judgement calls worth your eye.
The Worker name is pinned to
wm-designby a substring matcher.matchesTargetin the discovery script testsCF_PROJECT_MATCHas 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-designwould make the web leg'swemeditate-webmatch select the ladle preview, and the web leg never consultsEXCLUDE. 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 needsmatchesTargetexported 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, anddiscoverUrlreturns 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 thenoindexit 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:buildis new in thegatejob (~13s). It is there becausecheck:wrangler's dry run fails whenassets.directorydoes not exist — which is the drift worth catching — and it independently fails the gate on a broken story.Open questions
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 toGateis yours to green-light — the thread onci.yml:40is left open for it.Detail
Fixture pre-mortem.
assets.directory: "build"assumes Ladle writes there. Verified three ways rather than assumed:.ladle/config.mjssets nooutDir, so Ladle's default applies;.gitignore:138-139carriesbuild/under the comment "Ladle build output"; and an actualpnpm ladle:buildwrotebuild/index.html,build/_headersand 211 files. The_headersguard uses the real.ladle/static/_headers, not a fixture.Measured against the pinned wrangler 4.149.0, not copied from the sibling repo.
compatibility_dateis required even with nomain, and wrangler suggests2026-10-06itself — the same value chore(build): move the Ladle playground to Cloudflare Workers SahajAtlasWeb#279 shipped, arrived at independently.preview_urlsdefaults tofalseinnode_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 siblingpreviewzdrawsUnexpected fields found in top-level field: "previewz"whilepreviewsdraws nothing. That is the negative control for keeping it.Why
require_previewis a quoted string. A bare YAML boolean reaches theif: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 withmkdir -p buildplus a unit guard (an empty directory satisfies the existence check and gives up the drift detection). Droppingpreviews: {}(pre-placed for sydevs/SahajAtlasWeb#266's child 4; its comment pre-empts exactly this). Renaming tocheck:wrangler:design(sydevs/SahajAtlasWeb shipscheck:wranglerfor the same job). Moving thepull_requestcheck into the step'sif:(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). Replacingrequire_previewwith amatrix.target == 'ladle'clause (it would put a leg name back inside a step whose name,TARGETandPROJECTall come from the matrix).Not changed, on purpose.
wrangler.tomlis byte-identical tomain, and a barewrangler deploystill resolves it — proven by it failing onmain = "virtual:photon:cloudflare:server-entry", a key only that file declares. Nothing underpublic/changed, so the live app's asset responses are untouched.package.json'sladle:buildis unchanged;.ladle/crawler-refusal.tsalready emits_headers, so thecpstep an earlier draft of the ticket specified was unnecessary. No.ladle/_headerswas created. No file under.claude/was written..claude/workflow.jsonneeds two attended edits that are deliberately not in scope here, because it is a protected path a cloud run cannot write:deployTargetstill reads"Cloudflare Workers (web) + Cloudflare Pages (Ladle)", andsecurityReview.triggerPatternanchors on^wrangler\.toml, sowrangler.design.jsoncescapes 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 nomain, no handler, no cookie and noAccess-Control-Allow-Credentialsgrants cross-origin JS nothingcurlalready lacked; it restores the pre-migration Pages response. The new report step interpolates nothing untrusted — every${{ }}is inenv:or the stepname:,IS_PR/SAME_REPOare comparison results (a fork'sfull_nameis namespaced under the attacker's account, soSAME_REPOcannot be forged true), and that step carries no secrets.$PREVIEW_URLin the summary sits inside double quotes where\`is a literal backtick, andPREVIEW_URL_REadmits no$, backtick,;, quote or newline. The workflow'spermissions:are unchanged and all read-only.not_found_handlingreturns a fixed file with no path reflection.One thing it noted and did not report, which the ticket already records:
fromPrCommentsdoes 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,#NNNbreadcrumb 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/mainreports no banned comment added.Closes #184
🤖 Generated with Claude Code
https://claude.ai/code/session_017pjym4dxg9pNFVtY4WtTUr
Generated by Claude Code