Skip to content

Port revision key, feed identity, config-apply state and doctor JSON to Rust #716

Open

Description

@pithead-developer

What's the problem

Revision hashing, feed identity hints, config-apply state and doctor JSON assembly are Bash plus jq: util/revision-key.sh, util/feed-identity.sh, util/config-apply-state.sh, util/doctor-report.sh. They feed config_meta.revision in the feed and the doctor output.

What it impacts

The config revision shown in the feed, doctor --json, and the refresh tick (#717).

How I found it

Function map of rigforge.sh and util/ at ea41133 and the tests that pin it (tests/test-doctor-json.sh, test-revision-key.sh, test-feed-identity.sh, test-config-apply-state.sh).

How important is it

Medium; the shared base for the tick. Start with revision-key and feed-identity, which are tiny.

Acceptance criteria

  • The library exposes revision key (umask 077, 32 random bytes hex, first 16 hex of sha256, chowned to the operator), feed-identity hints, config-apply state and doctor JSON assembly.
  • doctor --json dispatches natively; the other helpers are reachable through the hidden subcommand. With RIGFORGE_IMPL=rust, tests/test-doctor-json.sh, test-revision-key.sh, test-feed-identity.sh and test-config-apply-state.sh pass with no edits.
  • Native unit tests cover accepted and rejected inputs lifted from the Bash tests.
  • PARITY.md lists each helper native, hybrid or fallback; sourced-function tests are listed Bash-only. make check passes.

Possible solutions

  • Port helper by helper so each PR is reviewable.
  • Keep jq for any helper not yet ported; the ledger tracks it.

Release: issue rigforge#856 closed
Who: operator

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. added
    operator-hold
    on Nov 24, 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-healthenhancementoperator-holdrefactorsize:M

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions