Skip to content

A build that changes the graph or trace shape forgets everything earlier builds deployed: the store reads as empty, reconcile shows no entries, and the pre-flight refuses writ's own links #864

Closed as not planned

Description

@David-Noble-at-work

2026-09-08 on Danoble-MBP-A, the first writ deploy after make install moved the binary from 155067ae
to 919b9521, which includes #858 ("a value in an any slot carries its type…").

Observed

Before that deploy, with three layers registered and 269 links on disk from the previous day's deploys:

$ writ deploy --allow-dirty common noblefactor-ops
Error: refusing to deploy over 270 occupied target(s) not recognized as writ's own unmodified output:
  …/.local/share/zsh/site-functions/…   (42)   …/.local/share/man/man1/…   (42)   …/Library/Fonts/SFMono-*.otf   …
use --conflict=replace to archive-and-overwrite them, or --conflict=skip to leave them

$ writ reconcile -o json | jq '.entries, (.health.findings | length)'
null
9

Every one of the 270 is a symlink writ made the day before, pointing into the personal layer's working
tree. The nine health findings are why writ did not know them:

  • three traces from 2026-08-09: op.LoadTrace: yaml decode: op.ResourceState: unknown state "1"
  • six graphs from 2026-09-06 and 2026-09-07 — the previous build's deploys — {}{"common", "noblefactor"} is not a type wrapper; an any slot must carry one

After one deploy under --conflict=skip (which relinked nothing and added the new layer's four files),
reconcile reports linked: 273, copied: 1 — the inventory rebuilt from the one trace the new build wrote —
and the same nine findings.

Mechanism

readback.Fold builds the inventory from the traces and their graphs. A graph the current decoder cannot
read is dropped with a health finding; the inventory proceeds without it. #858 changed the any-slot
encoding without a reader for the previous shape, so every graph the previous build wrote is unreadable,
and the inventory — and with it occupantIsOurs in the deploy pre-flight, reconcile, and upgrade's
notion of what exists — went to nothing between the upgrade and the next deploy. The 2026-08-09 traces
show the same class from an earlier ResourceState change: the store already held history no build could
read, silently.

What this costs

A make install of develop is a normal morning act. After it, the machine's deployment is invisible to
writ until a deploy under skip or replace writes a fresh trace — stop, the ruled default, refuses
everything — and reconcile says the machine has nothing. That is the opposite of what a store is for.

Wanted

  • A serialization change ships with a reader for the shape it replaces, or a migration of the store, never
    neither; A value in an any slot carries its type, a resource slot records the catalog id, and the checksum covers the catalog rows #858's shape gets its reader for the previous one now
  • A trace or graph the current build cannot read is a loud finding: reconcile states it in its
    human rendering, and deploy's pre-flight says "N targets unknown because M traces are unreadable" and
    points here, instead of calling writ's own links foreign
  • An unreadable trace does not silently drop its targets from the inventory; the inventory marks them
    unknown and the policies treat unknown as "ask", not "foreign"

Acceptance

Related

#858 (the shape change), #762 (reconcile), #853 (the dry run cannot show the pre-flight), #842 (narrate
what a policy passes over), #847 (pinned versus live links — the same store is what a pin would rest on),
noblefactor-ops#147 / #476 (the deploy that found it).

Activity

  1. David-Noble-at-work commented on Sep 8, 2026

    @David-Noble-at-work
    ContributorAuthor

    Ruled 2026-09-08: "the old graphs can be tossed … and the traces." Done on Danoble-MBP-A: the ten graphs and ten trace directories earlier builds wrote are gone, the index keeps its two lines for the graph 919b9521 wrote, and writ reconcile reads the store clean — 273 linked, 1 copied, zero findings. So the first item under Wanted (a reader for the replaced shape, or a migration) is withdrawn for this change: no history worth carrying. What stands is the behaviour: an unreadable document must be a loud finding in reconcile and in deploy's pre-flight, naming the store rather than calling writ's own links foreign, and its targets marked unknown, not dropped. The scenario step in Acceptance stands too.

  2. David-Noble-at-work commented on Sep 8, 2026

    @David-Noble-at-work
    ContributorAuthor

    Closed 2026-09-08, ruled: not a bug. This is a greenfield product with no legacy; a change to the graph or trace shape owes the old store nothing, and tossing it is the intended cost — which is what was done on Danoble-MBP-A, after which the store reads clean. reconcile already reported the unreadable documents in its health findings. The one gap that stands is the deploy pre-flight's refusal, which named the targets and suggested --conflict=replace rather than naming the unreadable documents; that is one sentence in #842's narration rule, recorded there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions