Repository navigation
Commit 7656448
authored
feat(queue): parked review items get inventory and bounded reconciliation (#1111)
Review items parked as review_retry_exhausted had no operator surface: after
three automatic recoveries they parked forever unless a fresh GitHub event
arrived, invisible behind a bare counter -- 46 undelivered reviews sat frozen
while the publication dead-letter store had list, recover, resolve, and a
scheduled reconciler.
Parked review items now get the same treatment, mirroring the DLQ operator
pattern: a signed bounded inventory route; reconciliation that supersedes
items whose GitHub target is terminal (never re-reviewing closed work) and
re-enqueues a capped number of open-target items as fresh reviews with the
recovery budget reset (5 per pass -- re-reviews post public comments);
idempotent recovery keys; wired into the scheduled dead-letter reconcile
workflow behind the same deploy-sha guard, with the parked inventory uploaded
alongside the DLQ artifact. Command-context records are excluded from
mutation (inventory shows them flagged) using the queue's existing
exactReviewQueueHasCommandContext predicate, matching the terminalization
path's policy.
Proof (docs/proof/parked-review-reconcile): the real Worker and Durable
Object park an item by exhausting its budget through real routes, the
inventory lists it, a terminal-target item resolves as superseded, an
open-target item re-enters pending with its budget reset, replaying the same
recovery key does not double-enqueue, and a command-context parked item
(reached via the real legacy command intake route) is refused by both
mutation routes. Verified in a Docker-backed Crabbox local-container on the
reviewed head.1 parent 51ac499 commit 7656448
12 files changed
Lines changed: 2134 additions & 32 deletions
File tree
- .github/workflows
- dashboard
- docs
- proof/parked-review-reconcile
- scripts
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
41 | 46 | | |
42 | 47 | | |
43 | 48 | | |
| |||
49 | 54 | | |
50 | 55 | | |
51 | 56 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
| 57 | + | |
59 | 58 | | |
60 | 59 | | |
61 | 60 | | |
| |||
73 | 72 | | |
74 | 73 | | |
75 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
76 | 85 | | |
77 | 86 | | |
78 | 87 | | |
| |||
84 | 93 | | |
85 | 94 | | |
86 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
87 | 115 | | |
88 | 116 | | |
89 | 117 | | |
90 | 118 | | |
91 | 119 | | |
92 | | - | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
93 | 123 | | |
94 | 124 | | |
95 | 125 | | |
0 commit comments