orchestrata_ultimate.verification.config.verification_config

Reference › orchestrata_ultimate › verification › config › verification_config

Configuration dataclasses for the Verification Agent (Spec 035 US-001). ModelConfig describes one LLM endpoint: name, base URL, timeout (30 seconds) and retry count (3). VerificationConfig is the top-level settings object: max_attempts (3), checkpoint_timeout (60 seconds), concurrent_evaluations (5), the Redis host, port, database (15) and key prefix orchestrata_ultimate:verification, a list of ModelConfig, proof_confidence_threshold (0.8), and the switches escalation_enabled and edge_case_detection. VerificationConfig.default() returns a default instance.

The Redis host and port have no literal defaults: they come from the resolvers in redis_factory, and resolve_redis_port raises naming the missing key, so an unset port fails at construction rather than aiming at a port nothing named.

At a glance

Source src/orchestrata_ultimate/verification/config/verification_config.py
Lines of code 51
Classes 2
Functions 0
Imports (internal) orchestrata_ultimate.core.base.traces, orchestrata_ultimate.core.redis_factory
Imported by none
Tests that import it tests/verification/config/test_verification_config.py, tests/verification/test_config.py, tests/verification/test_integrations_session_config.py, tests/verification/test_small_modules.py, tests/verification/test_verification_config.py

Class diagram

Class diagram orchestrata_ultimate.verification.config.verification_config

Dependency diagram

Dependency diagram orchestrata_ultimate.verification.config.verification_config

API

Classes

ModelConfig (dataclass)

Decorators: dataclass, traces(spec='035', story='US-001', reqs=['REQ-035-US-001-001']) · Line 16

LLM model configuration.

Attribute Type Default
name str ''
api_key str ''
base_url str ''
timeout float 30.0
max_retries int 3

VerificationConfig (dataclass)

Decorators: dataclass, traces(spec='035', story='US-001', reqs=['REQ-035-US-001-001']) · Line 28

Top-level verification configuration.

Attribute Type Default
max_attempts int 3
checkpoint_timeout float 60.0
concurrent_evaluations int 5
redis_host str field(default_factory=resolve_redis_host)
redis_port int field(default_factory=resolve_redis_port)
redis_db int 15
redis_prefix str 'orchestrata_ultimate:verification'
models list[ModelConfig] field(default_factory=list)
proof_confidence_threshold float 0.8
escalation_enabled bool True
edge_case_detection bool True
Method Signature Summary
default classmethod default() -> VerificationConfig

Source

Permalink: https://gitlab.com/MSamy/orchestrata-ultimate-architecture/-/blob/a4cbc2bdf/src/orchestrata_ultimate/verification/config/verification_config.py

"""Verification configuration settings."""

# Spec: 035 - Verification Agent

from dataclasses import dataclass, field

from orchestrata_ultimate.core.base.traces import traces
from orchestrata_ultimate.core.redis_factory import (
    resolve_redis_host,
    resolve_redis_port,
)


@dataclass
@traces(spec="035", story="US-001", reqs=["REQ-035-US-001-001"])
class ModelConfig:
    """LLM model configuration."""

    name: str = ""
    api_key: str = ""
    base_url: str = ""
    timeout: float = 30.0
    max_retries: int = 3


@dataclass
@traces(spec="035", story="US-001", reqs=["REQ-035-US-001-001"])
class VerificationConfig:
    """Top-level verification configuration."""

    max_attempts: int = 3
    checkpoint_timeout: float = 60.0
    concurrent_evaluations: int = 5
    redis_host: str = field(default_factory=resolve_redis_host)
    # No literal port default (RUL-011/RUL-003). This was ``6379`` while
    # ``redis_host`` right above it already resolved through a raising factory
    # — so a run with REDIS_PORT unset but REDIS_HOST set built a config
    # aimed at the right host on a port nothing had named, and the resulting
    # connection refusal read as an outage rather than as the config gap it
    # was. ``resolve_redis_port`` raises naming the key instead.
    redis_port: int = field(default_factory=resolve_redis_port)
    redis_db: int = 15
    redis_prefix: str = "orchestrata_ultimate:verification"
    models: list[ModelConfig] = field(default_factory=list)
    proof_confidence_threshold: float = 0.8
    escalation_enabled: bool = True
    edge_case_detection: bool = True

    @classmethod
    def default(cls) -> VerificationConfig:
        return cls()