Expand description
2026-09-29: A whole met circuit venn run over a repository reached through Repo:
resolve the target and compared instances, load their circuits, check the family manifest
against the kernel sources, build and render the report. The CLI supplies a file-system
Repo; the tests supply the same one over the checked-out tree, so both run this code.
Owner: metrale-circuit (venn). Invariants:
- Business logic only: every byte arrives through
Repo(SBIO), nothing touches the environment. - Manifest drift against the sources is an error before any report is built.
- A target named by a checkpoint directory is checked against that checkpoint’s own
config.json(layer kinds, declared precision of every bound module); a disagreement is an error, never a note.
Traits§
- Repo
- 2026-09-29: Read access to a repository, by repo-relative path.
Functions§
- checkpoint_
id_ of - 2026-09-29: The checkpoint id a directory holds, from its path: the Hugging Face cache
layout (
.../models--<org>--<name>/snapshots/<rev>) or, failing that, the last two path components (.../<org>/<name>). - config_
layer_ kinds - 2026-09-29: The layer kinds a
config.jsondeclares, fromlayers_block_type(mamba/moe/attention) orlayer_types(linear_attention/full_attention). - report_
text - 2026-09-29: Build and render the report
argsasks for.checkpoint, when the target was given as a checkpoint directory, is that directory’sconfig.jsontext and, if present, itshf_quant_config.jsontext. - resolve
- 2026-09-29: The instance
specnames: a recipe id, or an arch that exactly one instance serves, or a checkpoint id.