Skip to content

Don't claim issues or write to GitHub while no agent runtime or agent is configured #3891

Done

Description

@integry

Problem

An instance with no way to run an agent still claims labeled issues and acts on GitHub.

Seen on 2026-11-29 with a Fly test instance. It was launched from the Fly dashboard (#3852) with runtime "Not yet", so it had no SPRITES_TOKEN, no Docker and no agent credentials. The dashboard showed "No AI Agent Configured". Within minutes of setup, the worker:

  • claimed AI-labeled issues: integry/propr-site#266 and integry/propr-fly-fixture#138;
  • posted "🤖 AI processing has started … using default agent with claude-opus-5-5 model", although no agent was configured;
  • failed each run about 2 minutes later with "❌ AI processing failed before producing publishable work. System Error: Set PROPR_SPRITES_TOKEN on the worker to run agents on Sprites";
  • changed the issues' labels;
  • queued a PR follow-up task on [788 by GPT-6.2 Sol] Import public MCP directory batch 33 and reconcile existing catalog entries mcptest#789.

The runs were bound to fail before they started, and the owner was left with misleading comments and label churn on real issues.

Expected

While the instance can't run an agent, it doesn't claim issues or PR follow-ups and doesn't write to GitHub. That covers three cases: no usable agent runtime (no Docker and no configured remote runtime), no agent with credentials, and no default model. Specifically:

  • The poller and webhook intake leave matching issues untouched: no labels, no comments, no reactions. They record the skip once per issue (or rate-limited) in the logs and in the dashboard's attention area, e.g. "Skipped integry/x#12: no agent runtime is configured (Settings → Agents)".
  • The dashboard and propr doctor say plainly that labeled work is being ignored, and why.
  • Once a runtime and an agent are configured, issues that are still labeled are picked up on the next scan without being relabeled.
  • A runtime that becomes unusable mid-run (an expired token, say) still fails that run as today. This issue is about not starting work that can't run.

Acceptance

  • Unit and integration tests: with no runtime, a labeled issue gets no GitHub writes and one skip record. After a runtime and an agent are added, the same issue is processed.
  • Same for "runtime present, no agent credentials" and "no default model".
  • Docs: the Fly setup guide and the "Not yet" runtime choice in the setup wizard describe this behavior.

Activity

  1. propr-dev commented on Dec 1, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using codex agent with gpt-6.2-sol model.

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

    Processing Details:

    • Agent: codex
    • Model: gpt-6.2-sol
    • Branch: 3891/gpt-6.2-sol-don-t-claim-issues-or-wri-20261201-0859-s92
    • Base Branch: 3758-epic-runtime-abstraction-sc0
    • Worktree: issue-3891-20261201-0859-gpt-6.2-sol-s92

    🔍 Track Task Execution

  2. integry commented on Dec 1, 2026

    @integry
    OwnerAuthor

    Done in #3956, which merged into the runtime epic; the epic merged into main with #3774 and ships in 0.9.4.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions