Repository navigation
Description
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_idisrun-123and 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_idisrun-404and whose run record does not exist. - THEN The rendered row contains no anchor to
/runs/run-404and 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-123for 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-1and run idrun-2. - THEN The anchor points to
/runs/run-2and 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
- Which issues must be delivered before this link can work?: feat(roadmap): keep a record of each roadmap run #4589 delivers the run record and feat(service): serve a read-only roadmap API with OpenAPI #4586 delivers the read-only
/runs/{run_id}route. This issue depends on both and adds only the table link and its test. (best practice) [sources: CONTEXT.md, docs/ROADMAP_WORKFLOW.md, AGENTS.md]- Chosen: Wait for feat(service): serve a read-only roadmap API with OpenAPI #4586 and feat(roadmap): keep a record of each roadmap run #4589. The link would be dead without the route and the run record.
- Rejected: Build the route and the run record here. This duplicates feat(service): serve a read-only roadmap API with OpenAPI #4586 and feat(roadmap): keep a record of each roadmap run #4589 and breaks one issue, one pull request.
- Should the
/runs/{run_id}route be read-only?: Yes. The route serves GET only, per ADR 0029. (best practice) [sources: AGENTS.md]- Chosen: GET-only read route. ADR 0029 says the roadmap Service serves a read-only API.
- Rejected: Mutable route. It would break ADR 0029 and add no need.
- What test proves the link and the route?: An offline test uses the FastAPI test client. It renders the jobs table with a Job that has a run record, and it calls
GET /runs/{run_id}. The test asserts the anchor uses the run id and the response contains the Loki and Tempo links. (best practice) [sources: docs/TESTING.md, AGENTS.md]- Chosen: Offline FastAPI test. The route and template are deterministic and need no cluster.
- Rejected: Live cluster check. It is slower and not needed for a read-only link.
Fit
Fits in one pull request.
Suspected block
None.
Activity
devops-cli-service commentedon Nov 28, 2026
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.