Skip to content

feat(telemetry): the roadmap Service counts its GitHub writes, budget holds, Firecrawl searches and self-filtered webhooks, and caps its comments on one issue #2475

Description

@dan-petty

Problem or Motivation

A go-live review of the roadmap Service (origin/main 960e357, 2026-10-28) found that its riskiest behavior has no metric and no cap:

  • GitHub writes have no count by method and repository: devops_cli_github_requests_total carries only resource (src/devops_cli/github/rate_limiter.py:1059; session_transport.py:154-176). A burst of comments or label writes, or a refine comment loop, shows only on GitHub.
  • No cap limits the bot's comments on one issue in a day (src/devops_cli/roadmap/refine.py:1499-1550).
  • The budget holds and job suspensions show only in logs (service.py:107-181; run.py:646-651), and Loki has no ruler (k8s/logging/loki-values.yaml:104-107).
  • The webhook self-filter shares the ignored outcome with other ignored deliveries (src/devops_cli/server/routes/webhooks.py:146-149, :209-227), so an echo loop with another bot is not visible.
  • Firecrawl searches have no metric, and a failed search (401, 402, 429) logs nothing (src/devops_cli/ai/common_tools.py:16-41; src/devops_cli/roadmap/refine_investigation.py:187-188).

Proposed Solution & Architectural Design

  • devops_cli_github_requests_total gets method, repo and row labels (bounded: the managed repositories, and the job rows metrics, intake and refine). row is not named job, which is the scrape label of Prometheus. The alert RoadmapServiceGitHubRequestsHigh tells the operator to find the repository that spent the budget, and these labels are how they find it (go-live comment of 2026-10-28).
  • Gauges or counters for the budget spent and its limit, holds, suspended jobs, Firecrawl searches by result, and a self outcome for the webhook self-filter.
  • A cap on the bot's comments on one issue in 24 hours, from a constant; a write the cap stops is logged and counted.
  • Alert rules beside feat(monitoring): the roadmap Service's identity refusals, failing and stalled jobs, restarts, and GitHub and model request volume raise alerts #2472's group: more than 300 GitHub writes in 1 hour, more than 150 self-filtered deliveries in 1 hour, any Firecrawl 402 or 429.

Target Subsystem

Telemetry, the GitHub session, refine, the webhook route, monitoring rules.

Existing Tool Considered

The project's declared instruments (src/devops_cli/telemetry/instruments.py) and kube-prometheus-stack rules. Nothing new is built.

Acceptance criteria

  • Tests show each new series with its labels after a faked write, search, hold and self-filtered delivery.
  • A test shows the comment cap stops the next comment and counts it.

Activity

  1. added
    source/agent
    type/feature
    status/new
    value/medium
    effort/medium
    on Oct 28, 2026
  2. dan-petty commented on Oct 28, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/feature. The candidate adds new metrics, a comment cap, and alert rules to the roadmap Service.
    • Priority: P2-Medium. A go-live review found missing safety and visibility, but no active failure is reported.
    • Value: Medium. The cap prevents unbounded bot comments and the new metrics make failures visible to operators.
    • Effort: Medium. It touches the rate limiter, refine, webhook route, Firecrawl tool, instruments, and alert rules, but each change is small.
    • Related: feat(monitoring): the roadmap Service's identity refusals, failing and stalled jobs, restarts, and GitHub and model request volume raise alerts #2472, which asks for a different change. Both add monitoring for the roadmap Service, but #2472 alerts on existing series while the candidate adds new metrics, a comment cap, and alerts for those new series.
  3. added
    priority/p2-medium
    on Oct 28, 2026
  4. dan-petty commented on Oct 28, 2026

    @dan-petty
    OwnerAuthor

    Go-live evidence, 2026-10-28, 19:45 to 20:45 UTC (first hour of roadmap-service at one replica):

  5. removed
    status/new
    on Oct 30, 2026
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

    effort/mediumpriority/p2-mediumsource/agenttype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions