runview

package
v0.1.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2026 License: MIT Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package runview loads a run's persisted snapshot and resolves its displayed job statuses for read-side consumers such as the CLI and Web UI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientStatus

func ClientStatus(paths state.ProjectPaths, runID string) (model.RunClientStatus, error)

ClientStatus reads the initiating client's recorded state and rejects stale live-attachment claims unless a local supervisor is confirmed alive.

func ClientStatusIn

func ClientStatusIn(paths state.ProjectPaths, runID string, phase project.RunPhase) (model.RunClientStatus, error)

ClientStatusIn is ClientStatus for a run whose phase a caller already read (project.PhaseFrom).

func ClientStatusLabel

func ClientStatusLabel(status model.RunClientStatus) string

ClientStatusLabel formats client attachment independently from run lifecycle.

func FinalFailureGroups

func FinalFailureGroups(paths state.ProjectPaths, runID string, store state.Store) ([]runlineage.FailureGroup, error)

FinalFailureGroups groups the jobs of runID that have failed with no retry left, by cause. A failed attempt that an active run will retry does not count. `rotari wait --until-failure` and the MCP wait tool stop on it.

func LifecycleLabel

func LifecycleLabel(phase project.RunPhase, summary model.RunSummary) string

LifecycleLabel is RunLifecycleLabel from facts a caller already read: the run's phase and, for a finished run, its summary.

func LineageStatus

func LineageStatus(job jobstatus.Job) string

LineageStatus classifies a resolved job for run lineage summaries, which count cancellations as failures.

func LoadRun

func LoadRun(paths state.ProjectPaths, runID string, store state.Store) (runlineage.Run, error)

LoadRun loads a run's command snapshot and resolves every job through the shared jobstatus fallback chain. An active run without a snapshot, which only an earlier rotari could leave, has no jobs yet; for any other run a missing snapshot is an error.

func PreviousRun

func PreviousRun(paths state.ProjectPaths, runID string) (string, error)

PreviousRun returns the run of the project that started just before runID.

func RunLifecycleLabel

func RunLifecycleLabel(paths state.ProjectPaths, runID string) (string, error)

RunLifecycleLabel names a run's persisted lifecycle for status views.

func RunsByStart

func RunsByStart(paths state.ProjectPaths) ([]string, error)

RunsByStart lists a project's run IDs oldest first. Runs of one project never overlap, so start order is run order. Run IDs only have one-second resolution, so runs are ordered by their first load sample, which has nanoseconds, then by the summary's start time, then by run ID.

func Summary

func Summary(paths state.ProjectPaths, runID string, store state.Store) (runlineage.RunSummary, error)

Summary loads runID and describes it without comparing it to another run: counts, diagnosis counts, failure groups, and origins.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL