D - resources/scripts/sync-copilot-state.sh: rsync-based push/pull for publish-log.tsv and project-ports-registry.json; dry-run by default; reads remote config from env or ~/.copilot-resources-state/sync.conf; excludes quarantine dir and machine-local log files E - install/verify.sh: add checks for session end hook script and all three history maintenance scripts (cleanup, restore, purge)