| 1 | --- |
| 2 | type: bug |
| 3 | id: bd-c324184 |
| 4 | status: open |
| 5 | title: "Repeated changes to shared check inputs can starve pending work" |
| 6 | created: 2026-09-01 |
| 7 | source: knowledge base design review, 2026-09-01 |
| 8 | --- |
| 9 | |
| 10 | # Repeated changes to shared check inputs can starve pending work |
| 11 | |
| 12 | A pending change can repeatedly lose usable check evidence if other landings keep changing the |
| 13 | inputs its checks depend on. When producing fresh evidence takes longer than the interval between |
| 14 | those invalidations, the change may make no progress toward integration. |
| 15 | |
| 16 | This is a possible starvation condition in the optimistic integration rules of |
| 17 | [[dcr-439b771]](../decisions/dcr-439b771-integration-occ-over-content-addressed-evidence.md). It |
| 18 | depends on overlap between check inputs, landing order, and verification time. Concurrent |
| 19 | contributions alone do not establish starvation. |
| 20 | |
| 21 | ## How it occurs |
| 22 | |
| 23 | The integrator compares each pure check's attested input-closure digest with the digest for the |
| 24 | candidate tree. |
| 25 | |
| 26 | A change to a shared dependency, root schema, or build helper can alter that digest for several |
| 27 | pending changes. A broad source closure may make even a small edit relevant to many checks. Only |
| 28 | checks whose inputs change become stale. |
| 29 | |
| 30 | For example, A lands while B and C are being checked. Both need fresh evidence because A changed |
| 31 | shared inputs. B finishes and lands first. If B also changes inputs used by C, C must repeat the |
| 32 | work again. Continued invalidation of that kind can prevent C from landing. |
| 33 | |
| 34 | A clean textual merge does not avoid the problem. The check may depend on files that do not overlap |
| 35 | the proposed edit. |
| 36 | |
| 37 | ## Evidence needed |
| 38 | |
| 39 | The graph identifies the failure condition but does not establish its frequency in the deployed |
| 40 | system. Useful measurements include invalidations per request, repeated invalidations of the same |
| 41 | request, time spent producing fresh evidence, and which inputs cause the churn. |
| 42 | |
| 43 | ## Candidate responses |
| 44 | |
| 45 | Batch pending changes into a candidate tree that can be checked together. This needs an execution |
| 46 | arrangement outside the integrator's serialized decision step. |
| 47 | |
| 48 | Narrow input closures where the true dependencies permit it. Omitting a real dependency would make |
| 49 | evidence reuse unsound. |
| 50 | |
| 51 | Give repeatedly invalidated work a bounded reservation or other fairness rule. This can improve its |
| 52 | chance of landing but delays competing work. |
| 53 | |
| 54 | Share builders and caches to reduce the cost of producing fresh evidence. That can shorten the |
| 55 | vulnerable interval without guaranteeing fairness on its own. |
| 56 | |
| 57 | The queue policy remains undecided. [integration.md](../../design/integration.md) and |
| 58 | [requirements.md](../../design/requirements.md) provide the protocol and latency requirements |
| 59 | against which to evaluate it. |