Skip to content

Lifecycle reset recovery fixture archives a newer configuration than the candidate accepts #3642

Closed

Description

@pithead-developer

What's the problem

In pithead lifecycle job 2889@35cf22518429d2ec5965e1ea094d51e03ee7d3eb, the encrypted config-reset recovery fixture archives configuration stamped 2.0.1, then candidate 2.0.0 correctly refuses to restore it. The intended successful recovery assertion cannot run.

What it impacts

The row encrypted restore after config-reset starts the stack fails before startup. This is separate from the passing pithead#3432 restore probe in #3553.

How I found it

Handoff of bench-ci#2201 under the operator ruling: fix the Pithead fixture in a separate PR targeting develop-v2.0.2, retaining maintenance & gates placement and required review and owner approval. GitHub refused a native private-to-public transfer; the original issue retains its evidence.

Completed job evidence reports the row failed. Retained results/reset-restore.restore.log explicitly reports the archive configuration version and candidate version refusal. The original stamp's origin is unknown; baseline and rig restoration were verified by the runner.

How important is it

It prevents the lifecycle recovery proof from reaching its intended assertions when a baseline carries a newer stamp. Production refusal behavior must remain intact.

Acceptance criteria

  • Reproduce the fixture failure with a newer-stamped baseline and older candidate through the approved queue.
  • Successful recovery uses a separate candidate-compatible synthetic configuration while preserving original baseline bytes and wallet/payout fields for verified cleanup.
  • Never relabel a real newer backup or weaken the newer-backup refusal guard; retain a negative refusal control.
  • The recovery row reaches restore/startup and passes with retained diagnostics and verified cleanup.

Possible solutions

Review the fixture's baseline/candidate contract before constructing its archive; reuse safe fixture projection where appropriate. The baseline stamp's origin remains unestablished.

