Skip to content

save-session.sh: the same absent-vs-unreadable collapse #619 fixed for NDC_GEN_FILE is still present at COOLDOWN_MARKER and NDC_MARKER #625

Closed

Description

@fdaviddpt

Filed from the #619 lane's self-review (both the Explore reviewer and oss:auditor independently raised this).

#619 fixed cat FILE 2>/dev/null || echo 0 collapsing "marker absent" and "marker exists but unreadable" into the same value at the NDC generation-marker read sites (save-session.sh:872,1038), which could silently disable the #614 commit guard. The identical pattern is still present, unfixed, at two other sites in the same file:

  • COOLDOWN_MARKER (scripts/save-session.sh:239)
  • NDC_MARKER (scripts/save-session.sh:851)

Out of #619's own scope (the fix there was targeted at the one guard whose silent failure mode is data loss). Lower stakes here -- both of these fail open to extra Haiku calls rather than to silent data loss -- but the same class of defect, and now that ndc_read_gen() exists as the fixed shape, it may be reusable or a template for these two sites.

Fix: apply the same absent-vs-unreadable distinction (see ndc_read_gen() in scripts/save-session.sh after #619 lands) at both COOLDOWN_MARKER and NDC_MARKER.

Row: fails-to-preserve (can ship behind a filed issue, not blocking) -- consistent with the parent finding's own classification, one severity notch down given the lower-stakes failure mode.

[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
  3. added a commit that references this issue on Oct 6, 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