Skip to content

chore(k8s): turn on the docs and Pages steps after two plan runs #5161

Open

Description

@dan-petty

Problem or Motivation

ADR 0021 rule 5 says each new job starts in mode plan. The docs audit and Pages health jobs file issues in 7 repositories. A false positive in mode on files noise in each of them. The jobs need a measured run before mode on.

Proposed Solution & Architectural Design

  • Run docs-audit and pages-health in mode plan for 2 scheduled runs on:
    • devops-cli (all check families, and the Pages site);
    • dreamscaper (public and small, docs/api.md names an API that the check reads against src/, no Pages site, so pages-health must give 0 groups there).
  • Post the would-be creates, edits and closes, with the counts for each check family, in one tracker comment.
  • Judge a sample of 20 findings for each check family as true or false.
  • Set mode on in the ConfigMap for each rule family at 90% precision or more. Keep the model family ("possible missing implementation") in plan until it shows 80% or more.
  • Then enable the other 5 Service repositories in mode plan for 1 run, check that the first run files 3 issues or fewer for each repository, then set them on.

Target Subsystem

Kubernetes manifests (k8s/devops/configmap.example.yaml and the live ConfigMap), SDLC, Git & PR Governance.

Existing Tool Considered

The plan mode of the steps (#5154, #5155, #5158) and the Loki log of each run give the evidence. No new tool and no new code. Cost (estimate): about 100,000 tokens, 0.5 day of work and 2 weekly runs elapsed.

Acceptance Criteria

  • A tracker comment holds the counts and the judged sample for each check family on both repositories.
  • The ConfigMap sets mode on only for the families that meet the precision target.
  • After 2 runs in mode on, each repository has 0 duplicate finding issues.

Dependencies

Source: #5151

Alternatives check of 2026-11-16: not-applicable.
Class: chore, no search.
Tool: none found.

Proposed design

Problem statement

The docs-audit and pages-health roadmap rows file issues in 7 repositories. A false positive in mode on files noise in every repository. This issue records the counts and a judged sample from two scheduled plan runs on devops-cli and dreamscaper. It then sets each row to on only for the families that meet their precision bar.

Acceptance criteria

Requirement: Docs-audit row mode

The example ConfigMap SHALL set roadmap.docs_audit.mode to on only when the tracker comment records 90% or more precision for each docs-audit rule family and 80% or more for the model family.

Scenario: The k8s check renders the docs-audit mode key

  • WHEN uv run devops ci --check --only k8s runs on the change that sets roadmap.docs_audit.mode
  • THEN the check exits 0 and reports no error for the key roadmap.docs_audit.mode

Requirement: Pages-health row mode

The example ConfigMap SHALL set roadmap.pages_health.mode to on only when the tracker comment records 90% or more precision for each pages-health family.

Scenario: The k8s check renders the pages-health mode key

  • WHEN uv run devops ci --check --only k8s runs on the change that sets roadmap.pages_health.mode
  • THEN the check exits 0 and reports no error for the key roadmap.pages_health.mode

Requirement: Tracker comment with counts and judged sample

The tracker comment on #5151 MUST hold the counts of the would-be creates, edits and closes for each check family on devops-cli and dreamscaper, and the judged result of 20 findings for each family.

Scenario: The tracker comment after the two plan runs

  • WHEN uv run devops gh issue view 5151 --comments runs after the second plan run
  • THEN the output shows the counts for each check family on both repositories, 0 pages-health groups on dreamscaper, and 20 judged findings for each family

Requirement: No duplicate finding issues

Each of devops-cli and dreamscaper MUST hold no two open finding issues with the same title after 2 scheduled runs in mode on.

Scenario: The open finding issues after two runs in mode on

  • WHEN uv run devops gh issue list --repo <owner/name> --state open --json number,title runs after the second run in mode on
  • THEN no two open finding issues carry the same title

Requirement: Pending a person after the merge

A person MUST set roadmap.docs_audit.mode and roadmap.pages_health.mode in the live ConfigMap devops-cli-config to the values that the tracker comment records.

Scenario: The live ConfigMap shows a row mode

  • WHEN uv run devops config get roadmap.docs_audit.mode runs in a pod of the Service after the merge
  • THEN the command shows the mode that the tracker comment records for the docs-audit row

Existing Tool Considered

The alternatives check in the issue body records not-applicable (class chore, no search) and names no tool. The change builds no code: it uses the plan mode of the docs-audit and pages-health rows and the Grafana Loki log of each run. Grafana Loki is open and maintained, and it lacks the precision judgment and the tracker comment, so the agent judges the 20-finding sample and posts one comment. Written cost: about 100,000 tokens, 0.5 day of work and 2 weekly runs elapsed.

Key questions

  • Where does the mode of a roadmap row live, and how does it reach the live ConfigMap?: The mode lives in the roadmap section of k8s/devops/configmap.example.yaml. A deploy renders this template and replaces only the service section, so a change to a roadmap key reaches the live ConfigMap only when a person sets it there. [sources: k8s/devops/configmap.example.yaml, docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md]
  • Do the docs-audit and pages-health rows and their mode keys exist in the example ConfigMap today?: No. The roadmap section holds a mode for fix_plan, open, fix_checks and review only. feat(roadmap): the docs audit finds documented features the code lacks #5158 and feat(k8s): schedule the docs and Pages steps for each Service repo #5159 add the two rows and their keys. The ConfigMap render refuses a key that no setting declares, so this change cannot add the keys first. [sources: k8s/devops/configmap.example.yaml, openspec/specs/roadmap-service-deployment/spec.md]
  • Which mode do the new rows start in?: plan. Each new row starts in plan, and a person sets on after the evidence that this issue records. [sources: k8s/devops/configmap.example.yaml, docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md]
  • Does one mode key apply to one repository or to every repository in service.repos?: Every repository. The example ConfigMap holds one roadmap section and one service.repos list, and each pod mounts this one ConfigMap. [sources: k8s/devops/configmap.example.yaml, docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md]
  • Which mode key shape does each row use, and how does the model family stay in plan while the rule families go on?: One mode key for each row: roadmap.docs_audit.mode and roadmap.pages_health.mode. The docs-audit row goes on only when every family passes, each rule family at 90% and the model family at 80%. The model family is the last gate. (best practice) [sources: k8s/devops/configmap.example.yaml]
    • Chosen: One mode key for each row, gated by the model family. Every existing row holds one mode key. The row flips in one step, and the model family is the last gate.
    • Rejected: One mode key for each family. It adds a setting and row code beyond a chore, and no issue asks for it.
    • Rejected: Turn the row on and keep the model family in plan. The row has no per-family switch. The model family cannot stay in plan while the row is on.
  • Which precision target applies to a rule family and to the model family, and how is the sample judged?: 90% or more for each rule family and 80% or more for the model family, from 20 judged findings: 18 of 20 and 16 of 20. The agent judges each finding true or false and posts the result in the tracker comment. (best practice) [sources: k8s/devops/configmap.example.yaml]
    • Chosen: 90% for a rule family and 80% for the model family. The issue sets both bars, and 80% matches the bar that the project applies to a job under 80%.
    • Rejected: 80% for every family. A false positive files an issue in each of 7 repositories, so a rule family needs the stricter bar.
    • Rejected: No precision gate. Two plan runs give no evidence of precision, and the issue requires 20 judged findings for each family.

Fit

Fits in one pull request.

Suspected block

Two scheduled plan runs of the docs-audit and pages-health rows on devops-cli and dreamscaper, about 2 weeks of elapsed time, and the judged sample of 20 findings for each check family.

Dependencies

#5158, #5159

Watched files

A commit on the default branch that changes one of these files starts the next refine round.

  • k8s/devops/configmap.example.yaml

Activity

  1. added
    source/agent
    on Nov 12, 2026
  2. added
    type/chore
    scope/k8s
    status/new
    value/medium
    effort/low
    on Nov 12, 2026
  3. dan-petty commented on Nov 12, 2026

    @dan-petty
    OwnerAuthor
  4. added
    priority/p2-medium
    on Nov 12, 2026
  5. dan-petty commented on Nov 15, 2026

    @dan-petty
    OwnerAuthor

    The item cannot be delivered by a code change. It is a live measurement over 2 weekly scheduled runs, a person's judgment of 20 findings per check family, and a change to the live ConfigMap in 7 repositories.

    • No branch, test or manifest changes this item. mode: on is a live ConfigMap edit after the evidence.
    • The verdict needs 2 scheduled runs of docs-audit and pages-health in mode plan on devops-cli and dreamscaper, one tracker comment with the counts, and a judged sample of 20 findings for each family.
    • The ConfigMap sets mode on only where the precision is 90% or more, and the model family needs 80%. That is a person's decision on data that does not exist in the repository.

    No artifact is written. A person runs the two rounds, records the counts and the judged sample in the tracker comment, and edits the live ConfigMap for the families that meet the target.

  6. devops-cli-service commented on Nov 16, 2026

    @devops-cli-service
    Contributor

    Alternatives check: not-applicable

    Class: chore. The check makes no search and no model call for an item of this class.

    Tool: none found

    Checked on 2026-11-16. A person decides what this means for the item. The check changes no label and closes no issue.

  7. devops-cli-service commented on Nov 17, 2026

    @devops-cli-service
    Contributor

    Owner question: Which rule families meet their precision target? (a person decides)

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

  8. devops-cli-service commented on Nov 21, 2026

    @devops-cli-service
    Contributor

    Owner question: See the first point of Open questions in the section Proposed design of the body.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

  9. devops-cli-service commented on Nov 21, 2026

    @devops-cli-service
    Contributor

    Owner question: See the first point of Open questions and Watched files in the section Proposed design of the body.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

  10. devops-cli-service commented on Nov 25, 2026

    @devops-cli-service
    Contributor

    Next step: the open items close, or a person replies in a comment or edits the body. See Dependencies and Watched files 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/lowpriority/p2-mediumscope/k8ssource/agentstatus/newtype/chorevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions