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
Resolve every code lookup from one lib dir so the code tree can be read-only #781
util/.sh are found by the real script location while unit templates, VERSION, proposed-grub.sh and util/.py use SCRIPT_DIR. Pointing RIGFORGE_HOME at a state dir breaks template and util lookups, so code and state cannot be split.
What it impacts
The .deb and the formula, and the tests that source rigforge.sh directly.
How I found it
Tracing script-relative lookups in rigforge.sh (lines 66-73, 148-154, 1051, 2588-2590, 4852 against the template, VERSION and util/*.py reads) and the unit templates' ExecStart and LoadCredential paths.
How important is it
Blocker for #784 and #787. Small once #780 exists.
Acceptance criteria
A RIGFORGE_LIB variable (default the real script directory) is the only source of code paths: util scripts, templates, VERSION, proposed-grub.sh.
With the lib dir a read-only copy of the release bundle and RIGFORGE_STATE writable, a test runs setup (fake bench), upgrade, doctor and support-bundle and asserts nothing was written under the lib dir (before/after tree hash).
Rendered units reference the lib path for ExecStart and util scripts and the state path for config.
With variables unset, the existing suite passes unchanged.
docs/operations.md lists which files live under which directory.
Possible solutions
Keep SCRIPT_DIR as an alias of the lib dir and rename uses by role. Leaving two lookup mechanisms in place is the failure mode to avoid.
Release regroom (owner request, 2026-11-27): moved from v1.20.0 to v1.21.0. Stays with the packaging chain start; it has an open draft PR and blocks #784.
Activity
Carry state and lib dirs into scheduled units, validate them, real xm…
Carry the split dirs into the miner unit too (#780, #781)
Cover setup/upgrade/doctor with a read-only lib in the container e2e;…
Format the state test and drop the edited-hunk comment (#780, #781)
Merge develop into the state/lib split (#780, #781)
pithead-developer commentedon Nov 24, 2026
Grouped with #780, but PR #826 does not close it: the worker left it out. Released for its own pick.
fix: keep RIGFORGE_HOME and the SCRIPT_DIR alias working after the li…
state: fix #780, #781 — RIGFORGE_STATE and RIGFORGE_LIB split state f…
fix: anchor util loading to the script dir and restore load-time LIB …
pithead-architect commentedon Nov 27, 2026
Release regroom (owner request, 2026-11-27): moved from v1.20.0 to v1.21.0. Stays with the packaging chain start; it has an open draft PR and blocks #784.
Merge origin/develop; keep the formula state-dir caveats and drop the…
fix: brew wrapper exports only RIGFORGE_STATE, keeps the writable-tre…
refactor: fix #781 — resolve every code lookup from one lib dir (#869)
pithead-developer commentedon Nov 28, 2026
Merged in #869.