-
Notifications
You must be signed in to change notification settings - Fork 0
Validate and atomically install downloaded EMC defaults #38
Copy link
Copy link
Open
Labels
P2High: major functionality is broken or crashes with limited workaroundHigh: major functionality is broken or crashes with limited workaroundarea:configConfiguration files, defaults, and overridesConfiguration files, defaults, and overridesarea:emcEMC values, calculation, storage, or overridesEMC values, calculation, storage, or overridesloader:commonShared Common implementation or assetsShared Common implementation or assetsstatus:backlogValid work that is not currently scheduledValid work that is not currently scheduledtype:bugA defect or incorrect behaviorA defect or incorrect behavior
Description
Metadata
Metadata
Assignees
Labels
P2High: major functionality is broken or crashes with limited workaroundHigh: major functionality is broken or crashes with limited workaroundarea:configConfiguration files, defaults, and overridesConfiguration files, defaults, and overridesarea:emcEMC values, calculation, storage, or overridesEMC values, calculation, storage, or overridesloader:commonShared Common implementation or assetsShared Common implementation or assetsstatus:backlogValid work that is not currently scheduledValid work that is not currently scheduledtype:bugA defect or incorrect behaviorA defect or incorrect behavior
Summary
The automatic default-EMC updater downloads the mutable Common branch and directly overwrites the live local file without validating the document or preserving a known-good copy.
Evidence
Impact
An accidental empty/malformed Common commit or interrupted local write can replace working defaults and leave installations with empty, partial, or unparsable EMC values after restart.
Reproduction / verification
Proposed direction
Download to a temporary sibling, parse and validate the complete document, enforce compatible schema/content rules, flush, atomically replace, and retain a recoverable backup. Prefer release-pinned content over a mutable branch.
Acceptance criteria
Audit provenance
Candidate #12 from the read-only repository audit performed on 2026-07-20. This is separate from existing issues #3, #4, #25, and #27 unless explicitly linked later.