Skip to content

skills(review-runs): treat the quota reset as an upper bound, not a schedule - #1052

Merged
max-sixty merged 1 commit into
mainfrom
fix/issue-1051
Aug 27, 2026
Merged

max-sixty merged 1 commit into
mainfrom
fix/issue-1051

Conversation

@tend-agent

Copy link
Copy Markdown
Collaborator

Problem

review-runs → Drain stranded triggers told the sweep to "read the reset off the message" of a quota <synthetic> turn, framing the stated reset as when the quota returns. It isn't — it bounds the outage from above. On max-sixty/worktrunk, a tend-review pair died at 2026-08-25T04:44Z with resets 12am (UTC) (i.e. 2026-08-26T00:00Z), and a tend-notifications session booted the agent normally at 05:01:15Z — ~19h before the stated reset. The same shape on 2026-08-11: failures at 14:57Z/15:06Z with resets 2am (UTC), then a clean 15:40Z run, ~10h early. A third window (2026-08-04) did run to its stated reset, so the long case is real too.

Wrong in both directions: waiting for the clock strands an event-triggered review for a day (nothing re-fires tend-review without a push), and assuming a short clock re-runs into a live outage, appending fresh rows to the public tend-outage issue the drain is meant to clear.

Solution

Replace the falsified clause with the upper-bound framing and point at the check the section already performs one paragraph down ("confirm … that a recent run completed cleanly"). One sentence swapped, no new mechanism.

Testing

Prose-only change to a skill; no code path to test. The claim it drops was checked against run metadata for the runs #1051 cites — failure timestamps, the stated reset in each message, and the first following run whose max-sixty/tend/claude step ran to a successful agent session (verified via the run's step list, so a gate-exit can't pass as a boot). pre-commit run --files plugins/tend-ci-runner/skills/review-runs/SKILL.md passes.


Closes #1051 — automated triage

@max-sixty
max-sixty merged commit 6b09a62 into main Aug 27, 2026
7 checks passed
@max-sixty
max-sixty deleted the fix/issue-1051 branch August 27, 2026 02:12
max-sixty pushed a commit that referenced this pull request Aug 28, 2026
Nightly regeneration of tend's workflow files, picking up the 0.1.20
release.

**tend version:** 0.1.19 → 0.1.20

**Notable changes**

- Setup-added tool paths are preserved in the Claude sandbox, so a
toolchain installed by a `setup:` step stays on the agent's PATH
(#1071).
- The composite action's step bodies moved from bash to Python, with the
leftover bash idioms trimmed in a follow-up. Same step behavior, now
directly testable.
- The action owns its child process lifecycles, so a child process can't
outlive the step that started it.
- `review-runs` treats the rate-limit quota reset as an upper bound
rather than a schedule (#1052).

This also restamps `review-reviewers.yaml` onto the same
`max-sixty/tend/[email protected]` ref. `init` rewrites only the generated
`tend-*.yaml` files, so that hand-maintained workflow was still pinned
to 0.1.19; every workflow in the repo now agrees on one ref.

0.1.19...0.1.20

Co-authored-by: tend-agent <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

review-runs: the quota message's reset time is an upper bound, not a schedule — the drain plans off it and is wrong two times in three

2 participants