Repository navigation
docs(deployment): name the real gate on lifting the @swc/core pin - #406
Merged
Merged
Conversation
The rule told a reader to wait for an upstream release. Measuring 1.16.22's addon shows upstream is one route and not the only one: the refusal comes from the addon's own cache-root check, which reads SWC_NATIVE_BINDING_CACHE and can be turned off by SWC_NATIVE_BINDING_CACHE_SKIP_SECURITY_CHECK while its integrity check stays on. Left as written, the pin outlives its cause. Also bound the blast radius. @swc/core has exactly one dependent in the lockfile, @vitejs/plugin-react-swc, pulled in only by @ladle/react, so no sahajatlas-web deploy rides on this. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjV3qMe6DZtVKAUf8n9
This was referenced Nov 13, 2026
sydevs-bot
marked this pull request as ready for review
November 13, 2026 22:35
sydevs-bot
enabled auto-merge
November 13, 2026 22:35
Contributor
Author
|
Adversarial review skipped: 1 file(s), 9 changed line(s), under 🤖 sydevs dispatcher |
Ardnived
approved these changes
Nov 14, 2026
Contributor
Author
|
🤖 no session running Written by the sydevs dispatcher. Sessions never edit this comment. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
sahajatlas-designrule told a reader to wait for upstream. The addon's cache root is the gate.sahajatlas-webbuild.Preview
docs/, which neither site ships.Test results
Manual verification
Notes for reviewer
(2026-11-05) and still fails, so the ticket's trigger has not fired. What changed is the reason
it has not: upstream was never the only route. The decision that remains is on chore(deps): lift the @swc/core pin once SWC builds on Workers Builds #405.
so, and the claim it makes is about the addon, not about the build image.
⚠, its#401breadcrumb and the mechanism already written there. Thepre-existing Prettier warning on line 132 of the same file (
*adds*vs_adds_) is untouched.Detail
How the addon loads.
@swc/core'sbinding.jsis byte-identical between 1.16.2 and 1.16.22,so the refusal is not in the JS loader. Each Linux platform package ships one file — a 10.7 MB
"carrier" that materialises the real 31 MB addon at first load. Its own strings give the order:
self-replacement at the carrier path, then
SWC_NATIVE_BINDING_CACHE, then$XDG_CACHE_HOME/$HOME/.cache/swc-native-<uid>/v1, then a temporary addon inTMPDIR.The check. The cache root must be absolute, a real directory owned by the current user with
mode 0700, not on a
noexecmount, and must have no parent "writable by another user withouttrusted sticky protection".
Reproduced, as an unprivileged user, cache root 0700 under a root-owned 0777 non-sticky parent,
with
TMPDIRnon-sticky so the last fallback could not hide it:Same run, two variations, both of which load:
SWC_NATIVE_BINDING_CACHE_SKIP_SECURITY_CHECK=1, whose own string is"skipping native cache root security check by explicit environment opt-out". Integrity checking
is a separate stage and stays on (
ERR_SWC_NATIVE_INTEGRITY, "rejecting corrupt native cacheentry; rebuilding from payload").
Blast radius. In
pnpm-lock.yaml,@swc/corehas exactly one dependent,@vitejs/[email protected], which has exactly one importer,@ladle/[email protected].vite.config.tscompiles the app with@vitejs/plugin-react(Babel).Not asserted in the docs: that a workspace-local cache root fixes the image. The ticket's own
evidence that
~/.cacheis refused means an ancestor of$HOMEis other-owned and writable — andif the build workspace also sits under
$HOME, a repo-local root shares that ancestor and isrefused too. Untested there, so the paragraph claims nothing about it.
Generated by Claude Code