Repository navigation
Description
What's the problem
What
reset-dashboard (lib/pithead/16-reset.sh:1) is named in docs/dev/testing-strategy.md §
"Known gaps" as "remains unit-covered", and that is still true at 1b0da070: 0 invocations under
tests/integration/ and tests/os/, 3 sourced tier-1 call sites against a stubbed docker/sudo.
It is the CLI's most destructive non-appliance verb — two sudo rm -rf of directories resolved at
runtime — and its bug history is entirely in the parts a stub cannot see: #139 (it resolved its
rm -rf targets from config.json instead of the live .env, so a config edit before the reset
wiped a directory the running stack never used), #550 (chown -R before an unprivileged mkdir
broke every operator with uid ≠ 1000 — and that abort lands after the data wipe), #557 (an
errexit interaction made the friendly compose-failure branch unreachable).
Purpose and side effects
Purpose: wipe a corrupted dashboard DB / p2pool state and start those two services clean, without
touching the chains.
- Resolves
DASHBOARD_DATA_DIRandP2POOL_DATA_DIRfrom.env(reset-dashboard resolves its rm -rf targets from current config.json, not the live .env — a config edit before reset can wipe the wrong dir #139), refuses to guess,
assert_safe_diron each. docker compose rm -s -f -v dashboard p2pool.sudo rm -rfboth directories (:44-45), recreates them plus$p2pool_dir/stats, then
sudo chown -R $APP_UID:$APP_GIDandchmod -R 755— in that order, because the reverse breaks
non-1000 uids after the wipe (setup/reset-dashboard: chown -R before unprivileged mkdir breaks operators with uid ≠ 1000 #550).apply_tor_egress_firewallbefore p2pool can dial clearnet (Enforce Tor-only egress at the network layer (fail-closed) — stop relying on per-app config #270/stack_upgrade reasserts the Tor-egress firewall AFTER compose up — same startup window #276 fixed forup#291) — idempotent ifup
already installed it, and the reason running this verb on adownstack does not start p2pool
unfirewalled.compose_up_checked -d dashboard p2pool.
What only a live run proves
- The chains are untouched —
MONERO_DATA_DIR/TARI_DATA_DIRbyte-identical across the reset. - p2pool actually re-syncs its sidechain and mining resumes; shares flow again.
- The dashboard DB is recreated with the right ownership so
db_healthystays true (Dashboard runs with no persistence and no operator-visible signal if the SQLite DB init/writes fail #131 × Run containers as a non-root user (drop root inside the container) #255) —
thechown/mkdirorder bug (setup/reset-dashboard: chown -R before unprivileged mkdir breaks operators with uid ≠ 1000 #550) shows up here and nowhere else. - The egress firewall is installed in the real kernel when the verb is run against a stopped stack.
- The operator-visible round trip: dashboard history is gone, everything else is not.
Worker brief (inventory 2026-09-18)
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 (testable)
- A tier-4 DIY leg runs
./pithead reset-dashboardon the e2e checkout and asserts: the two directories it wipes are the ones.envnames (reset-dashboard resolves its rm -rf targets from current config.json, not the live .env — a config edit before reset can wipe the wrong dir #139), the chains are untouched (monerod height unchanged), the post-wipe ownership matches the running uid (setup/reset-dashboard: chown -R before unprivileged mkdir breaks operators with uid ≠ 1000 #550, with the bench's uid ≠ 1000 if it is), the dashboard and p2pool come back healthy, and the friendly compose-failure branch is reachable (errexit makes three friendly-error branches unreachable (verify_release_images, release.sh digest, reset-dashboard compose_up_checked) #557) when compose is made to fail once. - Baseline verifies afterwards; selectable by
--harness-arg.
Scope: in — a new phase, wiring, ledger row. Out — factory-reset/config-reset (#2347), the verb's code unless a defect is found.
Proof: one targeted tier4-e2e job with the phase. Related: #139, #550, #557, #2347, #2348. Evidence: named in docs/dev/testing-strategy.md "Known gaps" as unit-covered; 0 tier-4 invocations at 1b0da070.
Acceptance script
This script operationalizes the Worker brief's "Acceptance (testable)" list above, with the ruling that both services come back running healthy and the post-reset mining and share signal is verified. Done means the script at the end of this section prints ACCEPTED and exits 0 on the PR head, given the evidence of one tier4-e2e job on that same head. Every check is a mechanical pass or fail, so no judgment call is needed. Paste the script's full output into the PR body.
# save the script below as /tmp/accept_2346.py (outside the repo), then:
# 1. on the PR head, with every new file committed, submit one tier4-e2e job with
# options.phases ["reset-dashboard"] and the reserved rig (bench-ci adds --safety-backup for this phase itself)
# 2. when it finishes, collect its evidence into one directory:
J='<job id>@<full head SHA>'; D=/tmp/accept-2346-evidence; mkdir -p "$D"
bench-ci status "$J" --json > "$D/job.json"
bench-ci artifacts "$J" | awk '{print $NF}' | while read -r p; do
mkdir -p "$D/$(dirname "$p")" && bench-ci artifacts "$J" "$p" --out "$D/$p"; done
# 3. from the repo root, on the same head:
python3 /tmp/accept_2346.py --results "$D"
It takes about 10 seconds and changes no file. Without --results, every B check prints FAIL with bench evidence not supplied. The B checks read job.json plus exactly one manifest.txt and exactly one results/e2e-harness.log under the directory: bench-ci serves the harness's own results/ files (the run manifest, and the detached harness's own log) under results/. The runner's top-level e2e-harness.log is not read. Row checks look inside the phase only, for ✓ <row text>. The same text printed by another phase does not count.
The leg must print these row texts exactly, under a header line containing ── reset-dashboard phase. They are the texts draft PR #2380 prints at 4803cc26. B9's workers online (>= N) matches any N.
| Check | Passes when |
|---|---|
| C1 | Only tests/integration/, docs/, tests/stack/test-cli-verb-ledger-lock.sh and CHANGELOG.md differ from develop, and at least one file under tests/integration/lib/ does. |
| C2 | bench-ci's own discovery regex (_HARNESS_ALLOWLIST_RE in its catalogue) finds reset-dashboard in tests/integration/lib/harness-args.sh, so a job can select it. |
| C3 | validate_harness_args accepts --reset-dashboard and forwards exactly --reset-dashboard to run.sh. |
| C4 | run.sh --local --safety-backup --reset-dashboard --list exits 0: parse_args knows the flag. |
| C5 | The CLI verb ledger row for reset-dashboard in docs/dev/testing-strategy.md reads covered, names `--reset-dashboard` and no longer says blocked on; CVL_COVERED in the ledger lock lists reset-dashboard and CVL_MISSING does not. |
| C6 | Five harness wiring selftests pass: selftest-run-modules.sh, selftest-e2e-boundary.sh, selftest-e2e-harness-args.sh, selftest-e2e-phases.sh, selftest-skip-accounting.sh. |
| B1 | job.json is repo pithead, tier tier4-e2e, commit equal to the checked-out head, options.phases contains reset-dashboard and options.mode is not check, and options.no_rig is not set, because the ruling asks for the post-reset mining signal. |
| B2 | The job's conclusion is success, it has rows, and no row failed. |
| B3 | The harness manifest's git_rev is a prefix (7+ characters) of the head. |
| B4 | The harness log has the phase header ── reset-dashboard phase. Inside the phase (from that header to the next phase header, the end-of-run restore or the summary) at least 19 rows pass and none fails, and nothing in the log or the job's skip rows reports the whole phase skipped. |
| B5 | #139: reset wiped the .env dashboard dir, not the config-only one, reset wiped the .env p2pool dir, not the config-only one, reset never touched the unapplied config-only dashboard dir (#139), reset never touched the unapplied config-only p2pool dir (#139). |
| B6 | Chains untouched: monerod height never rewound across reset-dashboard (#139), the pre-reset monero block is still the same block (chain untouched, #139). |
| B7 | #550: recreated dashboard dir owned by APP_UID 1000 (#550), recreated p2pool dir owned by APP_UID 1000 (#550), recreated p2pool/stats dir owned by APP_UID 1000 (#550). |
| B8 | reset-dashboard succeeds, status OK after reset-dashboard, dashboard container healthy after reset, p2pool container healthy after reset. |
| B9 | Inside the phase, after the reset: workers online (>= N), stratum total hashes > 0, share_stats non-empty on a mining box (#116). |
| B10 | #557: reset-dashboard exits 1 on a real compose failure (#557 fail-closed unchanged), reset-dashboard: friendly compose-failure branch reached, not a bare errexit abort (#557), status OK after recovering from the forced compose failure. |
| B11 | The job's rows show backup archive contains config.json (the safety-backup protection the ruling keeps) and original config and secrets restored exactly passing, never failing. |
Rules:
- Do not change the script's phase name, row texts or expected outcomes.
- A reviewer re-runs the same script on the head they review, with that head's job evidence. A changed head needs a fresh job and a fresh run.
- The repo's normal gates still apply on top of this:
make test(it runs the wholetests/integration/selftest/suite, which C6 only samples) and the adversarial review.
Baseline, run 2026-10-03 on 4598474 (develop): unmodified develop prints NOT ACCEPTED: 1/17 checks pass without --results, and NOT ACCEPTED: 3/17 checks pass with a synthetic develop-shaped job. Without --results only C6 passes. The synthetic job, a successful targeted run with no such phase, adds B2 and B3. Every other check fails on the gap: there is no reset-dashboard phase to select or run, and the ledger row still says missing. The pass side was validated with fixtures. A throwaway prototype, not committed, wired a --reset-dashboard phase (allowlist, parse_args with a --safety-backup requirement, a dispatch, a run-reset-dashboard.sh module condensed from draft PR #2380, the run-modules selftest contract, the ledger row and lock), and satisfied every C check. With it, a synthetic passing job printed ACCEPTED: 17/17 checks pass. The synthetic job's harness log was printed by tests/integration/lib.sh's own it_log/it_pass, its rows were parsed with bench-ci's BatteryParser, and its manifest follows record_manifest's layout. No bench job ran. The C checks are wiring guards. The B checks carry the proof.
Hint, not binding: B2 asks for a fully green job. The ruling says unrelated red rows need owners. A job that fails only on an unrelated row therefore needs a re-run, or a ruling here, before this script accepts it. Draft PR #2380 already prints every row above. It still needs a rebase onto develop and the job.
Independent re-check, 2026-10-03: a second session re-ran this script in a fresh worktree at 4598474. Develop printed NOT ACCEPTED: 3/17 checks pass, and with the pass fixtures it printed ACCEPTED: 17/17 checks pass. Files the script mutates were left unchanged after each run.
accept_2346.py
"""Acceptance check for p2pool-starter-stack/pithead#2346 (tier-4 reset-dashboard leg).
Save this file OUTSIDE the repo (for example /tmp/accept_2346.py) so it is never committed.
Run from the repo root on the PR head, with every new file committed:
python3 /tmp/accept_2346.py --results DIR
DIR holds one tier4-e2e job's evidence (see the issue): job.json from
`bench-ci status <id>@<head> --json`, plus the job's downloaded artifacts, among them
results/manifest.txt and results/e2e-harness.log. Without --results every bench check (B*)
fails. Prints PASS/FAIL per check and exits 0 only when every check passes. Read-only: it
changes no file. Needs git and bash.
"""
import argparse
import json
import re
import subprocess
import sys
from pathlib import Path
ISSUE = 2346
PHASE = "reset-dashboard" # the --harness-arg flag and bench-ci options.phases name
VERB = "reset-dashboard" # the CLI verb ledger row
HEADER = "── reset-dashboard phase" # the phase's it_log header line in the harness log
NEEDS_RIG = True # the operator ruling asks for the post-reset mining and share signal
NEEDS_SAFETY_BACKUP = True
ROW_CHECKS = [
("B5 #139: the wipe hits the .env dirs and never the unapplied config.json dirs", [
"reset wiped the .env dashboard dir, not the config-only one",
"reset wiped the .env p2pool dir, not the config-only one",
"reset never touched the unapplied config-only dashboard dir (#139)",
"reset never touched the unapplied config-only p2pool dir (#139)"]),
("B6 the chains are untouched: monerod never rewinds and its pre-reset block is unchanged", [
"monerod height never rewound across reset-dashboard (#139)",
"the pre-reset monero block is still the same block (chain untouched, #139)"]),
("B7 #550: the recreated dirs are owned by the container uid", [
"recreated dashboard dir owned by APP_UID 1000 (#550)",
"recreated p2pool dir owned by APP_UID 1000 (#550)",
"recreated p2pool/stats dir owned by APP_UID 1000 (#550)"]),
("B8 the verb succeeds and dashboard and p2pool come back running healthy", [
"reset-dashboard succeeds",
"status OK after reset-dashboard",
"dashboard container healthy after reset",
"p2pool container healthy after reset"]),
("B9 mining resumes inside the phase: workers online, hashes flowing, share stats live", [
"workers online (>= *",
"stratum total hashes > 0",
"share_stats non-empty on a mining box (#116)"]),
("B10 #557: a real compose failure reaches the friendly branch, then the stack recovers", [
"reset-dashboard exits 1 on a real compose failure (#557 fail-closed unchanged)",
"reset-dashboard: friendly compose-failure branch reached, not a bare errexit abort (#557)",
"status OK after recovering from the forced compose failure"]),
]
def extra_local_checks():
"""Issue-specific local checks: none for this issue."""
# ---- shared below: the tier-4 verb scripts for #2343-#2346 differ only above this line ----
ALLOWED_PREFIXES = ("tests/integration/", "docs/")
ALLOWED_FILES = {"CHANGELOG.md", "tests/stack/test-cli-verb-ledger-lock.sh"}
HARNESS_ARGS = Path("tests/integration/lib/harness-args.sh")
LEDGER_DOC = Path("docs/dev/testing-strategy.md")
LEDGER_LOCK = Path("tests/stack/test-cli-verb-ledger-lock.sh")
SELFTESTS = ["tests/integration/selftest/selftest-run-modules.sh",
"tests/integration/selftest/selftest-e2e-boundary.sh",
"tests/integration/selftest/selftest-e2e-harness-args.sh",
"tests/integration/selftest/selftest-e2e-phases.sh",
"tests/integration/selftest/selftest-skip-accounting.sh"]
# bench-ci/catalogue.py _HARNESS_ALLOWLIST_RE: how bench-ci discovers the phases a commit offers.
BENCH_CI_ALLOWLIST_RE = re.compile(
r"^[ \t]*((?:--[a-z][a-z0-9-]*[ \t]*\|[ \t]*)*--[a-z][a-z0-9-]*)\)[ \t]*\n"
r'[ \t]*HARNESS_PHASE_ARGS="\$HARNESS_PHASE_ARGS \$arg"', re.M)
VALIDATE = r'''
source tests/integration/lib.sh; source tests/integration/lib/harness-args.sh
die() { echo "die: $*"; exit 9; }
MODE=targeted HARNESS_ARGS=("--$PHASE")
validate_harness_args && printf 'forwarded:[%s]\n' "$HARNESS_PHASE_ARGS"
'''
RESTORED = "original config and secrets restored exactly"
SAFETY = "backup archive contains config.json"
ANSI = re.compile(r"\x1b\[[0-9;?]*[ -/]*[@-~]")
SLICE_END = re.compile(r"\[ITEST\] (── |Restoring original config|═)")
results = []
def report(name, ok, detail=""):
results.append(bool(ok))
print(f"{'PASS' if ok else 'FAIL'} {name}" + (f" [{detail}]" if detail else ""), flush=True)
def git(*args):
return subprocess.run(["git", *args], capture_output=True, text=True).stdout.strip()
def bash(script, **env):
import os
p = subprocess.run(["bash", "-c", script], capture_output=True, text=True,
env={**os.environ, **env})
return p.returncode, p.stdout + p.stderr
def row_present(lines, text):
"""True when the slice holds a passing row with exactly this text (a trailing * = prefix)."""
if text.endswith("*"):
return any(line.startswith("✓ " + text[:-1]) for line in lines)
return ("✓ " + text) in lines
ap = argparse.ArgumentParser()
ap.add_argument("--results", help="directory holding job.json and the job's downloaded artifacts")
args = ap.parse_args()
head = git("rev-parse", "HEAD")
# --- local: wiring and ledger ------------------------------------------------------------------
subprocess.run(["git", "fetch", "-q", "origin", "develop"], check=False)
base = git("merge-base", "origin/develop", "HEAD")
changed = set(git("diff", "--name-only", base).split())
in_scope = all(p in ALLOWED_FILES or p.startswith(ALLOWED_PREFIXES) for p in changed)
report("C1 only tests/integration/, docs/, the ledger lock and CHANGELOG.md changed, "
"tests/integration/lib/ among them",
in_scope and any(p.startswith("tests/integration/lib/") for p in changed),
f"changed: {sorted(changed)}")
m = BENCH_CI_ALLOWLIST_RE.search(HARNESS_ARGS.read_text())
offered = [p.strip()[2:] for p in m.group(1).split("|")] if m else []
report(f"C2 bench-ci's discovery regex offers the '{PHASE}' phase from harness-args.sh",
PHASE in offered, f"offered: {offered}")
rc, out = bash(VALIDATE, PHASE=PHASE)
fwd = re.search(r"forwarded:\[(.*)\]", out)
report(f"C3 validate_harness_args forwards --{PHASE} to run.sh unchanged",
rc == 0 and fwd is not None and fwd.group(1).split() == [f"--{PHASE}"],
f"rc={rc} forwarded={fwd.group(1) if fwd else None!r}")
rc, out = bash(f"bash tests/integration/run.sh --local --safety-backup --{PHASE} --list")
report(f"C4 run.sh's parse_args accepts --{PHASE}",
rc == 0 and "Unknown option" not in out and "Scenarios:" in out, f"rc={rc}")
rows = [ln for ln in LEDGER_DOC.read_text().splitlines() if ln.startswith(f"| `{VERB}` |")]
cells = [c.strip() for c in rows[0].strip().strip("|").split("|")] if len(rows) == 1 else []
lock = LEDGER_LOCK.read_text()
covered = re.search(r'^CVL_COVERED="([^"]*)"', lock, re.M)
missing = re.search(r'^CVL_MISSING="([^"]*)"', lock, re.M)
report(f"C5 the CLI verb ledger marks '{VERB}' covered by `--{PHASE}`, in the doc and the lock",
len(cells) >= 3 and cells[1] == "covered" and f"`--{PHASE}`" in rows[0]
and "blocked on" not in rows[0] and covered is not None and missing is not None
and VERB in covered.group(1).split() and VERB not in missing.group(1).split(),
f"doc rows={len(rows)} state={cells[1] if len(cells) > 1 else None} "
f"names --{PHASE}={len(rows) == 1 and f'`--{PHASE}`' in rows[0]} "
f"'blocked on'={len(rows) == 1 and 'blocked on' in rows[0]} "
f"lock covered={bool(covered) and VERB in covered.group(1).split()}")
outcomes = {Path(t).name: bash(f"bash {t}")[0] for t in SELFTESTS}
report("C6 the harness wiring selftests pass", all(v == 0 for v in outcomes.values()),
", ".join(f"{k}={v}" for k, v in outcomes.items()))
extra_local_checks()
# --- bench: one tier4-e2e job on this head -----------------------------------------------------
BENCH = [f"B1 job.json is the tier4-e2e job on this head with the {PHASE} phase",
"B2 job conclusion is success and no row failed",
"B3 the harness manifest names this head",
f"B4 the {PHASE} phase ran: header in the harness log, no failed row or skipped phase in it"]
BENCH += [name for name, _ in ROW_CHECKS]
BENCH += ["B" + str(len(BENCH) + 1) + " baseline restored exactly after the run"
+ (", under a safety backup" if NEEDS_SAFETY_BACKUP else "")]
found = {}
if args.results:
root = Path(args.results)
for name in ("job.json", "manifest.txt"):
hits = sorted(root.rglob(name))
found[name] = hits[0] if len(hits) == 1 else None
logs = [p for p in sorted(root.rglob("e2e-harness.log")) if p.parent.name == "results"]
found["results/e2e-harness.log"] = logs[0] if len(logs) == 1 else None
if not args.results or not all(found.values()):
why = "bench evidence not supplied" if not args.results else \
f"need exactly one job.json, manifest.txt and results/e2e-harness.log under {args.results}"
for name in BENCH:
report(name, False, why)
else:
job = json.loads(found["job.json"].read_text())
opts = job.get("options") or {}
jrows = job.get("rows") or []
manifest = found["manifest.txt"].read_text(errors="replace")
log = [ANSI.sub("", ln).strip() for ln in
found["results/e2e-harness.log"].read_text(errors="replace").splitlines()]
starts = [i for i, ln in enumerate(log) if HEADER in ln]
phase_lines = []
if starts:
for ln in log[starts[0] + 1:]:
if SLICE_END.search(ln):
break
phase_lines.append(ln)
def job_row_ok(text):
verdicts = [r.get("verdict") for r in jrows if r.get("text") == text]
return "pass" in verdicts and "fail" not in verdicts
phases = opts.get("phases") or []
ok = (job.get("repo") == "pithead" and job.get("tier") == "tier4-e2e"
and job.get("commit") == head and PHASE in phases and opts.get("mode") != "check"
and not (NEEDS_RIG and opts.get("no_rig")))
report(BENCH[0], ok, f"repo={job.get('repo')} tier={job.get('tier')} commit={job.get('commit')} "
f"phases={phases} no_rig={opts.get('no_rig')}")
failed = [r.get("text") for r in jrows if r.get("verdict") == "fail"]
report(BENCH[1], job.get("conclusion") == "success" and jrows and not failed,
f"conclusion={job.get('conclusion')} rows={len(jrows)} failed={failed[:3]}")
rev = re.search(r"^git_rev:\s*([0-9a-f]+)\s*$", manifest, re.M)
report(BENCH[2], bool(rev) and len(rev.group(1)) >= 7 and head.startswith(rev.group(1)),
f"git_rev={rev.group(1) if rev else None}")
resolved = [(name, texts(opts) if callable(texts) else texts) for name, texts in ROW_CHECKS]
need = sum(len(texts) for _, texts in resolved)
passes = [ln for ln in phase_lines if ln.startswith("✓ ")]
fails = [ln for ln in phase_lines if ln.startswith("✗ ")]
names = {PHASE, VERB}
skipped = [ln for ln in log if "SKIPPED WHOLE PHASE" in ln and any(n in ln for n in names)] + \
[r.get("text") for r in jrows if r.get("verdict") == "skip" and any(
re.match(rf"PHASE\s+{re.escape(n)}\b", r.get("text") or "") for n in names)]
report(BENCH[3], bool(starts) and len(passes) >= need and not fails and not skipped,
f"header={'found' if starts else 'missing'} passing={len(passes)} (need >= {need}) "
f"failed={fails[:2]} skipped={skipped[:2]}")
for name, texts in resolved:
absent = [t for t in texts if not row_present(phase_lines, t)]
report(name, starts and not absent,
"phase header missing" if not starts else
(f"not passing inside the phase: {absent}" if absent else f"{len(texts)} rows pass"))
restored = job_row_ok(RESTORED) and (job_row_ok(SAFETY) if NEEDS_SAFETY_BACKUP else True)
report(BENCH[-1], restored, f"'{RESTORED}' pass={job_row_ok(RESTORED)}"
+ (f"; '{SAFETY}' pass={job_row_ok(SAFETY)}" if NEEDS_SAFETY_BACKUP else ""))
print(f"\n{'ACCEPTED' if all(results) else 'NOT ACCEPTED'}: {sum(results)}/{len(results)} checks pass")
sys.exit(0 if all(results) else 1)possible solutions
Proposed leg
A --lifecycle step behind --safety-backup: fingerprint the chain dirs, reset-dashboard -y,
assert 1–5, run once more against a down stack for the firewall case. Run it as the non-1000-uid
case if the bench user allows, since that is #550's exact shape.
Activity
VijitSingh97 commentedon Sep 19, 2026
Cross-link: #2379 settles the operator-facing half of the same question this issue asks at tier 4 —
what a destructive verb keeps, and whether it says so on screen. It fixes
uninstall's inventory(three columns: removed / kept / left behind and shared) and rules out deleting data at all.
The shape carries over here:
reset-dashboard's promise is "the chains are untouched", and todaythe only place that is written down is a log line and this issue's point 1. Same assertion
technique too — hash the chain dirs before and after, not just "the directory still exists".
Related: #2343, #2347, #2348, #2379.
pithead-developer commentedon Sep 19, 2026
Blocked on p2pool-starter-stack/bench-ci#347. Opened draft PR #2380 (branch agent/2346-tier-4-reset-dashboard-is-still-unit-onl, head 234ab2e) adding a
--reset-dashboardtier-4 DIY e2e phase to tests/integration/, per issue #2346's Worker brief. The new phase (tests/integration/lib/run-reset-dashboard.sh, wired into run.sh/run-cli.sh/harness-args.sh/e2e.sh's matrix mode, with docs/dev/testing-strategy.md's coverage table updated) runs./pithead reset-dashboardagainst a live box and asserts: the wiped dirs come from.envnot an unapplied config.json path (#139, proven via decoy config), the recreated dirs are owned by APP_UID/1000 (#550), monerod's height/block never rewind (chains untouched), dashboard/p2pool come back healthy, and a forced real compose failure (a name-clash blocker container) reaches the friendly retry branch instead of a bare errexit abort (#557) before a clean recovery. Ran a ponytail-review pass on the diff (one finding — a redundant end-of-phase push_config, since main()'s restore_baseline() already does this — fixed; a second pass found nothing further). Local shellcheck, make lint-file-budget, make lint-pithead-build, and the pure-bash tier-4 self-tests that exercise this wiring (selftest-run-modules.sh, selftest-e2e-phases.sh, selftest-e2e-boundary.sh, selftest-e2e-harness-args.sh) all pass. GitHub Actions tiers 1-3 are running on the pushed head (not yet all green at last check). The verb's own code (lib/pithead/16-reset.sh) is untouched — no defect found while exercising it live, matching the issue's stated scope.The runner resumes this issue when that one closes.
pithead-developer commentedon Sep 21, 2026
Blocked on p2pool-starter-stack/bench-ci#424. Job 758 errored before the reset-dashboard phase because bench Tari was still loading; the baseline was verified and restored. PR #2380 now records this accurately, GitHub checks are green, and the existing bench-ci#424 tracks the failed readiness gate.
The runner resumes this issue when that one closes.
pithead-developer commentedon Sep 21, 2026
Blocked on p2pool-starter-stack/bench-ci#459. Job 812 deployed the current head but the detached harness exited before any phase row or artifact, despite a reported readiness refusal; baseline restoration verified. Filed bench-ci#459 with the job and SHA, updated PR #2380, and await the bench fix before obtaining required current-head tier-4 proof.
The runner resumes this issue when that one closes.
22 remaining items
pithead-developer commentedon Sep 24, 2026
Investigation brief (operator pre-read, 2026-09-23) — refute pass
Still valid: yes, with one citation correction.
docs/dev/testing-strategy.md:231(CLI verb ledger) still readsreset-dashboard | missing | #2346, blocked on bench-ci#347on develop's actual current heada5af51ad95c62b69067250e4eca9094f00a81dd2(the brief's cited296c860eis 4 commits stale — none of which touch this verb, the doc, or tests/integration/, so the facts carry over unchanged). Line 189 still shows only "1 ✅ (partial)".lib/pithead/16-reset.sh:1has no tier-4 exercise on develop.Root cause: the verb was written and tier-1 tested but never run live, per its own bug history (#139, #550, #557) — all three bugs lived in behavior a stub can't see.
Fix shape: no code fix needed on develop. Draft PR #2380 (head
4803cc26) already implements the tier-4 phase (tests/integration/lib/run-reset-dashboard.sh), and its latest commit ("require reset service health") is confirmed, by reading the actual diff, to satisfy the round-2 review's finding in full: it adds_reset_dashboard_services_healthy()requiringrunning healthy(not state-onlyrunning) on both dashboard and p2pool, plus the promised post-reset mining/share signal (wait_miner_running,wait_hashes_flowing,assert_mining_state,assert_share_stats_live). What's left is process, not implementation: PR #2380 ismergeable: CONFLICTINGagainst current develop and needs a rebase, and no tier4-e2e job has run against the current head4803cc26— the only job that reached the phase (job 869) tested the prior commit430acc26and, per its log, failed in the run step ~300ms after "Running the live harness" with "readiness reported issues — destructive phases refused" immediately followed by "rig busy: unknown" — a pre-phase readiness/rig-lock refusal, not a phase assertion result.Evidence tier: tier4-e2e, per the issue's acceptance text — correct, and currently missing on the current head (confirmed above).
Blockers: none live. Every bench-ci issue this thread cited (#347, #424, #459, #464, #482, #486, #518, #524, #509, #528) is confirmed closed via
gh. The issue'sblockedlabel is therefore stale.Rulings needed: (1) resume the issue now to get the missing current-head job — recommend yes; (2) rebase PR #2380 before or after that job — recommend rebase first, to avoid a repeat of the "proves an older head" finding.
Ready: yes — a worker can rebase, submit one targeted tier4-e2e job, and take the PR out of draft for adversarial review round 3 without further code changes.
Triage recommendation: MOVE-2.0.x — a test-coverage addition to an already-correct verb (no defect found in reset-dashboard's own code, confirmed unmodified in the diff), not a security/data-loss/Tari-fork item on the release checklist. Current milestone is "maintenance & gates" (confirmed via
gh issue view, described as "Never blocks a ship"), which per context is frozen until GA; near-complete and low-risk to land in the weeks right after GA.Verify against the code before relying on this; re-checked file:line, PR head, job log and issue metadata directly against the read-only checkouts and GitHub on 2026-09-23.
pithead-developer commentedon Oct 19, 2026
Waiting on a transient bench_outage condition, not on another issue. Bench API job-list read exhausted five bounded retries with No route to host; submission did not execute. The runner re-checks it (first at 2026-10-19T13:46Z, at most 5 times).
pithead-developer commentedon Nov 7, 2026
Questions before work continues (answer here, then remove the
questionlabel):PR #2380 targets
develop, but the prompt requires basedevelop-v2.0.3, and the PR head conflicts with both bases. Should I retarget the existing PR withgh pr edit --base develop-v2.0.3and push the local merge candidate (9608386), which keeps one PR for the issue? Default: yes, because it resolves the conflicts, I would not open a second PR, and the bench submit needs--base develop-v2.0.3. The alternative is to keep basedevelopand merge only origin/develop. That keeps the PR diff small but cannot be submitted to the bench with--base develop-v2.0.3.pithead-architect commentedon Nov 7, 2026
Ruling: Take your default.
maintenance & gatesbuilds ondevelop-v2.0.3in the runner's base map, anddevelopis 0 commits ahead ofdevelop-v2.0.3, so retargeting brings in nothing outside this issue. Do it in this order: (1)gh pr edit 2380 --base develop-v2.0.3and push the merge candidate onto the existing branch. Keep this PR; a stale draft is resumed, never forked. (2) Check that the PR diff againstdevelop-v2.0.3contains only the reset-dashboard changes. If the merge pulled anything else in, remove it. (3) Submit one freshtier4-e2ejob withphases=reset-dashboardand--base develop-v2.0.3on the new head. Jobs 862, 869 and 870 ran on older heads and no longer count. (4) Returnwaitingwith that job inbench_jobs. When it finishes, quote its conclusion and the reset-phase rows. Then update the PR body in place: the new head SHA, the base, and the job. Leave no stale02ce7d0references, and list this retarget under "Decisions taken". The uid≠1000 variant of #550 stays conditional on the bench's existing user, as ruled before; do not reconfigure a bench to produce it. After the retarget, theBuild imagechecks will be red because of the base-wide Trivy failure tracked in pithead#3923, which PR #3926 fixes. That failure is not this PR's and not a reason to block the tier-4 job. Merge still waits for green checks once #3926 lands.pithead-developer commentedon Nov 7, 2026
Blocked on #3923. The five red
Build imagechecks (dashboard, monero, p2pool, tor, xmrig-proxy) are not caused by this PR. They fail at the Trivy scan on apt CVE-2026-109518, which affects every PR ondevelop-v2.0.3. pithead#3923 tracks it and PR #3926 fixes it, and #3926 is still open. Other open PRs on this base (#3933, #3928, #3922) fail the same checks, and only #3926 passes them. This diff touches onlytests/integration/,tests/stack/anddocs/dev/, with nobuild/, compose or Trivy paths, so it cannot change an image scan. A fix here would duplicate #3926. Already finished: tier-4 job 3566 passed on commit 6dcc197 (178 pass, 0 fail, baseline verified, rig restored), and the PR body carries its evidence block. I commented the blocker on the PR. To clear it, merge #3926 so #3923 closes, then mergedevelop-v2.0.3into the branch and re-check; no code change is left.The runner resumes this issue when that one closes.
Tier-4: bring reset-dashboard off the unit-only tier (#2346) (#2380)
pithead-developer commentedon Nov 8, 2026
Merged in #2380.