Repository navigation
chore(build): follow the app Worker's rename to sahajatlas-web (#266) - #357
Conversation
The `sahajatlas` Worker was renamed to `sahajatlas-web` in the dashboard on
2026-11-01. Every PR's Smoke job has failed since, because `versions upload`
targets the name in `wrangler.jsonc` ("You cannot upload a new version of a
Worker that does not yet exist"), and the production lane would never fire
again on `Workers Builds: sahajatlas`.
- `wrangler.jsonc` names `sahajatlas-web`; `production-smoke.yml` waits on
`Workers Builds: sahajatlas-web`. `ci-workflows.test.ts` ties the two.
- `assert-preview-host.test.ts` reads the playground's name off its own
config instead of deriving `${WORKER}-design`, which stopped being the
real sibling, and keeps the extended-name case beside it.
- Docs and the Turnstile guard's dashboard path name the new Worker;
`docs/rules/deployment.md` records the `sahajatlas` Pages project as
deleted (2026-10-30) rather than pending.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
sahajatlas-design | 7005416 | Nov 02 2026, 01:00 AM |
sydevs-bot
left a comment
There was a problem hiding this comment.
🧐 Adversarial review
The rename is proved, not asserted. Smoke on 2083cc4 logged Uploaded sahajatlas-web and published pr-357-sahajatlas-web.contact-c66.workers.dev. Both unticked preview boxes are earned. The diff is the right size, and its one non-rename change pays for itself.
The rename retired a collision. The diff re-spells it as a weaker "stem" hazard instead of saying it is gone: sahajatlas-design cannot pass for sahajatlas-web under any defect this repo catalogues. So four ⚠ blocks guard a hazard nobody can reach, six sites gain the rename's own history, and the file implementing the anchor still asserts the retired prefix.
Findings
- should-fix —
scripts/assert-preview-host.mjs:12and:64still call the app's name a PREFIX of the playground's, and claim an unanchored regex acceptspr-1-sahajatlas-design…. Both false now, on the guard itself. No thread: the file is outside the diff. - consider —
scripts/assert-preview-host.test.ts:28: the playground case stopped discriminating;testing.md:74,production-smoke.yml:34andci-workflows.test.ts:45read as if it had not. - consider —
wrangler.jsonc:7: the diff narrates its own history in six places, againstdocs/rules/code-comments.md.
What was checked
Read whole off the branch: the 13 changed files, plus assert-preview-host.mjs, _wrangler-config.mjs and ci.yml. Ladder: no new file, helper, type or dependency — one import of an already-exported readWranglerConfig, one test. Consumer side: ci.yml takes the name from appWorkerName(), so --preview-alias pr-357 followed with no edit, as the Smoke log shows; nothing host-observable changes. Measurement re-derived: label.includes(worker) reddens lines 34, 38 and 63 — three, as testing.md claims — and an endsWith subdomain test reddens line 49, one.
🤖 Written by the sydevs autonomous loop — see what this is
Generated by Claude Code
`docs/rules/code-comments.md` forbids narrating the change: the comment told the 2026-11-01 failure as something that had happened, which reads as a diff note to anyone opening the file fresh. #266 carries that. What a reader needs is the durable rule — the dashboard owns the name, and an upload against any other one fails — so the ⚠ states that and what it costs while the file lags. Both breadcrumbs stay. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjXDdmswsFrHUV4dvsK
The rename retired the collision these six sites guard. `sahajatlas-web`
is not a prefix of `sahajatlas-design`, so a bare substring, a domain
suffix test and an unanchored regex all refuse the playground's preview
host now — and `startsWith` on a check-run name refuses its build. Each
comment still sold that hazard as live, and `docs/testing.md` asserted
it outright.
What the LEFT label anchor and the `==` still buy is a name that
EXTENDS the app's, plus a label that merely ends with it and the app's
own production host. That is what each site says instead, so a reader
weakening the match learns what would get through.
Re-measured against the restored defects: the substring defect reddens
three cases (`refuses a Worker whose name extends…`, `…merely ENDS
with…`, `…the Worker's own production host`) and the playground's case
is no longer among them; the suffix defect reddens one. Both figures
match what `docs/testing.md` claims.
`assert-preview-host.test.ts` keeps the playground case — it pins the
config read that stops a derived `${WORKER}-design` going stale — and
the comment now says that is what it pins.
Co-Authored-By: Claude Opus 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Mg9rjXDdmswsFrHUV4dvsK
`assert-preview-host.mjs` is the file implementing the anchor, and its docblock still asserted the retired collision as fact: that the app's name is a PREFIX of the playground's, and that a bare substring, a domain suffix test or an unanchored regex "all accept pr-1-sahajatlas-design.contact-c66.workers.dev". Neither holds against `sahajatlas-web` — measured by restoring each defect, where the playground's case passes and three others redden. The docblock and the left-end comment now name the case the anchor does refuse, `-sahajatlas-web-design`, and say outright that `sahajatlas-design` is not it. The file is outside this PR's diff and comment-only (`comment-fingerprint.mjs`: code identical), but the rename is what made it false, so it ships here rather than as its own ticket. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjXDdmswsFrHUV4dvsK
|
Three commits, relayed for Actions to land on
Lean gate green, 1899 tests. Security review ran on the 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
… rename) Co-Authored-By: Claude Opus 5.5 <[email protected]>
Summary
sahajatlastosahajatlas-webin the Cloudflare dashboard on 2026-11-01. Every PR's Smoke job has failed since:versions uploadtargets the name inwrangler.jsoncand gets "You cannot upload a new version of a Worker that does not yet exist" (e.g. run 41346404473).wrangler.jsoncnow namessahajatlas-web, andproduction-smoke.ymlwaits onWorkers Builds: sahajatlas-web. Without the second change the production lane would never fire again, which looks the same as a lane that passes.sahajatlas-webis not a prefix ofsahajatlas-design, so the playground's preview host no longer gets past a weakened match. Each site now names the hazard that is live instead.Change outline
The functional surface is five lines. Everything else in the diff is comments and Markdown.
Contract — the one name, and its two anchors
wrangler.jsonc'snameis what the dashboard owns; the other two derive from it rather than repeat it.Behaviour —
assert-preview-host.test.ts's playground caseThe case used to build its host as
${WORKER}-design. After the rename that issahajatlas-web-design, a Worker nobody owns — not the real sibling. The case reads the sibling's own config now, and the extended name becomes its own test.Comments and docs — the retired collision, re-stated
Five sites argued for the LEFT label anchor and the
==from a collision the rename retired. Each now names what would actually get through a weakened match: a name that extendssahajatlas-web, a label that merely ends with it, a label inserted before the account subdomain, or the app's own production host.docs/rules/deployment.mdnamessahajatlas-web, says its only trigger buildsmain, and records thesahajatlasPages project as deleted (2026-10-30) rather than pending.AGENTS.md,docs/environment.md,public/robots.txtandscripts/assert-no-sourcemaps.mjsfollow the rename.Test plan
.claude/skills/pr-prep/check.sh): lint, typecheck, 1899 unit tests in 157 files pass.assert-preview-host.mjs: the substring defect reddens 3 cases (…name extends…,…merely ENDS with…,…own production host) and the suffix defect 1 (…label inserted before the account subdomain). The playground's case is red under neither, which is why its comment no longer claims the anchor.wrangler*.jsonc; the review readproduction-smoke.ymlandci.ymlwhole and exercisedappPreviewHostunder both names.rest.join('.') === subdomainis an equality, so every accepted host stays inside the account's owncontact-c66.workers.dev, and the rename narrows the accepted check-run name rather than widening it.pr-<n>-sahajatlas-webpreview and goes green.Production Smokefires on its own fromWorkers Builds: sahajatlas-weband readssahajatlas.com.Notes for reviewer
docs/rules/deployment.mdanddocs/testing.mdkeep the pre-rename history in prose.docs/rules/code-comments.mdgoverns comments, and those two files are the repo's record of findings nobody should re-derive — so the history stays there and came out of the code comments.🤖 Generated with Claude Code
https://claude.ai/code/session_01Mg9rjXDdmswsFrHUV4dvsK