config
config
¶
Configuration structure validation checks.
Validates configuration values like regex patterns, timeout ranges, validation rule completeness, and instrument name resolution.
Classes¶
RegexPatternCheck
¶
Check that regex patterns in validations compile (V007).
Invalid regex patterns will cause runtime errors during validation.
Functions¶
check
¶
Check regex patterns in validations and rate limit detection.
Source code in src/marianne/validation/checks/config.py
ValidationTypeCheck
¶
Check that validation rules have required fields (V008).
Ensures validations have the fields needed for their type.
Functions¶
check
¶
Check validation rules have required fields.
Source code in src/marianne/validation/checks/config.py
TimeoutRangeCheck
¶
Check timeout values are reasonable (V103/V104).
Warns about very short timeouts (may cause failures) or very long timeouts (may waste resources).
Functions¶
check
¶
Check timeout values.
Source code in src/marianne/validation/checks/config.py
VersionReferenceCheck
¶
Check that evolved scores don't reference previous version paths (V009).
When a score evolves (e.g., v20 → v21), the new score file should have all references updated to the new version. This catches cases where the name, workspace, or other paths still reference the old version.
Functions¶
check
¶
Check for stale version references in evolved scores.
Source code in src/marianne/validation/checks/config.py
296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 | |
EmptyPatternCheck
¶
Check for empty patterns in validations (V106).
Functions¶
check
¶
Check for empty patterns.
Source code in src/marianne/validation/checks/config.py
InstrumentNameCheck
¶
Check that instrument names resolve to known profiles (V210).
Warns when an instrument name doesn't match any loaded instrument profile. This catches typos (e.g., 'clause-code' instead of 'claude-code') at validation time rather than runtime.
Severity is WARNING (not ERROR) because the conductor may have instruments the validator doesn't know about — profiles loaded from other directories, dynamic instruments, etc. The warning is informational, not blocking.
Checks:
- Top-level instrument: field
- sheet.per_sheet_instruments per-sheet overrides
- sheet.instrument_map batch assignments
- movements.N.instrument per-movement overrides
Functions¶
check
¶
Check all instrument references against the loaded profile registry.
Source code in src/marianne/validation/checks/config.py
InstrumentFallbackCheck
¶
Check that instrument_fallbacks references resolve to known profiles (V211).
Warns when a fallback instrument name doesn't match any loaded instrument profile or score-level instrument alias. Same severity as V210 — the conductor may have instruments the validator doesn't know about.
Checks:
- Score-level instrument_fallbacks
- movements.N.instrument_fallbacks per-movement fallbacks
- sheet.per_sheet_fallbacks per-sheet fallback overrides
Functions¶
check
¶
Check all instrument fallback references against the loaded profile registry.