Cloudflare Worker Deployment Handoff
GCA Worker Routes Handoff
This page publishes the operator deployment sequence for the prepared /gca/service-requests and /gca/credit-usage routes. The source, D1 migrations, and local dry-run are ready, but the production routes are still non-live until Cloudflare authentication, Worker deploy permission, remote D1 migrations, deploy, and smoke checks all pass.
The handoff is intentionally read-only until the deploy gates pass. It does not expose user records, does not print admin tokens, does not connect wallets, does not request wallet signatures, and does not create trading permission.
Public deployment handoff for prepared operator routes.
Worker dry-run and D1 visibility passed on 2026-06-18.
Cloudflare auth session and Worker deploy permission must pass first.
/gca/service-requests and /gca/credit-usage.
Public visitors must not be able to read ledgers.
Keep the docs copy as the operator source of truth.
Already Live Routes
GET /healthGET /gca/access-configPOST /gca/email-registrationsPOST /gca/contact-suppressionsPOST /gca/wallet-verifications with read-only balanceOfPOST /gca/member-access for eligible ledger records.Prepared But Non-Live
GET/POST /gca/service-requests; prepared in source, pending Worker deploy.GET/POST /gca/credit-usage; prepared in source, pending Worker deploy.--include-pending-routes.Required Gate Order
cloudflare-auth-session, D1 visibility, and Worker deploy permission to pass.0004_credit_usage_ledger.sql and 0005_service_requests.sql only after Gate 1 passes.--include-pending-routes.Gate 1 Command
Safe before deploy. It does not write D1 data, deploy Workers, read user ledgers, or print secrets.
cd /Users/abc/Desktop/gca_token python3 tools/check_gca_worker_deploy_readiness.py --run-wrangler --run-cloudflare --require-deploy-auth
Gate 2 Command
Run only after the read-only readiness gate passes.
cd /Users/abc/Desktop/gca_token/cloudflare/gca-registration-worker npx wrangler d1 migrations apply gca_registration --remote
Gate 3 Command
Run only after remote D1 migrations succeed.
cd /Users/abc/Desktop/gca_token/cloudflare/gca-registration-worker npx wrangler deploy
Gate 4 Command
Public route check; no admin token required and no write test record.
cd /Users/abc/Desktop/gca_token python3 tools/check_gca_registration_api.py --public-only --timeout 30 --include-pending-routes
Gate 5 Command
Local operator check. Keep ADMIN_READ_TOKEN in the ignored token file and do not paste it into chat, commits, logs, or public pages.
cd /Users/abc/Desktop/gca_token python3 tools/check_gca_registration_api.py --token-file cloudflare/gca-registration-worker/.env.admin.local --limit 5 --include-pending-routes
Optional Export After Success
Internal operator artifact only. Do not publish full user records.
cd /Users/abc/Desktop/gca_token python3 tools/export_cloudflare_member_access.py --token-file cloudflare/gca-registration-worker/.env.admin.local --limit 100 --include-pending-routes --output .gca_access_data/cloudflare_member_access_export.json
Safe To Say
- The service-request and credit-usage routes are prepared in source.
- The deploy handoff is published for the owner/operator workflow.
- The routes remain non-live until deploy gates and smoke checks pass.
- The routes are operator-only and token-protected, not public user ledgers.
Do Not Claim Yet
- Do not say production self-service service delivery is live.
- Do not say credits are automatically deducted before operator review.
- Do not say these routes connect wallets or request wallet signatures.
- Do not say the workflow sends transactions, transfers GCA, or creates trading permission.
- Do not publish full user records, admin tokens, private evidence, or local export files.
Stop Conditions
Authentication error [code: 10000].wrangler deploy fails or deploy history cannot be read./health does not expose gca_credit_usage_v1 and gca_service_request_v1.Copy-Ready Status Summary
GCA has published the Worker Routes Handoff for the prepared service-request and credit-usage routes. The code and D1 migrations are ready, but production remains non-live until Cloudflare authentication, Worker deploy permission, remote D1 migrations, deploy, and public/admin smoke checks pass. The routes are operator-only, token-protected, no-custody, and do not request wallet signatures or create trading permission.