Skip to contents

Plan generation in memory and compare it with the checked-in tree, the ownership manifest and unowned files, without writing anything.

Usage

regeneration_report(
  root,
  config = "specmill.yml",
  callbacks = new.env(parent = emptyenv()),
  validation = NULL
)

Arguments

root

Explicit existing client root directory.

config

Project YAML path relative to root.

callbacks

Explicit environment containing named development callbacks.

validation

Passed to generate_client(); NULL keeps its default.

Value

A specmill_regeneration_report whose files data frame has columns file, category, reason, prune_eligible and owner. Categories: added, changed, unchanged, edited_conflict and unowned_collision (a hand-written file at a generated path), kept (lifecycle badge, existing implementation, deferral or NAMESPACE), would_remove (owned but no longer generated; prune_eligible is FALSE when prune would refuse an edited file), unowned_generated and hand_written.

Details

Nothing is written to the working tree or manifest. The comparison is the in-memory plan against the current disk, not a purge followed by a rebuild: deferrals, existing implementations, adopted hashes and lifecycle badges keep their current placement, and the plan reads current sources. Plan mode still stops on an unresolved recovery journal, a blocked rename, or a hand-edited file that mixes other code into a generated file; the error names the file.