Skip to content

summary

summary

Job execution summary and completion types.

Contains types used across CLI, daemon, and execution layers to represent job completion state. These types are the public contract between the execution engine (baton/runner) and the rest of the system.

Canonical definitions: - JobCompletionSummary: marianne.core.models - FatalError, RateLimitExhaustedError, GracefulShutdownError: marianne.core.errors.exceptions - GroundingDecisionContext, SheetExecutionMode: defined here

Classes

GroundingDecisionContext dataclass

GroundingDecisionContext(passed, message, confidence=1.0, should_escalate=False, recovery_guidance=None, hooks_executed=0)

Context from grounding hooks for completion mode decisions.

Encapsulates grounding results to inform decision-making about whether to retry, complete, or escalate.

Methods:
disabled classmethod
disabled()

Create context when grounding is disabled.

Source code in src/marianne/core/summary.py
@classmethod
def disabled(cls) -> GroundingDecisionContext:
    """Create context when grounding is disabled."""
    return cls(passed=True, message="Grounding not enabled", hooks_executed=0)

SheetExecutionMode

Bases: str, Enum

Mode of sheet execution.