You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Existing single-writer PR #1707 bounds each gh subprocess to 30 seconds and caps retained stdout/stderr, and capture_pr_queue_snapshot() declares a cumulative capture_budget_seconds. However the repository, open-PR identity, and PR-history queries are still launched unconditionally before the first deadline check. A configured or nearly exhausted cumulative budget can therefore be exceeded while two additional live GitHub commands are started, so the package-owned cumulative budget is not actually enforced across the full capture sequence.
This is queue-governance capture control only. It does not change GitHub branch policy, model/estimator/scoring behavior, or psychometric/statistical arithmetic.
Add deterministic fail-first coverage with an injected monotonic clock proving that after one initial live query consumes the configured cumulative budget, no subsequent identity/history/detail/base query starts.
Check the package-owned deadline before every live capture command, including repository, identity, and history queries; preserve the existing rule that an already-started command is governed by its own per-command timeout.
Emit one stable package-owned cumulative-budget error and stop further live capture work once the budget is exhausted; do not duplicate budget errors for commands intentionally skipped after exhaustion.
Reliability / resource-control defect
Existing single-writer PR #1707 bounds each
ghsubprocess to 30 seconds and caps retained stdout/stderr, andcapture_pr_queue_snapshot()declares a cumulativecapture_budget_seconds. However the repository, open-PR identity, and PR-history queries are still launched unconditionally before the first deadline check. A configured or nearly exhausted cumulative budget can therefore be exceeded while two additional live GitHub commands are started, so the package-owned cumulative budget is not actually enforced across the full capture sequence.This is queue-governance capture control only. It does not change GitHub branch policy, model/estimator/scoring behavior, or psychometric/statistical arithmetic.
Required RED → GREEN contract
sentinel-bounded-capture-pr-queue-12849572520891612615; do not create a competing queue-capture branch.