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.
Methods:¶
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.
Methods:¶
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).
Methods:¶
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.
Methods:¶
check
¶
Check for stale version references in evolved scores.
Source code in src/marianne/validation/checks/config.py
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 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 | |
EmptyPatternCheck
¶
Check content patterns that cannot match (V106).
An empty pattern matches anything. A content_contains pattern that
carries regex syntax ([Pp]remise, A\|B, foo|bar, \s)
is tested as a literal substring, so it matches nothing the prompt asked
for: 63 such rules across two research examples failed every honest
report (examples QA, 21 Oct, GH #480).
Methods:¶
check
¶
Check for empty patterns.
Source code in src/marianne/validation/checks/config.py
InteractiveSupportCheck
¶
Check that interactive-mode opt-ins are runnable (V211).
interactive: true in any instrument_config requires the resolved
instrument profile to carry a verified cli.interactive block —
interactive mode drives the real TUI through screen patterns, which
only exist for verified instruments. Without the block, dispatch
fails; this check surfaces the problem at validation time instead.
Also warns when tmux is not on PATH (the interactive transport).
Severity is ERROR for a known profile without interactive support (fail-fast — the sheet cannot run), and the check skips unknown instrument names entirely (V210's domain).
Methods:¶
check
¶
Validate every interactive: true opt-in against profile support.
Source code in src/marianne/validation/checks/config.py
560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 | |
InstrumentNameCheck
¶
Check that instrument names resolve (V210).
A name must be a loaded instrument profile, a score-level alias, or a capability class configured through the one class loader. Typos (e.g. 'clause-code' instead of 'claude-code') are caught at validation time; the suggestion searches profiles, aliases, classes, and the shipped class vocabulary (edit distance <= 2). Class-shaped names that resolve to nothing here (vocabulary-only, tombstoned) are V310's domain and are skipped here so one bad name is reported once.
Severity is ERROR (submit refusal for the same condition) since the S3 overhaul; the message names every namespace it searched.
Checks:
- Top-level instrument: field
- sheet.per_sheet_instruments per-sheet overrides
- sheet.instrument_map batch assignments
- movements.N.instrument per-movement overrides
Methods:¶
check
¶
Check all instrument references against the loaded profile registry.
Source code in src/marianne/validation/checks/config.py
695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 | |
InstrumentFallbackCheck
¶
Check that instrument_fallbacks references resolve (V211).
Same namespace as V210 — loaded profiles, score-level aliases, and capability classes through the one class loader. Class-shaped names that resolve to nothing here are V310's domain, skipped so one bad name is reported once. Severity ERROR, matching V210.
Checks:
- Score-level instrument_fallbacks
- movements.N.instrument_fallbacks per-movement fallbacks
- sheet.per_sheet_fallbacks per-sheet fallback overrides
Methods:¶
check
¶
Check all instrument fallback references against the loaded profile registry.
Source code in src/marianne/validation/checks/config.py
FoldedCommandScalarCheck
¶
Detect folded YAML block scalars on command fields (V303, #106).
A folded scalar (>, >-, >+) collapses newlines into spaces, so a
multi-line shell command — typically a python3 -c with several
statements in a command_succeeds validation — becomes one physical line
and fails with a SyntaxError at runtime. The validation can then never
pass regardless of content. The bug is invisible in the parsed config (the
newlines are already gone); only the raw YAML reveals the > scalar, so
this check scans raw_yaml and warns, recommending a literal block scalar
(|) which preserves newlines.
Methods:¶
check
¶
Scan the raw YAML for folded command scalars.
Source code in src/marianne/validation/checks/config.py
CodeExecutionSandboxCheck
¶
V304: warn (loudly) when code execution is enabled but bwrap is unavailable, so agent-generated code would run UNSANDBOXED (#209).
Composer decision (2026-06-12): activate code mode opt-in and warn
rather than require bwrap. If a score sets
code_execution.require_sandbox: true, a missing sandbox is an
ERROR instead (the score asked for isolation it cannot get).
NoUsableInstrumentCheck
¶
Warn when a score's whole instrument chain looks unrunnable here (V212).
Targets the unknown-system onboarding case: a fresh install has no AI CLI, so even a deep fallback chain can resolve to nothing the system can actually run. An unavailable instrument costs one dispatch attempt before advancing; a chain with zero installed CLI binaries would advance through HTTP fallbacks (which need a running local server or an API key) — or exhaust entirely.
This surfaces that BEFORE the run: it resolves the score-level instrument chain (primary + fallbacks, through score aliases) and, when no CLI binary in it is on PATH, emits an actionable warning pointing at the free paths. A local HTTP instrument whose server answers and serves the profile's model counts as usable; a remote or silent one is noted, not counted. WARNING only — a remote conductor may have more.
ServedContextCheck
¶
A local server's live context against the profile's declared one (V234).
The HTTP executor sizes max_tokens from the profile's context_window
for the bound model; a local server (PolyStrata, llama-server) refuses a
request above its real context with HTTP 400 before generating anything
(GH #494). Both servers report the loaded model's context as
default_generation_settings.n_ctx on GET /props, so the probe
reads it and this check warns when the profile overstates it. Only the
score's chain is probed, only loopback servers answer, and a server that
does not expose /props is silent here, not wrong.