Activity

  1. added
    bug
    on Oct 24, 2026
  2. pithead-developer commented on Oct 24, 2026

    @pithead-developer
    ContributorAuthor

    Implementation is preserved in draft #3645, targeting develop-v2.0.2 at a6e0709fc52b069f27c18b899e2f773600d4b1d1. The fixture projection, wallet/payout controls, original-byte cleanup, private recovery retention and version-only diagnostics are implemented. Focused tests, ShellCheck, shfmt, module/inventory checks and worker verifier/security passes are complete. The PR preserves the original queue RED evidence.

    Current-head lifecycle proof is still required. The normal fleet submission is retrying a connection failure with its original idempotency key and has returned no job reference. The inherited release-branch file-budget comparison also remains recorded in the PR; no gate was weakened. Independent review and formal owner approval remain required.

  3. pithead-developer commented on Oct 24, 2026

    @pithead-developer
    ContributorAuthor

    Blocked on #3631. The fixture correction is complete in draft #3645 at a6e0709fc52b069f27c18b899e2f773600d4b1d1; focused regression checks and worker verifier/security reviews pass. The required file-budget validation still fails because develop-v2.0.2 lacks the reviewed base-selection correction. Its maintainer must backport the correction through the normal PR/review route; then this branch can incorporate that base and renew current-head checks and lifecycle proof. The canonical blocker is reopened with the release-branch evidence.

    The normal fleet lifecycle submission also exhausted its bounded same-key retries with Errno 65 (No route to host), returning no job reference. The original key is retained for recovery before any further submission. No bench state was changed manually. Independent review and formal owner approval remain required.

  4. added
    blocked
    on Oct 24, 2026
  5. pithead-developer commented on Oct 24, 2026

    @pithead-developer
    ContributorAuthor

    Waiting on a transient bench_outage condition, not on another issue. tier4-e2e submission exhausted five same-key attempts with Errno 65: No route to host; no job ID confirmed. The runner re-checks it (first at 2026-10-24T01:43Z, at most 5 times).

  6. removed
    blocked
    on Oct 24, 2026
  7. pithead-developer commented on Oct 24, 2026

    @pithead-developer
    ContributorAuthor

    The code prerequisite #3631 is resolved through #3644. The existing draft #3645 now includes that base at de613898fd44f9dcbf2bd867edfd4946de6d590b; the fixture diff is unchanged. Release-base file-budget validation, focused regressions, module/inventory checks, ShellCheck, shfmt and CLI build checks pass, and verifier/security reviews are clean at that head.

    A normal fleet lifecycle-only submission was accepted, but its generated evidence read exhausted the client retry window with Errno 65 (No route to host). This is an artifact-read condition, not a code dependency. Resume by retrieving the accepted job evidence when connectivity returns, then collect completed restore/startup/cleanup proof. The PR stays draft pending that evidence, Linux CI, independent review and formal owner approval.

  8. pithead-developer commented on Oct 24, 2026

    @pithead-developer
    ContributorAuthor

    The artifact-read condition has cleared. The existing draft #3645 now contains refreshed, unedited evidence for the running current-head lifecycle proof and the original RED control. GitHub CI is green at de613898fd44f9dcbf2bd867edfd4946de6d590b; focused checks and worker verifier/security reviews remain clean.

    Waiting for lifecycle completion before reading its restore/startup diagnostics, fixture-version receipt and cleanup proof. The PR remains draft for completed live acceptance, independent review and formal owner approval. No duplicate submission or manual bench action was performed.

  9. pithead-developer commented on Oct 24, 2026

    @pithead-developer
    ContributorAuthor

    Blocked on p2pool-starter-stack/bench-ci#2209. Canonical PR #3645 owns the fix; duplicate PR #3646 is closed as superseded. Supporting runs passed the fixture assertions, but current-head job 2916 stopped before candidate execution because canonical baseline restoration was refused. Bench-ci#2209 must establish managed recovery and restoration proof before lifecycle acceptance can resume; the blocker is documented on the PR.

    The runner resumes this issue when that one closes.

  10. added
    blocked
    and removed
    blocked
    on Oct 24, 2026
  11. pithead-developer commented on Oct 25, 2026

    @pithead-developer
    ContributorAuthor

    Additional recurrence from pithead#3617 / pithead#3649: retained results/reset-restore.restore.log explicitly refuses archive configuration written by 2.0.1 on candidate 2.0.0. The encrypted recovery assertion does not reach startup. The other failures have owners pithead#3641 and pithead#3664; outer baseline and rig restoration were verified.

    bench-ci job 2977@a2c8f88ff97ef6c218dfefa85aef991548a2263b · pithead · tier4-e2e

    • options: {"phases": ["safety-backup", "subnet", "lifecycle"]}
    • status: completed · conclusion: failure · exit 1 · 64m 09s
    • baseline verified: yes · rig restored: yes
    • node guard: not recorded · no comparison recorded
    • steps: checkout success · reserve success · preflight success · run failure · collect success · restore success · cleanup success
    • rows: 299 pass · 5 fail · 3 skip (by-design 1, missing 2)
    • failed rows:
  12. pithead-developer commented on Oct 25, 2026

    @pithead-developer
    ContributorAuthor

    Questions before work continues (answer here, then remove the question label):

    The worker stopped without a result (error). Branch agent/3642-lifecycle-reset-recovery-fixture-archive holds what it had. Raise the cap, split the issue, or take it over.

  13. added
    question
    on Oct 25, 2026
  14. pithead-architect commented on Oct 25, 2026

    @pithead-architect

    Ruling: Resume canonical PR #3645 at ea6a9fe for one evidence-reconciliation pass. Read generated evidence for existing lifecycle job 2987, then its fixture receipt, restore/startup logs and cleanup artifacts. If unfinished, return waiting with the job in bench_jobs. If owned assertions and baseline/rig restoration pass, replace queued proof in the PR body and proceed through current-head checks, agent review PASS and subsequent formal owner approval. Unrelated red rows owned by pithead#3641 and pithead#3664 do not block this fixture. Preserve candidate-compatible synthesis, null/false wallet-path controls and newer-backup refusal. Reuse the canonical worktree; do not revive PR #3646, duplicate implementation or raise the cap merely for the worker error. Route any new tooling failure to bench-ci with evidence; required host changes belong separately in the owner's manual infrastructure queue.

  15. removed
    question
    on Oct 25, 2026
  16. pithead-developer commented on Oct 25, 2026

    @pithead-developer
    ContributorAuthor

    Merged in #3645.

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

    bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions