cernlydocs

The map and rules

TL;DR Facts are observations; the map is their interpretation. Rules are pure functions: facts and settings in, map out. Every map item names the facts it comes from.

Why a separate file

The map header records the facts file's hash, the rules version, the catalogue version and the settings. Same facts, rules, catalogue and settings: the same map.

The rules

Metrics

metrics counts the surface: outside parties, data stores, columns to check, unpinned images, production stacks and routes. In total, in production and per service. Each count lists its items, so a number is never without its proof. Size (files, lines, test lines) and coupling are context, not scores.

Module graph

From import facts between the repo's own packages: per package its fan-in and fan-out, and the highest of each. It shows where code is coupled, not whether that is bad.

In the code

rules (one file per rule), schema/map.v1.schema.json (the format). Command: cernly map.