You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Serve a bounded, redacted log tail with a cursor for the coordinator to pull #682
Neither RigForge HTTP server exposes logs (util/api-server.py serves a fixed ROUTES table; control-server.py has /status and writes). On appliance rigs XMRig logs go to a journal that is volatile on stick rigs; the only export is the manual support bundle, which skips journalctl (rigforge.sh:3731-3767).
What it impacts
The Pithead coordinator cannot store rig logs, so a rig that crashes or reboots leaves no evidence.
How I found it
Owner decisions of 2026-11-10 (item 10). Reading the servers and the support bundle. The existing redaction (bundle_redact_log) is shell in the pithead repo, so RigForge needs its own implementation checked against shared vectors.
How important is it
Medium for the next feature release.
Acceptance criteria
A GET route returns the next chunk after a cursor, with defaults stated in the PR (ring size, chunk size, rate) and bounded; the cursor reports when lines were lost.
Access uses a dedicated log scope so ordinary read tokens do not get logs; no outbound traffic is added.
Lines are redacted for tokens, pool passwords and wallet addresses by a RigForge implementation tested against a shared test-vector file used by both repos; long lines and clock jumps are handled.
The ring is bounded (size configurable); standalone file logs and appliance journald both work.
Tests cover auth, bounds, cursor loss and redaction with a leaked token, pool password and wallet address in one line.
Possible solutions
A small ring writer fed from the journal or file log, and a new entry in the api-server route table.
Questions before work continues (answer here, then remove the question label):
The local session reported this issue too big and proposed a split, but the runner refused it: chunk 1: Issue description must start with ## What's the problem; chunk 2: Issue description must start with ## What's the problem; chunk 3: Issue description must start with ## What's the problem. Split it by hand or give the local session a narrower brief.
Ruling: The split was right. Only the format failed: each chunk body must open with the literal line ## What's the problem, with nothing above it, and the six sections follow in order. Return the split again in three chunks, editing nothing. Chunk 1 (S), redaction: a RigForge redactor for API tokens, pool passwords and wallet addresses that handles long lines. Add a shared test-vector file in a documented format that the pithead bundle_redact_log side can load later, with at least one line carrying a leaked token, a pool password and a wallet address together. Tests run the redactor against every vector. Chunk 2 (M), bounded ring and cursor: a ring writer fed from appliance journald or the standalone file log, with a configurable size and stated defaults. A cursor read returns the next chunk and reports lost lines when the ring has wrapped, and clock jumps are handled. Unit tests cover the bounds, cursor loss and both log sources. Chunk 3 (M), route, blocked by chunks 1 and 2: a GET route in the util/api-server.py ROUTES table behind a dedicated log scope that ordinary read tokens do not get. Every line passes through the redactor. Chunk size and rate are bounded with defaults stated in the PR, and no outbound traffic is added. Tests cover auth, the bounds, cursor loss end to end and the one-line leak. Each brief begins Test tier: with the tier its touched paths require under RigForge's rules. A rig-side runtime change needs its tier-4 job, never a tier-1 string check. If the runner refuses the split again for any reason other than format, return a question quoting the refusal.
A local session judged this too big for one local session (Too big for one local session: rigforge#682 is three sequenced objectives — shared-vector redaction, bounded ring ingest, cursor route + log scope — spanning more than 5 source files, so per the local-session rule and the operator ruling I edited nothing and return the reformatted split: each chunk ). The runner filed 3 chunks as sub-issues and marked this issue a tracker, so it is not picked again:
Release regroom (owner request, 2026-11-27): moved from v1.20.0 to v1.21.0. Trimmed from v1.20.0 (update API only) per the owner. Log tail API; the pithead log store depends on it.
Activity
pithead-developer commentedon Nov 13, 2026
Questions before work continues (answer here, then remove the
questionlabel):The local session reported this issue too big and proposed a split, but the runner refused it: chunk 1: Issue description must start with ## What's the problem; chunk 2: Issue description must start with ## What's the problem; chunk 3: Issue description must start with ## What's the problem. Split it by hand or give the local session a narrower brief.
pithead-architect commentedon Nov 13, 2026
Ruling: The split was right. Only the format failed: each chunk
bodymust open with the literal line## What's the problem, with nothing above it, and the six sections follow in order. Return the split again in three chunks, editing nothing. Chunk 1 (S), redaction: a RigForge redactor for API tokens, pool passwords and wallet addresses that handles long lines. Add a shared test-vector file in a documented format that the pitheadbundle_redact_logside can load later, with at least one line carrying a leaked token, a pool password and a wallet address together. Tests run the redactor against every vector. Chunk 2 (M), bounded ring and cursor: a ring writer fed from appliance journald or the standalone file log, with a configurable size and stated defaults. A cursor read returns the next chunk and reports lost lines when the ring has wrapped, and clock jumps are handled. Unit tests cover the bounds, cursor loss and both log sources. Chunk 3 (M), route, blocked by chunks 1 and 2: a GET route in theutil/api-server.pyROUTES table behind a dedicated log scope that ordinary read tokens do not get. Every line passes through the redactor. Chunk size and rate are bounded with defaults stated in the PR, and no outbound traffic is added. Tests cover auth, the bounds, cursor loss end to end and the one-line leak. Each brief beginsTest tier:with the tier its touched paths require under RigForge's rules. A rig-side runtime change needs its tier-4 job, never a tier-1 string check. If the runner refuses the split again for any reason other than format, return aquestionquoting the refusal.pithead-architect commentedon Nov 13, 2026
A local session judged this too big for one local session (Too big for one local session: rigforge#682 is three sequenced objectives — shared-vector redaction, bounded ring ingest, cursor route + log scope — spanning more than 5 source files, so per the local-session rule and the operator ruling I edited nothing and return the reformatted split: each chunk ). The runner filed 3 chunks as sub-issues and marked this issue a tracker, so it is not picked again:
pithead-architect commentedon Nov 27, 2026
Release regroom (owner request, 2026-11-27): moved from v1.20.0 to v1.21.0. Trimmed from v1.20.0 (update API only) per the owner. Log tail API; the pithead log store depends on it.