Skip to content

Remove the borrowed-rig request/ack handshake and its docs and selftest #4233

Open

Description

@pithead-developer

What's the problem

tests/integration/lib/borrow-fixture.sh implements a runner request/ack handshake (request file, owner equals run-id, sequence, rotate-stratum, restore-stratum and rearm actions, ack written back). selftest-borrow-rearm.sh asserts the runner's durable-hold capability. repo-map.md (105-110), releasing.md (348, 361) and dashboard.md (319) document the borrowed-rig and reserved-miner protocol. rig-key-ledger.sh, loaner-exit and restore-unit-capture share the same assumptions.

What it impacts

Removing the lock and wallet pieces alone leaves a bench-ci-only handshake behind; docs describe a runner role.

How I found it

Inventory 2026-11-17 review pass: borrow-fixture.sh, selftest-borrow-rearm.sh and the three docs; the other three files still to be grepped.

How important is it

P3-hardening; medium to large effort.

Acceptance criteria

  • Handshake, its selftest and the borrowed-rig docs are removed; any generic stratum rotate/restore primitive that stays is documented as a harness contract with its own test.
  • grep of rig-key-ledger.sh, loaner-exit and restore-unit-capture finds no bench-ci wording.
  • make test-integration-selftest passes with neither tool installed.

Possible solutions

bench-ci drives rotation and rearm itself through the primitives; delete the request/ack file protocol.

Activity

  1. added this to the v2.0.5 milestone on Nov 17, 2026
  2. added
    refactor
    testing
    P3-hardening
    on Nov 17, 2026
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-hardeningrefactortesting

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions