Repository navigation
Description
What's the problem
No battery calls the netwatch classifier (tests/netwatch/netwatch-classify.sh), so the passive egress story proves nothing (pithead#4145). There is also no check whether a stray htpdate unit is enabled in the built image.
What it impacts
#4155 Run 0 has no unexpected-flow source without this; #4154 would be enforced blind. Silent or dead captures currently cannot be told apart from clean runs.
How I found it
Split from pithead#4145 (acceptance criteria 2 and 4). Code read: rg finds no netwatch caller in the batteries; htpdate -s www.debian.org is called by os/overlay/pithead-firstboot.service and pithead-setup-again.service; tests/netwatch/netwatch.sh already has start/stop/verify and the KVM virbr0 vantage design.
How important is it
High: it turns the existing recorder+classifier into evidence, and a dead capture that reads clean is the false green this kills.
Acceptance criteria
- The KVM battery captures and judges netwatch traffic across five windows — first boot, reboot, update, one hour of mining, set up again — on both roles (Pithead appliance and RigForge rig), as a non-required leg; the classifier verdict lands in job evidence.
- A silent or dead capture (zero flows recorded, or capture not running) is a failure, not a pass.
- On the built image the leg runs
systemctl is-enabled htpdateand the leg output records the result; the result is also written as a comment on the parent issue. - New leg/phase names are registered where the harness lists and runs them (run.sh header phase list and the function-list pinner), and the leg is non-required so its red does not gate the phase.
Possible solutions
- Reuse the netwatch selftest harness and add only the wiring, as the parent issue suggests: start/stop around each window, verify at leg end against the config.
- Keep per-container attribution claims out: the KVM vantage proves the guest emitted the flow, not which container (documented in netwatch.sh).
Parent: #4145
Worker brief: Test tier: tier4-kvm, one phase at a time. Read tests/netwatch/netwatch.sh (vantage rules and the start/stop/verify interface), netwatch-classify.sh, tests/os/run.sh header (the accepted phase list), setup-again-leg.sh, and the rig-role legs; register any new run.sh function where selftest-run-modules.sh pins the function list. Wire netwatch start/stop/verify into the five windows (first boot, reboot, update, one hour mining, set up again) on both roles as a non-required leg; verify fails on an empty or dead capture. Add systemctl is-enabled htpdate to the built-image assertion leg and paste its result onto the parent issue. The one-hour mining window needs a generous bench timeout (previous long legs needed --timeout-minutes 240). Submit via bin/bench-submit --base develop; quote evidence unedited; tiers 1-3 green first. No comments in code.
Activity
os: scope the netwatch vantage to the guest and the virbr0 subnet bef…
os: keep phase_provision as the pinned provision entry; the appliance…
os: drop the explanatory header from netwatch-window.sh; repo-map car…
pithead-developer commentedon Nov 20, 2026
Blocked on #4118. The red Shell tests (standalone suites + tooling) check is now green on the new head 3787012, which merges develop-v2.0.5 into the branch. Its failure at 7ca85de was the known flake #4177 (selftest-e2e-env, a file this PR does not touch); the evidence is on #4177 and the PR. The tier-4 proof is still incomplete. On the earlier head a6f9a93, boot (4284) and update (4285) passed: every red row there is a non-required netwatch verdict, and the htpdate row reads enabled, which I posted to #4145. Provision (4286) and rig (4287) were refused before running, because the bench refuses node phases on any commit without pithead#4120, the fix for #4118. Those two phases carry the one-hour mining and rig-role set-up-again windows. Once #4120 is merged and reaches develop-v2.0.5, the next session merges the base into this branch and submits all four phases on that head, with provision and rig at --timeout-minutes 240. The PR body holds all four evidence blocks unedited, and the block is explained on the PR.
The runner resumes this issue when that one closes.
pithead-developer commentedon Nov 20, 2026
Questions before work continues (answer here, then remove the
questionlabel):#4120 (e40f58a) merged to
develop, not todevelop-v2.0.5:develop-v2.0.5is 6 commits behinddevelop. The bench refuses the provision and rig KVM phases (the two one-hour mining windows) on a commit without #4120, and its message says to mergedevelop. Mergingdevelopinto this PR, which targetsdevelop-v2.0.5, would carry 5 unrelated develop-only commits into the release line and conflicts in dashboard/tests/service/test_data_service_worker_rejection.py. Which route do you want? (a) Wait until #4120 reachesdevelop-v2.0.5(a forward or cherry-pick), then I merge that base and submit boot, update, provision and rig. This is my default, because it keeps the release line clean. (b) I cherry-pick only e40f58a onto this branch. The conflicts should be small, but the bench may check ancestry rather than content. (c) I mergedevelopwhole and resolve the test conflict by keeping both sides. This is the fastest route, and it is risky for the release line.2 remaining items
pithead-developer commentedon Nov 20, 2026
Blocked on #4303. Following route (a), I filed #4303: backport PR #4120 into develop-v2.0.5 as a cherry-pick of e40f58a with no other change. It carries the six sections, the v2.0.5 milestone and the appliance label, and cites the refusals of jobs 4286 and 4287 on #4270's head a6f9a93. #4196 is natively blocked by it. I commented the blocker on #4270. The benchmark proof for #4196 cannot run until #4303 lands, because the bench refuses the provision and rig phases on a commit without #4120's harness change. Finished so far: the netwatch wiring, its selftest (19 of 19), the comment cleanup, the shell flake resolved (#4177), and boot and update passing with their netwatch verdict rows on the earlier head. When #4303 lands, merge the base into this branch and submit fresh boot, update, provision and rig jobs on the new head. Run provision and rig with --timeout-minutes 240. Then return waiting with those job ids. The PR body should note that the proof waited for the backport instead of merging develop in.
The runner resumes this issue when that one closes.
os: drop the usage comments from netwatch-window.sh #4196
os: drop the trailing usage comments from netwatch-window.sh #4196
pithead-developer commentedon Nov 22, 2026
Blocked on #4346. The provision proof for #4196 is blocked on #4346. Provision failed on both attempts at head 14636d7: job 610 failed the required row
native Quadlet Monero RPC proof did not complete (#2921), and job 399 failed that row plus the reserved-node preflight rejection and the XvB routing row. All of these ran before the netwatch recorder started (01:40, against failures at 23:57), so they are not from this PR's wiring, but I could not prove that against the base. No provision job on the base commit exists yet. bench-submit refuses a third identical resubmit and says to stop and report. I filed #4346 with that evidence and commented on #4270. Boot (609) and rig (790) passed their own required rows, with only non-required netwatch verdicts red. Update job 4406 (240 minutes) is queued. The action that clears #4346 is a provision job on the base without the wiring, or the cause being identified, which is for the pithead owners. Then merge the base and submit one fresh provision job. Printbench-ci evidencefor 609, 790, update and provision, and paste them unedited into the PR body.The runner resumes this issue when that one closes.
os: tear the netwatch recorder down when a phase ends mid-window; cla…
pithead-developer commentedon Nov 23, 2026
Merged in #4270.
netwatch wired into the KVM battery: five windows, both roles, honest…