The Config Preview That Lost an Untouched Setting
### P2 · A port edit removed the host A fictional configuration preview changes the service port from 8080 to 9090. The requested port appears, but the untouched host api.internal disappears.
Your task: Repair only apply_merge_patch(target, patch) in merge_patch.py to meet the repository's JSON Merge Patch contract and detached-output guarantee.
Investigate: Run python monitor.py and python -m unittest discover -v. Keep fixtures, tests and the public API unchanged. Cover nested values, removals, replacement values and caller-owned data, then open a PR against main with evidence.
This is a pure local transformation with authored data, not a live deploy, HTTP endpoint or GetIn integration certification.
Skills you'll prove
Interview Tip
I treated the update format as a precise data contract rather than a generic dictionary update. I tested nested member behavior separately from whole-value replacement, and checked both value equality and ownership so a correct-looking preview could not mutate the caller.