Skip to content

capability_classes

capability_classes

Capability-class checks for the V-CLS frame (design §8).

Every check in this module reaches class state through the ONE loader (marianne.instruments.classes): layer resolution, the shipped vocabulary, and ClassesFile validation are never re-implemented here. A name that is not an alias, not a registered profile, and not class-shaped stays the existing V210/V211 typo domain (already class-aware through the same loader); V310 owns the class-shaped refusals, so one bad name is reported once, under the code that names the fix.

Classes

ClassNameResolutionCheck

V310 (ERROR): a class-shaped name that cannot resolve on this machine (V-CLS-02).

Vocabulary-only classes (shipped names never configured here), tombstoned classes, and configured classes whose every entry names a profile not registered here are submit refusals (§4.3); this reports them at validate time with the fix command. Entirely unknown names stay V210/V211 — the loader already folds configured classes into their valid set.

Profile/class-map loading exceptions log validation.profiles_unavailable_skip at WARNING and return no findings.

ClassChainAvailabilityCheck

V311 (WARNING): part of a used class's chain cannot run here (V-CLS-03, V-CLS-08).

Per used class: k of n entries unresolvable or unavailable (binary not on PATH, execution_status unsupported, or unable to enforce a sheet's response_format) — the job still starts at the first available entry. When no entry can run here the row stays a WARNING that says so: availability is a fact about the machine, the conductor still admits the score (A-C5), and V310 is reserved for a chain with no REGISTERED entry (V-CLS-02).

Also warns when a name the score uses resolves to a profile that shadows a packaged-default class of the same name (V-CLS-08 WARN arm): the profile wins (§3.1) and the class is unreachable.

Profile/class-map loading exceptions log validation.profiles_unavailable_skip at WARNING and return no findings. A response-format collection exception also warns, then the remaining availability checks continue without those requests.

ClassAliasProfileCheck

V321 (ERROR): an instrument alias names a class as its profile (V-CLS-04).

An alias must name a profile; a class there would nest a second chain inside one alias slot (§3.2). The conductor refuses the same condition at submit through resolve_job_classes.

Profile/class-map loading exceptions log validation.profiles_unavailable_skip at WARNING and return no findings.

AliasShadowsClassCheck

V322 (WARNING): an instruments key equals a capability-class name (V-CLS-05).

The alias wins under the §3.1 resolution order; the author should know their alias is masking the class of the same name.

Profile/class-map loading exceptions log validation.profiles_unavailable_skip at WARNING and return no findings.

AliasSelectCheck

V330 (WARNING): an alias select modifier that cannot act (#473).

cycle/spread rotate across an alias's entries; with one entry there is nothing to rotate. cheapest/widest order by the profile's model table; an entry whose profile has no row for its model keeps its authored place, so an alias where NO entry has a known metric is unordered. In both cases the score runs, on the authored order, and this says so.

SchemaSheetInteractiveCheck

V331 (WARNING): a schema sheet would run interactively (GH #478).

A sheet with instrument_config.response_format needs a headless backend (HTTP, or a CLI with json_schema_flag); the interactive tmux backend cannot enforce a schema and dispatch refuses it (adapter "cannot enforce instrument_config.response_format"). Score silence on interactive resolves to the profile's cli.interactive. enabled_by_default — true for claude-code and antigravity — so a schema sheet that does not say interactive: false passes V311 (the profile CAN enforce, headless) and fails at sheet 1. This names the sheet before the run.

CliSchemaShapeCheck

V332 (WARNING): a CLI schema sheet carries a shape the API refuses (GH #486).

V311 proves the profile CAN enforce a schema; V331 proves the sheet runs headless; this proves the schema's top level is one the CLI's tool input_schema accepts. All three must hold or the sheet fails at its first attempt with a 400 the job could not previously even quote.

ClassModelConfigCheck

V323 (ERROR): a model set in instrument_config against a class primary (V-CLS-06).

A model id cannot be honoured across heterogeneous profiles (§2.4); the conductor refuses the same condition at submit. Applies at score, movement and per-sheet scope, exactly as resolve_job_classes does.

Profile/class-map loading exceptions log validation.profiles_unavailable_skip at WARNING and return no findings. Class-snapshot exceptions likewise warn and skip this check.

ClassesFileValidCheck

V324 (ERROR): a classes layer file failed validation while the score uses a class (V-CLS-07).

Renders ClassMap.failures exactly as the one loader recorded them (pydantic message included) — the way A4 renders FlowConfigError, never re-validating the file. File-level, gated on class usage so a broken user file stays silent for scores that never name a class.

Profile/class-map loading exceptions log validation.profiles_unavailable_skip at WARNING and return no findings.

ClassChainSummaryCheck

V325 (INFO): what each used class resolved to and from which layer (V-CLS-11).

One row per used class; the --json summary block carries the per-sheet resolution and every layer path + sha256 the validator read (§2.1).

Profile/class-map loading exceptions log validation.profiles_unavailable_skip at WARNING and return no findings.

Functions: