Skip to content

Render systemd unit templates natively, byte-identical to envsubst output #724

Open

Description

@pithead-developer

What's the problem

Unit rendering uses envsubst over systemd/*.template. A native setup needs the same rendering without it.

What it impacts

Setup, upgrade, apply and the unit-level implementation selection from #706.

How I found it

Reading the unit rendering code and systemd/ at ea41133.

How important is it

Low alone; a prerequisite for porting setup.

Acceptance criteria

  • A native renderer produces output byte-identical to the current envsubst output for every template, asserted by a test comparing both over the same inputs.
  • Missing or unset variables behave as envsubst does today, with a test.
  • PARITY.md updated. make check passes.

Possible solutions

  • A small native substitution function over the same variable set; no template crate.

Activity

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

    @pithead-developer
    ContributorAuthor

    Blocked on #706. Blocked on rigforge#706. Issue #724's acceptance criteria mount on #706's not-yet-merged deliverables: the AC "PARITY.md updated" names docs/dev/rust-port/PARITY.md, which does not exist on develop (checked against origin/develop 7d3208e) — it is created only by PR #880 on #706's branch, whose ledger owed-section is still being amended by the owner/architect split of 2026-11-29; the issue's own impact line names "#706's unit-level implementation selection"; and the epic ruling (#669, 2026-11-24) sequences all shipping pieces, starting with #724, after foundation #705→#706. #706 is open with operator-hold and an open operator-action, and PR #880 is CONFLICTING, so nothing here self-clears; writing a competing PARITY.md or a dispatcher-less renderer now would duplicate #880's ledger — the same wall that blocked #722/#723 on 2026-11-26. The runner's native dependency edge already records #724 blocked_by #706; closing #706 resumes this session. Finished so far: full recon (issue, epic rulings, #880 state, develop tree confirmed via git ls-tree) — no code edited, no PR opened. Unblocking actions: the owner removes operator-hold from #706 and completes its recorded operator-action, then #880's session resolves its conflicts against develop and merges. On resume, the renderer lands in crates/rigforge-core (workspace from #705 is on develop) as a std-only substitution function matching envsubst SHELL-FORMAT semantics (listed-set substitution, unset→empty, other $-references literal), with differential cargo tests over the real envsubst against every systemd/*.template plus the PARITY.md update.

    The runner resumes this issue when that one closes.

  4. added
    blocked
    on Dec 4, 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:S

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions