Skip to content

A request never rebuilds canonical state, and a cache is never trusted without an equivalence test

A request never rebuilds canonical state, and a cache is never trusted without an equivalence test

majordomus://rule/project.rust-hot-path@1active rustperformance

it references

Nothing. This object declares no reference.

Rationale

The slow path the mission started from was not a slow algorithm but work done per request that belonged at startup. Counters make that class of regression a failing test rather than a feeling; one executor makes instrumentation and caching apply to every transport at once; and a cache that is not proved equivalent is a lie waiting for an input.

Required behaviour

apps/majordomus-cli/tests/hot_path.rs sends hundreds of requests through the real stdio and HTTP transports and requires the startup counters unchanged; every new transport or route dispatches through Context::execute; a new CachePolicy::Process is added to the descriptor and nothing else, and tests/executor.rs and tests/properties.rs, which iterate every cached capability of the registry, pass.

Failure behaviour

tests/hot_path.rs fails naming the counter that moved; the registry refuses a cached command or a policy that keeps nothing; the equivalence tests fail naming the capability and the case.

Verification

scripts/rust-check; apps/majordomus-cli/tests/{hot_path,executor,properties}.rs; test/cases/91_canonical_architecture.sh.

Where this comes from

canonical file
.ai/repo/rules/project/rust-hot-path.v1.md
identity
project.rust-hot-path@1
also served as
MCP resource majordomus://rule/project.rust-hot-path@1 · majordomus entity show rule/project-rust-hot-path-1 · GET /api/v1/entity?uri=majordomus://rule/project.rust-hot-path@1
in the Cockpit
/cockpit/objects/rule/project-rust-hot-path-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.