Skip to content

Add an overall design document for the operator audits - #4565

Open
evanchooly wants to merge 1 commit into
audits-discovery-issuesfrom
audits-design-doc
Open

evanchooly wants to merge 1 commit into
audits-discovery-issuesfrom
audits-design-doc

Conversation

@evanchooly

@evanchooly evanchooly commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Problem

The audits are described across many documents, but none of them explains how the whole system works now:

  • design/mongodb-operator-audits.md is the migration plan. It starts with an evaluation of the old audit and describes a target design.
  • design/operator-audits-reference.md gives each component's contract one by one, in the order the PRs added them.
  • design/operator-audits-progress.md is a log of what each PR delivered.

To learn, for example, how a page example becomes a running test, you have to piece it together from all three plus the README. The reference was also stale: its "Scheduled discovery" section still said the workflow files no issues, which #4564 changed.

Change

  • New design/operator-audits-design.md, a description of the system as built:
    • what the audits answer, and the rules every part follows;
    • the two halves (the audits module and core's operator tests) and the committed files that connect them;
    • the scenario format and the runner's three checks, with form rules and printed results;
    • the four kinds of case (generated, migrated, converted, legacy), the manifest and the binding checks;
    • the audits module's packages, marking which are in production use;
    • the example inventory, generation and its gaps, and candidate → integrate → promote;
    • legacy migration, weekly discovery and publishing;
    • the capability-coverage path, which is built but not yet in use;
    • how the audits are tested, and which parts are transitional.
  • Links: the README, reference, plan and progress file now point to it. The README calls it "the design", and the plan is named as the plan.
  • Reference fix: "Scheduled discovery" now describes the Publish job, and "Publishing findings" documents PublishMainKt discovery.
  • AGENTS.md: a new "Operator audits" section asks for the design doc to be updated in the same PR as any change to how the audits work.

Decisions for review

  • A separate file, not a rewrite of the plan. The plan stays the record of why and what's left. The design doc describes only what exists, so it doesn't need to change when the plan's remaining steps change.
  • No duplicated detail. Command syntax stays in the README and per-component limits stay in the reference; the design doc links to them.
  • The sync rule lives in AGENTS.md, so every agent working in the repo sees it. The design doc and the progress file's header state it too.

Docs only; no code or test changes.

Self-reviewed only: Codex, Copilot CLI and the Claude reviewer are all out of quota. Every claim in the design doc was checked against the code on this branch. An independent review will follow after 2026-11-26.

design/operator-audits-design.md describes how the built system works:
the two halves and the files that connect them, the scenario and runner,
the generated namespace and manifest, the audits module's packages and
which are in production use, generation, candidates, legacy migration,
weekly discovery, publishing and the capability-coverage path.

The README, reference, plan and progress file link to it, AGENTS.md asks
for it to be updated with any change to how the audits work, and the
reference's discovery section no longer says the workflow files no issues.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant