nightshift/nightshift/stages.py
K. Hodges c1baf9b7d8 Implement NightShift MVP phases 1-6
Includes starter project generation, validation for configs/tasks/commands, artifact snapshot writing, structured stage results, command output capture, devlogs for phases 1-6, and unit coverage for the implemented MVP layers.
2026-05-17 00:17:13 -07:00

20 lines
402 B
Python

"""Shared stage result types."""
from __future__ import annotations
from dataclasses import dataclass
from typing import Literal
StageStatus = Literal["pass", "fail", "retry", "escalate"]
@dataclass(frozen=True)
class StageResult:
stage_id: str
status: StageStatus
reason: str
output_path: str | None = None
next_stage: str | None = None
context_update: str | None = None