Skip to content

Tari-off CLI preview fails in appliance stack hardening #3625

Closed

Description

@pithead-developer

What's the problem

The appliance stack hardening leg fails its Tari-off combined CLI preview assertions. The helper returns exit 1 with empty output, so it cannot prove the disabled-merge-mining confirmation or retained-chain-data text. The underlying cause is unknown; tests/integration/lib/run-tari-off-preview.sh:24 discards the remote command's stderr.

What it impacts

The supported appliance stack phase fails its hardening invocation. In the same job, the separate stratum authentication/TLS controls passed, including shipped-XMRig accepted shares. This is an appliance-path gap beyond the preview guidance fix in closed #3383 and merged #3559; it is tracked separately from #3078 / #3611.

How I found it

Job 2833@8bfa24ef67afd2b1ec60755ce39a503447495a77 ran tier4-kvm with phases=stack. Its job log and retained kvm-stack.log agree: the preview command returned 1, required confirmation strings were absent, and the three Tari-off assertions plus their enclosing integration invocation failed. The container-restart and stratum legs ran successfully afterward. Restoration and cleanup completed. Open pithead and bench-ci issues were searched; no open issue covered this appliance preview failure.

bench-ci job 2833@8bfa24ef67afd2b1ec60755ce39a503447495a77 · pithead · tier4-kvm

How important is it

This prevents a green shared appliance stack phase and leaves the appliance preview behavior unproved. The evidence does not establish whether the defect is in the CLI or its fixture, or any effect on an actual apply operation.

Acceptance criteria

  • Identify the early failure using bounded diagnostics that do not expose rendered credentials.
  • On a real appliance, the hardening helper can render its remote-mode baseline and preview a candidate switching Tari off while enabling its inactive clearnet-sync setting, without applying it or contacting the candidate endpoint.
  • The preview exits 0, confirms disabled Tari merge-mining and retained chain data, and omits inactive clearnet/endpoint/trust guidance.
  • Add an automated regression reproducing the actual failure trigger at the lowest supported layer, and show these rows passing in an exact-head KVM stack proof with verified cleanup.
  • Keep the assertions binding; do not skip the appliance path or turn unavailable output into a pass.

Possible solutions

Inspect the fixture's early commands and the shipped appliance CLI environment, then correct the demonstrated mismatch or CLI failure. Preserve the existing preview/cancel-only scope and private scratch cleanup.

Activity

  1. pithead-developer commented on Oct 23, 2026

    @pithead-developer
    ContributorAuthor

    Additional recurrence in the paired KVM stack proofs for #3623 / PR #3624: 2836@f92c62c65dd94f0bead768b20c7ff4b10ad9245f and 2837@5460241bc9ea0d1ae6ddf4342815dc06f3846183 both reproduce this issue's Tari-off preview failures. The raw logs report preview exit 1 and empty output, followed by missing disabled-merge-mining and chain-retention confirmations. The enclosing integration failure on the fixed head is accounted for by these preview assertions.

    The host-miner recovery regression independently fails in the control and passes at the fixed head. Both complete job verdicts remain failure, with verified baseline restoration and cleanup. PR #3624 retains both unedited completed evidence blocks. No cause for the preview failure is claimed; its discarded stderr remains unknown. Reusing this canonical issue; no additional implementation or duplicate issue was opened.

  2. pithead-developer commented on Oct 25, 2026

    @pithead-developer
    ContributorAuthor

    Additional recurrence for grouped #3403/#3405 / draft #3616 at 3cd43211939a918edf2ca9364ca4bef47c4eb91e: strict KVM stack job 2943 reproduces the same three Tari-off preview failures. The complete log and retained kvm-stack.log show preview exit 1 and empty output, followed by missing disabled-merge-mining and retained-chain-data confirmations. The cause remains unknown; no preview assertion was skipped or weakened.

    The enclosing lifecycle/hardening invocation includes these failures. Separate strict coverage omissions are now owned by #3666 (real block-notification observation) and #3667 (appliance metrics credential forwarding), so the whole job remains non-passing. The independent engine forms and churn row passes. Reusing this canonical preview issue rather than opening another one.

    bench-ci job 2943@3cd43211939a918edf2ca9364ca4bef47c4eb91e · pithead · tier4-kvm

  3. pithead-developer commented on Oct 25, 2026

    @pithead-developer
    ContributorAuthor

    Further occurrence while proving #3666: job 2947@42ebe7e09414e47850f3961365bda9e0f8d728cb and retained kvm-stack.log reproduce all three Tari-off preview failures: exit 1 with empty preview output and both confirmation strings absent. The enclosing lifecycle/hardening invocation also fails. The unrelated block-notification assertion passes; no preview change is included in PR #3668. The shared phase retains its failure verdict, and #3625 remains the owner of these rows.

  4. pithead-developer commented on Oct 25, 2026

    @pithead-developer
    ContributorAuthor

    Additional recurrence while proving #3671 / PR #3673: 2951@feb858175d192bd43f1a01e8a9a937fe0e06525d reproduces this issue's three Tari-off preview failures and their enclosing lifecycle/hardening failure. The retained kvm-stack.log:450–455 shows preview exit 1 with empty output and absent disabled-merge-mining and retained-chain-data confirmations. The underlying preview cause remains unknown.

    The separate appliance stratum invocation and all authentication/TLS controls pass in lines 514–529. The job remains failure with baseline restoration and cleanup verified. Reusing #3625 as the owner of every unrelated red row in this proof; no preview change is included in PR #3673.

  5. pithead-developer commented on Oct 27, 2026

    @pithead-developer
    ContributorAuthor

    Additional recurrence while proving #2727 / PR #2728: job 3104@004958bccaf0d89e81574e51a211ef316a0d2344 reproduces this issue's three Tari-off preview failures and their enclosing lifecycle/hardening invocation. The completed job log and retained kvm-stack.log show preview exit 1 with empty output and absent disabled-merge-mining and chain-retention confirmations. No underlying cause is claimed.

    The teardown assertions for #2727 executed afterward: all three calls logged successful returns, and the harness exited failure rather than timing out. The shared job remains failure with verified restoration and cleanup. Reusing #3625 as the owner of all four unrelated red rows; no preview change is included in PR #2728.

    bench-ci job 3104@004958bccaf0d89e81574e51a211ef316a0d2344 · pithead · tier4-kvm

  6. pithead-developer commented on Oct 28, 2026

    @pithead-developer
    ContributorAuthor

    Additional recurrence from #3408 / draft PR #3722. The completed job log and retained kvm-stack.log show preview exit 1 with empty output, absent disabled-merge-mining and chain-retention confirmations, and the enclosing integration invocation failing. These reproduce this issue’s three preview failures and aggregate failure; the underlying preview cause remains unknown. Reset census and encrypted recovery assertions pass on the appliance. Restoration and cleanup are verified. Reusing this issue as owner of those unrelated failures; no preview change or unchanged retry was submitted.

    bench-ci job 3088@4ab6e9b5efdd81a75846234e954703f0940ca2ce · pithead · tier4-kvm

  7. pithead-developer commented on Oct 28, 2026

    @pithead-developer
    ContributorAuthor

    The same appliance preview signature recurred while proving #2483 in job 3101@dd0bc71b6380591908d91508d37a50912d4b02e6 (tier4-kvm, stack): the combined preview returned 1 with empty output, and the disabled-merge-mining and retained-chain-data assertions failed. I read the completed evidence and raw job-log lines; they do not establish the cause because the helper discards stderr. The enclosing DIY gate failed; restoration and cleanup completed with baseline verified. This issue owns these unrelated rows in the #2483 proof.

  8. pithead-developer commented on Oct 28, 2026

    @pithead-developer
    ContributorAuthor

    Current-head stack occurrence for grouped #3403/#3405 / draft #3616: 3155@1277bc8bd0d7d6f7ba85746439e9ca934cf605de reproduces the same preview signature. The complete job log and retained kvm-stack.log show the Tari-off preview returning 1 with empty output and both required confirmation strings absent. The underlying preview cause remains unknown because its helper discards stderr. The three preview assertions and enclosing integration aggregate retain this issue as their owner.

    The engine/census/churn leg, non-destructive appliance check and stratum controls pass in the same job. A distinct local-Tari-only leg is counted missing on the remote fixture and is tracked in #3765; that counting gap is outside this preview issue. No unchanged retry or preview change was made here.

    bench-ci job 3155@1277bc8bd0d7d6f7ba85746439e9ca934cf605de · pithead · tier4-kvm

  9. pithead-developer commented on Oct 28, 2026

    @pithead-developer
    ContributorAuthor

    The same appliance preview signature recurred in job 3151@713e302c9950470422195875bc41516abe00dc80 (tier4-kvm, stack). The raw log reports exit 1 with empty output for the combined Tari-off preview, the missing disabled-merge-mining and retained-chain-data strings, and the enclosing DIY gate failure. These are the only failing rows. Baseline verification, restoration and cleanup completed; no underlying cause is inferred from the suppressed stderr. The separate #2483 fault-injection e2e job passed at the same runtime commit.

  10. pithead-developer commented on Oct 30, 2026

    @pithead-developer
    ContributorAuthor

    KVM stack job 3200@9ccf2d1ba23f4ec942ef2999c27d424de9ba97a3, collected for #2727 / PR #2728, repeats the three Tari-off preview failures: combined CLI preview succeeds, preview confirms disabled merge-mining, and preview retains chain data. The enclosing DIY-gate row also fails. The retained kvm-stack.log shows the same missing preview output; this is separate from the payout EOF fixture failure now tracked in #3794.

  11. pithead-developer commented on Oct 31, 2026

    @pithead-developer
    ContributorAuthor

    KVM stack job 3220@6c73626a68ff11b3044ebee25bccf07646d0d139, collected for #2727 / PR #2728, repeats the Tari-off combined preview, disabled merge-mining confirmation and retained-chain-data failures, along with the enclosing DIY-gate row. The retained artifact shows preview exit 1 and missing output for the same assertions. Reusing this canonical owner; the separate payout EOF fixture failure remains #3794.

  12. pithead-developer commented on Nov 1, 2026

    @pithead-developer
    ContributorAuthor

    Job 3259@9661bf65f50be920c9c5cfd72b190e4983471151 reproduces the three Tari-off CLI preview failures while proving #2483. The separate payout EOF failure is owned by #3794; it skips fault-injection before the backup-node rows execute. Neither outcome is passing proof for the new backup-node behavior.

  13. pithead-developer commented on Nov 1, 2026

    @pithead-developer
    ContributorAuthor

    Operator: set milestone 'maintenance & gates'. The Tari-off combined CLI preview has failed the same way in seven KVM stack-phase jobs (2833, 3101, 3155, 3151, 3200, 3220, 3259): exit 1, empty output, because the fixture discards stderr. Nothing yet shows whether the fault is in the shipped CLI or in the fixture, or any effect on a real apply. It therefore sits on the continuous gate track with #3765. If the diagnostics show a defect in shipped 2.0.x code, it moves to the next 2.0.x patch milestone.

  14. pithead-developer commented on Nov 1, 2026

    @pithead-developer
    ContributorAuthor

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

    1. Should I branch from and target develop-v2.1.0, where the helper and its failing rows exist, instead of develop-v2.0.3? Default: yes. Fixing the appliance preview failure needs the code that has it, and the prompt's base can't hold that fix. I'd open the PR with --base develop-v2.1.0 and submit bench jobs with --base develop-v2.1.0. If you want it on v2.0.3, say so; that would first need fix: describe inactive Tari preview settings accurately #3559 and its preview CLI changes (lib/pithead/39-describe-change.sh, 42-control-approval-helpers.sh) ported there, and I don't think a bug fix should carry that.
    2. Is a bounded diagnostic the right first step on that base? Default: yes. run-tari-off-preview.sh:24 discards stderr, so the cause is unknown after about 12 recurrences. I'd capture the remote command's stderr and exit status into a redacted, size-capped log, with no rendered credentials. I'd also add a tier-1 selftest for the helper's failure path, then submit one tier4-kvm job (phases=stack) to read the real error before changing the CLI or fixture. Does that match what you want?
  15. 14 remaining items

  16. pithead-developer commented on Nov 2, 2026

    @pithead-developer
    ContributorAuthor

    Candidate preparation for PR #3849 (owner publication still required):

    Owner-only in-place rewrite of PR #3849 is needed before merge. The PR targets develop-v2.0.3, so retargeting it to develop-v2.1.0 would pull develop-v2.0.3 commits into the diff. I rebuilt the change locally and did not push anything, retarget the PR or open a replacement. Branch state: head branch is agent/3843-tier4-e2e-lifecycle-source-upgrade-image, observed remote head is 6cb8a9dc838d6dcbb629e28c18f2f677224fbd71. Candidate: local branch candidate/3843-on-develop-v2.1.0 in the pithead-3843 worktree, full SHA 0da182ac81b31e1b39a453d8d0729195f4e998ed. It sits directly on origin/develop-v2.1.0 at fe0d50ba937471fbde83a8512050c08d40839f98, the target base develop-v2.1.0. Selected commits: one, cherry-picked clean from 6cb8a9dc8 ("test(integration): print and retain the source image fixture's failure stage (#3843)"). It changes tests/integration/lib/run-source-image.sh and tests/integration/selftest/selftest-source-image-ready.sh (12 insertions, 1 deletion) and adds no code comments. The PR's own commit list against its current base develop-v2.0.3 (ced8501e2edc6dc346c2f1e38c575d332df11a29) shows this commit alone; the other commits on the branch come from develop-v2.0.3 history. Checks I ran on the candidate: bash tests/integration/selftest/selftest-source-image-ready.sh exited 0 with 40 checks passing and 0 failing, including the new per-case "prints the fixture's failure stage into the job log" and "retains the fixture log with the scenario artifacts" assertions. make lint-file-budget and make lint-pithead-build both exit 0. shellcheck exits 1 with info and warning findings in the sourced-file layout (SC1091, SC2034, SC2030/2031, SC2329, SC2016) on lines this commit does not change; I did not compare it against the base. I ran no bench job on the candidate. Existing review evidence: none. PR #3849 has no reviews and no comments, and no bench job is recorded for it. Nothing carries over to the rewritten head. Requested owner action: publish 0da182ac81b31e1b39a453d8d0729195f4e998ed to agent/3843-tier4-e2e-lifecycle-source-upgrade-image with an explicit lease on the observed head, e.g. git push --force-with-lease=agent/3843-tier4-e2e-lifecycle-source-upgrade-image:6cb8a9dc838d6dcbb629e28c18f2f677224fbd71 origin candidate/3843-on-develop-v2.1.0:agent/3843-tier4-e2e-lifecycle-source-upgrade-image. Then change the PR base to develop-v2.1.0. If the remote head is no longer 6cb8a9dc8, stop and reassess. The PR discussion and history stay on #3849. A replacement PR needs explicit owner approval. The rewritten head needs fresh GitHub checks, a fresh non-author review and any required owner approval.

  17. pithead-developer commented on Nov 2, 2026

    @pithead-developer
    ContributorAuthor

    Operator, 2026-11-02: not published. PR #3849's head moved from the recorded lease 6cb8a9dc838d to bfdb9c96282f after the request, and the prepared candidate 0da182ac81 (one commit on develop-v2.1.0) predates that push. Per the request, stop and reassess: prepare a fresh candidate from the current head and record the new lease; the owner has authorized operator publication of runner-prepared rebuilds.

  18. removed
    operator-action
    on Nov 6, 2026
  19. pithead-developer commented on Nov 6, 2026

    @pithead-developer
    ContributorAuthor

    Operator: released to the runner (owner 2026-11-06). New work goes to the local Flash-Next model first; Claude only after three local rounds or for sensitive work.

  20. pithead-developer commented on Nov 6, 2026

    @pithead-developer
    ContributorAuthor

    Blocked on #3923. The five red checks (Build image: dashboard, monero, p2pool, tor, xmrig-proxy) all fail at the 'Scan image for CVEs (Trivy)' step, after the image builds. I did not see the finding text in the job log, so naming the cause is an inference. It matches #3923 (apt CVE-2026-109518, fixed upstream, red on every image). This PR changes only the Tari-off preview test helper, its selftests and one docs row, so it cannot alter an image scan. The fix is open as #3926 and is not merged, so merging the base here will not clear it. Finished: the merge conflict is resolved at head 36467cd, selftest-run-modules, lint-file-budget and lint-pithead-build pass locally, and job 3366 passed all seven Tari-off rows on the previous head (its conclusion was still failure, from the #3794 payout rows). I posted this explanation on the PR. To unblock: merge #3926 or otherwise close #3923, then merge develop-v2.1.0 into the branch and push so the image checks rerun.

    The runner resumes this issue when that one closes.

  21. added
    blocked
    on Nov 6, 2026
  22. removed
    blocked
    on Nov 8, 2026
  23. pithead-developer commented on Nov 8, 2026

    @pithead-developer
    ContributorAuthor

    Blocked on #3940. Build image (monero) fails at the Trivy scan on head dd87db9. The job log shows apt CVE-2026-109518 (HIGH, fixed 2.8.3 -> 2.8.4ubuntu0.1), Total: 2 HIGH. #3926 closed #3923 but merged only into develop-v2.0.3, so develop-v2.1.0 still has the red and every PR on it fails the image builds. This is tracked as #3940. This PR changes only the Tari-off preview test helper, its selftests and one docs row, so it cannot affect an image. Finished: conflicts resolved, selftests, lint-file-budget and lint-pithead-build pass locally, and job 3366 passed all seven Tari-off rows (its conclusion was failure from the #3794 payout rows). I posted the explanation on the PR. To unblock: land the apt fix on develop-v2.1.0 (#3940), then merge develop-v2.1.0 into the branch and push so the image checks rerun.

    The runner resumes this issue when that one closes.

  24. added
    blocked
    on Nov 8, 2026
  25. removed
    blocked
    on Nov 9, 2026
  26. pithead-developer commented on Nov 14, 2026

    @pithead-developer
    ContributorAuthor

    Merged in #3852.

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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions