Skip to content

I1010 — The overview is what exists, counted rather than claimed

Generate the Cockpit overview and its summary numbers from the graph, showing a section only when the repository actually holds that kind of thing.

READY wave 3 · p1 · implementation profile · parallel safe

Part of capability-graph — One capability graph, two projections, and no second inventory of what this repository can do.

Ready. Every dependency is done, so majordomus plan start I1010 will be accepted.

Objective

Generate the Cockpit overview and its summary numbers from the graph, showing a section only when the repository actually holds that kind of thing.

Why

A dashboard with headings for things that do not exist teaches readers to distrust it, and hand-maintained counts are wrong within a week. Both problems disappear when the overview is a query.

Current state

The Cockpit renders pages derived from the registry and the index. Section presence and any counts are decided in code.

Desired state

Sections appear because their kind has members, counts are computed, and a new kind of thing appears without the overview being rewritten.

Scope

  • apps/majordomus-cli/src/cockpit/pages.rs

Out of scope

  • A number typed by a human anywhere in the interface
  • A heading rendered for a kind with no members

Dependencies

What waits on this

Acceptance criteria

  • Sections are present only when the corresponding kind has members
  • Every number shown is computed from the graph at build or request time
  • A kind added to the layer appears in the overview with no change to the overview's own code
  • The counts on the page match the artifact, proved by a test

Validation

  • cargo test --workspace --all-features
  • bash test/run.sh

Evidence required

  • sections_derived
  • counts_computed

Evidence

None recorded. Every token above needs a command or an artifact behind it before this issue can be completed; narrative is refused.

Risk

Counts on a page are the sort of thing the repository's own rule against numbers in prose exists for. They are computed and rendered, never written.

Timeline

started
verified
completed

Those three fields, the evidence above and the state of the dependencies are all the status is made of. There is no status field to disagree with them.

Canonical record: .ai/repo/project/issues/I1010.yaml. Read it back with majordomus plan show I1010.