Repository navigation
Conversation
Dependency ReviewThe following issues were found:
|
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
c4b9367 to
aaf1fd3
Compare
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
|
π This PR hasn't had any activity for 14 days. It will be automatically closed in 7 days unless there's a review, commit, or comment.
|
|
π This PR was automatically closed due to inactivity. Feel free to reopen it when you're ready to continue! |
A patcher that fails to match its anchor leaves the shipped bundle byte-identical to the on-disk file and the server serves it happily. The feature is simply gone, with no error anywhere. Mutation testing against the real bundles showed the gap was wide: corrupting one anchor and re-running the real patcher left _criticalPatchFailures EMPTY for the sync store, session sync, access gate, group tour, settings, onboarding and leaderboard patchers -- including the onboarding patch that is the only thing requiring a verified cloud write before a profile is marked complete. getPatchedAuthBundle already asserted its own post-condition correctly. This makes that the default rather than an accident of one patcher, via noteAnchorMiss(). Note: sessionsync patch #5 ('if(!f())return await _(),{synced:0,failed:0}') is a substring of patch #4's replacement. Mutating only the first occurrence in the raw bundle therefore proves nothing -- both must be mangled. Co-Authored-By: Claude Code <noreply@anthropic.com>
Adds scripts/test-bundle-patch-escalation.mjs, which loads the real server.mjs
and runs the real getPatched*Bundle() against the real public/assets/*.js twice:
- happy path: every patched buffer must parse, and NO patcher may escalate
against the bundles actually shipped (a false positive would put a red
startup banner on a healthy install);
- mutation path: corrupt one anchor per patcher in the real bytes, re-run,
and require the failure to reach _criticalPatchFailures.
Two harness details that produce false results if you get them wrong:
- An anchor can be a substring of a LATER patch's own replacement
(sessionsync #5 'await _()' vs #4's replacement), so the mutation must
mangle EVERY occurrence, not the first.
- The memo caches are module-scoped 'let'. Resetting them via
globalThis[x] = null compiles, runs, and clears nothing -- the patcher
returns its first clean result and the mutation is never observed. The
epilogue is in the same module, so it resets the binding by bare name.
Also adds post-condition assertions to six patchers that lacked them
(singlegroup tour, sessionsync, syncstore, settings, appaccessgate,
onboarding). getPatchedAuthBundle already did this correctly; the rest only
reported an 'applied N/M' count that nothing acted on.
Co-Authored-By: Claude Code <noreply@anthropic.com>
Summary
sb_secret_keys with legacy fallback, add CI secret detection, Dependabot, current Actions versions, and dependency overridesVerification
Remaining owner actions
sb_secret_...key in private.env, verify owner tools, then disable the legacy key and resolve GitHub secret alert fix: cloud sync auth + server health-check routing (v3.1.3)Β #2.Lighthouse policy