Skip to content

A node that never runs leaves a receipt naming its unit and action, and writ deploy says which nodes it skipped #1042

Open

Description

@David-Noble-at-work

A node that never dispatches leaves a receipt that names its unit and the action it would have run, and writ deploy's summary names each node it skipped instead of only counting it.

The owner, 2026-10-13, in words polished at the owner's request: "We clearly need to work on that. There is no forward action, and that is a problem." And: "The issue: no forward_action or unit_id is recorded." Before the manifest was searched, the owner said: "I suspect that what you will find is a packages-manifest.yaml entry for vim and that install was skipped." It was there.

Why: the record is how writ knows what a lifecycle operation did. A receipt with no unit and no action cannot say what was skipped, so writ deploy reports "1 skipped" and nothing in its narration or its trace says which.

Today

writ deploy --allow-dirty on danoble-wd11-3, writ v0.1.0-dev.20261010200947 (develop), build 4d18e48, ended:

[writ] [✔] Deployed 66 files (66 links), 1 skipped [home]

Its trace, C:\Users\david-noble\.local\state\devlore\traces\sha256-12a467dc6695e7f27b1dda950442251d5da76c518ad9e1cca72a53a3c546fa53\20261013T224253.295004700Z.yaml:

  • Exactly one receipt has an empty forward action, nested under the stack entry unit_id: pkg.install-1 (line 18):
    - forward_action: ""
      compensating_action: pkg.compensate_package_mutation
      resource_uri: tag:devlore.noblefactor.com,2026-01-01:pkg:winget/Vim/Vim?scope=machine#github.com/NobleFactor/devlore-cli/pkg/op/provider/pkg.Resource
      unit_id: ""
    
  • No receipt carries unit_id: pkg.install-1. The graph, C:\Users\david-noble\.local\state\devlore\graphs\sha256-12a467dc6695e7f27b1dda950442251d5da76c518ad9e1cca72a53a3c546fa53.yaml, lists it as a node: - id: pkg.install-1, line 2565.
  • The trace's catalog leaves that resource state: pending; its other 88 entries are state: active. No line in the trace contains "skip".

The package is the one entry in personal's Windows manifest, Home/common.Windows/packages-manifest.yaml line 15: - name: pkg:winget/Vim/Vim?scope=machine.

How the count is made, read from the code at build 4d18e48:

  • Trace.Summarize (pkg/op/trace.go:341-378) passes over a receipt whose ForwardAction() is empty (:350-353), so its unit is never marked dispatched, and counts every graph node never marked as skipped (:368-375).
  • formatSummary (cmd/writ/writ/deploy/report.go:134-136) appends ", N skipped".
  • The comment at pkg/op/trace.go:327-328 calls such receipts "audit-only entries pushed at a non-dispatching exit (cancellation, pause, or a unit whose action never resolved)".

For the plan

  1. Why the install never ran. Not known: the trace does not say. Whether Vim was already installed on danoble-wd11-3 was not checked.
  2. Where the empty receipt is pushed. The executor's non-dispatching exits, per the comment above; not yet read.
  3. What the narration says for each skipped node: its unit, its resource, and why.

Evidence of completion

  • A receipt for a node that never dispatches carries the node's unit_id and the action it would have run.
  • writ deploy names each skipped node in its narration, not only the count.
  • Tests cover a node that never dispatches: its receipt, its trace entry and the narration.
  • Why danoble-wd11-3's Vim install never ran is found, and fixed here or filed.

Plan and design documents

Kind Document
Plan no plan yet
Design none yet

The writ lifecycle surface

Activity

  1. David-Noble-at-work commented on Nov 9, 2026

    @David-Noble-at-work
    ContributorAuthor

    star github triage sweep added this issue to Triage: devlore, for the rule it breaks:

    • severity: a Bug whose Severity is blank; a bug is Critical, High, Medium or Low
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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