Skip to content

feat(daemon): per-run budget override flags (iterations + wall clock)#10

Merged
Svaag merged 1 commit into
mainfrom
feat/daemon-budget-flags
Jun 16, 2026
Merged

feat(daemon): per-run budget override flags (iterations + wall clock)#10
Svaag merged 1 commit into
mainfrom
feat/daemon-budget-flags

Conversation

@Svaag

@Svaag Svaag commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Context

The VPS launch-proof dogfood (hyrule-cloud#28) showed the loop writes good, on-spec code but times out at the 45-min wall clock on a feature this size — every run ends needs_triage with partial work. The per-run budget (DaemonConfig: 20 iterations / 45 min) had no CLI override on the daemon subcommand.

Change

Add --max-iterations-per-run and --max-wall-clock-minutes-per-run to daemon, defaulting to the existing conservative DaemonConfig values and wired into the config. This lets a one-off larger run be triggered (e.g. 90 min) without changing the timer's defaults.

Validation

  • uvx ruff check src tests — clean
  • uv run --group dev mypy --strict src — clean
  • uv run --group dev pytest -q177 passed (+1: defaults + override parse)
  • daemon --help shows both flags

Next

Merge → bump the loop pin → re-queue #28 → manual run with --max-wall-clock-minutes-per-run 90 so the loop finishes the launch-proof contract to a real draft PR. The hourly timer stays at the 45-min default.

…lock-minutes)

The daemon hardcoded the per-run budget (DaemonConfig: 20 iterations / 45 min)
with no CLI override, so a feature-class issue that needs more than 45 min
times out at needs_triage every run. Add --max-iterations-per-run and
--max-wall-clock-minutes-per-run to the daemon subcommand (default to the
existing conservative values), so a one-off larger run can be triggered
without touching the timer's defaults.

Surfaced by the VPS launch-proof dogfood (hyrule-cloud#28): the loop wrote
~1083 lines of good, on-spec code but ran out of the 45-min wall clock.

Validation: ruff clean, mypy --strict clean, 177 passed (+1), evals 15/15.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@Svaag Svaag added the agentic-isp AS215932/Hyrule agentic ISP operating-loop work label Jun 16, 2026
@Svaag Svaag marked this pull request as ready for review June 16, 2026 07:29
@Svaag Svaag merged commit 768cde6 into main Jun 16, 2026
4 checks passed
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agentic-isp AS215932/Hyrule agentic ISP operating-loop work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant