Skip to content

feat(roadmap): log one result line for each roadmap job attempt #4845

Closed

Description

@dan-petty

Problem or Motivation

No job success ratio can be read today. increase(devops_cli_roadmap_stage_total{result="staged"}[7d]) is 0 against about 39 staged items, because a new series loses its first count (#4684). The implement counters disagree (#4703), and runner Job metrics do not reach Prometheus (#4684, #4697). The refine judge does not count approvals (31 refusals counted), and the alternatives check does not count refused replies. The owner rule asks for 80% success per job before caps are tuned, so the 80% check needs an exact count now.

Proposed Solution & Architectural Design

Each roadmap job writes one structured log line per attempt, 'roadmap job result:', with counts and fixed names only: stage (staged or failed, class, plan calls, gate returns, extensions, verify rounds, tokens, seconds); implement, one line per runner Job (ready or stopped, class, repair rounds, extensions, halt turns, tokens, seconds); refine (next step, result); refine judge (approved, repaired, refused); alternatives (verdict, refused or failed, searches, reason code); intake (placed, skipped, duplicate). Add the dashboard row 'Roadmap job success' with LogQL count_over_time panels: the 7-day ratio per job with a line at 0.80, the attempt count, and 'too few' under 30 attempts; infrastructure cuts (rollout, provider, budget) count as failures and show as their own share. State the 80% check and its LogQL in docs/roadmap. Prometheus recording rules follow when #4684 and #4703 are fixed.

Target Subsystem

SDLC, Git & PR Governance (all roadmap jobs), with the monitoring dashboard and docs/roadmap.

Existing Tool Considered

Loki LogQL count_over_time and Grafana panels on the existing log pipeline; no new store. Prometheus recording rules follow when #4684 and #4703 are fixed. Cost to build: about 1M tokens, 1 day.

Acceptance Criteria

  • A test per job: one attempt writes exactly one result line with every field.
  • A test: the line holds no issue text.
  • A replay of one stage round with 3 items gives 3 lines.
  • The dashboard row shows the ratio and the attempts of stage, implement, refine, refine judge, alternatives and intake.
  • The docs state the 80% rule: ratio >= 0.80 with >= 30 attempts at 3 daily checks in a row; after a hold, a Wilson upper bound under 0.80 ends the hold.

Dependencies

None.

Source: #4843

Activity

  1. added
    source/agent
    on Nov 11, 2026
  2. added
    type/feature
    scope/roadmap
    status/new
    value/medium
    effort/medium
    on Nov 11, 2026
  3. dan-petty commented on Nov 11, 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 feat prefix of the title gives the type.
    • Scope: scope/roadmap. The (roadmap) scope of the title gives the scope.
    • Priority: P2-Medium. The 80% success check needs exact counts, but the pipeline still runs without this logging change.
    • Value: Medium. It enables the owner 80% rule and gives operators a per-job success ratio, but it is an observability improvement, not a functional fix.
    • Effort: Medium. The body estimates about 1M tokens and 1 day across six job log lines, one dashboard row, and docs.
    • Related: feat(roadmap): a dashboard and alerts for the pipeline #3655, which asks for a different change. Both add a dashboard showing roadmap job outcomes, but #3655 reads Prometheus metrics while this candidate reads Loki log lines via LogQL count_over_time.
  4. added
    priority/p2-medium
    owner/agent
    status/in-progress
    and removed
    status/new
    on Nov 11, 2026
  5. added
    status/in-review
    and removed
    status/in-progress
    on Nov 12, 2026
  6. removed
    status/in-review
    owner/agent
    on Nov 12, 2026
  7. devops-cli-service commented on Nov 12, 2026

    @devops-cli-service
    Contributor
  8. devops-cli-service commented on Nov 12, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-12 12:40 UTC

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-mediumscope/roadmapsource/agenttype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions