Skip to content

Port the xmrig overlay, RandomX profile and daemon-pool helpers to Rust #715

Open

Description

@pithead-developer

What's the problem

The xmrig overlay merge, RandomX profile clamps and daemon-pool helpers are Bash plus jq: util/xmrig-overlay.sh with xmrig-overlay-keys.jq, util/rx-profile.sh, util/daemon-pools.sh. #683 (RAM or CPU floor) and #690 (shared redactor test vectors) touch the same area.

What it impacts

Generated xmrig config on every rig and the jq runtime dependency.

How I found it

Function map of util/ at ea41133 and the tests that pin it (tests/test-xmrig-overlay.sh).

How important is it

Medium; correctness-critical for mining config, low urgency.

Acceptance criteria

Possible solutions

  • Port the overlay first; it is the largest and has a dedicated test.
  • Unknown: whether the keys list xmrig-overlay-keys.jq can be shared as data between Bash and Rust.

Activity

  1. added this to the v1.20.0 milestone on Nov 17, 2026
  2. added
    enhancement
    refactor
    P4-code-health
    size:M
    on Nov 17, 2026
  3. pithead-developer commented on Nov 26, 2026

    @pithead-developer
    ContributorAuthor

    Blocked on #714. Blocked on prerequisites, not on size: #715's acceptance criteria are written against machinery that does not exist on develop yet, so no part of this port can be landed or verified today. Finished: full read of the port area — util/xmrig-overlay.sh (156 lines) with xmrig-overlay-keys.jq and xmrig-overlay-cpu-rx.jq, util/rx-profile.sh (184 lines), util/daemon-pools.sh (97 lines), the 413-line parity oracle tests/test-xmrig-overlay.sh (which asserts byte-exact jq-generated config output and protected-key rejection messages), and the Rust workspace (#705 skeleton: rigforge-rs answers --version only). What blocks: (1) rigforge.sh has no RIGFORGE_IMPL switch and no hidden helper subcommand anywhere (repo-wide grep finds zero occurrences), so "reachable through the hidden helper subcommand from #714" and "with RIGFORGE_IMPL=rust the test passes with no edits" cannot be built without folding in #714's scope — #714 is open with no PR and is set as blocked_on; (2) the RIGFORGE_IMPL dispatcher and the docs/dev/rust-port/PARITY.md ledger this issue's criteria 2 and 5 depend on come from #706 (open); (3) #855 — the Rust text/JSON/number layer that prints exactly what jq prints, byte-for-byte — states in its own body that #714, #715, #716 and #717 all need it first, and this overlay port's byte-exact JSON output is exactly its subject. Unblocking action: land #714 (which itself needs #706 and #855); when #714 closes, resume this session and implement the port against the now-defined helper-subcommand argv contract and jq-exact layer. No edits were made and no PR was opened; the branch is clean at origin/develop.

    The runner resumes this issue when that one closes.

  4. added
    blocked
    on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P4-code-healthblockedenhancementrefactorsize:M

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions