Skip to content

fix(roadmap): a Job pod and a local run log the job result line #5169

Closed

Description

@dan-petty

Part of #5164 (child 4).

Problem or Motivation

On 2026-11-12, the fix-plan Job on pull request #4980 (pod fix-plan-validate-4980-*, 0.119.0) printed "The attempt made plan_calls 6, gate_returns 3, verify_rounds 3, tokens 15933306, seconds 3272" and "ended unchanged: 1 open finding(s) before the repair, 2 after it". Loki has no roadmap job result: job=fix_plan line in 7 days.

  • log_job_result writes the line with logger.info. The Service log holds INFO lines. The Job log holds no result line.
  • OTelLoggingHandler (telemetry/logging_bridge.py) sends only WARNING and above to the collector. A local run (an agent that runs devops roadmap step fix-plan) does not send the line either.
  • The query of docs/roadmap/job-success.md selects only app_kubernetes_io_name="roadmap-service".

So the most expensive attempts of the day are not in any ratio.

Proposed Solution & Architectural Design

  • Confirm the log level of a Job pod in the Feasibility section.
  • The result line logger (devops_cli.roadmap.job_result) writes at any configured level: a logger level of INFO and a handler on it that the root level does not filter.
  • OTelLoggingHandler sends records of that logger at INFO. Other loggers keep WARNING.
  • The base query of job-success.md, the dashboard row and devops roadmap eval grades select the line text in the Service stream, the Job streams and the CLI stream (service_name from the OTLP resource), not one app label.

Target Subsystem

SDLC, Git & PR Governance (src/devops_cli/roadmap/job_result.py, src/devops_cli/telemetry/logging_bridge.py).

Existing Tool Considered

The OpenTelemetry collector already has a logs pipeline to Loki (k8s/otel/values.yaml, otlp_http/loki), and Alloy reads the pod logs. No new tool. Cost: about 150,000 tokens, 4 hours elapsed.

Acceptance Criteria

  • A test with the root logger at WARNING finds the result line on the handler and in the OTLP export, and fails on main (devops ci fail-to-pass).
  • A test finds that another INFO record does not go to the OTLP export.
  • After the deploy, one fix-plan Job writes one line that Loki returns with the new base query.

Dependencies

None.

Owner decision 2026-11-13

The approved pipeline split (tracker #5482, Phase 0) uses this item for the funnel (#5494). Its scope does not change.

  • Live proof: after the merge and the release, a runner Job pod of the implement job writes its result line as the App. A comment gives the Loki query and the line.

Activity

  1. added
    type/bug
    source/agent
    scope/roadmap
    status/new
    value/medium
    effort/medium
    on Nov 12, 2026
  2. dan-petty commented on Nov 12, 2026

    @dan-petty
    OwnerAuthor
  3. added
    priority/p2-medium
    on Nov 12, 2026
  4. added
    owner/agent
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 15, 2026
  5. removed
    status/in-review
    owner/agent
    on Nov 15, 2026
  6. devops-cli-service commented on Nov 15, 2026

    @devops-cli-service
    Contributor
  7. devops-cli-service commented on Nov 15, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-15 02:03 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/bugvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions