← Files NGS Analysis WorkbenchARCHIVED FILE

mcp/ngs_workbench_execution_monitoring/base.py

493 Bytes · Sep 30, 2026 · 23:20 UTC

↓ Download file

"""Protocol implemented by replaceable execution evidence adapters."""

from __future__ import annotations

from pathlib import Path
from typing import Protocol

from .models import ExecutionObservation


class ExecutionObserver(Protocol):
    """Read engine evidence without mutating the run or its registry record."""

    binding: str

    def observe(self, run_dir: Path, workflow_status: str) -> ExecutionObservation:
        """Return one engine-neutral snapshot for a run directory."""

SHA-256: f8adeea1ccf37669cce3ac1f38b64c5ae22128e07e8cad24c791c4dec7adc623