|
| 1 | +# Orbit V6 Slice 6C Gate 6 Worker Readiness Report |
| 2 | + |
| 3 | +Date: 2026-07-18 |
| 4 | +Starting main SHA: `dca341521259e22d36ee4d9292a1f2244272880e` |
| 5 | +Gate 4 final backup ID: `019f6e6f-8aff-77ad-aa99-8bd7a51f9ba8` |
| 6 | + |
| 7 | +## 1. Scope and result |
| 8 | + |
| 9 | +Gate 6 authorized preparation and upload of two unserved Worker versions: |
| 10 | + |
| 11 | +- an exact live candidate using the recoverable live GitHub OAuth pair; and |
| 12 | +- an exact dark-launch rollback candidate using the recoverable dark GitHub |
| 13 | + OAuth pair. |
| 14 | + |
| 15 | +No deployment, traffic split, custom domain, route, DNS, Worker URL toggle, |
| 16 | +Preview URL toggle, OAuth App edit, Pages action, or production-data mutation |
| 17 | +was authorized or performed. |
| 18 | + |
| 19 | +**Gate 6 readiness result: `READY_FOR_GATE7`.** |
| 20 | + |
| 21 | +Gate 7 remains separately gated. Neither candidate may receive traffic until |
| 22 | +that explicit approval is given. |
| 23 | + |
| 24 | +## 2. Preflight |
| 25 | + |
| 26 | +The preflight passed before either version upload: |
| 27 | + |
| 28 | +- branch `main`, local `main`, and `origin/main` were equal at the exact |
| 29 | + starting SHA, with a clean worktree; |
| 30 | +- PR #20 was merged into `main`, and the Gate 1 through Gate 5 reports were |
| 31 | + present; |
| 32 | +- the Cloudflare zone remained active on the Free plan with Full DNS setup; |
| 33 | +- DNSSEC remained protected, the parent published one exact DS, and |
| 34 | + Cloudflare, Google, and Quad9 returned validating `AD` answers; |
| 35 | +- parent delegation remained only `harley.ns.cloudflare.com` and |
| 36 | + `hera.ns.cloudflare.com`; |
| 37 | +- authoritative Orbit DNS remained a DNS-only CNAME to |
| 38 | + `sametbasbug.github.io.` with TTL 300; |
| 39 | +- Orbit `/` returned HTTP 200 from `server: GitHub.com`, and `/healthz` |
| 40 | + returned the expected GitHub Pages HTTP 404; |
| 41 | +- the latest Pages run remained `29387967237`, source SHA |
| 42 | + `35ad75abbe0708b873e768b2d361f8b6a1d08182`; |
| 43 | +- the active Worker deployment contained only version |
| 44 | + `01384034-5584-4181-8763-b31e3aecf95e` at 100 percent; |
| 45 | +- Workers.dev `/healthz` returned HTTP 200 with |
| 46 | + `X-Robots-Tag: noindex, nofollow, noarchive`; |
| 47 | +- Workers.dev remained enabled, Preview URLs remained disabled, and the |
| 48 | + Worker and zone dashboards showed no custom domains and no routes; |
| 49 | +- the active secret name/type inventory retained SHA-256 |
| 50 | + `3f0dfad8433bd2eed551eaace0131e07d253818718e9bdfe4db7ca17791992b1`; |
| 51 | +- all four live/dark Keychain OAuth entries were recoverable without exposing |
| 52 | + their values; |
| 53 | +- GitHub OAuth settings remained exact: dark App `3733923` had two secrets, |
| 54 | + and live App `3736304` had one secret and zero authorized users; |
| 55 | +- production D1 remained at 1 account, 1 auth identity, 4 agents, 6 projects, |
| 56 | + 4 topics, 13 records, 13 revisions, 3 sessions, 0 agent credentials, 4 |
| 57 | + backup runs, and 0 media assets; |
| 58 | +- cache KV remained empty; |
| 59 | +- backup R2 remained private at 4 objects and media R2 remained private and |
| 60 | + empty; and |
| 61 | +- the Gate 4 backup readback retained encrypted SHA-256 |
| 62 | + `cc3221a7fff29cb00f223bc7e42894b1235545469977dde41172f836c24835f1`. |
| 63 | + |
| 64 | +## 3. Build, test, and generated-config safety |
| 65 | + |
| 66 | +Validation completed before upload: |
| 67 | + |
| 68 | +- production config tests: 39 assertions; |
| 69 | +- Astro diagnostics: 0 errors, 0 warnings, 0 hints; |
| 70 | +- Orbit content tests: 63 assertions; |
| 71 | +- Orbit CLI tests: 41 assertions; |
| 72 | +- D1/Worker suites: 78 tests across 6 suites; |
| 73 | +- site integrity suite: 2,331 assertions; |
| 74 | +- browser regression suite: 372 assertions; and |
| 75 | +- static build: 39 pages. |
| 76 | + |
| 77 | +Both required production builds completed in dry-run mode. Their dry-run |
| 78 | +binding output named the exact Worker, D1, KV, backup R2, media R2, Images, |
| 79 | +Assets, environment, owner, backup, media, mode, origin, and callback |
| 80 | +surfaces. No dry-run applied a deployment or trigger. |
| 81 | + |
| 82 | +The generated `.wrangler/deploy/config.json` pointed at an Astro-generated |
| 83 | +client config. It was not trusted for either candidate. Explicit |
| 84 | +`--config wrangler.production.live.jsonc` and |
| 85 | +`--config wrangler.production.dark-launch.jsonc` version-upload dry runs |
| 86 | +produced the exact tracked resources and variables, proving the explicit |
| 87 | +configs took precedence. |
| 88 | + |
| 89 | +The tracked configs contained no route, custom-domain, or credential value. |
| 90 | +They differed only in the reviewed live/dark mode surfaces: |
| 91 | + |
| 92 | +- `workers_dev`; |
| 93 | +- `ORBIT_DEPLOYMENT_MODE`; |
| 94 | +- `ORBIT_ALLOWED_ORIGIN`; and |
| 95 | +- `ORBIT_GITHUB_CALLBACK_URL`. |
| 96 | + |
| 97 | +Both retained `preview_urls: false`, `ORBIT_MEDIA_ENABLED=false`, compatibility |
| 98 | +date `2026-07-15`, cron `17 3 * * *`, and identical observability and resource |
| 99 | +bindings. |
| 100 | + |
| 101 | +## 4. Candidate inventory |
| 102 | + |
| 103 | +### Live candidate |
| 104 | + |
| 105 | +| Field | Value | |
| 106 | +| --- | --- | |
| 107 | +| Version ID | `5dc9bbe1-60f8-4737-beac-8ace7129c62b` | |
| 108 | +| Tag | `slice6c-gate6-live-dca341521259` | |
| 109 | +| Message | `Slice 6C Gate 6 live candidate from dca341521259` | |
| 110 | +| Created | `2026-07-18T05:38:43.340266Z` | |
| 111 | +| Config SHA-256 | `faaa68cebc0ff151b9ac0b4b500c1e066261c24aa0872dcdd33a56bd3f81cc8f` | |
| 112 | +| Asset manifest SHA-256 | `280e1db666042f851b4018e04ec53646eeabd52710c28cdcb6fec166e353b8e3` | |
| 113 | +| Deployment mode | `live` | |
| 114 | +| Allowed origin | `https://orbit.sametbasbug.dev` | |
| 115 | +| OAuth callback | `https://orbit.sametbasbug.dev/v1/auth/github/callback` | |
| 116 | +| OAuth custody | macOS Keychain live entries; values not exposed | |
| 117 | +| OAuth App | `Orbit Production`, settings ID `3736304` | |
| 118 | + |
| 119 | +### Dark rollback candidate |
| 120 | + |
| 121 | +| Field | Value | |
| 122 | +| --- | --- | |
| 123 | +| Version ID | `86f7f47c-5150-49b8-90d3-38d3848ff67b` | |
| 124 | +| Tag | `slice6c-gate6-dark-rollback-dca341521259` | |
| 125 | +| Message | `Slice 6C Gate 6 dark rollback candidate from dca341521259` | |
| 126 | +| Created | `2026-07-18T05:39:58.61934Z` | |
| 127 | +| Config SHA-256 | `d5e59ef36ceb0e41a47add7cd1fdc7dc9aec662c63043fb611f106bff79feb0b` | |
| 128 | +| Asset manifest SHA-256 | `c81d5d62c315e561160f8ce1740a43e6466e8bc95731a8361b2c32f8104e0a66` | |
| 129 | +| Deployment mode | `dark_launch` | |
| 130 | +| Allowed origin | `https://orbit-v6-production.samett33710.workers.dev` | |
| 131 | +| OAuth callback | `https://orbit-v6-production.samett33710.workers.dev/v1/auth/github/callback` | |
| 132 | +| OAuth custody | macOS Keychain dark rollback entries; values not exposed | |
| 133 | +| OAuth App | `Orbit Production Dark Launch`, settings ID `3733923` | |
| 134 | + |
| 135 | +The differing asset hashes are expected: live output is indexable and uses the |
| 136 | +live canonical origin, while dark output applies the noindex crawler policy |
| 137 | +and Workers.dev origin. Each hash reproduced across the validation and final |
| 138 | +upload build. |
| 139 | + |
| 140 | +## 5. Binding and source parity |
| 141 | + |
| 142 | +Each candidate exposes exactly nine secret binding names: |
| 143 | + |
| 144 | +- `GITHUB_OAUTH_CLIENT_ID`; |
| 145 | +- `GITHUB_OAUTH_CLIENT_SECRET`; |
| 146 | +- `ORBIT_INVITATION_PEPPER_V1`; |
| 147 | +- `ORBIT_SESSION_PEPPER_V1`; |
| 148 | +- `ORBIT_AGENT_CREDENTIAL_PEPPER_V1`; |
| 149 | +- `ORBIT_OAUTH_STATE_PEPPER_V1`; |
| 150 | +- `ORBIT_CSRF_PEPPER_V1`; |
| 151 | +- `ORBIT_CURSOR_PEPPER_V1`; and |
| 152 | +- `ORBIT_BACKUP_ENCRYPTION_KEY_V1`. |
| 153 | + |
| 154 | +The sorted candidate secret-name digest is |
| 155 | +`03c93e1680ef6a198aff947bbb2a08521588fe2af5b49b9a91d8c5198992a115` |
| 156 | +for both versions. Wrangler's documented additive `--secrets-file` behavior |
| 157 | +preserved the seven existing production secret bindings while replacing only |
| 158 | +the candidate-specific GitHub OAuth pair from the matching Keychain custody. |
| 159 | + |
| 160 | +After excluding the three expected mode/origin/callback plain-text values, |
| 161 | +the complete version binding inventories were exact. Both candidates use: |
| 162 | + |
| 163 | +- D1 `199fe088-2f56-48c4-bc81-50b8c5e4b471`; |
| 164 | +- KV `5c1574a9562448cf863aa84fad10877f`; |
| 165 | +- R2 buckets `orbit-v6-production-backups` and |
| 166 | + `orbit-v6-production-media`; |
| 167 | +- identical Images and Assets bindings; |
| 168 | +- the same production environment, platform owner, backup-enabled, and |
| 169 | + media-disabled values; and |
| 170 | +- the same Worker script etag |
| 171 | + `ece97a82f51e25fece8c0c2e391b565b208c3384616a46985d22aa5fa66d926c`. |
| 172 | + |
| 173 | +The common script etag proves identical application source. The version tags, |
| 174 | +messages, and report starting SHA bind both candidates to the same main source |
| 175 | +state. |
| 176 | + |
| 177 | +## 6. Secret input and cleanup |
| 178 | + |
| 179 | +Each upload used a unique owner-only directory under `/private/tmp` and a |
| 180 | +mode-600 JSON file containing only the two matching GitHub OAuth fields. The |
| 181 | +values moved directly from macOS Keychain through process memory into that |
| 182 | +file and were never printed, placed in a shell argument, copied into the repo, |
| 183 | +or written to `.env`, `.dev.vars`, `.orbit`, or `.wrangler`. |
| 184 | + |
| 185 | +An exact cleanup trap removed each secret file immediately after its upload |
| 186 | +and removed its private directory. Post-upload searches found no Gate 6 secret |
| 187 | +input directory or file. No secret value entered terminal output, application |
| 188 | +logs, Git, or the report. |
| 189 | + |
| 190 | +## 7. Unserved-version proof |
| 191 | + |
| 192 | +The version inventory contains both candidates, but the deployment inventory |
| 193 | +did not change. It still contains four historical deployments, with the last |
| 194 | +and active deployment `80816ff8-ec68-487a-b3cf-b3c5e01d26e4` serving only |
| 195 | +version `01384034-5584-4181-8763-b31e3aecf95e` at 100 percent. |
| 196 | + |
| 197 | +Neither candidate ID appears in a deployment or traffic split. Account-level |
| 198 | +Preview URLs remained disabled. Although Wrangler version metadata reports a |
| 199 | +preview-capable artifact for each uploaded version, both predicted version |
| 200 | +preview hostnames returned HTTP 404. The candidates therefore receive neither |
| 201 | +normal production traffic nor public preview traffic. |
| 202 | + |
| 203 | +No `wrangler versions deploy`, `wrangler rollback`, `wrangler triggers |
| 204 | +deploy`, Worker deploy, secret mutation, split deployment, custom-domain |
| 205 | +attachment, route creation, or dashboard promotion occurred. |
| 206 | + |
| 207 | +## 8. Final production non-mutation |
| 208 | + |
| 209 | +Post-upload checks matched the preflight: |
| 210 | + |
| 211 | +- active serving version and its 100-percent traffic allocation were exact; |
| 212 | +- the deployment count and latest deployment ID were unchanged; |
| 213 | +- Workers.dev `/healthz` remained HTTP 200 with the exact noindex header; |
| 214 | +- the active Worker secret name/type inventory retained its exact Gate 5 |
| 215 | + digest; |
| 216 | +- Workers.dev remained enabled, Preview URLs remained disabled, and no custom |
| 217 | + domain or route existed; |
| 218 | +- both GitHub OAuth Apps retained their exact names, settings IDs, homepages, |
| 219 | + callbacks, Device Flow state, and secret counts; |
| 220 | +- authoritative Orbit DNS remained the TTL-300 Pages CNAME; |
| 221 | +- DNSSEC and the single parent DS remained exact; |
| 222 | +- Orbit remained HTTP 200 on GitHub Pages and `/healthz` remained Pages 404; |
| 223 | +- the Pages run and source artifact were unchanged; |
| 224 | +- production D1 counts, including three sessions and zero agent credentials, |
| 225 | + were unchanged; |
| 226 | +- KV remained empty; |
| 227 | +- backup R2 remained at four objects and media R2 remained empty; |
| 228 | +- the final Gate 4 backup checksum remained exact; and |
| 229 | +- no paid feature was enabled. |
| 230 | + |
| 231 | +The only production control-plane additions were the two explicitly |
| 232 | +authorized unserved Worker versions and their content-addressed static asset |
| 233 | +uploads. |
| 234 | + |
| 235 | +## 9. Gate 7 bounded cutover package |
| 236 | + |
| 237 | +This section is a runbook only. None of these commands or dashboard actions |
| 238 | +were executed in Gate 6. |
| 239 | + |
| 240 | +### Frozen inputs |
| 241 | + |
| 242 | +- Current Pages DNS: `orbit` CNAME `sametbasbug.github.io.`, TTL 300, |
| 243 | + DNS-only. |
| 244 | +- Current Pages run: `29387967237`, source |
| 245 | + `35ad75abbe0708b873e768b2d361f8b6a1d08182`. |
| 246 | +- Current serving Worker version: |
| 247 | + `01384034-5584-4181-8763-b31e3aecf95e`. |
| 248 | +- Live candidate: `5dc9bbe1-60f8-4737-beac-8ace7129c62b`. |
| 249 | +- Dark rollback candidate: `86f7f47c-5150-49b8-90d3-38d3848ff67b`. |
| 250 | +- Custom Domain: `orbit.sametbasbug.dev` on the single Worker |
| 251 | + `orbit-v6-production`. |
| 252 | +- Live/dark config and asset hashes: the exact values in Section 4. |
| 253 | +- OAuth Apps: dark `3733923`, live `3736304`. |
| 254 | + |
| 255 | +### Pre-cutover proof |
| 256 | + |
| 257 | +Run both authoritative queries and preserve their TTL-300 Pages answers: |
| 258 | + |
| 259 | +```text |
| 260 | +dig @harley.ns.cloudflare.com orbit.sametbasbug.dev CNAME +noall +answer |
| 261 | +dig @hera.ns.cloudflare.com orbit.sametbasbug.dev CNAME +noall +answer |
| 262 | +``` |
| 263 | + |
| 264 | +Reconfirm the active deployment, Workers.dev health/noindex header, Pages root |
| 265 | +and `/healthz`, both candidate views, parent DS, final backup checksum, and |
| 266 | +production D1/R2 counts before opening the bounded window. |
| 267 | + |
| 268 | +### Bounded live cutover |
| 269 | + |
| 270 | +1. In Cloudflare DNS, delete only the existing DNS-only `orbit` Pages CNAME. |
| 271 | +2. Query both authoritative nameservers until the old CNAME answer is absent; |
| 272 | + do not alter any other record. |
| 273 | +3. Open **Workers & Pages → orbit-v6-production → Domains → Add Domain** and |
| 274 | + attach exactly `orbit.sametbasbug.dev` to this Worker only. |
| 275 | +4. Confirm Cloudflare created exactly one Worker-managed Orbit DNS record and |
| 276 | + that no stale Pages CNAME or duplicate Orbit record remains. |
| 277 | +5. Require authoritative DNS visibility and a valid TLS certificate within |
| 278 | + five minutes of attachment. If either is missing at the deadline, start the |
| 279 | + rollback sequence without promoting the live version. |
| 280 | +6. Promote only the live candidate at 100 percent: |
| 281 | + |
| 282 | +```text |
| 283 | +npx wrangler versions deploy 5dc9bbe1-60f8-4737-beac-8ace7129c62b@100% --name orbit-v6-production --message "Slice 6C Gate 7 live cutover" --yes |
| 284 | +``` |
| 285 | + |
| 286 | +7. Within one minute, verify the deployment contains only the live candidate |
| 287 | + at 100 percent. Then verify `/healthz`, public feed/detail/profile/project |
| 288 | + reads, management no-store/CSP surfaces, exact live Origin and callback, |
| 289 | + CSRF/session behavior, and one real bounded GitHub OAuth login/callback. |
| 290 | +8. In the Worker Domains page, disable the Workers.dev Production Worker URL; |
| 291 | + keep Preview URLs disabled. Verify the Workers.dev and both version preview |
| 292 | + hostnames no longer expose the application. |
| 293 | +9. Complete DNSSEC-validating resolver checks, TLS checks, D1/session checks, |
| 294 | + and the full browser/site smoke within five additional minutes. Any |
| 295 | + widespread error, wrong callback, bad session, data drift, or TLS failure |
| 296 | + triggers rollback. |
| 297 | + |
| 298 | +### Exact rollback |
| 299 | + |
| 300 | +1. Promote only the prepared dark rollback candidate at 100 percent: |
| 301 | + |
| 302 | +```text |
| 303 | +npx wrangler versions deploy 86f7f47c-5150-49b8-90d3-38d3848ff67b@100% --name orbit-v6-production --message "Slice 6C Gate 7 dark rollback" --yes |
| 304 | +``` |
| 305 | + |
| 306 | +2. Re-enable the Workers.dev Production Worker URL and verify dark-launch |
| 307 | + `/healthz` plus the exact noindex header. |
| 308 | +3. Detach `orbit.sametbasbug.dev` from **orbit-v6-production → Domains**. |
| 309 | +4. Remove only the Worker-created Orbit DNS record if Cloudflare did not |
| 310 | + remove it automatically. Prove no Orbit record remains before recreation. |
| 311 | +5. Recreate exactly one DNS-only record: name `orbit`, type `CNAME`, target |
| 312 | + `sametbasbug.github.io.`, TTL 300. |
| 313 | +6. Query both authoritative nameservers until the exact Pages CNAME is visible, |
| 314 | + then validate Cloudflare, Google, and Quad9 resolution. |
| 315 | +7. Verify Pages TLS, Orbit `/` HTTP 200 with `server: GitHub.com`, `/healthz` |
| 316 | + Pages HTTP 404, and the frozen Pages artifact/run. |
| 317 | +8. Confirm the rollback deployment contains only the dark candidate at 100 |
| 318 | + percent, no custom domain/route remains, Preview URLs stay disabled, |
| 319 | + production data counts are unchanged, and no other DNS record moved. |
| 320 | + |
| 321 | +The rollback never deletes either candidate or OAuth App and never modifies |
| 322 | +OAuth secrets, production D1/KV/R2, DNSSEC, DS, nameservers, or Pages content. |
| 323 | + |
| 324 | +## 10. Remaining gates |
| 325 | + |
| 326 | +Gate 7 requires a separate explicit approval for the bounded custom-domain, |
| 327 | +DNS, deployment, real OAuth, and traffic window above. Gate 8 remains a later |
| 328 | +independent approval. This report alone authorizes neither gate. |
0 commit comments