Skip to content

writ reconcile reads each entry against the ref that produced it: linked, copied, stale, absent, dangling, edited, changed, unpinned; 0 exactly when the system matches the record #972

Open

Description

@David-Noble-at-work

Kept snapshots

Reconcile reads each entry against the ref that produced it, not the working tree (ruled 2026-09-27, #847, plan). The words and the exit code, accepted 2026-09-28 as proposed; this revises the outcomes of #756 (lane 4) and #923 (lane 2).

Word Means, against the ref Exit
linked the link points into the recorded snapshot, and the file is as committed 0
copied the copy holds the recorded content 0
stale as recorded, but the layer's checkout has moved past the recorded commit and this file differs there; names writ upgrade 0
absent the target is missing 1
dangling the snapshot a link points into is gone 1
edited (new) the file behind a link differs from its commit, or an editor replaced the link with a real file holding the edit 1
changed something else holds the target: another link, or a copy whose content moved 1
unpinned (new) the pinned ref is gone and its commit unreachable; names writ deploy 1

The owner's rule: "when the system matches the record, we exit 0; otherwise we exit 1" -- under --dry-run too. 66 when never deployed. This lane is the report; lane 5 is what a plain run does about it.

Evidence of completion

  • each word above reported from a fixture that produces it, and only those words
  • the exit follows the rule in every case, --dry-run included
  • the words table in 5.1-reconciliation.md and the command's help say the above

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions