Repository navigation
Description
The writ lifecycle surface
The ruling, 2026-09-23
Reconcile restores the system to the record (#913).
Its value is the answer to "what changed, and who moved it" -- the one thing deploy and upgrade cannot say,
because both push the checkout at the system and compare nothing. Repair is not a third mechanism: the record holds
digests, not bytes, so repairing is deploy's or upgrade's mechanism applied to exactly the entries the report
named, and nothing else.
Report and repair in one run; --dry-run for the report alone. No new flag: --dry-run is the global every
writ command already carries, and #762 rules that reconcile takes no command flags.
| Finding (#923) | What repair does |
|---|---|
absent |
re-deploys the entry: re-link or re-copy from the record's source |
changed |
re-renders the entry from its source (the source is unchanged, so the result matches the record) |
dangling |
reported, left, deploy named: the record itself is out of date, and only deploy makes a new one |
stale |
reported, left, upgrade named: re-rendering would produce new content and so update the record, which is upgrade by definition |
Reconcile never updates the record. No reverse sync into the source repositories: through a link a local edit is
already in the checkout and git is the undo; a rendered copy cannot give back its template, and an edited secret
would be re-encrypted from a plaintext someone changed by accident. writ adopt remains the one honest capture of
a file the checkout does not know.
Evidence of completion
-
writ reconcileon a drifted system restores everyabsentandchangedentry and reports what it touched;
a second run reports clean and exits 0 (writ status fails on a store that has never been written; a fresh install cannot run it #756) -
writ reconcile --dry-runreports the same findings and touches nothing -
danglingandstaleentries are reported withdeployandupgradenamed and are not touched; the record
is byte-identical before and after - the receipt of a repairing run stacks on the current lifetime (deploy replaces the record: readback.Fold is bounded to the current lifetime, one writ deploy invocation across scopes #922)
-
5.1-reconciliation.mdand thewrit reconcilereference say the above, and the "no--fix" note resolves to
"--dry-runselects the report" - both VMs: deploy; remove one target, edit one copy, edit one source;
reconcilerestores two, reports one
stale, exits 1;upgrade;reconcileexits 0
Plan and design documents
| Kind | Document |
|---|---|
| Plan | docs/plans/task/924-reconcile-repair.md |
| Design | docs/architecture/5.1-reconciliation.md |
| Design | 10-command-line-interface.md §3.1 |
Revised 2026-09-28: repair against the ref (#847)
Replanned under the kept-snapshots design: reconcile repairs against the ref that produced each entry. A plain run restores absent and dangling from the ref; retains every edited entry on retain/<host>/<date>, a branch cut from the pinned commit in the layer's clone; archives a changed occupant to the recovery site; and restores those two only by a command flag (the no-command-flags ruling broken for this, knowingly). The narration carries the choice: retain, toss, and optionally a pull request to the branch of origin or elsewhere. The maintainer owns every merge: writ never pushes. The words and exit code are #972's (lane 18), which this lane now waits on. The 2026-09-23 table above is superseded where it differs.
Activity
David-Noble-at-work commentedon Sep 26, 2026
Ruled 2026-09-26 (lane 5, PR B′)
linkedorcopiedonce therun returns; 1 when
danglingorstaleremain or a restore failed; 66 when never deployed. Drift found andrestored is in the report, not the code. Under
--dry-runthe code is writ status fails on a store that has never been written; a fresh install cannot run it #756's: 1 on any drift.beside
PlanFileChain, and upgrade and reconcile both call them: repair is deploy's mechanism, one copy.Plan:
docs/plans/task/924-reconcile-repair.mdonfeature/924-reconcile-repair.David-Noble-at-work commentedon Sep 27, 2026
Stopped 2026-09-27, before any code
Starting phase 2 found that
absentandchangedare decided from the target before the source is read, so a blind restore could re-create a dangling link or re-render moved content into the record. Asked about it, the owner ruled a design change: reconcile runs against the git ref that produced each entry, and a lifetime keeps its snapshots. Rulings and consequences are on #847 and in 847-kept-snapshots.md.For this lane: its open question 3 (the restore precondition) is superseded, since a restore read from the ref always reproduces the record; the "no reverse sync" reason lapses for links, which retain branches now carry back; restore becomes a command flag; the exit status and the words move with #847's open ruling on them. This lane resumes after the replan of #916. The plan, updated:
docs/plans/task/924-reconcile-repair.mdonfeature/924-reconcile-repair.doc(writ): kept snapshots -- reconcile against the ref that produced …
David-Noble-at-work commentedon Nov 9, 2026
star github triage sweep added this issue to Triage: devlore, for the rule it breaks:
step-order: step 5 waits on 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, at step 18 on the same schedule