Repository navigation
Description
Split from #4714.
Problem or Motivation. The review shows the four golden signals of the Service (latency, traffic, errors, saturation) and the capacity facts (use, request, limit, headroom), in the order and units of docs/DESIGN.md C12 (d) and (f) (#4714). The service section of the catalog holds SLO ratios and stage facts, and no golden-signal fact of the Service and no capacity fact with use, request, limit and headroom.
Why this part is deferred. The stage job stopped #4714: one task group held 67339 tokens, over the 64000-token budget of a step. This part adds a set of catalog facts with their PromQL queries. It is independent of the SLO math and the incident triggers of #4714, so it moves to its own issue.
Acceptance Criteria.
- Each golden-signal fact is a catalog entry with a PromQL query that names
{repo}and the review window. data.jsonholds the latency, traffic, errors and saturation facts, in that order, with the units of C12 (d).data.jsonholds the capacity facts with the lines of use, request and limit and the headroom as text, as C12 (f) says.- The catalog passes its JSON Schema check, and
uv run pytest tests/roadmap/project_reviewpasses. - A query names no host name.
Proposed design
Problem statement
Add the four golden-signal facts and the capacity facts to the project-review catalog data.json. The catalog shows SLO ratios and stage facts, but it has no Service golden-signal fact and no capacity fact with use, request, limit and headroom. The change follows the order and units of DESIGN C12 (d) and (f) and writes no new code.
Acceptance criteria
Requirement: Golden-signal facts
The project-review catalog SHALL hold one golden-signal fact for each of latency, traffic, errors and saturation.
Scenario: The catalog has four golden-signal facts
- WHEN the golden-signal facts of the project-review catalog are read
- THEN the catalog has one fact for each of latency, traffic, errors and saturation
Requirement: Golden-signal PromQL queries
Each golden-signal fact SHALL have a PromQL query that names {repo} and the review window.
Scenario: Each golden-signal query names the repository and window
- WHEN the PromQL query of each golden-signal fact is read
- THEN each query contains
{repo}and the review window
Requirement: Golden-signal order and units
The golden-signal facts in data.json SHALL appear in the order latency, traffic, errors and saturation, with the units of DESIGN C12 (d).
Scenario: Golden signals follow DESIGN C12 (d)
- WHEN the golden-signal facts of
data.jsonare read in order - THEN the order is latency, traffic, errors and saturation and the units are seconds, requests per second, percentunit and percentunit
Requirement: Capacity facts
The project-review catalog SHALL hold capacity facts with the lines use, request and limit and with the headroom as text, as DESIGN C12 (f) says.
Scenario: Capacity facts show use, request, limit and headroom
- WHEN the capacity facts of
data.jsonare read - THEN the facts hold the lines use, request and limit and a headroom field whose value is text
Requirement: Catalog schema and tests
The project-review catalog MUST pass its JSON Schema check, and uv run pytest tests/roadmap/project_review MUST exit 0.
Scenario: Catalog validation and tests pass
- WHEN the catalog JSON Schema check runs and
uv run pytest tests/roadmap/project_reviewruns - THEN the schema check reports no error and the pytest command exits 0
Requirement: No host name in queries
Each PromQL query in the added facts MUST contain no host name.
Scenario: Added queries contain no host name
- WHEN the PromQL queries of the added facts are searched for a host name
- THEN no query contains a host name
Existing Tool Considered
No alternatives check has run. Prometheus, with its open and maintained PromQL query language, covers the query need. PromQL does not author the catalog entries; the existing project-review catalog data.json, its JSON Schema and uv run pytest tests/roadmap/project_review cover that. The change writes no new code, so it has no build cost.
Key questions
- Which order and units do the golden-signal facts use?: The order is latency, traffic, errors and saturation. The units are seconds for latency, requests per second for traffic, and percentunit for errors and saturation. [sources: docs/DESIGN.md]
- How do the capacity facts show headroom?: The capacity facts show the lines use, request and limit. The headroom is a text field. (best practice) [sources: docs/DESIGN.md]
- Chosen: Text headroom field. DESIGN C12 (f) says the headroom is text.
- Rejected: Numeric headroom field. DESIGN C12 (f) requires text, so a number does not match.
Fit
Fits in one pull request.
Suspected block
None.
Dependencies
None.
Activity
devops-cli-service commentedon Nov 26, 2026
project-review, and .github/labels.yml declares no scope/project-review label. Add the label to the file to give the scope to this item.Both work on the project review catalog, but #4692 created the catalog infrastructure while this candidate adds specific golden-signal and capacity fact entries to it.devops-cli-service commentedon Nov 28, 2026
Next step: the alternatives check records a verdict. See the section Proposed design of the body.