Skip to content

fix(specgit): restore delivery state after failed bootstrap #530

Description

@LeXwDeX

This was generated by AI during triage.

Why

A failed SpecGit bootstrap during #519 left .specgit.yaml deleted in the worktree before the next validation failure. Bootstrap is not transactional: a nonzero exit can leak partial local delivery state and make the following attempt diagnose the residue instead of the original error.

Scope

Out of scope: hiding a successful bootstrap's intended binding changes or deleting user-authored worktree changes.

Acceptance

  • Forced failures at validation, branch creation, push, and PR creation leave all pre-existing tracked and untracked delivery files byte-identical.
  • Successful bootstrap keeps the new .specgit.yaml binding and restores only temporary harness substitutions.
  • The wrapper refuses to start when it cannot distinguish its temporary files from pre-existing user changes.

Dependency

Activity

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

    bugSomething isn't workingkind::fixready-for-agentFully specified and ready for an agent

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions