Repository navigation
ci-fix: cap the job at a 120-minute timeout - #736
tend-agent wants to merge 2 commits into
Conversation
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
left a comment
There was a problem hiding this comment.
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.
|
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]>
|
Done — dropped the budget-box paragraph and set |
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]>
Caps the
tend-ci-fixjob attimeout-minutes: 120so 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.