Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

docs: add desktop GFS operator parity diagrams

Alfredo Lopez54c50f1834b4
diff --git a/docs/architecture/diagrams/gfs-desktop-operator-parity-overview.json b/docs/architecture/diagrams/gfs-desktop-operator-parity-overview.json
new file mode 100644
index 000000000..1957ef883
--- /dev/null
+++ b/docs/architecture/diagrams/gfs-desktop-operator-parity-overview.json
@@ -0,0 +1,44 @@
+{
+ "diagram": "architecture-overview",
+ "style": "openai-official",
+ "title": "Self-hosted Desktop GFS operator parity",
+ "viewBox": "0 0 1200 900",
+ "sections": [
+ {
+ "id": "initial-setup",
+ "label": "Initial self-hosted setup",
+ "flow": [
+ "Setup route creates the initial admin and Desktop user",
+ "Create one explicit initial_setup operator pair at generation 1",
+ "Persist exact IDs, actor/source, and request correlation"
+ ]
+ },
+ {
+ "id": "runtime-authority",
+ "label": "Runtime authority path",
+ "flow": [
+ "Desktop session sends a GFS request",
+ "Control API resolves ordinary versus linked-admin authority",
+ "GFSC checks active user/admin/link generations before root, grants, or shares"
+ ]
+ },
+ {
+ "id": "revoke",
+ "label": "Visible Control UI revoke",
+ "flow": [
+ "Control UI requests revoke",
+ "CAS transition writes a tombstone and governed audit event",
+ "Operator root is denied while the ordinary user path remains scoped"
+ ]
+ },
+ {
+ "id": "safeguards",
+ "label": "Current safeguards and follow-ups",
+ "items": [
+ "Edge 600/1200/1800 and Control API 10/120/30 rate-limit classes",
+ "Migrations 0091 through 0096",
+ "Global IPv6-key and coherent-429 follow-ups"
+ ]
+ }
+ ]
+}
diff --git a/docs/architecture/diagrams/gfs-desktop-operator-parity-overview.png b/docs/architecture/diagrams/gfs-desktop-operator-parity-overview.png
new file mode 100644
index 000000000..2f6c37975
Binary files /dev/null and b/docs/architecture/diagrams/gfs-desktop-operator-parity-overview.png differ
diff --git a/docs/architecture/diagrams/gfs-desktop-operator-parity-overview.svg b/docs/architecture/diagrams/gfs-desktop-operator-parity-overview.svg
new file mode 100644
index 000000000..2ea5be53c
--- /dev/null
+++ b/docs/architecture/diagrams/gfs-desktop-operator-parity-overview.svg
@@ -0,0 +1,80 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 900" width="1200" height="900">
+ <style>text{font-family:Helvetica Neue,Helvetica,Arial,sans-serif}.title{font-size:22px;font-weight:600;fill:#111827}.label{font-size:14px;fill:#111827}.small{font-size:12px;fill:#6b7280}.tiny{font-size:11px;fill:#6b7280}.node-title{font-size:14px;font-weight:600;fill:#111827}.node-sub{font-size:11px;fill:#6b7280}</style>
+ <defs>
+ <marker id="arrow-blue" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto"><polygon points="0 0,10 3.5,0 7" fill="#2563eb"/></marker>
+ <marker id="arrow-green" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto"><polygon points="0 0,10 3.5,0 7" fill="#16a34a"/></marker>
+ <marker id="arrow-alert" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto"><polygon points="0 0,10 3.5,0 7" fill="#dc2626"/></marker>
+ <marker id="arrow-purple" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto"><polygon points="0 0,10 3.5,0 7" fill="#9333ea"/></marker>
+ </defs>
+ <rect width="1200" height="900" fill="#ffffff"/>
+ <text x="40" y="42" class="title">Self-hosted Desktop GFS operator parity</text>
+ <text x="40" y="66" class="small">Explicit setup link · GFS-only authority · governed revoke · generation-aware denial</text>
+ <rect x="34" y="92" width="1132" height="155" rx="10" fill="#eff6ff" stroke="#bfdbfe" stroke-width="1.5" stroke-dasharray="6,4"/>
+ <text x="50" y="116" class="small" font-weight="600" letter-spacing="1">INITIAL SELF-HOSTED SETUP</text>
+ <rect x="70" y="138" width="210" height="76" rx="8" fill="#ffffff" stroke="#d1d5db" stroke-width="1.5"/>
+ <text x="175" y="166" text-anchor="middle" class="node-title">Setup route</text>
+ <text x="175" y="188" text-anchor="middle" class="node-sub">creates admin + Desktop user + link</text>
+ <rect x="390" y="138" width="250" height="76" rx="8" fill="#f0fdf4" stroke="#86efac" stroke-width="1.5"/>
+ <text x="515" y="166" text-anchor="middle" class="node-title">Explicit operator link</text>
+ <text x="515" y="188" text-anchor="middle" class="node-sub">initial_setup · generation 1 pair</text>
+ <rect x="750" y="138" width="350" height="76" rx="8" fill="#faf5ff" stroke="#d8b4fe" stroke-width="1.5"/>
+ <text x="925" y="166" text-anchor="middle" class="node-title">Governed audit event</text>
+ <text x="925" y="188" text-anchor="middle" class="node-sub">IDs + actor/source + request correlation</text>
+ <path d="M280 176 H390" stroke="#2563eb" stroke-width="2" fill="none" marker-end="url(#arrow-blue)"/>
+ <path d="M640 176 H750" stroke="#16a34a" stroke-width="2" fill="none" marker-end="url(#arrow-green)"/>
+ <rect x="34" y="274" width="1132" height="226" rx="10" fill="#ffffff" stroke="#d1d5db" stroke-width="1.5" stroke-dasharray="6,4"/>
+ <text x="50" y="298" class="small" font-weight="600" letter-spacing="1">RUNTIME AUTHORITY PATH</text>
+ <rect x="70" y="328" width="205" height="98" rx="8" fill="#eff6ff" stroke="#bfdbfe" stroke-width="1.5"/>
+ <text x="172" y="360" text-anchor="middle" class="node-title">Desktop app</text>
+ <text x="172" y="381" text-anchor="middle" class="node-sub">session + GFS request</text>
+ <text x="172" y="400" text-anchor="middle" class="node-sub">operator or ordinary view</text>
+ <polygon points="390,328 420,344 420,410 390,426 360,410 360,344" fill="#fff7ed" stroke="#fdba74" stroke-width="1.5"/>
+ <text x="390" y="370" text-anchor="middle" class="node-title">Control</text>
+ <text x="390" y="389" text-anchor="middle" class="node-title">API</text>
+ <text x="390" y="447" text-anchor="middle" class="node-sub">flag + link resolver</text>
+ <rect x="520" y="328" width="250" height="98" rx="8" fill="#faf5ff" stroke="#d8b4fe" stroke-width="1.5"/>
+ <text x="645" y="360" text-anchor="middle" class="node-title">Brokered authority</text>
+ <text x="645" y="381" text-anchor="middle" class="node-sub">principalType + exact admin/user IDs</text>
+ <text x="645" y="400" text-anchor="middle" class="node-sub">auth/session/link generations</text>
+ <rect x="860" y="328" width="250" height="98" rx="8" fill="#f0fdf4" stroke="#86efac" stroke-width="1.5"/>
+ <text x="985" y="360" text-anchor="middle" class="node-title">GFS controller</text>
+ <text x="985" y="381" text-anchor="middle" class="node-sub">active lifecycle + link checks</text>
+ <text x="985" y="400" text-anchor="middle" class="node-sub">root + grants + shares</text>
+ <path d="M275 377 H356" stroke="#2563eb" stroke-width="2" fill="none" marker-end="url(#arrow-blue)"/>
+ <rect x="292" y="349" width="76" height="18" rx="4" fill="#ffffff" opacity="0.96"/><text x="330" y="362" text-anchor="middle" class="tiny">request</text>
+ <path d="M420 377 H520" stroke="#9333ea" stroke-width="1.8" fill="none" marker-end="url(#arrow-purple)"/>
+ <rect x="438" y="349" width="80" height="18" rx="4" fill="#ffffff" opacity="0.96"/><text x="478" y="362" text-anchor="middle" class="tiny">resolve</text>
+ <path d="M770 377 H860" stroke="#2563eb" stroke-width="2" fill="none" marker-end="url(#arrow-blue)"/>
+ <rect x="785" y="349" width="78" height="18" rx="4" fill="#ffffff" opacity="0.96"/><text x="824" y="362" text-anchor="middle" class="tiny">broker</text>
+ <rect x="34" y="526" width="1132" height="150" rx="10" fill="#fef2f2" stroke="#fecaca" stroke-width="1.5" stroke-dasharray="6,4"/>
+ <text x="50" y="550" class="small" font-weight="600" letter-spacing="1">VISIBLE CONTROL UI REVOKE</text>
+ <rect x="70" y="574" width="220" height="70" rx="8" fill="#ffffff" stroke="#d1d5db" stroke-width="1.5"/>
+ <text x="180" y="602" text-anchor="middle" class="node-title">Control UI</text>
+ <text x="180" y="622" text-anchor="middle" class="node-sub">Revoke operator access</text>
+ <rect x="430" y="574" width="275" height="70" rx="8" fill="#ffffff" stroke="#fecaca" stroke-width="1.5"/>
+ <text x="568" y="602" text-anchor="middle" class="node-title">CAS revoke + tombstone</text>
+ <text x="568" y="622" text-anchor="middle" class="node-sub">tombstone + audit + idempotent CAS</text>
+ <rect x="850" y="574" width="260" height="70" rx="8" fill="#ffffff" stroke="#fecaca" stroke-width="1.5"/>
+ <text x="980" y="602" text-anchor="middle" class="node-title">Immediate denial</text>
+ <text x="980" y="622" text-anchor="middle" class="node-sub">operator root denied; user path remains scoped</text>
+ <path d="M290 609 H430" stroke="#dc2626" stroke-width="2" fill="none" marker-end="url(#arrow-alert)"/>
+ <path d="M705 609 H850" stroke="#dc2626" stroke-width="2" fill="none" marker-end="url(#arrow-alert)"/>
+ <path d="M980 574 C980 492 985 464 985 426" stroke="#dc2626" stroke-width="1.6" fill="none" stroke-dasharray="6,4" marker-end="url(#arrow-alert)"/>
+ <rect x="990" y="468" width="100" height="18" rx="4" fill="#ffffff" opacity="0.96"/><text x="1040" y="481" text-anchor="middle" class="tiny">deny stale token</text>
+ <text x="50" y="716" class="small" font-weight="600" letter-spacing="1">CURRENT SAFEGUARDS AND FOLLOW-UPS</text>
+ <rect x="70" y="734" width="300" height="74" rx="8" fill="#eff6ff" stroke="#bfdbfe" stroke-width="1.5"/>
+ <text x="220" y="763" text-anchor="middle" class="node-title">Rate-limit tiers</text>
+ <text x="220" y="784" text-anchor="middle" class="node-sub">edge 600/1200/1800 · API 10/120/30</text>
+ <rect x="450" y="734" width="300" height="74" rx="8" fill="#faf5ff" stroke="#d8b4fe" stroke-width="1.5"/>
+ <text x="600" y="763" text-anchor="middle" class="node-title">Schema 0091–0096</text>
+ <text x="600" y="784" text-anchor="middle" class="node-sub">link · audit · generations · retirement</text>
+ <rect x="830" y="734" width="300" height="74" rx="8" fill="#ffffff" stroke="#d1d5db" stroke-width="1.5" stroke-dasharray="6,4"/>
+ <text x="980" y="763" text-anchor="middle" class="node-title">Global follow-ups</text>
+ <text x="980" y="784" text-anchor="middle" class="node-sub">IPv6 keys + coherent 429 metadata</text>
+ <g transform="translate(54,858)">
+ <line x1="0" y1="8" x2="30" y2="8" stroke="#2563eb" stroke-width="2" marker-end="url(#arrow-blue)"/><text x="38" y="12" class="tiny">request / response</text>
+ <line x1="145" y1="8" x2="175" y2="8" stroke="#16a34a" stroke-width="2" marker-end="url(#arrow-green)"/><text x="183" y="12" class="tiny">persisted setup/audit</text>
+ <line x1="335" y1="8" x2="365" y2="8" stroke="#9333ea" stroke-width="2" marker-end="url(#arrow-purple)"/><text x="373" y="12" class="tiny">authority resolution</text>
+ <line x1="515" y1="8" x2="545" y2="8" stroke="#dc2626" stroke-width="2" marker-end="url(#arrow-alert)"/><text x="553" y="12" class="tiny">revoke / deny</text>
+ </g>
+</svg>
diff --git a/docs/architecture/diagrams/gfs-desktop-operator-parity.json b/docs/architecture/diagrams/gfs-desktop-operator-parity.json
new file mode 100644
index 000000000..758978608
--- /dev/null
+++ b/docs/architecture/diagrams/gfs-desktop-operator-parity.json
@@ -0,0 +1,40 @@
+{
+ "diagram": "architecture",
+ "style": "openai-official",
+ "title": "Self-hosted Desktop GFS operator parity",
+ "viewBox": "0 0 1400 1040",
+ "nodes": [
+ {"id":"control-ui","label":"Control UI","description":"setup · revoke · reactivate","layer":"client"},
+ {"id":"desktop","label":"Desktop App","description":"ordinary or operator GFS","layer":"client"},
+ {"id":"setup","label":"Initial setup","description":"self-hosted bootstrap","layer":"client"},
+ {"id":"edge","label":"External REST edge","description":"token 600 · client 1200 · aggregate 1800 / min","layer":"boundary"},
+ {"id":"control-api","label":"Control API","description":"authority resolver · token broker · lifecycle","layer":"authority"},
+ {"id":"gfsc","label":"GFSC data plane","description":"active user/admin/link generation gate","layer":"authority"},
+ {"id":"postgres","label":"PostgreSQL","description":"lifecycle · link history · audit · grants","layer":"store"},
+ {"id":"audit","label":"Audit + metrics","description":"actor · request · source · outcome","layer":"store"},
+ {"id":"active","label":"Active generation","description":"generation N","layer":"lifecycle"},
+ {"id":"revoked","label":"Revoked tombstone","description":"reason · actor · row version","layer":"lifecycle"},
+ {"id":"successor","label":"Successor generation","description":"generation N+1","layer":"lifecycle"},
+ {"id":"retired","label":"User retired","description":"all authority denied","layer":"lifecycle"},
+ {"id":"followups","label":"Global follow-ups","description":"IPv6 keys · coherent 429 metadata","layer":"followup"}
+ ],
+ "arrows": [
+ {"source":"control-ui","target":"control-api","label":"admin lifecycle"},
+ {"source":"desktop","target":"edge","label":"GFS requests"},
+ {"source":"setup","target":"control-api","label":"initial_setup"},
+ {"source":"edge","target":"control-api","label":"request ID + rate gates"},
+ {"source":"control-api","target":"gfsc","label":"signed authority"},
+ {"source":"control-api","target":"postgres","label":"resolve / mutate"},
+ {"source":"gfsc","target":"postgres","label":"fail-closed state read"},
+ {"source":"control-api","target":"audit","label":"governed event"},
+ {"source":"active","target":"revoked","label":"revoke"},
+ {"source":"revoked","target":"successor","label":"reactivate"},
+ {"source":"active","target":"retired","label":"parent retirement"},
+ {"source":"followups","target":"edge","label":"global contracts","style":"dashed"}
+ ],
+ "legend": [
+ {"label":"primary request / authority flow","color":"#10a37f"},
+ {"label":"state transition","color":"#1d4ed8"},
+ {"label":"audit or follow-up contract","color":"#71717a","style":"dashed"}
+ ]
+}
diff --git a/docs/architecture/diagrams/gfs-desktop-operator-parity.png b/docs/architecture/diagrams/gfs-desktop-operator-parity.png
new file mode 100644
index 000000000..555ed6fd3
Binary files /dev/null and b/docs/architecture/diagrams/gfs-desktop-operator-parity.png differ
diff --git a/docs/architecture/diagrams/gfs-desktop-operator-parity.svg b/docs/architecture/diagrams/gfs-desktop-operator-parity.svg
new file mode 100644
index 000000000..3fb80a06a
--- /dev/null
+++ b/docs/architecture/diagrams/gfs-desktop-operator-parity.svg
@@ -0,0 +1,197 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1400 1040" width="1400" height="1040">
+ <style>
+ text { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; }
+ .title { font-size: 24px; font-weight: 600; fill: #0d0d0d; letter-spacing: -0.01em; }
+ .subtitle { font-size: 13px; fill: #6e6e80; }
+ .section { font-size: 12px; font-weight: 500; fill: #6e6e80; letter-spacing: 0.06em; }
+ .node-title { font-size: 16px; font-weight: 600; fill: #0d0d0d; }
+ .node-copy { font-size: 12px; fill: #6e6e80; }
+ .small { font-size: 11px; fill: #6e6e80; }
+ .label { font-size: 12px; fill: #6e6e80; }
+ .state-title { font-size: 13px; font-weight: 600; fill: #0d0d0d; }
+ .state-copy { font-size: 11px; fill: #6e6e80; }
+ </style>
+ <defs>
+ <marker id="arrow-green" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto">
+ <polygon points="0 0, 10 3.5, 0 7" fill="#10a37f"/>
+ </marker>
+ <marker id="arrow-blue" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto">
+ <polygon points="0 0, 10 3.5, 0 7" fill="#1d4ed8"/>
+ </marker>
+ <marker id="arrow-gray" markerWidth="10" markerHeight="7" refX="9" refY="3.5" orient="auto">
+ <polygon points="0 0, 10 3.5, 0 7" fill="#71717a"/>
+ </marker>
+ </defs>
+
+ <rect width="1400" height="1040" fill="#ffffff"/>
+ <text x="700" y="36" text-anchor="middle" class="title">Self-hosted Desktop GFS operator parity</text>
+ <text x="700" y="60" text-anchor="middle" class="subtitle">Explicit setup link · authoritative lifecycle resolution · fail-closed data-plane enforcement</text>
+
+ <!-- Client layer -->
+ <text x="48" y="92" class="section">CLIENT SURFACES</text>
+ <rect x="48" y="104" width="230" height="72" rx="8" fill="#ffffff" stroke="#e5e5e5" stroke-width="1.5"/>
+ <rect x="48" y="104" width="4" height="72" rx="2" fill="#1d4ed8"/>
+ <text x="163" y="134" text-anchor="middle" class="node-title">Control UI</text>
+ <text x="163" y="155" text-anchor="middle" class="node-copy">setup · revoke · reactivate</text>
+
+ <rect x="48" y="216" width="230" height="72" rx="8" fill="#ffffff" stroke="#e5e5e5" stroke-width="1.5"/>
+ <rect x="48" y="216" width="4" height="72" rx="2" fill="#10a37f"/>
+ <text x="163" y="246" text-anchor="middle" class="node-title">Desktop App</text>
+ <text x="163" y="267" text-anchor="middle" class="node-copy">ordinary or operator GFS</text>
+
+ <rect x="48" y="328" width="230" height="72" rx="8" fill="#ffffff" stroke="#e5e5e5" stroke-width="1.5"/>
+ <rect x="48" y="328" width="4" height="72" rx="2" fill="#f97316"/>
+ <text x="163" y="358" text-anchor="middle" class="node-title">Initial setup</text>
+ <text x="163" y="379" text-anchor="middle" class="node-copy">self-hosted bootstrap</text>
+
+ <!-- Boundary layer -->
+ <text x="360" y="92" class="section">TRUST BOUNDARY</text>
+ <rect x="360" y="112" width="300" height="176" rx="8" fill="#ffffff" stroke="#e5e5e5" stroke-width="1.5"/>
+ <rect x="360" y="112" width="4" height="176" rx="2" fill="#10a37f"/>
+ <text x="378" y="143" class="node-title">External REST edge</text>
+ <text x="378" y="168" class="node-copy">GFS backstop tiers</text>
+ <text x="378" y="193" class="small">token-IP 600 / min</text>
+ <text x="378" y="214" class="small">client-IP 1200 / min</text>
+ <text x="378" y="235" class="small">aggregate 1800 / min</text>
+ <text x="378" y="264" class="small">request ID + trusted client identity</text>
+
+ <!-- Authority layer -->
+ <text x="712" y="92" class="section">AUTHORITY SERVICES</text>
+ <rect x="712" y="112" width="322" height="190" rx="8" fill="#ffffff" stroke="#e5e5e5" stroke-width="1.5"/>
+ <rect x="712" y="112" width="4" height="190" rx="2" fill="#1d4ed8"/>
+ <text x="730" y="143" class="node-title">Control API</text>
+ <text x="730" y="168" class="node-copy">authority resolver + token broker</text>
+ <text x="730" y="195" class="small">10 / min token per Desktop user</text>
+ <text x="730" y="216" class="small">120 / min reads per session/IP/actor</text>
+ <text x="730" y="237" class="small">30 / min operations per session/IP/actor</text>
+ <text x="730" y="264" class="small">active user + admin + link generation</text>
+ <text x="730" y="283" class="small">signed principal + request correlation</text>
+
+ <rect x="1086" y="112" width="266" height="190" rx="8" fill="#ffffff" stroke="#e5e5e5" stroke-width="1.5"/>
+ <rect x="1086" y="112" width="4" height="190" rx="2" fill="#10a37f"/>
+ <text x="1104" y="143" class="node-title">GFSC data plane</text>
+ <text x="1104" y="168" class="node-copy">authoritative identity gate</text>
+ <text x="1104" y="195" class="small">user lifecycle + auth generation</text>
+ <text x="1104" y="216" class="small">admin status + session generation</text>
+ <text x="1104" y="237" class="small">exact active link generation</text>
+ <text x="1104" y="264" class="small">ordinary or linked-admin subject</text>
+ <text x="1104" y="283" class="small">deny on stale, missing, or malformed state</text>
+
+ <!-- Store layer -->
+ <text x="712" y="380" class="section">AUTHORITATIVE STORE</text>
+ <rect x="712" y="400" width="322" height="160" rx="8" fill="#ffffff" stroke="#e5e5e5" stroke-width="1.5"/>
+ <rect x="712" y="400" width="4" height="160" rx="2" fill="#71717a"/>
+ <text x="730" y="431" class="node-title">PostgreSQL</text>
+ <text x="730" y="456" class="node-copy">lifecycle and permission source</text>
+ <text x="730" y="484" class="small">users · admins · memberships</text>
+ <text x="730" y="505" class="small">link generations · tombstones</text>
+ <text x="730" y="526" class="small">grants · session versions</text>
+
+ <rect x="1086" y="400" width="266" height="160" rx="8" fill="#ffffff" stroke="#e5e5e5" stroke-width="1.5"/>
+ <rect x="1086" y="400" width="4" height="160" rx="2" fill="#71717a"/>
+ <text x="1104" y="431" class="node-title">Audit + metrics</text>
+ <text x="1104" y="456" class="node-copy">append-only evidence</text>
+ <text x="1104" y="484" class="small">actor + effective admin</text>
+ <text x="1104" y="505" class="small">source + request ID</text>
+ <text x="1104" y="526" class="small">decision + mutation outcome</text>
+
+ <!-- Lifecycle panel -->
+ <rect x="48" y="480" width="612" height="260" rx="8" fill="none" stroke="#e5e5e5" stroke-width="1" stroke-dasharray="4,3"/>
+ <text x="64" y="504" class="section">IMMUTABLE OPERATOR-LINK LIFECYCLE</text>
+ <rect x="72" y="548" width="126" height="78" rx="8" fill="#ffffff" stroke="#e5e5e5" stroke-width="1.5"/>
+ <rect x="72" y="548" width="4" height="78" rx="2" fill="#10a37f"/>
+ <text x="135" y="580" text-anchor="middle" class="state-title">Active</text>
+ <text x="135" y="600" text-anchor="middle" class="state-copy">generation N</text>
+
+ <rect x="216" y="548" width="126" height="78" rx="8" fill="#ffffff" stroke="#e5e5e5" stroke-width="1.5"/>
+ <rect x="216" y="548" width="4" height="78" rx="2" fill="#f97316"/>
+ <text x="279" y="580" text-anchor="middle" class="state-title">Revoked</text>
+ <text x="279" y="600" text-anchor="middle" class="state-copy">retained tombstone</text>
+
+ <rect x="360" y="548" width="126" height="78" rx="8" fill="#ffffff" stroke="#e5e5e5" stroke-width="1.5"/>
+ <rect x="360" y="548" width="4" height="78" rx="2" fill="#1d4ed8"/>
+ <text x="423" y="580" text-anchor="middle" class="state-title">Successor</text>
+ <text x="423" y="600" text-anchor="middle" class="state-copy">generation N+1</text>
+
+ <rect x="504" y="548" width="126" height="78" rx="8" fill="#ffffff" stroke="#e5e5e5" stroke-width="1.5"/>
+ <rect x="504" y="548" width="4" height="78" rx="2" fill="#71717a"/>
+ <text x="567" y="580" text-anchor="middle" class="state-title">Retired</text>
+ <text x="567" y="600" text-anchor="middle" class="state-copy">authority denied</text>
+
+ <text x="72" y="668" class="small">Revoke = governed event + CAS state transition</text>
+ <text x="72" y="688" class="small">Reactivate = new generation; tombstones are never rewritten</text>
+ <text x="72" y="708" class="small">Parent retirement precedes restrictive deletion semantics</text>
+
+ <!-- Follow-up panel -->
+ <rect x="712" y="622" width="640" height="118" rx="8" fill="#ffffff" stroke="#e5e5e5" stroke-width="1.5" stroke-dasharray="4,3"/>
+ <text x="730" y="651" class="section">INDEPENDENT GLOBAL FOLLOW-UPS</text>
+ <text x="730" y="681" class="node-title">IPv6 canonical keys</text>
+ <text x="730" y="704" class="node-copy">same configured prefix → same durable client bucket</text>
+ <text x="1030" y="681" class="node-title">Coherent 429 metadata</text>
+ <text x="1030" y="704" class="node-copy">one rejecting bucket → one retry contract</text>
+
+ <!-- Validation panel -->
+ <rect x="712" y="780" width="640" height="140" rx="8" fill="#ffffff" stroke="#e5e5e5" stroke-width="1.5"/>
+ <text x="730" y="809" class="section">VALIDATION</text>
+ <text x="730" y="840" class="small">T0/T1: source, unit, integration, migration, readiness, and CI gates</text>
+ <text x="730" y="862" class="small">T2: same branch-owned Minikube profile + local images + exact marker</text>
+ <text x="730" y="884" class="small">Browser: six visible Control UI/Desktop journeys, 0 skips, 0 retries</text>
+ <text x="730" y="906" class="small">Negative paths: retired, stale, revoked, unlinked, forbidden, and rate-limited</text>
+
+ <!-- Primary and control flows -->
+ <path d="M 278 140 H 320 V 76 H 680 V 140 H 712" fill="none" stroke="#1d4ed8" stroke-width="1.5" marker-end="url(#arrow-blue)"/>
+ <rect x="390" y="62" width="116" height="18" fill="#ffffff"/>
+ <text x="448" y="75" text-anchor="middle" class="label">admin lifecycle</text>
+
+ <path d="M 278 252 H 360" fill="none" stroke="#10a37f" stroke-width="1.5" marker-end="url(#arrow-green)"/>
+ <rect x="282" y="236" width="84" height="18" fill="#ffffff"/>
+ <text x="324" y="249" text-anchor="middle" class="label">GFS requests</text>
+
+ <path d="M 278 364 H 320 V 320 H 680 V 220 H 712" fill="none" stroke="#f97316" stroke-width="1.5" marker-end="url(#arrow-gray)"/>
+ <rect x="354" y="304" width="112" height="18" fill="#ffffff"/>
+ <text x="410" y="317" text-anchor="middle" class="label">initial_setup</text>
+
+ <path d="M 660 200 H 712" fill="none" stroke="#10a37f" stroke-width="1.5" marker-end="url(#arrow-green)"/>
+ <rect x="646" y="181" width="124" height="18" fill="#ffffff"/>
+ <text x="708" y="194" text-anchor="middle" class="label">request ID + gates</text>
+
+ <path d="M 1034 205 H 1086" fill="none" stroke="#10a37f" stroke-width="1.5" marker-end="url(#arrow-green)"/>
+ <rect x="1014" y="185" width="96" height="18" fill="#ffffff"/>
+ <text x="1062" y="198" text-anchor="middle" class="label">signed authority</text>
+
+ <path d="M 873 302 V 400" fill="none" stroke="#71717a" stroke-width="1.5" marker-end="url(#arrow-gray)"/>
+ <rect x="882" y="342" width="108" height="18" fill="#ffffff"/>
+ <text x="936" y="355" text-anchor="middle" class="label">resolve / mutate</text>
+
+ <path d="M 1219 302 V 400" fill="none" stroke="#71717a" stroke-width="1.5" marker-end="url(#arrow-gray)"/>
+ <rect x="1228" y="342" width="126" height="18" fill="#ffffff"/>
+ <text x="1291" y="355" text-anchor="middle" class="label">state read</text>
+
+ <path d="M 1034 260 H 1060 V 480 H 1086" fill="none" stroke="#71717a" stroke-width="1.5" stroke-dasharray="4,3" marker-end="url(#arrow-gray)"/>
+ <rect x="1038" y="366" width="122" height="18" fill="#ffffff"/>
+ <text x="1099" y="379" text-anchor="middle" class="label">governed event</text>
+
+ <!-- Lifecycle transitions -->
+ <path d="M 198 587 H 216" fill="none" stroke="#1d4ed8" stroke-width="1.5" marker-end="url(#arrow-blue)"/>
+ <rect x="190" y="520" width="60" height="18" fill="#ffffff"/>
+ <text x="220" y="533" text-anchor="middle" class="label">revoke</text>
+ <path d="M 342 587 H 360" fill="none" stroke="#1d4ed8" stroke-width="1.5" marker-end="url(#arrow-blue)"/>
+ <rect x="330" y="520" width="76" height="18" fill="#ffffff"/>
+ <text x="368" y="533" text-anchor="middle" class="label">reactivate</text>
+ <path d="M 135 626 V 650 H 567 V 626" fill="none" stroke="#71717a" stroke-width="1.5" stroke-dasharray="4,3" marker-end="url(#arrow-gray)"/>
+ <rect x="286" y="638" width="88" height="18" fill="#ffffff"/>
+ <text x="330" y="651" text-anchor="middle" class="label">retire parent</text>
+
+ <!-- Follow-up relation routed outside the lifecycle panel -->
+ <path d="M 712 681 H 680 V 760 H 20 V 200 H 360" fill="none" stroke="#71717a" stroke-width="1.5" stroke-dasharray="4,3" marker-end="url(#arrow-gray)"/>
+ <rect x="26" y="188" width="122" height="18" fill="#ffffff"/>
+ <text x="87" y="201" text-anchor="middle" class="label">shared contracts</text>
+
+ <!-- Legend -->
+ <line x1="730" y1="950" x2="770" y2="950" stroke="#10a37f" stroke-width="1.5" marker-end="url(#arrow-green)"/>
+ <text x="780" y="954" class="small">primary request / authority flow</text>
+ <line x1="1010" y1="950" x2="1050" y2="950" stroke="#1d4ed8" stroke-width="1.5" marker-end="url(#arrow-blue)"/>
+ <text x="1060" y="954" class="small">state transition</text>
+ <line x1="1160" y1="950" x2="1200" y2="950" stroke="#71717a" stroke-width="1.5" stroke-dasharray="4,3" marker-end="url(#arrow-gray)"/>
+ <text x="1210" y="954" class="small">audit / follow-up contract</text>
+</svg>
diff --git a/docs/architecture/gfs-desktop-operator-parity.md b/docs/architecture/gfs-desktop-operator-parity.md
new file mode 100644
index 000000000..d1e8f65d8
--- /dev/null
+++ b/docs/architecture/gfs-desktop-operator-parity.md
@@ -0,0 +1,94 @@
+# Self-hosted Desktop GFS operator parity
+
+This page documents the self-hosted boundary that gives the initial Desktop
+identity GFS operator parity with its linked Control Admin. The relationship is
+created only by supported initial setup, is scoped to GFS, and is resolved from
+authoritative lifecycle state on every authorization decision.
+
+![Self-hosted Desktop GFS operator parity](diagrams/gfs-desktop-operator-parity-overview.svg)
+
+- [Executive flow PNG](diagrams/gfs-desktop-operator-parity-overview.png)
+- [Executive flow editable source](diagrams/gfs-desktop-operator-parity-overview.json)
+- [Detailed architecture SVG](diagrams/gfs-desktop-operator-parity.svg)
+- [Detailed architecture PNG](diagrams/gfs-desktop-operator-parity.png)
+- [Detailed architecture editable source](diagrams/gfs-desktop-operator-parity.json)
+
+## Security boundary
+
+Operator authority exists only when all of the following are true:
+
+1. The external session is authenticated.
+2. The Desktop user is active and its authentication generation matches the
+ token.
+3. The linked Control Admin is active and its session generation matches.
+4. The current immutable link generation is active and matches both exact IDs.
+
+Any missing, stale, retired, malformed, or conflicting state fails closed. A
+bare user UUID never implies operator authority. Revoking the link removes only
+the operator elevation; the Desktop user may continue using ordinary GFS
+permissions while active.
+
+## Lifecycle
+
+- Initial setup creates the Desktop identity, default membership, Control Admin,
+ and generation 1 link atomically.
+- Control UI revoke records the actor, reason, request ID, idempotency outcome,
+ and a retained revoked tombstone.
+- Reactivation inserts a new successor generation after an explicit row-version
+ check. A revoked generation is never mutated back to active.
+- Parent retirement revokes the active generation before marking the parent
+ retired. Restrictive foreign keys prevent hard deletion from erasing link
+ history.
+- Session and authority generations are checked at the data-plane boundary, so
+ previously issued tokens cannot continue to authorize a retired user or a
+ revoked/stale operator generation.
+
+## Request and rate-limit boundaries
+
+External REST applies the GFS edge backstop in this order:
+
+`token-IP 600/min → authenticated client-IP 1200/min → aggregate 1800/min`
+
+Control API then applies distributed, authority-aware limits:
+
+- token mint: 10/min per Desktop user;
+- resource/proxy reads: 120/min per session, trusted client IP, and resolved
+ actor class;
+- mutations, grants, and shares: 30/min per session, trusted client IP, and
+ resolved actor class.
+
+The buckets remain separate. A request rejected by a narrower boundary cannot
+consume a broader bucket. IPv6 canonical-key normalization and cross-layer 429
+header coherence are tracked as independent global follow-ups:
+
+- [Issue #352](https://github.com/evenfire-ai/evenfire/issues/352)
+- [Issue #353](https://github.com/evenfire-ai/evenfire/issues/353)
+
+## Migration sequence
+
+| Migration | Responsibility |
+| --- | --- |
+| `0091_gfs_desktop_operator_links` | Explicit `initial_setup` Desktop/Admin relationship. |
+| `0092_gfs_audit_actor_correlation` | Desktop actor, effective admin, source, and request correlation. |
+| `0093_gfs_desktop_operator_link_generations` | Immutable generations, lineage, tombstones, CAS, and restrictive parent FKs. |
+| `0094_desktop_user_retirement_lifecycle` | Active/retired Desktop lifecycle, typed retirement actors, and idempotent outcomes. |
+| `0095_gfs_lifecycle_authority_projection` | GFSC lifecycle projection, readiness checks, and least-privilege reads. |
+| `0096_control_admin_session_version_default` | Safe session-generation defaults for existing Control Admin rows. |
+
+The deployment pre-gate applies migrations in order, reconciles the runtime
+roles and ACL manifest, verifies readiness, and only then exposes consumers.
+Rollback disables new issuance and mutations; it does not down-migrate or
+delete retained lifecycle evidence.
+
+## Validation surface
+
+- Unit and integration suites cover setup, authority resolution, lifecycle
+ transitions, token generations, audit attribution, route guards, rate-limit
+ bucket separation, migration/readiness contracts, and Desktop/Control UI
+ states.
+- The browser certificate covers setup-linked operator access, operator root
+ CRUD, ordinary-user behavior, grant/share lifecycle, visible Control UI
+ revoke, reactivation/revoke generations, and audit correlation.
+- The supported branch-owned Minikube profile is reused with local images; the
+ pre-gate binds the deployed marker to the exact worktree HEAD and cluster
+ fingerprint.
diff --git a/docs/architecture/overview.md b/docs/architecture/overview.md
index 174e75f93..61acc0058 100644
--- a/docs/architecture/overview.md
+++ b/docs/architecture/overview.md
@@ -78,6 +78,9 @@ webhook and file planes, see [/ARCHITECTURE.md](../../ARCHITECTURE.md). For the
three human surfaces — the Control UI console, the Desktop App client, and the
Profile UI — see [docs/surfaces/](../surfaces/README.md).
+The self-hosted Desktop GFS authority boundary, lifecycle generations, and
+validation flow are documented in [Desktop GFS operator parity](gfs-desktop-operator-parity.md).
+
| Service | Directory | Namespace | Port | Role |
| --------------------------- | -------------------------- | --------------- | ---- | ---------------------------------------------------------------------------------------------------- |
| **channel-reader** | `/channel-reader` | `channels` | - | Watches CommunicationChannel CRDs, polls Telegram/Email/Slack, forwards to mcp-host |