Skip to content

feat(monitoring): link Service jobs to run history #7272

Backlog

Description

@devops-cli-service

Split from #4621.

Problem: The Service jobs table cannot link a Job to its run record. The repository has no run record of #4589 and no read-only /runs/{run_id} route of #4586. The FastAPI app mounts only health, status, workspace, telemetry and webhook routes. Why deferred: The route and the run record do not exist. A link would be dead. The rest of the Job view does not need the link. Acceptance criteria: The table SHALL link each Job to /runs/{run_id} when the run record exists. The /runs/{run_id} route SHALL return the run record with its Loki and Tempo links. A test SHALL check that the table link uses the run id of the Job.

Proposed design

Problem statement

The Service jobs table shows each Job but cannot take an operator to the run record of that Job. The repository has no run record from #4589 and no read-only /runs/{run_id} route from #4586, so a link would be dead. This change adds the table link and its test after those dependencies deliver the record and the route.

Acceptance criteria

Requirement: Job row links to an existing run record

The Service jobs table SHALL link each Job to /runs/{run_id} when a run record exists for that Job.

Scenario: Job with an existing run record

  • WHEN A test renders the Service jobs table with a Job whose run_id is run-123 and whose run record exists.
  • THEN The rendered row contains an anchor with href="/runs/run-123" and text that names the run.

Requirement: Job row omits a dead run link

The Service jobs table SHALL NOT render a run link for a Job whose run record does not exist.

Scenario: Job with no run record

  • WHEN A test renders the Service jobs table with a Job whose run_id is run-404 and whose run record does not exist.
  • THEN The rendered row contains no anchor to /runs/run-404 and shows the Job without a run link.

Requirement: Run route returns the run record and its telemetry links

The read-only /runs/{run_id} route SHALL return the run record with its Loki and Tempo links.

Scenario: Existing run record

  • WHEN A test sends GET /runs/run-123 for a run record that has a Loki link and a Tempo link.
  • THEN The response status is 200 and the body contains the run id, the Loki link and the Tempo link of that run record.

Requirement: Link uses the Job run id

The table link SHALL use the run_id of the Job and MUST NOT use the Job id.

Scenario: Job id differs from run id

  • WHEN A test renders a Job with Job id job-1 and run id run-2.
  • THEN The anchor points to /runs/run-2 and not to /runs/job-1.

Existing Tool Considered

No alternatives check has run. No open, maintained tool or library covers the project-specific link from a Service Job to its run record. FastAPI, already in use, covers the HTTP route, and the existing table template covers rendering. The written cost is about 3,000 tokens to build, 1,000 tokens to keep and fix, and 2 hours elapsed.

Key questions

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

#4586, #4589

Activity

  1. added
    type/feature
    source/agent
    status/new
    value/medium
    effort/medium
    scope/monitoring
    priority/p2-medium
    on Nov 26, 2026
  2. devops-cli-service commented on Nov 28, 2026

    @devops-cli-service
    ContributorAuthor

    Next step: the open items close, or a person replies in a comment or edits the body. See Dependencies in the section Proposed design of the body.

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/monitoringsource/agentstatus/newtype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions