Repository navigation
Description
What's the problem
Required by bench-ci#1072
Related investigation: #2815. This is an independently implementable producer prerequisite for bench-ci#1072, not a request for causal diagnosis or a Tor recovery change.
At Pithead develop 52e54f7300406262c6b1f620290e22712b76a457, tests/integration/e2e.sh::backup_stack calls the canonical product's backup command and exposes only a success message or a failure containing a changing transcript tail. Its baseline image census is used for restoration, but it emits no versioned backup-window record containing product identity, Tor restart outcome or healthcheck execution provenance. The bench-ci tier invokes this wrapper and collects its transcript after the wrapper's EXIT restoration. That is too late to reconstruct the original window from live containers. A source ancestor, image tag or later successful refresh cannot establish which healthcheck executed during backup.
Bounded producer contract
Provide a documented versioned machine-readable result from the wrapper and, where needed, the shared backup implementation. Agree the exact emission/collection interface in the implementation and document it for bench-ci's consumer. The record must survive early failure and wrapper restoration without depending on timestamp/log-tail matching or a candidate results directory created only after deployment.
- Distinguish backup not-run, attempted/succeeded and attempted/failed, retaining the original numeric backup exit code and fixed outcome/reason codes. A successful command with no valid archive must remain a backup failure. Wallet or candidate prerequisite failures must not become backup/Tor failures.
- Capture the backup executable product identity and the live baseline product identity separately, independently from candidate identity: the canonical backup checkout and the live stack restoration checkout can differ. Capture Tor image object identity and bounded healthcheck implementation provenance for the backup window, including which observations establish execution within that window. Unknown identity or unobserved execution stays explicitly unknown; source ancestry and diagnostic-image deployment alone are not execution proof.
- Identify a Tor restart failure through structured observations at the shared backup/startup boundary, without classifying arbitrary changing log text as the event. Keep unsuccessful backup and final restoration as separate facts; the runner supplies its own final restoration verdict.
- Record diagnostic availability and safe relative artifact references. Keep complete sanitized original backup diagnostics available as evidence; emit only fixed reasons and validated identifiers in the structured result. Never include raw control replies, cookies, credentials, wallets, private paths or network topology in this record. Raw inspect/healthcheck configuration or log strings must not be interpolated into public event fields.
- Make emission bounded and atomic, job-owned and fresh for each invocation. Document compatibility: an older wrapper that supplies no result remains unknown, rather than being inferred from prose. Diagnostic collection failures must not overwrite the original backup exit/error or change admission, backup/startup/recovery, locks, rig handling, restoration or operational behavior.
what it impacts
Impact is not separately established in the existing report; confirm the affected users or behavior.
How I found it
Discovery details are not separately established in the existing report; preserve and verify the evidence already recorded.
how important is it
Importance has not been assessed explicitly; triage must state the priority and its reason.
acceptance criteria
Acceptance and validation
Use fixture/selftests proving two Tor restart failures with different timestamps and transcript tails produce the same structured event kind, successful backup followed by wallet failure remains a backup success, check mode and pre-backup refusals are not-run/unknown as appropriate, missing provenance remains unknown, original exit status survives diagnostics failure, and record/artifact freshness and privacy validation reject malformed or unsafe values, including topology, credentials, control characters and oversized fields. Include archive-missing and unavailable-health-observation cases. Correct the existing harness/backup documentation in the same PR.
Do not induce a Tor stall, modify a bench or force an unchanged rerun. Follow Pithead's testing strategy; any required runtime proof goes through a narrow bench-ci submission on the pushed exact SHA. The producer PR can be merged independently of bench-ci#1072; its versioned contract and fixture examples unblock that issue's ingestion, peer completion, idempotent notification and retry work. This prerequisite does not resolve the cause investigated by #2815.
possible solutions
No distinct solution options are recorded; investigate the existing report before choosing an approach.
Activity
pithead-developer commentedon Oct 1, 2026
Moved into v2 - appliance because p2pool-starter-stack/bench-ci#1072 depends on this issue in the release dependency chain.
pithead-developer commentedon Oct 1, 2026
Filed privately (pithead-3009.md); it needs an answer there, then remove the
questionlabel.pithead-developer commentedon Oct 1, 2026
Blocked on bench-ci#1079: job
2013@68615abd170a9a184c2a4c57e2ab205d0e156be8establishes an unsafe group/other-writable artifact root, so the producer correctly refuses storage and no runtime producer/provenance proof exists. Bench-ci must supply a compatible safe job-owned root and retain the invocation artifacts. bench-ci#1063 separately owns managed canonical restoration and verified proof admission after that job's error and unsuccessful baseline verification.The producer, diagnostics, regression fixtures and documentation are complete on pushed
c17565c9ddbc634faac894a9099604e0f03cf640; 21 focused tests, Python lint/format and source verifier/security review pass. Executed evidence is in the draft PR body. A newly discovered offset-timestamp provenance gap is fixed, but no current-head runtime PASS is claimed. After both bench prerequisites are satisfied, submit a narrow exact-head lifecycle job without a rig, inspect its complete evidence and current-head Actions, then finish readiness review. No manual bench intervention or unchanged rerun was performed.pithead-developer commentedon Oct 1, 2026
Blocked on p2pool-starter-stack/bench-ci#1079. Job 2013 confirmed an unsafe artifact root and failed baseline restoration; runtime proof requires bench-ci#1079 to supply safe storage and bench-ci#1063 to recover and verify the baseline. Fixed non-UTC timestamp handling on pushed c17565c; 21 tests, local gates and both source reviews pass. Evidence and blocker comments are published; resume runtime validation after those prerequisites clear.
The runner resumes this issue when that one closes.
pithead-developer commentedon Oct 1, 2026
The storage prerequisite #1079 is closed by merged bench-ci PR #1092, but read-only fleet evidence shows that none of the runners includes merge
ab0aee65e68767b0ef72053c2ff170845e8c167cyet. Runtime proof is now blocked on Deploy pending: bench-ci#1095, rather than the closed implementation issue. Submitting now would repeat the known artifact-root incompatibility.The producer, timestamp normalization, 21-test regressions and documentation are complete on
c17565c9ddbc634faac894a9099604e0f03cf640; current-head required Actions and both source reviews pass. The trusted #1063 recovery report independently verifies canonical recovery, while historical job errors and supplemental proof remain separate. The normal updater/runner must finish the canary-first rollout; once fleet commits include the fix, confirm healthy proof admission and submit fresh exact-head lifecycle proof without a rig. No bench or deployment operation was performed manually, and the PR remains a draft without a runtime acceptance claim.pithead-developer commentedon Oct 1, 2026
Blocked on p2pool-starter-stack/bench-ci#1095. The storage fix merged, but no runner has deployed it; fresh runtime proof is blocked on bench-ci#1095. Current-head Actions, 21 tests and both source reviews pass, and the draft PR records the new blocker. Resume after automatic deployment, confirm proof admission, then submit the narrow lifecycle job without a rig.
The runner resumes this issue when that one closes.
15 remaining items
pithead-developer commentedon Nov 2, 2026
Operator: draft PR #3908 from the implementation session, held with
operator-actionfor operator review.pithead-developer commentedon Nov 6, 2026
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.
pithead-developer commentedon Nov 7, 2026
Blocked on #3923. At head 565b41d, Build image (monero) and Build image (xmrig-proxy) fail in the Trivy step. The cause is a newly published fixed HIGH in the ubuntu 24.04 base: apt CVE-2026-109518, installed 2.8.3, fixed in 2.8.4ubuntu0.1. This PR changes nothing under build/, so it cannot clear the finding, and the same gate is red on every image build. The fix is open as #3926 under issue #3923. I did not touch the image build here. Finished: the earlier comment-removal finding is fixed and pushed, and the metadata gates pass. To unblock, merge #3926, merge develop-v2.1.0 into this branch, and let the checks rerun. The blocker is explained in a comment on PR #3908.
The runner resumes this issue when that one closes.
pithead-developer commentedon Nov 8, 2026
Blocked on #3929. At head 8c63f5d, Build image (tor) fails in the Trivy step on a newly published fixed HIGH in the Alpine base: musl-utils CVE-2026-107891, installed 1.2.6-r2, fixed in 1.2.6-r3. This PR changes nothing under build/, so it cannot clear the finding. It is tracked in #3929, with the fix in #3930. The earlier apt finding (#3923) is resolved. Finished: the comment-removal finding is fixed, develop-v2.1.0 is merged in, and the metadata gates pass. The remaining checks on this head were still pending when I read them, so only the tor build failure is confirmed. To unblock, merge #3930, merge develop-v2.1.0 into this branch, and let the checks rerun. The blocker is explained in a comment on PR #3908.
The runner resumes this issue when that one closes.
Emit versioned backup-window results and Tor provenance (#3908)
pithead-developer commentedon Nov 9, 2026
Merged in #3908.