Pass scope="global" to emit_config_changed() in the server_connect
rollback path to maintain consistency with the scoped event details
convention established by master's ConfigService.set_value().
ISSUES CLOSED: #993
Update the test double to accept the scope keyword argument added by
master's scoped config changes, and pass project_root=None to avoid
auto-discovery in test environments.
ISSUES CLOSED: #993
Make server_connect config persistence all-or-nothing by snapshotting ~/.cleveragents/config.toml before the three set_value calls and restoring the exact prior bytes on any exception. This preserves existing config-change audit events on success while preventing partially written server URL/namespace/TLS state after mid-sequence failures.\n\nAlso promote the #993 TDD feature from expected-fail to active regression coverage and tighten a flaky resource DAG Robot scenario by using a shared session with explicit commits to keep integration gates stable under parallel execution.
ISSUES CLOSED: #993