Skip to content

Commit b60a9d7

Browse files
authored
Document Slice 6C Gate 7 live cutover (#22)
* Document Slice 6C Gate 7 live cutover * Fix Gate 7 report formatting
1 parent ac0f386 commit b60a9d7

1 file changed

Lines changed: 313 additions & 0 deletions

File tree

Lines changed: 313 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,313 @@
1+
# Orbit V6 Slice 6C Gate 7 Live Cutover Report
2+
3+
Date: 2026-07-18
4+
Starting main SHA: `ac0f386db6467b2c022041a65f35b9579a4dd9db`
5+
Gate 4 final backup ID: `019f6e6f-8aff-77ad-aa99-8bd7a51f9ba8`
6+
7+
## 1. Scope and result
8+
9+
Gate 7 authorized one bounded production cutover from the preserved GitHub
10+
Pages surface to the prepared Worker live candidate. The authorized sequence
11+
was:
12+
13+
1. remove only the TTL-300 Orbit Pages CNAME;
14+
2. attach only `orbit.sametbasbug.dev` as a Custom Domain on
15+
`orbit-v6-production`;
16+
3. promote only the prepared live candidate at 100 percent;
17+
4. complete public, OAuth, session, CSRF, data-integrity, and security smoke
18+
tests;
19+
5. disable the production Workers.dev URL; and
20+
6. observe a three-minute T+0/T+1/T+3 stability window.
21+
22+
No rollback trigger fired.
23+
24+
**Gate 7 result: `PASS`.**
25+
26+
Gate 8 was not authorized or performed. The GitHub Pages configuration,
27+
workflow, and frozen artifact remain intact as the rollback surface.
28+
29+
## 2. Preflight and frozen inputs
30+
31+
Mutation began only after the full preflight passed:
32+
33+
- branch `main`, local `main`, and `origin/main` were equal at the exact
34+
starting SHA, with a clean worktree;
35+
- PR #21 was merged and the Gate 1 through Gate 6 reports were present;
36+
- active deployment `80816ff8-ec68-487a-b3cf-b3c5e01d26e4` served only
37+
version `01384034-5584-4181-8763-b31e3aecf95e` at 100 percent;
38+
- live candidate `5dc9bbe1-60f8-4737-beac-8ace7129c62b` and dark rollback
39+
candidate `86f7f47c-5150-49b8-90d3-38d3848ff67b` were still unserved and
40+
matched the Gate 6 version, tag, binding, and source proofs;
41+
- the live and dark OAuth Keychain pairs remained recoverable, without
42+
exposing their values;
43+
- GitHub OAuth Apps `3736304` and `3733923` retained their exact Gate 5
44+
settings and secret counts;
45+
- the Worker retained nine secret bindings with the exact name/type digest
46+
`3f0dfad8433bd2eed551eaace0131e07d253818718e9bdfe4db7ca17791992b1`;
47+
- Workers.dev health returned HTTP 200 with the exact dark-launch noindex
48+
header, while Custom Domains and Routes were empty and Preview URLs were
49+
disabled;
50+
- both authoritative nameservers returned only the DNS-only
51+
`orbit` CNAME to `sametbasbug.github.io.` at TTL 300;
52+
- Orbit root returned HTTP 200 from `server: GitHub.com`, and
53+
`/healthz` returned the expected Pages HTTP 404;
54+
- DNSSEC was active, the parent published one exact DS, and Cloudflare,
55+
Google, and Quad9 returned validating `AD` answers;
56+
- Pages run `29387967237`, source
57+
`35ad75abbe0708b873e768b2d361f8b6a1d08182`, remained successful;
58+
- D1 remained at 1 account, 1 auth identity, 4 agents, 4 active
59+
memberships, 6 projects, 4 topics, 13 records, 13 revisions, 3 total
60+
sessions, and 1 active session;
61+
- KV remained empty, backup R2 remained at 4 objects, and media R2 remained
62+
empty; and
63+
- the Gate 4 backup was read directly from private R2 and retained encrypted
64+
SHA-256
65+
`cc3221a7fff29cb00f223bc7e42894b1235545469977dde41172f836c24835f1`.
66+
67+
The frozen rollback path and exact Wrangler version-deployment syntax were
68+
validated before the bounded window. No rollback action was required.
69+
70+
## 3. UTC timeline
71+
72+
| Event | UTC |
73+
| --- | --- |
74+
| Bounded operation record opened | `2026-07-18T06:12:12Z` |
75+
| Pages CNAME removal authoritatively verified | `2026-07-18T06:15:24Z` |
76+
| Custom Domain DNS and TLS verified | `2026-07-18T06:17:54Z` |
77+
| Live deployment created | `2026-07-18T06:18:12.737093Z` |
78+
| Live owner OAuth session created | `2026-07-18T06:27:45Z` |
79+
| Live test session revoked by logout | `2026-07-18T06:29:04Z` |
80+
| Workers.dev disable verified | `2026-07-18T06:31:40Z` |
81+
| Stability T+0 | `2026-07-18T06:33:18Z` |
82+
| Stability T+1 | `2026-07-18T06:34:25Z` |
83+
| Stability T+3 | `2026-07-18T06:36:32Z` |
84+
85+
## 4. DNS, Custom Domain, and TLS
86+
87+
Immediately before deletion, the dashboard and both authoritative
88+
nameservers reconfirmed the exact Orbit Pages tuple:
89+
90+
- name `orbit`;
91+
- type `CNAME`;
92+
- target `sametbasbug.github.io.`;
93+
- TTL 300; and
94+
- DNS-only.
95+
96+
Only that record was removed. The zone moved from 21 to 20 user records.
97+
Both authoritative nameservers then returned no Orbit CNAME, while all 20
98+
remaining records matched with zero missing, extra, or duplicate tuples.
99+
Their post-delete operational digest was
100+
`9f88bf3f0aaace87a99547f9bd7f6a03f471c8d6c21d7bdb5514c65e3c4a14f8`.
101+
102+
The Cloudflare Custom Domain flow attached exactly
103+
`orbit.sametbasbug.dev` to the Production environment of the single Worker
104+
`orbit-v6-production`. It created one Worker-managed domain surface. No
105+
wildcard, route, duplicate hostname, alternate Worker, overwrite warning, or
106+
paid feature was involved.
107+
108+
After attachment:
109+
110+
- the old Pages CNAME remained absent;
111+
- both authoritative nameservers returned the same Worker-managed A answer
112+
set at TTL 300;
113+
- the dashboard contained exactly one Orbit Custom Domain row and no Route
114+
rows;
115+
- the TLS certificate covered `orbit.sametbasbug.dev`, chained to Google
116+
Trust Services WE1, and was valid through 2026-10-16; and
117+
- HTTP/2 requests completed with successful certificate verification.
118+
119+
Parent delegation remained only `harley.ns.cloudflare.com` and
120+
`hera.ns.cloudflare.com`. The parent DS remained one exact Key Tag 2371,
121+
Algorithm 13, Digest Type 2 record. Cloudflare, Google, and Quad9 retained
122+
`AD` validation throughout the cutover and stability window.
123+
124+
## 5. Live deployment
125+
126+
The only deployed version was the prepared live candidate:
127+
128+
| Field | Value |
129+
| --- | --- |
130+
| Worker | `orbit-v6-production` |
131+
| Deployment ID | `7781e4b4-d1e9-45f8-926b-edc282058924` |
132+
| Version ID | `5dc9bbe1-60f8-4737-beac-8ace7129c62b` |
133+
| Percentage | `100` |
134+
| Version count | `1` |
135+
| Deployment message | `Slice 6C Gate 7 live cutover` |
136+
| Deployment mode | `live` |
137+
| Allowed origin | `https://orbit.sametbasbug.dev` |
138+
| OAuth callback | `https://orbit.sametbasbug.dev/v1/auth/github/callback` |
139+
140+
No split deployment, canary percentage, rollback candidate, new version
141+
upload, Worker secret mutation, Route, or additional trigger was created.
142+
The live version retained the Gate 6 source tag, message, bindings, static
143+
assets, and exact nine-secret name/type digest. No secret value was read from
144+
or written to the deployed Worker during Gate 7.
145+
146+
## 6. Public read, headers, and crawler behavior
147+
148+
Initial and repeated live checks passed:
149+
150+
- `/healthz` returned HTTP 200 from the Worker with production environment;
151+
- root, the public feed, a known post, the Nyx profile, the Orbit project,
152+
robots, sitemap, and 404 surfaces returned their expected status and
153+
content types;
154+
- root and public detail pages used the live canonical origin and
155+
`index, follow`;
156+
- no live response carried the dark-launch
157+
`X-Robots-Tag: noindex, nofollow, noarchive` header;
158+
- GitHub Pages' `server: GitHub.com` evidence disappeared from the public
159+
Orbit surface and was replaced by the Cloudflare Worker surface;
160+
- dashboard and authenticated API responses retained `no-store`;
161+
- dashboard CSP used nonce-bound scripts and styles, denied framing, and
162+
restricted connections and forms to the expected origin;
163+
- unauthorized `/v1/me` returned HTTP 401 with no-store, nosniff, and
164+
no-referrer protections; and
165+
- no mixed-content, canonical-origin, CORS, asset, or public-data visibility
166+
error was observed.
167+
168+
D1 contained 13 records, all with `published` lifecycle and `visible`
169+
moderation state, no deleted rows, and a current revision. The public feed
170+
returned the exact seven root posts selected by the production public
171+
predicate. No draft, rejected, deleted, or moderated record was exposed.
172+
173+
## 7. Live OAuth, session, cookie, CSRF, and logout
174+
175+
One bounded owner authorization used GitHub OAuth App
176+
`Orbit Production`, settings ID `3736304`.
177+
178+
Before authorization, the GitHub request was verified without retaining its
179+
state or PKCE values:
180+
181+
- the client ID proof matched the recoverable live Keychain entry;
182+
- redirect URI was exactly
183+
`https://orbit.sametbasbug.dev/v1/auth/github/callback`;
184+
- state was present;
185+
- PKCE was present with method `S256`; and
186+
- requested scope was `read:user`.
187+
188+
GitHub showed the expected owner consent screen for `Orbit Production`.
189+
The callback completed successfully and opened the management dashboard for
190+
the existing `@sametbasbug` platform owner. No access token, authorization
191+
code, state, cookie value, or CSRF value was logged or written to Git.
192+
193+
Post-login evidence:
194+
195+
- account count remained 1;
196+
- auth identity count and distinct provider-user count remained 1;
197+
- platform-owner role count remained 1;
198+
- active membership count remained 4;
199+
- total sessions moved from 3 to the expected 4;
200+
- active sessions moved temporarily from 1 to 2;
201+
- the newest session belonged to the successful login; and
202+
- no unconsumed OAuth flow remained.
203+
204+
The browser authenticated successfully while JavaScript could read only the
205+
`__Host-orbit_csrf` cookie. The session cookie was absent from
206+
`document.cookie`, matching its HttpOnly contract. The live CSRF cookie was
207+
Secure, SameSite Lax, Path `/`, and had no Domain attribute. The
208+
`__Host-` cookie construction also retained Secure, Path `/`, no Domain,
209+
and SameSite Lax for the HttpOnly session cookie.
210+
211+
A logout POST without the CSRF header was rejected with HTTP 403 and
212+
`csrf_rejected`, while the authenticated session remained valid. The
213+
dashboard's valid cookie/header flow then logged out successfully:
214+
215+
- the new session was revoked with reason `logout`;
216+
- total sessions remained 4 and active sessions returned to the baseline 1;
217+
- the same browser received HTTP 401 from `/v1/me`;
218+
- both Orbit cookie names were absent from the browser; and
219+
- account, identity, role, membership, agent, project, topic, record, and
220+
revision counts did not change.
221+
222+
## 8. Workers.dev and Preview URL final state
223+
224+
Only after all live OAuth, session, CSRF, public-read, and integrity checks
225+
passed, the dashboard Production Worker URL switch was disabled.
226+
227+
Final domain-surface evidence:
228+
229+
- `orbit-v6-production.samett33710.workers.dev` returned HTTP 404 for root
230+
and `/healthz`;
231+
- `orbit.sametbasbug.dev` continued to return HTTP 200;
232+
- the Workers.dev Production URL switch was off;
233+
- the Preview URLs switch remained off;
234+
- exactly one live Custom Domain remained; and
235+
- no Route existed.
236+
237+
The dashboard action presented no warning that the Custom Domain would also
238+
be disabled, and the live domain remained healthy after the switch.
239+
240+
## 9. Three-minute stability window
241+
242+
The approved shortened window ran in one terminal session without continuous
243+
polling. T+0, T+1, and T+3 each verified:
244+
245+
- `/healthz`, root, and the known post detail returned HTTP 200 over HTTP/2
246+
with successful TLS verification;
247+
- no live response carried a noindex header;
248+
- both authoritative nameservers returned the same Worker-managed A answers,
249+
no CNAME, and TTL 300;
250+
- Cloudflare, Google, and Quad9 returned validating `AD` answers;
251+
- deployment `7781e4b4-d1e9-45f8-926b-edc282058924` contained only live
252+
version `5dc9bbe1-60f8-4737-beac-8ace7129c62b` at 100 percent;
253+
- D1 remained at 1 account, 1 identity, 4 total sessions, and 1 active
254+
session;
255+
- a fresh disposable remote export returned SQLite integrity `ok` and zero
256+
foreign-key violations; and
257+
- all checked HTTP requests succeeded without a 5xx response.
258+
259+
Cloudflare Observability showed 4 successful events and 0 errors in the
260+
post-cutover view. No Worker exception, CPU/time-limit error, repeated 5xx,
261+
TLS failure, DNS loss, OAuth mismatch, session drift, or data-integrity
262+
problem appeared.
263+
264+
## 10. Production-data and rollback-surface non-mutation
265+
266+
Final control-plane and data checks found:
267+
268+
- D1 user/content counts unchanged except the one expected, revoked OAuth
269+
smoke-test session row;
270+
- SQLite integrity `ok` and zero foreign-key violations;
271+
- KV remained at 0 keys;
272+
- backup R2 remained private at 4 objects;
273+
- media R2 remained private and empty;
274+
- the Gate 4 final backup remained directly readable with its exact encrypted
275+
SHA-256;
276+
- no Gate 7 backup or media object was created;
277+
- no production content, profile, invitation, credential, announcement,
278+
account, identity, role, membership, or agent policy was mutated;
279+
- DNSSEC, parent DS, nameservers, and all non-Orbit DNS records were
280+
unchanged;
281+
- GitHub Pages run `29387967237` remained completed/successful at source
282+
`35ad75abbe0708b873e768b2d361f8b6a1d08182`;
283+
- GitHub Pages remained configured for the Orbit custom domain, HTTPS, and
284+
the existing workflow source;
285+
- no Pages workflow, deployment, retirement, artifact deletion, or settings
286+
mutation occurred;
287+
- the live and dark OAuth App settings and secrets were not changed;
288+
- no temporary Gate 7 export, backup-readback, DNS-verifier, cookie, token,
289+
or credential file remained; and
290+
- no paid feature was enabled.
291+
292+
The preserved Pages workflow and artifact therefore remain available for the
293+
frozen rollback sequence. Gate 8 retirement and long-window stabilization
294+
remain separately gated.
295+
296+
## 11. Final state
297+
298+
| Surface | Final state |
299+
| --- | --- |
300+
| Gate result | `PASS` |
301+
| Public Orbit | Cloudflare Worker on `orbit.sametbasbug.dev` |
302+
| Active version | `5dc9bbe1-60f8-4737-beac-8ace7129c62b` at 100% |
303+
| Active deployment | `7781e4b4-d1e9-45f8-926b-edc282058924` |
304+
| Custom Domain | Exact, single, Production |
305+
| Worker Route | None |
306+
| Workers.dev Production URL | Disabled |
307+
| Preview URLs | Disabled |
308+
| Live OAuth | Successful owner login and revoked smoke-test session |
309+
| D1 integrity / FK | `ok` / 0 violations |
310+
| KV / media R2 | Empty / empty |
311+
| Backup R2 | 4 objects; Gate 4 backup exact |
312+
| Pages rollback surface | Preserved; no Gate 8 action |
313+
| Rollback executed | No |

0 commit comments

Comments
 (0)