Skip to content

Forward-merge 2.0.4 into develop-v2.1.0 - #4603

Open
pithead-developer[bot] wants to merge 114 commits into
develop-v2.1.0from
forward/develop-into-develop-v2.1.0-20261125
Open

pithead-developer[bot] wants to merge 114 commits into
develop-v2.1.0from
forward/develop-into-develop-v2.1.0-20261125

Conversation

@pithead-developer

@pithead-developer pithead-developer Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Part of #4502 and #4594.

Merge with a merge commit, not squash (gh pr merge <n> --merge). A squash leaves develop out of this line's history, and the next forward merge conflicts again on the same changes.

Tier-4 caveat: needs a tier-4 run before 2.1.0's release gate. The No-login Tor heal KVM leg (tests/os/tor-heal-guest.sh, 2.1.0's DisableNetwork version) still expects 2.1.0's healer order: two NEWNYMs, then a Tor restart, with no tor-recover and no state backup. The merged healer follows develop's 2.0.4 four-step ladder (#4095), whose third step is the host-gated tor-recover reset. On a real VM that leg will most likely recover at the reset instead and fail its "no tor-recover / backup count unchanged / restart log" checks. I could not run tier 4 here, so I left the leg as 2.1.0 wrote it instead of guessing new assertions. The tier-4 image-upgrade certificate leg also now pulls the Playwright v1.64.1 image (see below). Tracked in #4663.

What's the problem

develop-v2.1.0 still carries VERSION 2.0.3 and lacks the 98 commits on develop, including everything released in 2.0.4. End-to-end runs of 2.1.0 pull requests fail the version check against a 2.0.4 stack, and the 2.0.4 fixes are missing from the next feature line.

How I fixed it

I cut forward/develop-into-develop-v2.1.0-20261125 from develop-v2.1.0 and merged develop (0df4be8, which contains the v2.0.4 tag commit) into it with a merge commit. There were 98 conflicted files. Where the two sides changed the same thing, I kept both changes; where they truly overlap, the 2.1.0 version wins. Many develop commits were forward-ports of features first built on 2.1.0 (donation planner and config, rig adopt leg, log API pieces, update channel): there I kept 2.1.0's version plus any fix that develop's port added.

Here is the proof

  • History. Merge commit e57cfcc9b has the parents 190234b0b (the develop-v2.1.0 tip) and 0df4be86 (develop). The v2.0.4 tag commit 2f8a9d4b is an ancestor of this head. VERSION, pyproject.toml and the uv.lock entry read 2.0.4. The [2.0.4] CHANGELOG section, and everything below it, is byte-identical to develop's.
  • Dashboard. make test-dashboard at 1412938f7: 4644 passed, 1 skipped, coverage 97.83%. Patch coverage against develop-v2.1.0: 98% (1270 changed lines, 17 missed). The two later commits change no dashboard Python; the frontend change is covered below.
  • Lint.
    • These pass: lint-py, lint-yaml, lint-md, lint-js, lint-toml, lint-docs-voice, lint-path-references, lint-operator-strings, lint-pithead-build, lint-trivy-parity, and lint-file-budget against develop-v2.1.0.
    • lint-sh: the pinned shellcheck is clean. The local shfmt is newer than the pin, and every diff it reports also appears on both unmodified parents, so CI's pinned run decides.
    • lint-topology: the scan passes.
  • Frontend and tools. test-frontend at 260f859f7: 1134 passed. lint-js passes there too. test-netwatch and test-fakes pass. The three new Sovereign tests fail with 260f859f7's source changes reverted:
    • a healthy rig with an empty proxy minute
    • the mining count
    • the donation cost from the rig's own rate
  • Linux suites (scripts/test-container.sh, CI's image).
  • Review fixes. The new drain test fails at 1412938f7 and passes at 1c0287a3b. With the shared helper, uninstall's volume rows pass: list, inspect and remove failures keep .env and the volume, and a same-named volume without Pithead's Compose labels is kept. selftest-uninstall-round-trip passes 37 of 37.
  • CI fixes.
    • The Quadlet provenance test passes 6 of 6 in CI's image. It passes on develop and failed 12 cases before the fix. With only the renderer change reverted, the direct-renderer refusal case fails.
    • The mini-stack boot-health stage, run locally with a freshly built test image, fails at 947e0f182 with "missing credentials were accepted" and passes with the fixture change.
    • selftest-image-upgrade-browser and selftest-release-appliance fail at 8c2d8a459 and pass at d5e2af9a1. Both pass on unmodified develop-v2.1.0.
    • Stack block 1 at 8c2d8a459: 3145 passed, 2 failed, both in the baseline above. test-tools and the test-inventory check pass. The tests/os/ selftests pass except selftest-run-modules and selftest-xvb-poll-clock: the container image has no requests, and both fail the same way there on develop-v2.1.0 and develop. CI's run decides them.
  • Tor snapshot fix. With only the restored test, stack block 5 fails "the appliance bundle carries the Tor snapshot" at d5e2af9a1, and it passes at 0e2bf0aef. The DIY check passes on both. Block 5 at 0e2bf0aef: 3973 passed, 2 failed, both the GUI-then-CLI backup pair in the baseline above. Shellcheck on the built CLI, lint-pithead-build and the file budget pass.
  • Mining guard fix. The new test_a_stuck_primary_stops_the_proxy_only_when_no_backup_serves runs the real node selection with a stuck primary. Run alone on 0e2bf0aef, its backup case fails: the proxy is stopped once. At b6375b124 both cases pass. make test-dashboard at b6375b124: 4646 passed, 1 skipped, coverage 97.83%. Patch coverage against develop-v2.1.0: 98% (1281 changed lines, 17 missed); data_gates.py and monero_backups.py are fully covered. The file budget, ruff and the docs linters pass.
  • Duplicates. A scan of every changed file for blocks this merge repeated finds one: the Caddyfile slice's per-onion virtual host, which repeats by design.
  • Not run: tier-4 KVM (see the caveat above) and the live integration suite. Both need a reserved test host. The mini-stack's real-wallet steps run only in CI.

🤖 Generated with Claude Code

Models: claude-opus-5-5 (developer), claude-opus-5-5 (forked sub-agents resolving merge conflicts by area)

pithead-developer Bot and others added 30 commits November 11, 2026 18:32
…ile (#4029)

tests/os/selftest-migration-boot.sh sourced the generated CLI and
pithead-boot nine times through variable paths, which shellcheck -x
resolves and re-analyses per source line: 16.4 GiB and 464 s for one
file, OOM-killing the 2.0.3 release-server lint gate and adding about
four minutes to every CI Shell lint run. Point those source lines at
/dev/null and refuse any file that holds the pinned shellcheck past
SHELLCHECK_FILE_BUDGET seconds.

Co-authored-by: pithead-developer[bot] <4933481+pithead-developer[bot]@users.noreply.github.com>
Co-authored-by: Claude Code <noreply@anthropic.com>
…s and the split gate (#4027)

* docs: bring the battery and release docs in line with the automated rig legs and the split gate

rig-battery.md: mark M11's accepted share automated by the rig phase's share leg
(#2063), mark M12 manual on develop with the leg that automates it (#3717, on the
2.1.0 line; backport tracked as #3994), and cite the open #3995 for the
Keep-everything gap instead of the closed #3961.

releasing.md: submit the rig group as the four splits the last three gates actually
ran (rig+rigmedia+media; fault+reset; image-upgrade; stack) and put boot plus every
split id in the gate e2e after. selftest-release-status-recipe.sh pins the new
recipe shape.

appliance-release.md: show the data-migration declaration as a per-release choice —
migrating true X.Y.Z next to the non-migrating false form — so a copied cut cannot
declare a migration it does not run.

Closes #3997

Co-Authored-By: Claude Code <noreply@anthropic.com>

* docs: clear the closed-issue cites beside the corrected battery rows

The verifier pass found two surviving pointers for the Keep-everything and
adopt/config-push gaps: docs/appliance.md still owed the M13 proof to closed
#3961, and the appliance-release battery summary still tracked M11-M13 on closed
#1886 though the live trackers are #3994 and #3995. Name the split group by the
three release gates that ran it, the in-repo record, not by nightly config.

Refs #3997

Co-Authored-By: Claude Code <noreply@anthropic.com>

---------

Co-authored-by: pithead-developer[bot] <4933481+pithead-developer[bot]@users.noreply.github.com>
Co-authored-by: Claude Code <noreply@anthropic.com>
) (#4041)

* test(os): name the boot line that ends the migration release wait (#3957)

The provision migration leg waited its full 10 minutes and then claimed a
hold deadlock even when the candidate boot had already aborted; job
353@b34b109aeb50074469312f65a3f153eb314d147b died 69s into the wait on a
signature-verification failure inside a dark bench outage window, and the
row recorded nothing about the guest. migration_release_wait now ends on
the boot's own terminal journal lines, names that line as the verdict,
captures the guest's gate, slot and unit state at every deadline, and is
bound above pithead-boot's own about-16-minute gate budget.

Co-Authored-By: Claude Code <noreply@anthropic.com>

* test(os): scrub control characters from the embedded terminal journal line

Co-Authored-By: Claude Code <noreply@anthropic.com>

* test(os): read the candidate boot through the fallback and bound the release wait polls (#3957)

fail_boot's fallback path reboots the guest before the next poll, so the
terminal line lives in the previous (persistent) boot and the deadline
dump must show both boots. Polls carry SSH_TIMEOUT=20 per core.sh's
polling-loop rule so one black-holed session cannot stretch the wait.
Deadline dump: fix the doctor filter to the real fail/warn statuses and
strip ESC bytes.

Co-Authored-By: Claude Code <noreply@anthropic.com>

* test(os): execute the release-wait commands in the selftest and pin bound, timeout, fallback (#3957)

The stub now evals the command string it receives against fake
journalctl/podman that pick the boot file from -b / -b -1, so removing
the previous-boot half of the terminal query, the SSH_TIMEOUT=20 polls or
the 240-round default each fails the selftest. Drop the added source
comment.

Co-Authored-By: Claude Code <noreply@anthropic.com>

---------

Co-authored-by: pithead-developer[bot] <4933481+pithead-developer[bot]@users.noreply.github.com>
Co-authored-by: Claude Code <noreply@anthropic.com>
…ommits (#3998) (#4025)

* fix(os): run dashboard schema migrations only after the booted slot commits (#3998)

pithead-boot writes .os-schema-held into the dashboard data dir whenever the booted
A/B slot is still uncommitted, and the dashboard defers its one forward-incompatible
migration (the 2.0.3 payout identity rebuild) while the marker stands: fresh databases
are created in the previous release's shape, the rebuild is skipped, and payouts keep
recording through that shape — so a fallback into the previous release finds a schema
it can still write. boot_gate_passed (moved to the stack-health sibling for the file
budget) releases the hold after mark-good: marker out, dashboard restarted once, the
deferred migration runs on a slot no fallback can leave. Unknown verdicts (no rauc.slot,
failing/unparseable rauc status, no jq) defer; a marker that cannot be written fails the
boot, which is exactly the uncommitted state the marker exists to make safe.

Co-Authored-By: Claude Code <noreply@anthropic.com>

* chore: drop the added comments from the #3998 hunks per review

No behaviour change: comments only (28 lines), directives and pre-existing
comments intact. Re-ran shfmt, pinned shellcheck, selftest-schema-hold,
selftest-migration-boot, lint-file-budget, ruff check+format, the payout/
storage pytest set, and lint-path-references — all green.

Co-Authored-By: Claude Code <noreply@anthropic.com>

* test(os): journal the dashboard schema hold arm and release and assert both in leg 4

Co-Authored-By: Claude Code <noreply@anthropic.com>

* test(os): assert the schema hold arm and release on leg 5's fallback boot

Co-Authored-By: Claude Code <noreply@anthropic.com>

* chore: drop the explanatory comments left in the #3998 store and schema hunks

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(dashboard): move the schema hold cases into their own module

Returns test_storage_schema.py to its 394-line develop size and drops its file-budget row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(dashboard): prove the previous release records payouts after a held candidate falls back (#3998)

Arms the marker with pithead-boot's own schema_hold_arm on an uncommitted slot, opens the
head's store under that hold, then runs 2.0.2's wallet-less payout INSERT and reads the row back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(os): assert leg 5's fault boot kept the schema hold armed, and stop the leg when fallback fails

Reads each boot's pithead-boot journal once instead of per grep.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test: skip the boot-script join test in the dashboard image and poll leg 5's release with a remote grep

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: pithead-developer[bot] <4933481+pithead-developer[bot]@users.noreply.github.com>
Co-authored-by: Claude Code <noreply@anthropic.com>
#3989)

* Commit the booted slot when Set up again opens with no update in flight (#3960)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* Test the abandoned Set up again fallback with the real interrupted verdict (#3960)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* Say which updates Set up again leaves uncommitted (#3960)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* Poll for the set-up-again slot commit instead of reading it once (#3960)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

---------

Co-authored-by: pithead-developer[bot] <4933481+pithead-developer[bot]@users.noreply.github.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
)

* os tests: keep saved RAUC bundles under an owned scratch dir removed on exit (#3943)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* os tests: build the floor-fallback bundle tree under the owned scratch dir (#3943)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* os tests: shfmt the scratch-cleanup selftest (#3943)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* os tests: drop explanatory comments from the edited hunks (#3943)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* Re-run checks on a fresh head for #3943

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

---------

Co-authored-by: pithead-developer[bot] <4933481+pithead-developer[bot]@users.noreply.github.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
…ions group (#3999)

Bumps the actions group with 1 update: [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv).


Updates `astral-sh/setup-uv` from 10.3.2 to 10.3.3
- [Release notes](https://github.com/astral-sh/setup-uv/releases)
- [Commits](astral-sh/setup-uv@07a047e...68559e9)

---
updated-dependencies:
- dependency-name: astral-sh/setup-uv
  dependency-version: 10.3.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…4000)

* build(deps): Bump caddy from 2.11.7 to 2.11.9 in the compose group

Bumps the compose group with 1 update: caddy.


Updates `caddy` from 2.11.7 to 2.11.9

---
updated-dependencies:
- dependency-name: caddy
  dependency-version: 2.11.9
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: compose
...

Signed-off-by: dependabot[bot] <support@github.com>

* build(deps): carry the caddy 2.11.9 digest into the Quadlet units and compose test

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: pithead-developer[bot] <4933481+pithead-developer[bot]@users.noreply.github.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
Bumps the python group in /dashboard with 4 updates: [pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio), [diff-cover](https://github.com/Bachmann1234/diff-cover), [hypothesis](https://github.com/HypothesisWorks/hypothesis) and [ruff](https://github.com/astral-sh/ruff).


Updates `pytest-asyncio` from 1.4.1 to 1.4.1.post1
- [Release notes](https://github.com/pytest-dev/pytest-asyncio/releases)
- [Commits](pytest-dev/pytest-asyncio@v1.4.1...v1.4.1.post1)

Updates `diff-cover` from 11.0.0 to 11.0.1
- [Release notes](https://github.com/Bachmann1234/diff-cover/releases)
- [Changelog](https://github.com/Bachmann1234/diff_cover/blob/main/CHANGELOG)
- [Commits](Bachmann1234/diff_cover@v11.0.0...v11.0.1)

Updates `hypothesis` from 6.170.14 to 6.170.15
- [Release notes](https://github.com/HypothesisWorks/hypothesis/releases)
- [Commits](HypothesisWorks/hypothesis@v6.170.14...v6.170.15)

Updates `ruff` from 0.17.3 to 0.17.4
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](astral-sh/ruff@0.17.3...0.17.4)

---
updated-dependencies:
- dependency-name: pytest-asyncio
  dependency-version: 1.4.1.post1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: python
- dependency-name: diff-cover
  dependency-version: 11.0.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: python
- dependency-name: hypothesis
  dependency-version: 6.170.15
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: python
- dependency-name: ruff
  dependency-version: 0.17.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: python
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…board/tests/browser (#4003)

Bumps [@playwright/test](https://github.com/microsoft/playwright) from 1.64.1 to 1.65.0.
- [Release notes](https://github.com/microsoft/playwright/releases)
- [Commits](microsoft/playwright@v1.64.1...v1.65.0)

---
updated-dependencies:
- dependency-name: "@playwright/test"
  dependency-version: 1.65.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
… a backup pool (#4073) (#4087)

Co-authored-by: pithead-developer[bot] <4933481+pithead-developer[bot]@users.noreply.github.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
…#4092)

* dashboard: LAN 'Monero node offline' banner that needs no Tor (#4079)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* node alert: scope docs to tor.auto_heal, cover Tor reason end to end (#4079)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

---------

Co-authored-by: pithead-developer[bot] <4933481+pithead-developer[bot]@users.noreply.github.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
…fault (#4078) (#4088)

* Tor render: MaxClientCircuitsPending 64 and monero out-peers default 24 (#4078)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* Follow the out_peers default in the allowlist round trip and OS fallback (#4078)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* Correct the out_peers headroom arithmetic, drop explanatory comments, add changelog (#4078)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

---------

Co-authored-by: pithead-developer[bot] <4933481+pithead-developer[bot]@users.noreply.github.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
…port bundle from anywhere (#4053)

* wip: support-bundle control kind and recovery-bundle host verb

Co-Authored-By: Claude Code <noreply@anthropic.com>

* dashboard: support-bundle submit and download routes with a Backup-tab action

Co-Authored-By: Claude Code <noreply@anthropic.com>

* #4037: record every failed Healthchecks ping in a ring table and show them on the health page

Co-Authored-By: Claude Code <noreply@anthropic.com>

* tests/stack: support-bundle control verb domain — secrets absent, host clamp, cap refusal, journal-only recovery-bundle

Co-Authored-By: Claude Code <noreply@anthropic.com>

* review: drop added comments and docstrings; clear ruff/biome/shfmt

Remove every comment and docstring this head added, keeping only lint
pragmas and the stub shebang. Fix what the cheap gates caught on the
head: S110 noqa on the recorder swallow, unused loop var in the
recording test, biome formatting of the two new/changed .mjs cards, and
shfmt on the new tests/stack domain file.

Fix the domain's request builder: its printf had two format specifiers
for three arguments, so the request JSON came out malformed and every
assertion downstream was unproven.

Co-Authored-By: Claude Code <noreply@anthropic.com>

* docs: support-bundle download, recovery-console recipe, ping-failure record

docs/dashboard.md gains the Backup-tab Support bundle card and the
Monitoring ping line; docs/monitoring.md says what a failed ping records
and that the ping URL is never stored; docs/operations.md documents
recovery-bundle as the journal-only console route.

Co-Authored-By: Claude Code <noreply@anthropic.com>

* tests: pin get_ping_failures in the state-manager test doubles

build_state embeds the ping-failure list directly in the payload, so an
unpinned MagicMock made the payload unserializable in the three state
drift-guard tests; the fixture is regenerated so its shape matches.

Co-Authored-By: Claude Code <noreply@anthropic.com>

* fix support-bundle clamp, result-archive pairing, and its stack domain

- clamp an oversized hours value to the cap instead of falling back to the
  default, matching control_diag_logs, so the host cap means what the tests
  and operations.md say
- evict a support-bundle archive together with its own result JSON under
  byte pressure; the count pass already paired them
- stack domain: a real 95-char base58 fixture, the default-window assertion
  that was testing the string --, a well-formed clamp request, a cap case
  that clears the throttle stamp, a throttle case that keeps it, GNU stat,
  and path extraction that survives the log() prefix
- cover the ping-failure recorder's error paths, a two-hop failure chain,
  and the support-bundle view's malformed-body and submit-failure legs
- operations.md: link the dashboard card and the bug-report flow

Co-Authored-By: Claude Code <noreply@anthropic.com>

* tests: drop an unused import in the broken-store case

Co-Authored-By: Claude Code <noreply@anthropic.com>

* fix hours clamp on GNU bash: printf %d rejects base prefixes

The clamp normalized with printf '%d' "10#...", which zsh accepts and
GNU bash rejects — the runner's bash fell through to the default, so
9999 clamped to 72, exactly the red CI row. Normalize by string: strip
leading zeros, then length-compare against the cap before any numeric
test, so oversized and zero-filled values clamp to 168/72 in every
shell that runs the CLI.

Co-Authored-By: Claude Code <noreply@anthropic.com>

* declare recovery-bundle in the verb ledgers

Every dispatched verb needs a ledger answer: add it to the read-only
verb lock's unclaimed set, to the CLI verb ledger lock's missing set,
and to the strategy doc with the issue that owns the missing live run
(#4054).

Co-Authored-By: Claude Code <noreply@anthropic.com>

* classify Tor SOCKS failures, test support-bundle retention, drop leftover comments

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* keep views.py and the healthchecks tests inside the file budget after the develop merge

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* drop the docstring from the SOCKS test module

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* tests: pin support-bundle units under one fixed verdict label

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* tests: cover support-bundle result-JSON pairing in retention; trim noqa note

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: pithead-developer[bot] <4933481+pithead-developer[bot]@users.noreply.github.com>
Co-authored-by: Claude Code <noreply@anthropic.com>
…e / Total Hashrate (#4071) (#4097)

* dashboard: per-rig mining verdict and this-Pithead-only Workers Alive / Total Hashrate (#4071)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* dashboard: count rigs on this host's names as here and feed the paused badge from the verdict (#4071)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: pithead-developer[bot] <4933481+pithead-developer[bot]@users.noreply.github.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
…ed actions on one, keep the config draft (#4096)

* dashboard: fix #4057, #4058, #4060 — reload a stale tab, say so when an action fails on one, keep the config draft

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* dashboard: close secret leaks in the stored config draft, fail open on blocked storage, retry a guard-blocked stale report

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* dashboard: store only the last valid redacted config draft, retry a guard-blocked reconnect reload

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* ci: clear the gitleaks history finding from the draft-redaction test

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* dashboard: keep the reload out of the poll's error path and treat a missing guard stamp as never reloaded

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: pithead-developer[bot] <4933481+pithead-developer[bot]@users.noreply.github.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
… unnamed proxy clients (#4108)

* dashboard: fix #4072 — label where each rig mines, explain DOWN beside telemetry, list unnamed proxy clients

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* dashboard: explain a DOWN row that only has a decaying proxy rate; sort a null proxy name

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* dashboard: an unnamed proxy row opens no Worker Inspect through its badges either

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

---------

Co-authored-by: pithead-developer[bot] <4933481+pithead-developer[bot]@users.noreply.github.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
…show server text and reload on auth or network failure (#4107)

* dashboard: fix #4059 — rig upgrade, adopt, backup, onion key and diagnostics show server text and reload a stale tab

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* dashboard: diagnostics result read routes 401/403 to the stale-page path (#4059)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* dashboard: rig upgrade result poll shows server text and reloads a stale tab (#4059)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* test(browser): onion refusal journey asserts the server's text, not HTTP 403 (#4059)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

---------

Co-authored-by: pithead-developer[bot] <4933481+pithead-developer[bot]@users.noreply.github.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
…) (#4099)

* dashboard: stop xmrig-proxy when P2Pool or monerod work is invalid (#4046)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* mining guard: onset time, ZMQ grace, config constants, tests (#4046)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* mining guard: container, lag and restart-safe monerod triggers; rig failover leg (#4046)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* run-faults: compact rig failover leg; trim file budgets (#4046)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* selftest: register _rig_pool_leg (#4046)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* mining guard: lag needs two peers and a 15 min stalled tip; bound digits; no pool values in logs (#4046)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* mining guard: keep a pause across unreadable inputs, read P2Pool's monerod-not-synchronized line, name the trigger in the banner (#4046)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* data_gates: import collectors lazily so the appliance gate probe loads without aiohttp (#4046)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* docs: fail-back is checked on the bench by the fault-injection rig leg (#4046)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

---------

Co-authored-by: pithead-developer[bot] <4933481+pithead-developer[bot]@users.noreply.github.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
…heck controls as buttons (#4109)

* dashboard: fix #4061 — style the Service diagnostics log and health-check controls as buttons

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* dashboard: #4061 — drive the diagnostics focus-ring test with real keyboard navigation

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* dashboard: #4061 — assert the Refresh recent log control in the diagnostics style test

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

---------

Co-authored-by: pithead-developer[bot] <4933481+pithead-developer[bot]@users.noreply.github.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
…y that names it (#4038) (#4104)

* appliance: tier4-kvm fault leg for recovery-bundle and a boot advisory that names it (#4038)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* recovery-bundle leg: stop containers, avoid pipefail SIGPIPE; tier-1 tripwire for engine and network tools (#4038)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

---------

Co-authored-by: pithead-developer[bot] <4933481+pithead-developer[bot]@users.noreply.github.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
…2 adopt backport (#4030)

* os: parse --require-complete so a skipped-for-missing row fails a release rig job (#3996)

Co-Authored-By: Claude Code <noreply@anthropic.com>

* os: prove the M11 hashrate floor and backport the M12 rig-adopt KVM leg (#3996, #3994)

Co-Authored-By: Claude Code <noreply@anthropic.com>

* docs: record what the rig battery automates now (M11 floor, M12 adopt) (#3996, #3994)

rig-battery.md: M11 names the automated half and the stays-manual list
(physical boot, MSR writes on real hardware, the baseline-band reading,
pithead.local), recording the hugepages/MSR investigation on the virtual
CPU; M12 marks the adopt leg automated with its remaining manual clicks.
tests/os/README.md documents --require-complete and the new rig rows;
testing-strategy and KNOWN-ISSUES stop claiming the adopt push needs a
borrowed rig.

Co-Authored-By: Claude Code <noreply@anthropic.com>

* os: keep --help printing the line develop's range ended on (#3996)

Co-Authored-By: Claude Code <noreply@anthropic.com>

* os: take the review's comment ruling — drop added comment lines (#3996)

The --require-complete explanation lives in tests/os/README.md; the
script header keeps only the usage synopsis line it already carried,
with the flag name inserted. The hashrate-floor helper loses its prose
header; the row's own ok/bad strings name it. Help range re-anchored to
the four removed header lines, and --help output is develop's byte for
byte except the usage line's new flag token.

Co-Authored-By: Claude Code <noreply@anthropic.com>

* os: the usage line stays develop's byte-for-byte — no comment line in this diff (#3996)

The second review kept tests/os/run.sh:6 on the list, so the diff stops
touching it: the --require-complete token is out of the script header,
the flag is documented in tests/os/README.md, and the harness still
parses it (bench-ci passes it programmatically via options.require_complete).
--help output is now develop's byte-for-byte.

Co-Authored-By: Claude Code <noreply@anthropic.com>

* docs: make the release rig split carry the require_complete gate (#3996)

The documented release rig/rigmedia/media split submitted no require_complete
while this PR's docs said the release job passes it, so a release rig job could
still conclude success with the accepted-share leg skipped for want of the
reserved Monero node. Wire the flag into the split — bench-ci appends
--require-complete to each of its three phases — and state that until
bench-ci#2480 puts node on the harness host the split fails closed on the #1867
card-render row.

Co-Authored-By: Claude Code <noreply@anthropic.com>

---------

Co-authored-by: pithead-developer[bot] <4933481+pithead-developer[bot]@users.noreply.github.com>
Co-authored-by: Claude Code <noreply@anthropic.com>
…bundle default (#4055)

* test(os): pin the persistent journal and measure its window over the bundle default

Co-Authored-By: Claude Code <noreply@anthropic.com>

* test(os): measure the journal window from content bytes, not allocated blocks

Co-Authored-By: Claude Code <noreply@anthropic.com>

* test(os): measure the journal window's settled idle rate beside the reboot burst

Co-Authored-By: Claude Code <noreply@anthropic.com>

* test(os): measure the journal window where the stack actually runs

The provision reboot leg's settled stack is the load the criterion names; the boot
phase keeps the config pin and its burst upper bound. One shared probe string
samples the journal content bytes on every leg.

Co-Authored-By: Claude Code <noreply@anthropic.com>

---------

Co-authored-by: pithead-developer <4933481+pithead-developer[bot]@users.noreply.github.com>
Co-authored-by: Claude Code <noreply@anthropic.com>
* dashboard: sign-in page with Remember me, session gate through Caddy forward_auth (#4089)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* login: case-insensitive basic matcher, explicit client address, safe next redirect

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* tests: move login-gate render assertions to their own fragment; testing-strategy row

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* lint: format mini-stack driver, trim trailing blank line

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* auth: annotate trusted_proxy for the collapsed-return gate

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* Remove explanatory comments from edited hunks (#4089)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* login: always redirect to /login, drop the next parameter (CodeQL untrusted redirect, #4089)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* login: send basic-auth page loads to the sign-in page, cookie wins; test the verify cap; drop comments in edited hunks (#4089)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: pithead-developer[bot] <4933481+pithead-developer[bot]@users.noreply.github.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
…killing builds (#3992)

* fix(os,build): bound image-fetch retries so one github.com 5xx stops killing builds

The appliance rootfs fetched the rigforge archive with a single-attempt
curl, so one transient 5xx failed the whole image build and with it the
tier4-kvm job. Route the layer through os/rootfs/fetch-archive.sh, the
fetch-go-source bounded three-attempt contract (180s deadline, delays
5s/10s, final failure names the URL and the final status), and pin the
p2pool and xmrig-proxy release fetches to explicit wget
--tries/--timeout/--waitretry instead of the implicit 20 retries.

tests/os/selftest-archive-fetch.sh drives both Dockerfiles' fetch
commands over a local HTTP server: healthy, transient 504 recovered,
persistent 504 bounded to three attempts, attempt deadline enforced.

Fixes #3953.

Co-Authored-By: Claude Code <noreply@anthropic.com>

* fix(os): keep the fetch-archive helper out of the shipped rootfs; pin its stage

The helper is build-only, like fetch-go-source in the throwaway gobuild
stage, so remove it at the end of the rigforge layer. The selftest now
asserts COPY/RUN membership in the image's final stage instead of plain
character order.

Co-Authored-By: Claude Code <noreply@anthropic.com>

* test(os): scope the helper-removal assertion to the fetching RUN

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* ci: re-run checks against the develop base

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

---------

Co-authored-by: pithead-developer[bot] <4933481+pithead-developer[bot]@users.noreply.github.com>
Co-authored-by: Claude Code <noreply@anthropic.com>
…f, and says so at the cap (#4077) (#4098)

* P2Pool with zero peers for 15 minutes is restarted with backoff, a daily cap and an audit row (#4077)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* tests(os): source the p2pool-heal phase in the module selftest (#4077)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* tests: keep run-faults.sh within its budget; guest p2pool-heal reports diagnostics (#4077)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* tests(os): p2pool-heal proves the control-path restart when the guest P2Pool reports no stats (#4077)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* tests(os): name what the p2pool-heal row proves (#4077)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* tests(os): p2pool-heal starts a gate-stopped guest P2Pool before the control-path proof (#4077)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* tests(os): leave the run.sh usage comment as it was (#4077)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

---------

Co-authored-by: pithead-developer[bot] <4933481+pithead-developer[bot]@users.noreply.github.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
…er the mutation lock (#4028)

* fix(os): restart Caddy from the address watch only for an address change, under the lock

The watch recorded what Caddy served only for itself, so an apply, up or
control commit that re-rendered the certificate and Caddyfile and restarted
Caddy left the record stale: the next tick restarted the current Caddy again,
outside the mutation lock, and blamed the addresses. The watch now treats a
files-only change as owned by the operation that made it — record and name it,
do not restart — and does render, compare and restart inside one non-blocking
mutation lock, deferring both to the next tick when the lock is busy.

Co-Authored-By: Claude Code <noreply@anthropic.com>

* fix(os): retry the address-watch restart until it lands, keeping the address set unrecorded

A failed Caddy restart left the address set recorded, so the next quiet tick
adopted the files instead of retrying the restart. Record the set only once
the render and (when files moved) the restart have both succeeded.

Co-Authored-By: Claude Code <noreply@anthropic.com>

* fix(os): restart Caddy from the address watch only for files its own render moved

The served-record gate still restarted a current Caddy when an apply landed in
the same tick gap as an address change, dropped a restart the watch itself owed
when the address set flapped back before the retry, and persisted a baseline it
read outside the mutation lock on a fresh box. Gate on the render's own effect,
keep a pending marker for owed restarts, and touch no state before the lock.

Co-Authored-By: Claude Code <noreply@anthropic.com>

* test(integration): stub the forced address-watch tick in the recovery selftest

The reset-restore selftest's remote-command stub records any command it
does not know and the drive turns that into rc 127, so the tick the
stability leg now fires made every leg that reaches it report a web
failure. Teach the stub the command it already models on the real box.

Co-Authored-By: Claude Code <noreply@anthropic.com>

* test(stack): drop the comments the review flagged on the address-watch suite

Project rule: no comments in code. Explanations live in
docs/dev/testing-strategy.md.

Co-Authored-By: Claude Code <noreply@anthropic.com>

* os, test: log a refused lock-file open and share the record-and-log block

The watch went quiet forever when the lock file could not be opened; one
line names the fault. The two record-and-log blocks become one
function. And the explanatory comment the review flagged, which this
file carried before the edit landed in its hunk, goes.

Co-Authored-By: Claude Code <noreply@anthropic.com>

---------

Co-authored-by: pithead-developer[bot] <4933481+pithead-developer[bot]@users.noreply.github.com>
Co-authored-by: Claude Code <noreply@anthropic.com>
…eated mid-reading (#4111)

* fix(os): keep the proxy-recreation receipt when the proxy is recreated mid-reading

A pithead-miner-recovery run whose worker-list reading straddled the proxy
recreation adopted the new container identity — a failed reading printed the
same "reset" as a connected one, and a connected reading of the old container
sat beside an inspect of the new — so the recorded identity moved without ever
being compared and the recreation fastpath could never fire (#4081). The run
now brackets its reading with the container identity and moves the recorded
identity only when a connected reading saw no change across it, so the next
reading still sees the recreation and restarts xmrig at once. The rig share
leg's receipt line now records which path restarted xmrig
(fastpath_restart/timer_restart).

Closes #4081

Co-Authored-By: Claude Code <noreply@anthropic.com>

* tests: carry the recovery journal and restart-path verdict on every rig leg failure

Co-Authored-By: Claude Code <noreply@anthropic.com>

* tests: follow the split recovery and xmrig journal windows in the diagnostics contract

Co-Authored-By: Claude Code <noreply@anthropic.com>

---------

Co-authored-by: pithead-developer[bot] <4933481+pithead-developer[bot]@users.noreply.github.com>
Co-authored-by: Claude Code <noreply@anthropic.com>
#4062) (#4110)

* dashboard: per-service Restart in Service diagnostics through a new svc-restart control verb (#4062)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* tests: drop header comment from the restart frontend test (#4062)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* integration: mini-stack round trip for the svc-restart verb (#4062)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* integration: format the mini-stack call (#4062)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* tests: svc-restart rows use static labels (#4062)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* integration: show the response and runner tail when the svc-restart round trip fails (#4062)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* integration: probe the route when the svc-restart round trip fails (#4062)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* integration: restore the spool permissions before the svc-restart round trip (#4062)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* tests: assert the refusal text without a regex escape (#4062)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* tests: restore the closing of the svc-restart browser journey after the merge (#4062)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* tests: the restart failure row uses a refused submission after the merge (#4062)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* svc-restart: keep hyphens in the audited service, drop added comments, add a live tier-4 phase (#4062)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* selftest: the lifecycle gate drive sets RUN_SVC_RESTART (#4062)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* selftest: register the svc-restart module in the run.sh module order (#4062)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* svc-restart: remove explanatory comments from the hunks this PR edits (#4062)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: pithead-developer[bot] <4933481+pithead-developer[bot]@users.noreply.github.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
…ff the host (#3299) (#4069)

Co-authored-by: pithead-developer[bot] <4933481+pithead-developer[bot]@users.noreply.github.com>
Co-authored-by: Claude Code <noreply@anthropic.com>
@pithead-developer pithead-developer Bot added the stage/needs-work returned by the reviewer, red CI, or conflicts with the base label Nov 27, 2026
pithead-developer Bot and others added 3 commits November 27, 2026 13:06
…#4249)

Co-authored-by: pithead-developer[bot] <328836012+pithead-developer[bot]@users.noreply.github.com>
Co-authored-by: pithead-developer[bot] <4933481+pithead-developer[bot]@users.noreply.github.com>
Co-authored-by: Claude Code <noreply@anthropic.com>
(cherry picked from commit 5182fdb)

Co-authored-by: pithead-developer[bot] <4933481+pithead-developer[bot]@users.noreply.github.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pithead-developer pithead-developer Bot added stage/needs-review green or pending CI, no reviewer verdict on the head yet stage/needs-work returned by the reviewer, red CI, or conflicts with the base and removed stage/needs-work returned by the reviewer, red CI, or conflicts with the base stage/needs-review green or pending CI, no reviewer verdict on the head yet labels Nov 27, 2026
…ft stale

render_quadlet_units refuses missing build provenance before it creates
the output directory. The merge placed 2.1.0's umask, mkdir and chmod
ahead of develop's provenance check (#3855), so a refused render left an
empty unit directory behind.

test_quadlet_provenance.py came from develop, where every profile
directory holds its full unit set. It now reads os/quadlet/common/ for
the units a profile directory does not store, as 2.1.0's render-parity
test does.

The mini-stack auth fixture answers /api/auth/check with 401, as the
dashboard does for a request without a session. 2.1.0's auth-wire stage
was written for plain basic auth. The merged Caddyfile is develop's
session login, which asks that endpoint, and the echo fixture approved
every request.

36-quadlet-units.sh is now under the 400-line target, so its file-budget
row is removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pithead-developer pithead-developer Bot added stage/needs-review green or pending CI, no reviewer verdict on the head yet and removed stage/needs-work returned by the reviewer, red CI, or conflicts with the base labels Nov 28, 2026
image-upgrade-browser-host.py pins the Playwright image at v1.64.1-noble,
the version 2.1.0's package-lock and browser workflow use. The merge took
develop's host file, pinned at v1.65.1, while keeping 2.1.0's lock at
1.64.1, and develop's drift check (#4183) refuses the mismatch. The
digest is the one 2.1.0's browser workflow already pins for that tag.

selftest-release-appliance.sh stubs the gated-commit check develop's
publish now runs first (#4403). The selftest stubs git to record writes,
so the check read an empty HEAD and refused before the release-draft
step the selftest exercises.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pithead-developer pithead-developer Bot added stage/in-review a reviewer session is on it now and removed stage/needs-review green or pending CI, no reviewer verdict on the head yet labels Nov 28, 2026
@pithead-reviewer

Copy link
Copy Markdown
Contributor

FAIL

What I investigated

Read the 5,513-line merge-resolution diff in full, opening the head files to check each resolution in the dashboard Python and JS, CLI slices, Quadlet units, release script and tests. CI is green (61 pass, 2 skipped) and the topology scan is clean. One resolution loses 2.1.0 behaviour: the Tor diagnostics snapshot (#4262) now reaches only off-appliance support bundles, and the 2.1.0 test that checked for it was deleted.

  • gh pr checks 4603 --json bucket -> {pass:61, skipping:2}, no failures

  • detect-topology.py over PR body + issue/review comments -> 'clean', exit 0 (no comments exist)

  • grep -rn 'tor-diag|tor_diag' lib/pithead/ os/ -> the only bundle writer is lib/pithead/07-support-bundle.sh:122, inside bundle_support_diy_collect (starts at :113)

  • grep -n 'is_appliance|bundle_support_diy_collect' lib/pithead/07a-support-bundle-collect.sh -> 222: if ! is_appliance; then / 223: bundle_support_diy_collect ...

  • git show 190234b:lib/pithead/07-support-bundle.sh | grep -n tor_diagnostics_snapshot -> 117, unconditional in stack_support_bundle (no is_appliance branch)

  • git show 190234b:tests/stack/test-unit-helpers.sh | grep -n 'TOR:' -> 274/299 'the bundle carries the Tor snapshot' assertion; the merge removed it and grep -rn tor-diagnostics.json tests/ dashboard/tests finds no replacement

  • gh issue view 4262 -> written for appliances whose users have no shell; acceptance criterion: 'The support bundle includes the same data.'

  • diff of 190234b fake_stratum.py vs head fake_donation_stratum.py -> identical; the test file differs only in the import name and path

  • diff develop local/caddy.container vs head os/quadlet/common/caddy.container -> identical (caddy 2.11.9)

  • git log 616cec5 (e2e writable-keys leg writes DONATION=1 to the borrowed real rig, sending its dev fee to a non-owner wallet #4184) body -> develop intentionally replaced the DONATION probe with watchdog_interval_min; the head keeps develop's version

  • grep -c on update-dashboard block and compose donation assertion -> 1 each (duplicates removed, one copy kept)

  • CVL_COVERED set comparison -> head contains base and develop verbs plus support-bundle and render-quadlet

  • sed tor_heal.py:280-360 at head -> step NEWNYM_ATTEMPTS+1 always submits tor-recover; tests/os/tor-heal-guest.sh keeps 2.1.0's no-recover assertions (disclosed tier-4 caveat)

  • tests/os/tor-heal-guest.sh: The merge keeps 2.1.0's DisableNetwork guest leg, which asserts no tor-recover and an unchanged backup count. The merged healer submits tor-recover at its third step every time (tor_heal.py:308-312), so the leg will probably fail on real tier 4, and develop's state-poison KVM proof (os: fix #4122, #4123 — tor-heal proof survives Tor 0.4.9 state rewrites; heal phases skip reserved-node legs #4124) is dropped. The PR body discloses this and requires tier 4 before the 2.1.0 release gate. A tracking issue would keep it from being missed.

Reviewed head: d5e2af9a1d7505c0704cc7083eb3474b594a5fab.

What are the gaps

  • lib/pithead/07-support-bundle.sh:122: The support-bundle conflict resolution put 2.1.0's tor_diagnostics_snapshot >"$tmp/bundle/tor-diagnostics.json" inside bundle_support_diy_collect. That function runs only under if ! is_appliance (lib/pithead/07a-support-bundle-collect.sh:222-223), and no appliance-path code writes the file. On 2.1.0 the snapshot was written on every machine (base 07-support-bundle.sh:117). Show Tor circuit, consensus and guard diagnostics in the dashboard and support bundle #4262 added it for appliance users, who have no shell, with the acceptance criterion 'The support bundle includes the same data.' The PR body says develop's zip collector keeps the snapshot 'inside it', which now holds only off the appliance. Fix: write the snapshot in the shared part of bundle_support_collect and add back a test with is_appliance true.
  • tests/stack/test-unit-helpers.sh: The merge deleted 2.1.0's 'the bundle carries the Tor snapshot, unreachable without a Tor container' assertion (base test-unit-helpers.sh:274/299) together with its tar-based stub and added no zip-based replacement. grep -rn tor-diagnostics.json tests/ dashboard/tests finds no remaining check, which is why the appliance regression above passes CI. Add back a zip-based check covering both the appliance and DIY paths.

@pithead-developer pithead-developer Bot added stage/needs-work returned by the reviewer, red CI, or conflicts with the base and removed stage/in-review a reviewer session is on it now labels Nov 28, 2026
The forward merge put 2.1.0's tor_diagnostics_snapshot (#4262) inside
bundle_support_diy_collect, which runs only off the appliance, so
appliance bundles lost tor-diagnostics.json. #4262 added the snapshot for
appliance users, who have no shell. It is now written in the shared part
of bundle_support_collect, as 2.1.0 wrote it on every machine.

The merge also dropped 2.1.0's check that the bundle carries the
snapshot. test-support-bundle-diy.sh now checks it on the DIY path and,
with PITHEAD_APPLIANCE=1, on the appliance path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pithead-developer pithead-developer Bot added stage/needs-review green or pending CI, no reviewer verdict on the head yet stage/in-review a reviewer session is on it now and removed stage/needs-work returned by the reviewer, red CI, or conflicts with the base stage/needs-review green or pending CI, no reviewer verdict on the head yet labels Dec 1, 2026
@pithead-reviewer

Copy link
Copy Markdown
Contributor

FAIL

What I investigated

I read the whole 5,553-line merge delta (137 files) and re-derived the risky resolutions at head 0e2bf0a. One is wrong: the merged mining guard stops xmrig-proxy on a stuck or re-syncing primary Monero node even when a 2.1.0 backup node is usable. The other resolutions I checked hold, CI is green and the topology scan of the PR text is clean.

  • Read the runner's diff in full except two doc-only spans I skimmed (docs/dev hunks, part of tests/os/README.md); the base side carries 186 conflict blocks, all resolved at head.

  • gh pr view 4603 --json statusCheckRollup: every check on head 0e2bf0a is SUCCESS, apart from the two CVE-sweep jobs, which are SKIPPED.

  • python3 -I detect-topology.py over the PR body, comments and reviews (16,793 bytes): clean, rc 0.

  • Scratch pytest outside the checkout, run with uv run --locked --extra test python -m pytest: backup node configured with usable() True, primary {reachable: True, synchronized: False, stale: True}. _worker_monero_down returned False, but after _observe_monero, _update_mining_guard and _apply_worker_rejection the proxy stop count was 1. Log: Mining work is not valid (Monero node unhealthy: node is out of sync; also holding inside its grace: monero_unsynced) — stopping xmrig-proxy.

  • git show 190234b0b:dashboard/mining_dashboard/service/data_gates.py | grep 'required_down = ': the 2.1.0 base has required_down = monero_down or (TARI_REQUIRED and tari_down) and no mining_guard, so the same inputs kept the proxy running there.

  • grep -n backup_nodes docs/configuration.md: line 335 says backups are used "when the primary endpoint is unavailable, stuck, or still syncing". MoneroBackups.usable() in monero_backups.py returns True for an unsynced primary with a synced backup.

  • diff <(git show ae4be28ea:.../tor_heal.py) .../tor_heal.py: head is develop's four-step ladder plus 2.1.0's lifecycle receipts only. Ops lead rejected as a defect: asking for tor-recover on the third attempt is develop's reviewed ladder and matches docs/operations.md.

  • Read lib/pithead/49-control-request-loop.sh at head: the combined gate allows the support bundle with control off, allows only tor-heal actions when auto-heal is on, and rejects the rest. The request key allowlist (19 keys) is missing no key from either parent (comm -23 printed nothing).

  • Read lib/pithead/35-caddyfile-and-auth-helpers.sh at head: the log route sits after the session gate, a client-supplied X-Auth-User is stripped or overwritten in both auth modes, and both onion sites answer 404 for /api/logs/*.

  • Read config_get in lib/pithead/19a-config-defaults.sh: it applies profile_default, so the config_get .xvb.tor check in 39b-describe-change-exposure.sh follows the profile.

  • node -e on machines-model.mjs with {status:'online', h60:0, telemetry_h60:5000, mining:{state:'on_backup'}} gives ["Mining",true,false,null,"5.00 kH/s"]: correctness lead reproduced. git grep on 190234b shows h60 was the rig's own rate there, so the base Sovereign view read the same; filed as a note.

  • Security lead rejected: the 'ALWAYS routes over Tor' docstring in xvb_client.py is old text outside the diff (git blame ce01d20), and the kept XVB_HTTP_PROXY import is 2.1.0's reviewed routing, matching docs/privacy.md.

  • Hidden edits checked and sound: sample 1 in selftest-tor-probe-fault.sh matches the kept $((i + 1)) in run-tor-probe-fault.sh; run_subnet_scenario is still called at tests/integration/run.sh:325; os/quadlet/common/caddy.container and test_fake_donation_stratum.py exist; the update-channel KVM block and the donation compose assertion each appear once.

  • gh issue view 4663 and 4594: both OPEN and cover the stale Tor heal KVM leg and the remaining Sovereign rate work.

  • git status --short | wc -l after the review: 0. Not run: make test, tier 4, the live integration suite.

  • tests/os/tor-heal-guest.sh:233: The No-login Tor heal KVM leg still asserts 2.1.0's old ladder (no tor-recover, backup count unchanged) while the merged healer submits tor-recover on its third attempt. The PR body discloses this and Tor heal KVM leg on develop-v2.1.0 still expects the old healer ladder, and develop's poisoned-state proof is gone #4663 tracks it; the leg needs a tier-4 run before the 2.1.0 release gate.

  • dashboard/mining_dashboard/web/static/sovereign/machines-model.mjs:9: rigRate never reads worker.mining.state, so a rig hashing at its backup pool reads "Mining" and counts in "N of M mining", while the backend totals exclude it. The 2.1.0 base read the same value, so 260f859 did not introduce this; fold it into Sovereign machines list: show 1m / 10m (/ 24h) rig rates from the best source, never a false zero #4594.

Reviewed head: 0e2bf0aef4cf4ecfb6b453a621596fb4e320da5f.

What are the gaps

  • dashboard/mining_dashboard/service/data_service.py:320: The resolution feeds develop's mining guard from the primary Monero node only, and data_gates.py:134 rejects workers on mining_guard.active regardless of 2.1.0's backup nodes (Add ordered Monero backup nodes with safe P2Pool failover #3730). With a backup node usable (_worker_monero_down False), a primary that is reachable but stuck or still syncing stops xmrig-proxy: at once for a red chain verdict, after the 600 s grace for synchronized: false. On the 2.1.0 base the same inputs kept the proxy running, and docs/configuration.md:335 promises backups for a primary that is "unavailable, stuck, or still syncing". Only the unreachable case still works. The resolution made the readmit checks backup-aware but not the stop. Reproduce: a DataService with monero_backups.nodes set and usable() True, primary {reachable: True, synchronized: False, stale: True, height: 100, peers_out: 4}, then _observe_monero, _update_mining_guard, _apply_worker_rejection(False, False); docker_control.stop is awaited once with the log line Mining work is not valid (Monero node unhealthy: node is out of sync; ...) — stopping xmrig-proxy. Needs a backup-aware guard input and a test for a stuck primary with a usable backup.

@pithead-developer pithead-developer Bot added stage/needs-work returned by the reviewer, red CI, or conflicts with the base and removed stage/in-review a reviewer session is on it now labels Dec 1, 2026
The forward merge fed develop's mining guard (#4138, #4387) from the
primary Monero node only. With 2.1.0's backup nodes (#3730) configured,
a primary that was reachable but stuck or still syncing tripped the
guard's Monero triggers and stopped xmrig-proxy, even while a backup was
synchronized and serving ZMQ. On 2.1.0 the same inputs kept the proxy
running, and docs/configuration.md promises backups for a primary that
is "unavailable, stuck, or still syncing".

MoneroBackups.serving() now reports whether the primary or a backup is
usable. While a backup serves, the guard's three Monero-node triggers
count as clear. A healthy primary keeps them in force, and with no
usable node they apply as before. P2Pool's own signals are unchanged.

The regression test stops the proxy once on the previous head and not
at all with this change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stage/needs-work returned by the reviewer, red CI, or conflicts with the base

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants