Skip to content

Bootstrap: no test executes the kept skills tree swap and rollback #1780

Closed as not planned

Description

@ptr727

The kept skills tree swap in host-setup/bootstrap.sh and host-setup/bootstrap.ps1 works like this: extract to .new, move the current tree aside to .old, rename .new into place, and remove .old last. If a swap stops between the two renames, the old tree is put back.

No automated test runs that sequence. scripts/tests/test_bootstrap.py only checks static loader invariants and spec coverage. A reordered step, or a regression in the rollback, could pass CI while breaking the guarantee that a failed run leaves the previously registered tree intact.

A test should run the swap against a temporary directory, inject a failure at each step, and assert what tree is left on disk. The Bash loader can be covered on Linux CI. The PowerShell loader needs a native Windows run, which is the same boundary #1756 has.

Related: #1770 (the rollback can leave no tree).

Raised by Copilot as two previously-missed findings on the promotion PR #1774 (host-setup/bootstrap.ps1:299, host-setup/bootstrap.sh:179).

🤖 Generated with Claude Code

Activity

  1. ptr727 commented on Sep 24, 2026

    @ptr727
    OwnerAuthor

    Duplicate of #1767, which already tracks an executed test of the kept-tree swap and rollback. The two file:line locations are copied 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

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions