Skip to content

ci-fix: cap the job at a 120-minute timeout - #736

Closed
tend-agent wants to merge 2 commits into
mainfrom
hourly/review-28280653299
Closed

tend-agent wants to merge 2 commits into
mainfrom
hourly/review-28280653299

Conversation

@tend-agent

@tend-agent tend-agent commented Jun 27, 2026 •

Copy link
Copy Markdown
Collaborator

Caps the tend-ci-fix job at timeout-minutes: 120 so a session that grinds on stress-validating a flaky/timing-sensitive failure is bounded by GitHub Actions rather than by self-budgeting prose in the skill.

Per maintainer feedback, this replaces the earlier budget-box paragraph in ci-fix/SKILL.md — the deterministic YAML timeout is the cheaper gate (it doesn't cost a skill load every session) and keeps the skill leaner.

A ci-fix run on a flaky/timing failure can grind stress-validation loops
until the harness kills it at the ~3600s cap, shipping zero durable output
even when it reached a sound diagnosis. Point step 2 at the existing 3b
off-ramp: bail and post the diagnosis while the session is still alive.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@tend-agent tend-agent added the claude-behavior Behavioral issues found by review-reviewers label Jun 27, 2026

@tend-agent tend-agent left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change is accurate and well-scoped — it points at the existing §3b off-ramp rather than adding machinery, and "an attempted fix didn't validate locally" is indeed already a §3b condition, so the cross-reference holds.

One observation (self-review): CLAUDE.md's skill-authoring guidance is explicit about brevity — "cut motivation" and "prefer recipe over narrative." The paragraph spends its first two sentences on motivation (killed session ships nothing / stress-validation drains budget) before the rule. Since this loads into every ci-fix session, a tighter version that leads with the rule keeps the cost down. Suggestion inline.

@max-sixty

Copy link
Copy Markdown
Owner

let's just dou let the timeout of 120min and remove the rest; it's overly vomplicated

Per maintainer feedback on #736: drop the explanatory paragraph and
just cap the ci-fix job at timeout-minutes: 120 so a grinding session
is bounded by GHA rather than self-budgeting prose.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@tend-agent tend-agent changed the title skills(ci-fix): budget-box local validation to avoid grind-to-timeout ci-fix: cap the job at a 120-minute timeout Jun 27, 2026
@tend-agent

Copy link
Copy Markdown
Collaborator Author

Done — dropped the budget-box paragraph and set timeout-minutes: 120 on the fix-ci job in the generator template (generator/src/tend/templates/ci-fix.yaml.j2), with the regtest fixtures regenerated to match. Generated workflows otherwise inherit GitHub's 360-min default, so this is the only job that now carries an explicit cap. Title/description updated to match.

max-sixty pushed a commit that referenced this pull request Jun 28, 2026
Bumps the default `timeout_seconds` from `3600` (60 min) to `10800` (3
hours) in both Claude harness actions (`claude/action.yaml` headless,
`claude-interactive/action.yaml` PTY). Codex has no harness-level
timeout (it relies on the GitHub job cap), so nothing changes there.

Requested by a maintainer in
[max-sixty/worktrunk#3260](max-sixty/worktrunk#3260):
worktrunk's nightly `tend-ci-fix` was repeatedly hitting the 60-minute
cap while stress-testing a flaky, timing-sensitive integration test,
surfacing as recurring "Bot temporarily unavailable" outages. The
sessions weren't stuck — they were genuinely longer than the cap.
Raising the ceiling lets these long sessions finish; short tasks finish
well before the cap regardless, so the only cost is that a genuinely
runaway session now burns up to 3 hours of subscription compute before
the supervisor kills it.

The bump reaches adopters at the next tend release, since their
workflows pin `max-sixty/tend/<harness>@X.Y.Z`; tend's own workflows
pick it up the same way.

Note: this overlaps with #736, which caps the `tend-ci-fix` *job* at
`timeout-minutes: 120`. With a 3-hour harness timeout, that 120-minute
GitHub job cap would kill `tend-ci-fix` at 2 hours — before the harness
timeout fires — which undercuts the increase for the exact workflow that
motivated it. Worth reconciling: either close #736, or raise its cap to
≥180 min so the harness timeout is the effective gate. Your call.

<details><summary>Diff summary</summary>

- `claude/action.yaml`: `timeout_seconds` default `3600` → `10800`,
description updated.
- `claude-interactive/action.yaml`: same (kept in step with the headless
pin).

Generator tests (255) pass — the action defaults aren't consumed by
workflow generation, so there's no rendered-output change.

</details>

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

Labels

claude-behavior Behavioral issues found by review-reviewers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants