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 rows file finding issues in seven repositories. A false positive in mode on puts noise in each repository. ADR 0021 section 8 rule 5 starts a new row in mode plan. This change sets both rows to mode plan in the example ConfigMap. A person sets the same value in the live ConfigMap. This change defers the measured trial and the flip to mode on.

Acceptance criteria

Requirement: The two rows start in mode plan

The example ConfigMap k8s/devops/configmap.example.yaml SHALL set the settings roadmap.docs_audit.mode and roadmap.pages_health.mode to plan.

Scenario: The k8s check accepts the two rows

  • WHEN uv run devops ci --check --only k8s runs on the change
  • THEN The command exits 0 and reports no finding on k8s/devops/configmap.example.yaml.

Requirement: Pending a person after the merge

A person MUST set the settings roadmap.docs_audit.mode and roadmap.pages_health.mode to plan in the live ConfigMap of the Service after the merge.

Scenario: The live ConfigMap holds both rows in mode plan

  • WHEN A person applies the live ConfigMap change after the merge
  • THEN The command kubectl -n devops get configmap -o yaml shows both settings with the value plan.

Existing Tool Considered

The alternatives check of 2026-11-16 in the issue body gives the verdict not-applicable, the class chore and the tool line Tool: none found. The issue body holds that check, so this proposal does not restate it. No open, maintained tool or library covers an edit of two row modes in a ConfigMap. This change builds no product code, so it has no build cost. The deferred trial costs about 100,000 tokens, 0.5 day of work and 2 weekly runs, as the issue body records.

Key questions

  • Which mode do the docs-audit and pages-health rows take in this change?: Mode plan. (best practice) [sources: docs/adr/0021-the-roadmap-service-is-a-webhook-router-cluster-pods-run-the-roadmap-jobs-and-valkey-holds-their-shared-state.md, src/devops_cli/roadmap/steps/pages_health.py]
    • Chosen: Mode plan. Mode plan writes the plan to the log and no issue to GitHub, so a false positive files no noise.
    • Rejected: Mode on. A false positive files a finding issue in each of the seven repositories before the trial runs.
  • Do the settings of the two rows exist in the repository?: The setting pages_health is defined at src/devops_cli/config/settings.py:2507. The file src/devops_cli/roadmap/steps/pages_health.py serves it. The code map lists no docs_audit setting, so the docs-audit row comes with dependency feat(roadmap): the docs audit finds documented features the code lacks #5158. Both dependencies 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 must land before this change sets either row. [sources: src/devops_cli/config/settings.py:2507, src/devops_cli/roadmap/steps/pages_health.py]

Fit

Fits in one pull request.

Suspected block

None.

Dependencies

#5158, #5159

Watched files

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

  • src/devops_cli/config/settings.py

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