Work Router

Work Router An architecture diagram generated by Archify. GitHub event · Architecture component GitHub event Classify · rung 1, pure shell · Router (rung 1) Classify rung 1, pure shell Authorize · write or read only? · Router (rung 1) Authorize write or read only? Route · dispatch one worker · Router (rung 1) Route dispatch one worker agent-refine · Architecture component agent-refine agent-implement · Architecture component agent-implement agent-apply-review · Architecture component agent-apply-review agent-merge-gate · Architecture component agent-merge-gate agent-audit · Architecture component agent-audit agent-release · Architecture component agent-release agent-triage · Architecture component agent-triage Deterministic jobs · no model runs · Architecture component Deterministic jobs no model runs Idle · ~10s, all skipped · Architecture component Idle ~10s, all skipped trusted no permission read only refine implement apply-review merge-gate audit release cron or dispatch Router (rung 1) Legend Backend Security External

Router guarantees

  • • One event creates one run, at most one thing happens
  • • Classification is pure shell with no network calls
  • • Bots authorize via bot-working label pattern

Cost of an idle run

  • • A run still appears for every matching event even when nothing downstream happens
  • • Idle runs cost about ten seconds with every job skipped