Skip to content

Correct the upload gate's comment about backend enforcement - #235

Merged
neuromechanist merged 1 commit into
stagingfrom
fix/upload-gate-comment
Aug 3, 2026
Merged

Correct the upload gate's comment about backend enforcement#235
neuromechanist merged 1 commit into
stagingfrom
fix/upload-gate-comment

Conversation

@neuromechanist

Copy link
Copy Markdown
Contributor

The comment added in #231 claimed "The backend enforces its own gate regardless
(nemar-cli#1013 Phase 1), this stops the wasted trip." That is wrong, and it is
the kind of wrong that makes a future reader delete the gate believing the
backend still covers it.

backend/src/services/upload-gate.ts on nemar-cli main gates real uploads on
service_access and sandbox_completed. It does not look at city or country at
all. Those two fields are the inputs an admin reviews before granting service
access (ADR 0010), not something any endpoint rejects an upload for.

So this frontend check is the only place the city/country requirement is
enforced, not a courtesy layer over a server-side one. The comment now says so
explicitly, including what breaks if someone softens it.

Comment only; no behavior change. Found by a release reviewer on the v0.2.4
promotion diff.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying nemar-website with  Cloudflare Pages  Cloudflare Pages

Latest commit: d6aef8c
Status: ✅  Deploy successful!
Preview URL: https://7345dc51.nemar-website.pages.dev
Branch Preview URL: https://fix-upload-gate-comment.nemar-website.pages.dev

View logs

@neuromechanist
neuromechanist merged commit 35e6852 into staging Aug 3, 2026
5 checks passed
@neuromechanist
neuromechanist deleted the fix/upload-gate-comment branch August 3, 2026 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant