Skip to content

A performance claim carries its measurement

A performance claim carries its measurement

majordomus://rule/project.performance-evidence@1active performanceevidence

it references

referenced by

Nothing in the layer names it. Backlinks are derived, so an empty list is an answer rather than an omission.

Rationale

A speed-up without a measurement is a claim, and a claim about performance decays faster than most: the next change silently takes it back. The tool has the instruments to make every such claim checkable: MJ_TIMING=1 ranks the phases of one run, majordomus bench records distributions, --write-baseline accepts a state and --check holds the next run to it. A number written into a document is the one place none of those instruments reach, which is why observed values do not live there.

Required behaviour

A commit that changes performance states the phase or counter, the value before and the value after, as measured with MJ_TIMING=1 or majordomus bench on this repository. A budget in the policy (benchmark.budget.*) and a threshold (benchmark.regression.*) is set after a run and named with the run that justified it. The baseline changes only through majordomus bench --write-baseline, in its own commit with the reason (perf(baseline): ...). Documents explain the mechanism and point at the baseline file, the benchmark history and the timing switch for the numbers.

Failure behaviour

No command decides this rule; a reviewer does, and a performance change without its measurement, or a baseline edit by hand, is not merged. project.no-counts-in-prose is the rule that keeps the numbers out of the documents.

Verification

Review of the commit message against MJ_TIMING=1 bin/majordomus <command> and of the baseline diff against majordomus bench --check.

Where this comes from

canonical file
.ai/repo/rules/project/performance-evidence.v1.md
identity
project.performance-evidence@1
also served as
MCP resource majordomus://rule/project.performance-evidence@1 · majordomus entity show rule/project-performance-evidence-1 · GET /api/v1/entity?uri=majordomus://rule/project.performance-evidence@1
in the Cockpit
/cockpit/objects/rule/project-performance-evidence-1

This page is generated from the file above by scripts/generate-site-data; editing the page changes nothing, editing the file changes every surface. The relations above are edges of docs/generated/graph.json, which the executable writes from the same index.

Searches the titles and descriptions of every page this site publishes.