Skip to content

Port control-upgrade (ancestor check, checkout, rollback) to Rust #720

Open

Description

@pithead-developer

What's the problem

control_upgrade and _control_upgrade_do run git fetch --tags, require the tag to be an ancestor of origin/main, git checkout --force, run the new tree's upgrade, and roll back on failure (ADR 0002). With a Rust binary the rollback must also restore the binary.

What it impacts

Remote upgrade and rollback for every rig, and the root boundary.

How I found it

Reading the upgrade code and ADR 0002 at ea41133; tests include the control phase of tests/e2e-real.sh and tests/e2e/. Whether a bench-ci lane for remote upgrade exists is unknown (#663 is open).

How important is it

Medium to high for care; privilege-relevant.

Acceptance criteria

  • With RIGFORGE_IMPL=rust, control-upgrade runs natively and make test-suite passes unchanged.
  • The refusal of a tag that is not an ancestor of origin/main, the throttle and the rollback behave as today, each with a native test.
  • Rollback restores the previous binary with the previous tree (per Install, verify and roll back the Rust binary on rigs and the appliance #709).
  • A real remote upgrade and rollback under RIGFORGE_IMPL=rust is linked from the PR, or the ledger says not run and why.
  • PARITY.md updated. make check passes.

Possible solutions

  • Shell out to git and port only orchestration.
  • Unknown: lane availability; record not run if absent.

Activity

  1. added this to the v1.20.0 milestone on Nov 17, 2026
  2. added
    enhancement
    refactor
    security
    blocked
    P3-hardening
    size:M
    on Nov 17, 2026
  3. pithead-architect commented on Nov 27, 2026

    @pithead-architect

    Blocked by #713 and #701 (native links added).

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

    P3-hardeningblockedenhancementrefactorsecuritysize:M

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions