feat(nickel): emit config block as empty-array placeholder#64
Merged
Conversation
Closes the imported.ncl block coverage: every DeclaredState field the operator hand-edits during reconcile (`meta`, `kernel`, `packages`, `config`, `services`, `users`) now has an emitter slot in stable schema order. ConfigFileInventory is keyed on declared targets, so a fresh-reconcile run has nothing to emit; re-emitting partial inventory entries with a placeholder source would clobber operator-real config-repo paths, so we leave the array empty regardless. Block ordering now mirrors DeclaredState's serde field order (meta, kernel, packages, config, services, users) for stable golden-fixture diffs. Refs: PRD §11 (reconcile), Plan §6.1 (DeclaredState) 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
config = []placeholder, completing imported.ncl block coverage. EveryDeclaredStatefield the operator curates during reconcile (meta,kernel,packages,config,services,users) now has an emit slot.packagesandservicesto mirrorDeclaredState's serde field order — stable golden-fixture diffs in subsequent chunks.ConfigFileInventoryis keyed on declared targets (pearlite-fs::probe_config_files), so a fresh-reconcile probe has nothing to emit; re-emitting partial inventory entries with a placeholdersourcewould clobber the operator's real config-repo paths.Test plan
cargo test -p pearlite-nickel --all-features— 20 passed (was 18, +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