Clarify operator command help and preflight migration

This commit is contained in:
2026-11-30 17:21:07 +00:00
parent 8aa552070d
commit 723b788161
4 changed files with 23 additions and 4 deletions

View File

@@ -74,7 +74,14 @@ type sessionPublishedOutput struct {
}
func sessionStateCommand(name string, status bool, deps commandDependencies) commandkit.Command {
spec := sessionInspectionSpec(name, "Inspect session state without changing it.", !status)
summary := "Inspect session artifact definitions and availability."
description := "Reports definitions, dependencies, and local artifact evidence. Add --remote to inspect remote publication and locks. Does not read artifact payload bodies."
if status {
summary = "Inspect session progress and local and remote state."
description = "Reports manifest stages, artifacts, configuration provenance, and readiness. Includes remote current state when storage is configured; remote inspection failures can return a partial report with a failed outcome."
}
spec := sessionInspectionSpec(name, summary, !status)
spec.Description = description
spec.Run = func(invocation commandkit.Invocation, input *sessionInspectionInput) commandkit.Outcome {
report, err := inspectSelectedSessionState(invocation.Context, input, status, withCommandReporting(deps, invocation))
if report != nil {