feat(nickel): emit users block as empty-array placeholder#63
Merged
Conversation
ProbedState carries no user inventory (Plan §6.7), so reconcile cannot enumerate `/etc/passwd` without flooding the imported.ncl with system accounts. Emit `users = []` after `services` so the operator hand-edits UserDecl entries during review. Block ordering matches DeclaredState's TOML field order for stable golden-fixture diffs. Refs: PRD §11 (reconcile), PRD §17.1 (probed users a v1.1 candidate) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
users = []block toemit_host, completing the all-blocks-but-config-files coverage of the imported.ncl shape.ProbedStatecarries no user inventory (Plan §6.7), and enumerating/etc/passwdat probe time would surface system accounts (root, daemon, http, …) as drift.servicesto matchDeclaredState's field order for stable golden-fixture diffs in subsequent chunks.Per emit.rs's stated scope, the only block left is config-files, which lands next.
Test plan
cargo test -p pearlite-nickel --all-features— 18 passed (was 16, +2 for placeholder + ordering)cargo clippy --workspace --all-targets --all-features -- -D warningscleancargo fmt --all -- --checkcleanscripts/ci/check-spdx.shcleanpearlite-audit check .clean🤖 Generated with Claude Code