Skip to content

feat(project-review): add the toil facts to the catalog #7351

Backlog

Description

@devops-cli-service

Split from #4714.

Problem or Motivation. The review shows toil as docs/DESIGN.md C12 (e) defines: stacked columns of hours each week from zero, 3 categories plus Other, with labeled totals (#4714). The SRE guideline names the 3 counts: the items that wait for a person (devops roadmap inbox), the hand steps of the runbooks and the commands that a person runs again after a job (docs/guidelines/sre.md:186).

Why this part is deferred. The waiting items have a source, but the runbook hand steps and the repeated commands have no source in the repository or in the telemetry: the catalog has no fact that counts them, and a person must supply the counts. The issue names no source for them, so the source is an open question. The part also adds to a task group that the stage job found over its 64000-token budget.

Acceptance Criteria.

  • The toil fact holds the 3 counts of one week and the hours of that week, and it names the source of each count.
  • data.json holds the toil hours of each week as stacked columns from zero, with 3 categories plus Other and labeled totals, as C12 (e) says.
  • A week with no count gives a fact with the reason of the missing value, never the value 0.
  • uv run pytest tests/roadmap/project_review passes.

Proposed design

Problem statement

The project review catalog has no toil fact. It cannot show the weekly toil that docs/DESIGN.md C12(e) requires. The SRE guideline names three counts. Only the waiting-items count has a source. This proposal adds that count and the missing-value reason. It defers the other two counts and the chart.

Acceptance criteria

Requirement: Toil fact for the waiting-items count

The catalog SHALL add a toil fact for one week with the waiting-items count, the hours and the source of the count.

Scenario: The waiting-items count has a source

  • WHEN the catalog builds the toil fact for a week and devops roadmap inbox gives the count
  • THEN the fact holds the count, the hours and the source, and uv run pytest tests/roadmap/project_review passes

Requirement: Missing counts give a reason

The toil fact SHALL record the runbook hand-step count and the repeated-command count as missing with a reason, and it SHALL never write 0.

Scenario: The two counts have no source

  • WHEN the catalog builds the toil fact for a week and no source gives the runbook hand-step count or the repeated-command count
  • THEN the fact holds a missing value with a reason for each count, and the test asserts that neither value is 0

Requirement: The project review tests pass

The change SHALL pass the project review test suite.

Scenario: Run the project review tests

  • WHEN a developer runs uv run pytest tests/roadmap/project_review
  • THEN the command exits 0 and reports no failures

Existing Tool Considered

No alternatives check has run. docs/guidelines/sre.md:186 names devops roadmap inbox as the source of the waiting-items count. That command covers only that count. No open tool covers the runbook hand steps or the repeated commands. A person must supply those counts, so this proposal defers them and builds no counter. The remaining catalog fact is a small change to existing code, about 2,000 tokens and 1 hour.

Key questions

None.

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

None.

Activity

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

    @devops-cli-service
    ContributorAuthor
    • Scope: none. The title has the scope 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.
    • Related: feat(roadmap): read project review facts through a catalog #4692, which asks for a different change. Both work on the project review fact catalog; #4692 created the catalog infrastructure, while this candidate adds one specific toil fact to it.
  3. devops-cli-service commented on Nov 28, 2026

    @devops-cli-service
    ContributorAuthor

    Next step: the alternatives check records a verdict. See 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-mediumsource/agentstatus/newtype/featurevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions