Repository navigation
Description
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_resultwrites the line withlogger.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 runsdevops roadmap step fix-plan) does not send the line either.- The query of
docs/roadmap/job-success.mdselects onlyapp_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. OTelLoggingHandlersends records of that logger at INFO. Other loggers keep WARNING.- The base query of
job-success.md, the dashboard row anddevops roadmap eval gradesselect the line text in the Service stream, the Job streams and the CLI stream (service_namefrom 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
dan-petty commentedon Nov 12, 2026
Both concern the job result line, but #4845 created the line and the candidate fixes its delivery to Loki.devops-cli-service commentedon Nov 15, 2026
Released in v0.147.2: https://github.com/dan-petty/devops-cli/releases/tag/v0.147.2
devops-cli-service commentedon Nov 15, 2026
Live since 2026-11-15 02:03 UTC