Skip to content

chore(build): follow the app Worker's rename to sahajatlas-web (#266) - #357

Merged
Ardnived merged 4 commits into
mainfrom
chore/266-rename-app-worker
Nov 2, 2026
Merged

Ardnived merged 4 commits into
mainfrom
chore/266-rename-app-worker

Conversation

@Ardnived

@Ardnived Ardnived commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • The app Worker was renamed from sahajatlas to sahajatlas-web in the Cloudflare dashboard on 2026-11-01. Every PR's Smoke job has failed since: versions upload targets the name in wrangler.jsonc and gets "You cannot upload a new version of a Worker that does not yet exist" (e.g. run 41346404473).
  • wrangler.jsonc now names sahajatlas-web, and production-smoke.yml waits on Workers Builds: sahajatlas-web. Without the second change the production lane would never fire again, which looks the same as a lane that passes.
  • The rename also retired a collision, which six sites still described as live. sahajatlas-web is not a prefix of sahajatlas-design, so the playground's preview host no longer gets past a weakened match. Each site now names the hazard that is live instead.
  • Part of Our Cloudflare Pages sites move to Cloudflare Workers, at no extra cost #266.

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's name is what the dashboard owns; the other two derive from it rather than repeat it.

 wrangler.jsonc
-  name: sahajatlas
+  name: sahajatlas-web
     ↑ read by appWorkerName()                  scripts/_wrangler-config.mjs
       ├── assert-preview-host.mjs              # anchors the preview host's -<worker> label
       └── ci-workflows.test.ts                 # pins the production lane's trigger to it

 .github/workflows/production-smoke.yml
-  check_run.name == 'Workers Builds: sahajatlas'
+  check_run.name == 'Workers Builds: sahajatlas-web'

 .claude/workflow.json          deployTarget: prose
 scripts/turnstile-release-guard.mjs   the dashboard path in a build-failure message

Behaviour — assert-preview-host.test.ts's playground case

The case used to build its host as ${WORKER}-design. After the rename that is sahajatlas-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.

 const WORKER = appWorkerName()
+const PLAYGROUND = readWranglerConfig('wrangler.design.jsonc').name

 it('refuses the sibling Ladle playground', …)
-  pr-1-${WORKER}-design           # stopped naming the playground at the rename
+  expect(PLAYGROUND).toBeTruthy() # a config read that returns undefined would pass by vacuum
+  pr-1-${PLAYGROUND}              # pins the config read, not the anchor
+
+it('refuses a Worker whose name extends the app Worker’s', …)
+  pr-1-${WORKER}-design           # this is what the LEFT label anchor refuses

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 extends sahajatlas-web, a label that merely ends with it, a label inserted before the account subdomain, or the app's own production host.

 wrangler.jsonc                        ⚠ the dashboard owns `name`; a substring lets an EXTENDING name through
 wrangler.design.jsonc                 ⚠ this name shares only the `sahajatlas-` stem — it is the real sibling, not the near-miss
 scripts/assert-preview-host.mjs       ⚠ was asserting `sahajatlas` is a PREFIX of the playground's, on the guard itself
 scripts/assert-preview-host.test.ts   ⚠ moved onto the case that discriminates
 scripts/ci-workflows.test.ts          ⚠ `==` holds against a check-run name that EXTENDS ours
 .github/workflows/production-smoke.yml  ⚠ same, plus: a dashboard rename moves this literal
 docs/testing.md                       the false claim replaced, and the playground's demotion recorded

docs/rules/deployment.md names sahajatlas-web, says its only trigger builds main, and records the sahajatlas Pages project as deleted (2026-10-30) rather than pending. AGENTS.md, docs/environment.md, public/robots.txt and scripts/assert-no-sourcemaps.mjs follow the rename.

Test plan

  • Lean gate (.claude/skills/pr-prep/check.sh): lint, typecheck, 1899 unit tests in 157 files pass.
  • Both measurements re-derived by restoring each defect in 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.
  • Security review over the branch: no findings. The gate matched on wrangler*.jsonc; the review read production-smoke.yml and ci.yml whole and exercised appPreviewHost under both names. rest.join('.') === subdomain is an equality, so every accepted host stays inside the account's own contact-c66.workers.dev, and the rename narrows the accepted check-run name rather than widening it.
  • This PR's own Smoke job publishes a pr-<n>-sahajatlas-web preview and goes green.
  • After merge, Production Smoke fires on its own from Workers Builds: sahajatlas-web and reads sahajatlas.com.

Notes for reviewer

  • docs/rules/deployment.md and docs/testing.md keep the pre-rename history in prose. docs/rules/code-comments.md governs 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

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]>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 2, 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 successful!
View logs
sahajatlas-design 7005416 Nov 02 2026, 01:00 AM

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

sydevs-bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

🤖 no session running

recent dispatches
  • 00:42Z address-review · attempt 1 · session · done
  • 00:42Z address-review · attempt 1 · session
  • 00:33Z review-pr · attempt 1 · session · done
  • 00:33Z review-pr · attempt 1 · session

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

@sydevs-bot sydevs-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🧐 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:12 and :64 still call the app's name a PREFIX of the playground's, and claim an unanchored regex accepts pr-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:34 and ci-workflows.test.ts:45 read as if it had not.
  • consider — wrangler.jsonc:7: the diff narrates its own history in six places, against docs/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

Comment thread wrangler.jsonc Resolved
Comment thread scripts/assert-preview-host.test.ts 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 Nov 2, 2026
@Ardnived
Ardnived enabled auto-merge November 2, 2026 00:43
`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
@sydevs-bot

Copy link
Copy Markdown
Contributor

Three commits, relayed for Actions to land on chore/266-rename-app-worker.

  • wrangler.jsonc narrated the change — adopted, a855449. The ⚠ carries the rule, not the dated failure.
  • the playground case stopped discriminating — adopted, 35f4e1d. Six sites sold a collision the rename retired; each names the live hazard now, a name EXTENDING sahajatlas-web. Test kept: it pins the config read.
  • should-fix, assert-preview-host.mjs:12 and :64 — adopted, 7005416. The guard's own docblock asserted the retired prefix. Comment-only, so it ships here.

Lean gate green, 1899 tests. Security review ran on the wrangler*.jsonc match and found nothing. Both defect measurements re-derived; the body carries them.

🤖 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 Nov 2, 2026
@sydevs-bot sydevs-bot moved this from Working to Awaiting in SYDevelopers Technical Roadmap Nov 2, 2026
@Ardnived
Ardnived merged commit 89ae1b3 into main Nov 2, 2026
11 checks passed
@Ardnived
Ardnived deleted the chore/266-rename-app-worker branch November 2, 2026 01:11
@sydevs-bot sydevs-bot moved this from Awaiting to Done in SYDevelopers Technical Roadmap Nov 2, 2026
Ardnived added a commit that referenced this pull request Nov 2, 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.

3 participants