Skip to content

Preserve the last verified artifact generation on failed or interrupted rebuilds #183

Closed

Description

@LunaStev

Planned for v0.0.3-beta; reviewed against master cd13f1d9c244cfdb207f38412db6c513bd5fd543.

#160 added ownership checks, output verification and primary-error preservation. Its contract does not provide publication of a complete replacement artifact generation while preserving the last successful generation on compilation failure. External build consumers need that stronger boundary.

Acceptance:

  • Compile into a private staged generation; validate required outputs and companions before exposing the replacement result.
  • Define a single publication commit point for the generation/result record and document visibility for cooperating consumers. Do not claim several independent renames are an atomic transaction.
  • On compiler/archiver failure, cancellation, verification error, or interrupted publication, preserve/recover the previous complete verified generation and its manifest/depfile. Never report a partial generation as successful.
  • Preserve refusal to overwrite unowned or edited files, run leases, conservative clean behavior, and the original compiler/process failure when secondary bookkeeping fails.
  • Define first-build failure and restart recovery, including missing optional companions and external build roots.
  • Add deterministic fault injection around compilation, verification and publication, plus cancellation/restart tests on supported platforms.

Scope is one selected package-target result and its files. A transaction spanning every package in a workspace, release packaging (#141), and a new general transaction framework are outside this issue.

Starting points: execution/publication boundary, artifact ownership, integrity tests.

Integration dependencies: #179.

Activity

  1. self-assigned this
    on Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions