Created
July 1, 2026 18:15
-
-
Save ParkerRex/18dac0f8133686f246d7aa9e756c95fa to your computer and use it in GitHub Desktop.
Worker #683 flow diagram
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <svg xmlns="http://www.w3.org/2000/svg" width="1120" height="760" viewBox="0 0 1120 760" role="img" aria-labelledby="title desc"> | |
| <title id="title">Worker issue 683 API-origin compatibility cleanup flow</title> | |
| <desc id="desc">Flow diagram for Team workforce read q and stage metadata plus launcher approval stored payload execution.</desc> | |
| <defs> | |
| <marker id="arrow" markerWidth="12" markerHeight="12" refX="10" refY="6" orient="auto" markerUnits="strokeWidth"> | |
| <path d="M2,2 L10,6 L2,10 Z" fill="#243447" /> | |
| </marker> | |
| <style> | |
| .title { font: 700 24px Arial, sans-serif; fill: #111827; } | |
| .lane { font: 700 17px Arial, sans-serif; fill: #1f2937; } | |
| .box { fill: #f8fafc; stroke: #334155; stroke-width: 2; rx: 8; } | |
| .decision { fill: #fff7ed; stroke: #9a3412; stroke-width: 2; } | |
| .ok { fill: #ecfdf5; stroke: #047857; stroke-width: 2; rx: 8; } | |
| .warn { fill: #fef2f2; stroke: #b91c1c; stroke-width: 2; rx: 8; } | |
| .text { font: 15px Arial, sans-serif; fill: #111827; } | |
| .small { font: 13px Arial, sans-serif; fill: #374151; } | |
| .line { fill: none; stroke: #243447; stroke-width: 2.2; marker-end: url(#arrow); } | |
| .label { font: 13px Arial, sans-serif; fill: #374151; } | |
| </style> | |
| </defs> | |
| <rect x="0" y="0" width="1120" height="760" fill="#ffffff" /> | |
| <text x="40" y="48" class="title">Issue 683: API-Origin Request Compatibility Cleanup</text> | |
| <text x="70" y="94" class="lane">Team workforce read</text> | |
| <rect x="60" y="115" width="260" height="74" class="box" /> | |
| <text x="84" y="144" class="text">Request schema accepts</text> | |
| <text x="84" y="166" class="small">current q and stage metadata</text> | |
| <rect x="370" y="115" width="260" height="74" class="box" /> | |
| <text x="392" y="144" class="text">Decode and authorize</text> | |
| <text x="392" y="166" class="small">membership before read resolver</text> | |
| <rect x="680" y="115" width="270" height="74" class="box" /> | |
| <text x="702" y="144" class="text">Resolver receives q and stage</text> | |
| <text x="702" y="166" class="small">as current route read inputs</text> | |
| <rect x="210" y="245" width="300" height="74" class="box" /> | |
| <text x="234" y="274" class="text">Core read store queries workspace</text> | |
| <text x="234" y="296" class="small">full WorkerListResponse envelope</text> | |
| <rect x="610" y="245" width="320" height="74" class="ok" /> | |
| <text x="636" y="274" class="text">Team route model applies filters</text> | |
| <text x="636" y="296" class="small">runtimeSeats rows use query and stage</text> | |
| <path d="M320 152 H370" class="line" /> | |
| <path d="M630 152 H680" class="line" /> | |
| <path d="M815 189 V218 C815 236 792 245 770 245 H510" class="line" /> | |
| <path d="M510 282 H610" class="line" /> | |
| <text x="70" y="382" class="lane">Launcher approval execution</text> | |
| <rect x="60" y="405" width="260" height="74" class="ok" /> | |
| <text x="84" y="434" class="text">Proposal start persists</text> | |
| <text x="84" y="456" class="small">current workerLauncher payload</text> | |
| <rect x="370" y="405" width="260" height="74" class="box" /> | |
| <text x="394" y="434" class="text">Approval decide reads stored</text> | |
| <text x="394" y="456" class="small">launcher_command_proposal payload</text> | |
| <polygon points="805,395 930,442 805,489 680,442" class="decision" /> | |
| <text x="748" y="437" class="text">Payload has</text> | |
| <text x="738" y="459" class="small">current workerLauncher?</text> | |
| <rect x="665" y="560" width="280" height="74" class="ok" /> | |
| <text x="692" y="589" class="text">Decode proposal contract</text> | |
| <text x="692" y="611" class="small">execute approved command once</text> | |
| <rect x="305" y="560" width="280" height="74" class="box" /> | |
| <text x="329" y="589" class="text">Persisted-payload bridge</text> | |
| <text x="329" y="611" class="small">workerID plus workerSkinID normalize</text> | |
| <rect x="80" y="650" width="280" height="74" class="warn" /> | |
| <text x="104" y="679" class="text">Unbridgeable stale payload</text> | |
| <text x="104" y="701" class="small">fails closed with no executed receipt</text> | |
| <path d="M320 442 H370" class="line" /> | |
| <path d="M630 442 H680" class="line" /> | |
| <path d="M805 489 V560" class="line" /> | |
| <path d="M680 442 C600 470 520 505 445 560" class="line" /> | |
| <path d="M445 634 C520 662 650 662 735 634" class="line" /> | |
| <path d="M680 442 C560 500 330 615 220 650" class="line" /> | |
| <text x="820" y="526" class="label">yes</text> | |
| <text x="525" y="522" class="label">no, bridgeable stored payload</text> | |
| <text x="320" y="626" class="label">no bridge</text> | |
| <text x="40" y="744" class="small">Rendered for https://github.com/ParkerRex/worker/issues/683. The flow classifies q/stage as current request metadata and legacy workerID payloads as persisted approval data only.</text> | |
| </svg> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment