Skip to content

Port apply and uninstall to Rust #723

Open

Description

@pithead-developer

What's the problem

apply (including --dry-run) and uninstall (roughly 170 lines) are Bash and change the host.

What it impacts

Operators changing config or removing RigForge.

How I found it

Function map of rigforge.sh at ea41133.

How important is it

Low to medium; host-changing, so care over speed.

Acceptance criteria

  • With RIGFORGE_IMPL=rust, apply (including --dry-run) and uninstall match Bash argv handling, output and exit status, and make test-suite passes unchanged.
  • PARITY.md updated. make check passes.

Possible solutions

  • Port apply first; it is about 44 lines.

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 #706. Blocked on rigforge#706 (#706) — it defines and creates the exact surfaces this issue's acceptance criteria test. #723 requires apply/--dry-run and uninstall to match Bash argv, output and exit status "with RIGFORGE_IMPL=rust" and PARITY.md updated, but the RIGFORGE_IMPL dispatcher, the env-hook contract for the Rust binary, the RIGFORGE_IMPL=rust parity CI job and docs/dev/rust-port/PARITY.md are all #706's deliverables: #706 is OPEN, says it "Blocks every port slice", and carries operator-hold (the runner never picks or merges held work; the operator is sequencing or doing it by hand). Nothing on develop mentions RIGFORGE_IMPL and the merged #705 Rust workspace handles only rigforge-rs --version. The owner's latest ruling on the epic #669 (2026-11-24) fixes the work order at #705, #706, #704, the refresh-needed parts of #714/#716, then #717, and the shipping order puts #723 at slot 11, after foundation layers #855/#856/#714/#715/#716/#724 that are also unlanded. The code confirms the dependency: apply() is 44 lines orchestrating parse_config, _apply_runtime, install_watchdog/api/control, _stamp_config_meta and the pool check; uninstall() edits fstab/limits/modules/GRUB, tears down units and drops the nft table — none of that is reachable from Rust until the dispatcher and those layers exist. I did not build a parallel dispatcher, PARITY.md or slice mechanism, because that would duplicate #706's held scope and collide with the owner's sequencing. Finished so far: read #723, epic #669 and all owner rulings, #705/#706/#708/#855/#856, the rigforge.sh dispatch plus apply/uninstall/_apply_plan, and the Rust workspace; no code was edited and the branch is untouched at origin/develop. Unblocks when the operator releases #706 and it lands and closes — the runner should then resume this session; if the other foundation slices are still held at that point, #723 will need to wait on them per the owner's order rather than start.

    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