Skip to content

Agents: unattended concurrency cap and local-time window in the run cost gate #2848

Closed

Description

@integry

Context

The Agents v1 cost gate (#2810) decides whether an unattended run (trigger schedule, api, mcp, cli) proceeds, defers or skips based on subscription usage from Agent Tank. Two admission controls from the superseded scheduled-tasks spec (#2744) are not covered by the epic and belong in the same gate:

  1. Unattended concurrency cap — instance setting unattended_max_concurrent (default 1): the number of agent runs in queued/running/acting whose trigger is not manual must stay below the cap; otherwise the run is deferred (short step, e.g. 5 minutes, counted against maxDeferrals) with a reason such as "2 unattended runs are already active (cap 1)".
  2. Local-time window — optional instance setting unattended_window, e.g. 02:00-07:00@Europe/Riga: outside the window an unattended run is deferred until the window opens (with the deferral count not incremented for pure window waits); a malformed window blocks unattended work and shows a warning in Settings rather than allowing everything.

manual (UI "Run now") stays exempt from both, as it is from the usage gate.

Requirements

Depends on the Agents v1 epic landing (#2810, #2811).


Follow-up from #2744, which was closed as superseded by the Agents v1 epic.

Activity

  1. added
    enhancement
    on Oct 6, 2026
  2. propr-dev commented on Oct 7, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using claude agent with claude-opus-5-5 model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: claude
    • Model: claude-opus-5-5
    • Branch: 2848/claude-opus-5-5-agents-unattended-concurr-20261007-2201-efu
    • Base Branch: main
    • Worktree: issue-2848-20261007-2201-claude-opus-5-5-efu

    🔍 Track Task Execution

  3. propr-dev commented on Oct 7, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using claude agent with claude-opus-5-5 model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: claude
    • Model: claude-opus-5-5
    • Branch: 2848/claude-opus-5-5-agents-unattended-concurr-20261007-2226-r44
    • Base Branch: main
    • Worktree: issue-2848-20261007-2226-claude-opus-5-5-r44

    🔍 Track Task Execution

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    AIAI-doneenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions