Repository navigation
Description
What's the problem
A cloned stick — same name, token and rig id — is served twice and nothing notices. #4014 requires a duplicate-identity fault: the same rig id answered by two distinct sources must block control and update for that record until the operator re-keys one copy. Today the coordinator's control verbs (lib/pithead/46-control-worker-ops.sh) dial whatever host the name match found, checking nothing about identity, and the dashboard has no fault vocabulary for it.
What it impacts
Coordinator operators of cloned sticks: right now two machines sharing one copied stick are both controllable under one token, silently.
How I found it
Split from #4014 (owner decisions of 2026-11-10, item 8), after the feed slice (rigforge#694) and the adoption slice.
How important is it
Medium for 2.1.0: #4016's Update-all skip and Remove-rig story both name this fault.
Acceptance criteria
- The same rig id answered by two distinct sources — two IPs with differing live state, or one id seen from two IPs within a defined, code-named window tied to the feed-poll cadence — raises a duplicate-identity fault on that worker record; detection is stateful and decays when a source stops answering within the window.
- While the fault is set the control verbs refuse before dialing, naming the duplicate identity and the operator's cure (re-key one copy); the fault state is exposed and testable so Coordinator: Upgrade rig and Remove rig drive the RigForge API and revoke a removed rig #4016's Update all can skip on it (that verb is NOT built here).
- The same rig id with differing display hints from one source is a moved-hardware info event on the existing event log, not a fault, and blocks nothing.
- Re-keying (a token change through adopt/re-adopt) clears the fault.
- Tests use two simulated sources: assert the fault raises, control verbs refuse while set, it decays after one source goes quiet, re-key clears it; and a same-id-different-hints single source produces the info event with no fault.
- Docs state what a clone, a moved stick and a dead stick look like and what to do, including that a clone shares the token so Remove-rig rotation affects only the copy that answers (Remove rig itself is Coordinator: Upgrade rig and Remove rig drive the RigForge API and revoke a removed rig #4016).
Possible solutions
- Track per poll the tuple of rig id, source address and hint fingerprint in the feed loop; raise and clear the fault on the worker record beside the existing control state; add the pre-check refusal to the control-verb slice.
Parent: #1837
Worker brief: Test tier: tiers 1-3 — fixture-driven dashboard tests driving two simulated sources, plus a verb-level test for the control refusal. Scope: the feed loop's identity tracking, the worker-record fault state and event log, the control-verb pre-check in lib/pithead/46-control-worker-ops.sh, and docs. Depends on the adoption slice (records must carry rig ids); no stick-side minting, no config-schema change, no Update-all verb (#4016). Spec is #4014 acceptance criteria 5 and 6 plus its docs criterion — read #4014 first. No comments in code.
Activity
pithead-developer commentedon Nov 22, 2026
Blocked on #4181. Blocked on pithead#4181, the adoption slice. The issue's worker brief says this work depends on it, and it has not landed. #4181 is open with no PR, and
dashboard/has norig_idhandling, so worker records carry no rig id. The duplicate-identity fault is keyed on a record's rig id. The rest is ready: rigforge#694 is merged, the feed contract has arig_idfield, andlib/pithead/46-control-worker-ops.shis where the control pre-check goes. Nothing is edited, no branch is pushed and no PR is open. Once #4181 closes, resume to build the feed-loop identity tracking with a code-named window, the fault on the worker record, the moved-hardware info event, the control-verb refusal, re-key clearing, tests with two simulated sources, and the docs.The runner resumes this issue when that one closes.
pithead-developer commentedon Nov 28, 2026
Waiting on a transient bench_outage condition, not on another issue. bench-submit for tier4-e2e (mode=targeted, phases=rigforge,rigforge-control) on 865c7b7 was refused with Connection refused on all 5 attempts, and a replay with the same key also failed, so no job was created; a bench-ci read was refused the same way. The runner re-checks it (first at 2026-11-28T15:04Z, at most 5 times).
Identity fault counts stratum connections, the source a merged proxy …
Identity fault matches proxy connections to feed ids by worker name a…
Identity fault keeps suffixed logins separate and documents the share…
pithead-developer commentedon Dec 4, 2026
Blocked on #4677. PR #4646 is blocked on #4677. At head 00c7827 the required check 'Build image (tor)' fails, and the cause is the base: develop's build/tor/Dockerfile pins tor=0.4.9.17-r0, which Alpine no longer carries (
unable to select packages … breaks: world[tor=0.4.9.17-r0]). origin/develop has the same pin and this PR touches nothing under build/tor. Round 2's findings (F4646-1, -6, -7, -8, -9) are fixed on this head. The other 41 checks pass; 2 were still in progress, 1 was cancelled (the macOS soak self-test) and 2 are skipped. To clear it, the tor bump (draft PR #4683, or the bot branch #4677 names) must merge to develop and close #4677; then merge develop into this branch and rerun the checks.The runner resumes this issue when that one closes.
pithead-developer commentedon Dec 4, 2026
Correction: develop's tor build failure is fixed by PR #4683 (tor 0.4.9.18-r0), not by #4677, which tracks the pin-bump workflow token. This now waits on #4683. GitHub's blocked-by link can't point at a pull request, so the #4677 link is removed.