Skip to content

save-session.sh: no operator-facing recovery hint when NDC_GEN_FILE is durably unreadable #626

Closed

Description

@fdaviddpt

Filed from the #619 lane's self-review.

#619 fixes the transient-race collapse between "marker absent" and "marker exists but unreadable" for NDC_GEN_FILE, and now skips the commit (loudly, via a SKIPPED-commit log line) rather than silently proceeding when either read fails. That is the right behaviour for the transient case #619 targets.

Open design question, out of #619's scope: if NDC_GEN_FILE becomes durably unreadable or corrupted for a reason outside that transient race -- left empty by a crash, replaced by a directory by external tooling, permissions changed and never fixed -- every future NDC round now skips forever, and the SKIPPED-commit log line gives no operator-facing hint that deleting the marker resets generation tracking to 0 and unblocks it.

Needs a maintainer decision rather than a one-line fix: whether to add an auto-recovery threshold (e.g. skip N times then fall back to the old size-check-only behaviour with a loud warning), or just richer log guidance naming the remedy ("delete $NDC_GEN_FILE to reset"), or leave it as manual-intervention-only with better docs.

Row: fails-to-preserve (can ship behind a filed issue, not blocking) -- this is a follow-on design question about #619's own fix, not a new defect in shipped code.

[AI-generated, filed by the maintainer loop from the #619 lane's own review]

[AI-generated]

Activity

  1. added
    priority:low
    filed-by-loop
    lane-consolidation
    on Sep 7, 2026
  2. self-assigned this
    on Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

filed-by-looplane-consolidationpriority:low

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions