Title: fix(fleet-queue): outbox reconcile must not trust GitHub search absence — live trial 2 created a duplicate (from #3706) · Issue #8331 · developing-today/code · GitHub
Open Graph Title: fix(fleet-queue): outbox reconcile must not trust GitHub search absence — live trial 2 created a duplicate (from #3706) · Issue #8331 · developing-today/code
X Title: fix(fleet-queue): outbox reconcile must not trust GitHub search absence — live trial 2 created a duplicate (from #3706) · Issue #8331 · developing-today/code
Description: Fix: outbox reconcile must not trust GitHub search absence (live trial 2 duplicate) Found by the live trials for the creation outbox pilot (#3706, task 14666, 2026-11-10) against scratch repo dezren39/fleet-outbox-trial-3706. What happen...
Open Graph Description: Fix: outbox reconcile must not trust GitHub search absence (live trial 2 duplicate) Found by the live trials for the creation outbox pilot (#3706, task 14666, 2026-11-10) against scratch repo dezre...
X Description: Fix: outbox reconcile must not trust GitHub search absence (live trial 2 duplicate) Found by the live trials for the creation outbox pilot (#3706, task 14666, 2026-11-10) against scratch repo dezre...
Opengraph URL: https://github.com/developing-today/code/issues/8331
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"fix(fleet-queue): outbox reconcile must not trust GitHub search absence — live trial 2 created a duplicate (from #3706)","articleBody":"# Fix: outbox reconcile must not trust GitHub search absence (live trial 2 duplicate)\n\nFound by the live trials for the creation outbox pilot (#3706, task 14666, 2026-11-10) against scratch repo dezren39/fleet-outbox-trial-3706.\n\n## What happened\nTrial 2 (kill/restart): entry ob-1794350127-ac5b929eacf5 was claimed by a drainer that \"landed its create then died\" (issue #6 on the scratch repo, created manually with the entry's marker, exactly as a crashed drainer's landed create would look). After the 120s lease expired, a fresh drain claimed the row as `uncertain` (correct) and ran `find_by_marker` — which searches via the GitHub search API. The search returned nothing for an issue created ~2.5 minutes earlier (search indexing lag), the drainer treated that as proven absence, and re-created: duplicate issue #7 with the same marker. The row resolved done against #7.\n\n## Defect\n`find_by_marker` (pkgs/fleet/crates/fleet-queue/src/client.rs) uses GitHub search as its only source. Search is eventually consistent; \"not in the index yet\" is indistinguishable from \"does not exist\", so the reconcile path can duplicate precisely in the crash window it exists to protect (a create that landed seconds-to-minutes before the restart).\n\n## Fix direction\nBefore concluding absence, the reconcile must check a strongly consistent source: list the repo's recent issues via the REST list endpoint (issues list is not search-indexed) and scan bodies for the marker — at minimum the most recent N issues / issues created since the entry's lease start. Only if BOTH search and the list scan find nothing may the drainer re-create. Add an oracle test: marker present in list results but absent from search results reconciles, never duplicates.\n\n## Evidence\n- Scratch repo: dezren39/fleet-outbox-trial-3706 issues #6 and #7 (same title, same marker `\u003c!-- fleet-outbox:ob-1794350127-ac5b929eacf5 -->`); #7 closed as the trial duplicate.\n- Trial record: comment on #3706 by task 14666 (2026-11-10).\n- The producer flip (new-issue-creator-code-a) stays blocked on this fix: a drainer that can duplicate in the crash window must not be the fleet's creation path yet.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-11-10T22:39:58Z","url":"https://github.com/developing-today/code/issues/8331"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5ac6d78b-4849-9161-46a5-1655a83a88a3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D354:29E85A:11263F:165E03:6B0626AB |
| html-safe-nonce | d746bd936075981ef218b67b04502cb6a21585b47f34c642332bbbe5264ec1d3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMzU0OjI5RTg1QToxMTI2M0Y6MTY1RTAzOjZCMDYyNkFCIiwidmlzaXRvcl9pZCI6IjQ5NDUwNTYwMjE2MTkyODc3MjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 89efe35b2a3679d7288f43054ed2446e2b80a78d341000b7e082a521befc7a77 |
| hovercard-subject-tag | issue:6317360737 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/8331/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d204824c95e25f1adbc305f2fd387fcb2cf5e5722016fe15ef9a89c26ca7b2eb/developing-today/code/issues/8331 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d204824c95e25f1adbc305f2fd387fcb2cf5e5722016fe15ef9a89c26ca7b2eb/developing-today/code/issues/8331 |
| og:image:alt | Fix: outbox reconcile must not trust GitHub search absence (live trial 2 duplicate) Found by the live trials for the creation outbox pilot (#3706, task 14666, 2026-11-10) against scratch repo dezre... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9e10bb0ecc0bd0f8692aa89586ee9b54e498d7ab9f244a44cdb5b93653a125ce |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 32e57d5cc2ce6ce92ec6dceb65858344750c27c2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width