<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Work Queue Service Design Decisions on Project Hummingbird</title>
		<link>https://hummingbird-project.io/docs/background/tools/workqueue-service/design-decisions/</link>
		<description>Recent content in Work Queue Service Design Decisions on Project Hummingbird</description>
		<generator>Hugo</generator>
		<language>en</language>
		
		
		
		
			<atom:link href="https://hummingbird-project.io/docs/background/tools/workqueue-service/design-decisions/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Core Model and API Foundations</title>
				<link>https://hummingbird-project.io/docs/background/tools/workqueue-service/design-decisions/core-model/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>https://hummingbird-project.io/docs/background/tools/workqueue-service/design-decisions/core-model/</guid>
				<description>&lt;p&gt;The foundational architecture: the phase + dimensions model, the schema,&#xA;type dispatch, and the submission API. Part of the&#xA;&lt;a href=&#34;https://hummingbird-project.io/docs/background/tools/workqueue-service/design-decisions/&#34;&gt;design decision registry&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;ddr-1-phase--dimensions-vs-linear-state-machine&#34;&gt;DDR-1: Phase + dimensions vs linear state machine&lt;a class=&#34;td-heading-self-link&#34; href=&#34;#ddr-1-phase--dimensions-vs-linear-state-machine&#34; aria-label=&#34;Heading self-link&#34;&gt;&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;&lt;strong&gt;Decision&lt;/strong&gt;: Replace the 12-state linear state machine with a phase +&#xA;dimensions model.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Context&lt;/strong&gt;: The initial design used a single &lt;code&gt;state&lt;/code&gt; column:&#xA;&lt;code&gt;pending → in_progress → created → mr_ci → approved → merged → post_merge_ci → building → releasing → completed&lt;/code&gt;. This broke because&#xA;post-creation concerns (CI, approval, Konflux build) are independent —&#xA;CI can pass before approval, approval can be revoked, force-push resets&#xA;CI but not approval.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Authentication, Configuration, and Infrastructure</title>
				<link>https://hummingbird-project.io/docs/background/tools/workqueue-service/design-decisions/auth-config/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>https://hummingbird-project.io/docs/background/tools/workqueue-service/design-decisions/auth-config/</guid>
				<description>&lt;p&gt;How callers authenticate and authorize, how the service is configured,&#xA;and the audit and deployment infrastructure. Part of the&#xA;&lt;a href=&#34;https://hummingbird-project.io/docs/background/tools/workqueue-service/design-decisions/&#34;&gt;design decision registry&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;ddr-18-agent-direction--dumber-not-smarter&#34;&gt;DDR-18: Agent direction — dumber, not smarter&lt;a class=&#34;td-heading-self-link&#34; href=&#34;#ddr-18-agent-direction--dumber-not-smarter&#34; aria-label=&#34;Heading self-link&#34;&gt;&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;&lt;strong&gt;Decision&lt;/strong&gt;: The hummingbird-agent should become a pure compute engine.&#xA;The work queue service is the MR lifecycle orchestrator. The agent never&#xA;calls the work queue service; the work queue service calls the agent.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Context&lt;/strong&gt;: HUM-857 proposed adding &lt;code&gt;create_merge_request&lt;/code&gt; as a new&#xA;action in the agent&amp;rsquo;s &lt;code&gt;actions.py&lt;/code&gt;. This was the wrong direction.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Events and Processing Semantics</title>
				<link>https://hummingbird-project.io/docs/background/tools/workqueue-service/design-decisions/events-processing/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>https://hummingbird-project.io/docs/background/tools/workqueue-service/design-decisions/events-processing/</guid>
				<description>&lt;p&gt;The event pipeline from SNS to work-item threads, phase semantics, and&#xA;the per-item processing loop. Part of the&#xA;&lt;a href=&#34;https://hummingbird-project.io/docs/background/tools/workqueue-service/design-decisions/&#34;&gt;design decision registry&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;ddr-29-events-processed-in-work-item-threads-not-consumer-threads&#34;&gt;DDR-29: Events processed in work-item threads, not consumer threads&lt;a class=&#34;td-heading-self-link&#34; href=&#34;#ddr-29-events-processed-in-work-item-threads-not-consumer-threads&#34; aria-label=&#34;Heading self-link&#34;&gt;&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;&lt;strong&gt;Decision&lt;/strong&gt;: The SQS consumer thread stores events in the&#xA;&lt;code&gt;pending_events&lt;/code&gt; table. Existing per-work-item threads drain and&#xA;process them.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Context&lt;/strong&gt;: The ProcessingManager already runs one thread per work item&#xA;with per-item ownership (DDR-51). Processing events in the same thread&#xA;means events and actions are naturally serialized per work item.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Dimension-Driven Executors</title>
				<link>https://hummingbird-project.io/docs/background/tools/workqueue-service/design-decisions/executors/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>https://hummingbird-project.io/docs/background/tools/workqueue-service/design-decisions/executors/</guid>
				<description>&lt;p&gt;The &lt;code&gt;needs_*&lt;/code&gt; decider, the MR executor actions, and the dimension-kind&#xA;machinery. Part of the&#xA;&lt;a href=&#34;https://hummingbird-project.io/docs/background/tools/workqueue-service/design-decisions/&#34;&gt;design decision registry&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;ddr-45-dimension-driven-decider-with-needs_-flags&#34;&gt;DDR-45: Dimension-driven decider with needs_* flags&lt;a class=&#34;td-heading-self-link&#34; href=&#34;#ddr-45-dimension-driven-decider-with-needs_-flags&#34; aria-label=&#34;Heading self-link&#34;&gt;&lt;/a&gt;&lt;/h2&gt;&#xA;&lt;p&gt;&lt;strong&gt;Decision&lt;/strong&gt;: The decider scans &lt;code&gt;needs_*&lt;/code&gt; dimensions in priority order&#xA;instead of encoding per-concern conditionals.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;Context&lt;/strong&gt;: The original decider checked &lt;code&gt;item.mr_iid is None&lt;/code&gt; for&#xA;create, &lt;code&gt;dashboard_link&lt;/code&gt; dimension absence for dashboard notes, and&#xA;would need more checks for auto-merge, stale detection, metadata sync.&#xA;Each new concern added another conditional.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
