zeph-config 0.20.1

Pure-data configuration types for Zeph
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
// SPDX-FileCopyrightText: 2026 Andrei G <bug-ops>
// SPDX-License-Identifier: MIT OR Apache-2.0

//! Migration step wrapper structs — one per sequential migration in [`super::MIGRATIONS`].
//!
//! Steps 1–35 are pre-existing; steps 36–38 were added for the stable-defaults flip.
//!
//! Each struct is a zero-size type that delegates to the corresponding free function in
//! `super`. They exist solely to satisfy the object-safe [`super::Migration`] trait so the
//! registry can hold `Box<dyn Migration>` values.

use super::{
    MigrateError, Migration, MigrationResult, migrate_acp_subagents_config,
    migrate_agent_budget_hint, migrate_agent_retry_to_tools_retry, migrate_autodream_config,
    migrate_compression_predictor_config, migrate_database_url, migrate_egress_config,
    migrate_focus_auto_consolidate_min_window, migrate_forgetting_config,
    migrate_hooks_permission_denied_config, migrate_hooks_turn_complete_config,
    migrate_magic_docs_config, migrate_mcp_elicitation_config, migrate_mcp_trust_levels,
    migrate_memory_graph_config, migrate_memory_hebbian_config,
    migrate_memory_hebbian_consolidation_config, migrate_memory_hebbian_spread_config,
    migrate_memory_persona_config, migrate_memory_reasoning_config,
    migrate_memory_reasoning_judge_config, migrate_memory_retrieval_config,
    migrate_memory_retrieval_query_bias, migrate_microcompact_config,
    migrate_orchestration_persistence, migrate_otel_filter, migrate_planner_model_to_provider,
    migrate_qdrant_api_key, migrate_quality_config, migrate_sandbox_config,
    migrate_sandbox_egress_filter, migrate_scheduler_daemon_config,
    migrate_session_provider_persistence, migrate_session_recap_config,
    migrate_shell_transactional, migrate_stt_to_provider, migrate_supervisor_config,
    migrate_telemetry_config, migrate_vigil_config,
};

// ── Wrapper structs for all 35 sequential migration steps ───────────────────────────────────────

pub(super) struct MigrateSttToProvider;
impl Migration for MigrateSttToProvider {
    fn name(&self) -> &'static str {
        "migrate_stt_to_provider"
    }

    fn apply(&self, toml_src: &str) -> Result<MigrationResult, MigrateError> {
        migrate_stt_to_provider(toml_src)
    }
}

pub(super) struct MigratePlannerModelToProvider;
impl Migration for MigratePlannerModelToProvider {
    fn name(&self) -> &'static str {
        "migrate_planner_model_to_provider"
    }

    fn apply(&self, toml_src: &str) -> Result<MigrationResult, MigrateError> {
        migrate_planner_model_to_provider(toml_src)
    }
}

pub(super) struct MigrateMcpTrustLevels;
impl Migration for MigrateMcpTrustLevels {
    fn name(&self) -> &'static str {
        "migrate_mcp_trust_levels"
    }

    fn apply(&self, toml_src: &str) -> Result<MigrationResult, MigrateError> {
        migrate_mcp_trust_levels(toml_src)
    }
}

pub(super) struct MigrateAgentRetryToToolsRetry;
impl Migration for MigrateAgentRetryToToolsRetry {
    fn name(&self) -> &'static str {
        "migrate_agent_retry_to_tools_retry"
    }

    fn apply(&self, toml_src: &str) -> Result<MigrationResult, MigrateError> {
        migrate_agent_retry_to_tools_retry(toml_src)
    }
}

pub(super) struct MigrateDatabaseUrl;
impl Migration for MigrateDatabaseUrl {
    fn name(&self) -> &'static str {
        "migrate_database_url"
    }

    fn apply(&self, toml_src: &str) -> Result<MigrationResult, MigrateError> {
        migrate_database_url(toml_src)
    }
}

pub(super) struct MigrateShellTransactional;
impl Migration for MigrateShellTransactional {
    fn name(&self) -> &'static str {
        "migrate_shell_transactional"
    }

    fn apply(&self, toml_src: &str) -> Result<MigrationResult, MigrateError> {
        migrate_shell_transactional(toml_src)
    }
}

pub(super) struct MigrateAgentBudgetHint;
impl Migration for MigrateAgentBudgetHint {
    fn name(&self) -> &'static str {
        "migrate_agent_budget_hint"
    }

    fn apply(&self, toml_src: &str) -> Result<MigrationResult, MigrateError> {
        migrate_agent_budget_hint(toml_src)
    }
}

pub(super) struct MigrateForgettingConfig;
impl Migration for MigrateForgettingConfig {
    fn name(&self) -> &'static str {
        "migrate_forgetting_config"
    }

    fn apply(&self, toml_src: &str) -> Result<MigrationResult, MigrateError> {
        migrate_forgetting_config(toml_src)
    }
}

pub(super) struct MigrateCompressionPredictorConfig;
impl Migration for MigrateCompressionPredictorConfig {
    fn name(&self) -> &'static str {
        "migrate_compression_predictor_config"
    }

    fn apply(&self, toml_src: &str) -> Result<MigrationResult, MigrateError> {
        migrate_compression_predictor_config(toml_src)
    }
}

pub(super) struct MigrateMicrocompactConfig;
impl Migration for MigrateMicrocompactConfig {
    fn name(&self) -> &'static str {
        "migrate_microcompact_config"
    }

    fn apply(&self, toml_src: &str) -> Result<MigrationResult, MigrateError> {
        migrate_microcompact_config(toml_src)
    }
}

pub(super) struct MigrateAutodreamConfig;
impl Migration for MigrateAutodreamConfig {
    fn name(&self) -> &'static str {
        "migrate_autodream_config"
    }

    fn apply(&self, toml_src: &str) -> Result<MigrationResult, MigrateError> {
        migrate_autodream_config(toml_src)
    }
}

pub(super) struct MigrateMagicDocsConfig;
impl Migration for MigrateMagicDocsConfig {
    fn name(&self) -> &'static str {
        "migrate_magic_docs_config"
    }

    fn apply(&self, toml_src: &str) -> Result<MigrationResult, MigrateError> {
        migrate_magic_docs_config(toml_src)
    }
}

pub(super) struct MigrateTelemetryConfig;
impl Migration for MigrateTelemetryConfig {
    fn name(&self) -> &'static str {
        "migrate_telemetry_config"
    }

    fn apply(&self, toml_src: &str) -> Result<MigrationResult, MigrateError> {
        migrate_telemetry_config(toml_src)
    }
}

pub(super) struct MigrateSupervisorConfig;
impl Migration for MigrateSupervisorConfig {
    fn name(&self) -> &'static str {
        "migrate_supervisor_config"
    }

    fn apply(&self, toml_src: &str) -> Result<MigrationResult, MigrateError> {
        migrate_supervisor_config(toml_src)
    }
}

pub(super) struct MigrateOtelFilter;
impl Migration for MigrateOtelFilter {
    fn name(&self) -> &'static str {
        "migrate_otel_filter"
    }

    fn apply(&self, toml_src: &str) -> Result<MigrationResult, MigrateError> {
        migrate_otel_filter(toml_src)
    }
}

pub(super) struct MigrateEgressConfig;
impl Migration for MigrateEgressConfig {
    fn name(&self) -> &'static str {
        "migrate_egress_config"
    }

    fn apply(&self, toml_src: &str) -> Result<MigrationResult, MigrateError> {
        migrate_egress_config(toml_src)
    }
}

pub(super) struct MigrateVigilConfig;
impl Migration for MigrateVigilConfig {
    fn name(&self) -> &'static str {
        "migrate_vigil_config"
    }

    fn apply(&self, toml_src: &str) -> Result<MigrationResult, MigrateError> {
        migrate_vigil_config(toml_src)
    }
}

pub(super) struct MigrateSandboxConfig;
impl Migration for MigrateSandboxConfig {
    fn name(&self) -> &'static str {
        "migrate_sandbox_config"
    }

    fn apply(&self, toml_src: &str) -> Result<MigrationResult, MigrateError> {
        migrate_sandbox_config(toml_src)
    }
}

pub(super) struct MigrateSandboxEgressFilter;
impl Migration for MigrateSandboxEgressFilter {
    fn name(&self) -> &'static str {
        "migrate_sandbox_egress_filter"
    }

    fn apply(&self, toml_src: &str) -> Result<MigrationResult, MigrateError> {
        migrate_sandbox_egress_filter(toml_src)
    }
}

pub(super) struct MigrateOrchestrationPersistence;
impl Migration for MigrateOrchestrationPersistence {
    fn name(&self) -> &'static str {
        "migrate_orchestration_persistence"
    }

    fn apply(&self, toml_src: &str) -> Result<MigrationResult, MigrateError> {
        migrate_orchestration_persistence(toml_src)
    }
}

pub(super) struct MigrateSessionRecapConfig;
impl Migration for MigrateSessionRecapConfig {
    fn name(&self) -> &'static str {
        "migrate_session_recap_config"
    }

    fn apply(&self, toml_src: &str) -> Result<MigrationResult, MigrateError> {
        migrate_session_recap_config(toml_src)
    }
}

pub(super) struct MigrateMcpElicitationConfig;
impl Migration for MigrateMcpElicitationConfig {
    fn name(&self) -> &'static str {
        "migrate_mcp_elicitation_config"
    }

    fn apply(&self, toml_src: &str) -> Result<MigrationResult, MigrateError> {
        migrate_mcp_elicitation_config(toml_src)
    }
}

pub(super) struct MigrateQualityConfig;
impl Migration for MigrateQualityConfig {
    fn name(&self) -> &'static str {
        "migrate_quality_config"
    }

    fn apply(&self, toml_src: &str) -> Result<MigrationResult, MigrateError> {
        migrate_quality_config(toml_src)
    }
}

pub(super) struct MigrateAcpSubagentsConfig;
impl Migration for MigrateAcpSubagentsConfig {
    fn name(&self) -> &'static str {
        "migrate_acp_subagents_config"
    }

    fn apply(&self, toml_src: &str) -> Result<MigrationResult, MigrateError> {
        migrate_acp_subagents_config(toml_src)
    }
}

pub(super) struct MigrateHooksPermissionDeniedConfig;
impl Migration for MigrateHooksPermissionDeniedConfig {
    fn name(&self) -> &'static str {
        "migrate_hooks_permission_denied_config"
    }

    fn apply(&self, toml_src: &str) -> Result<MigrationResult, MigrateError> {
        migrate_hooks_permission_denied_config(toml_src)
    }
}

pub(super) struct MigrateMemoryGraph;
impl Migration for MigrateMemoryGraph {
    fn name(&self) -> &'static str {
        "migrate_memory_graph_config"
    }

    fn apply(&self, toml_src: &str) -> Result<MigrationResult, MigrateError> {
        migrate_memory_graph_config(toml_src)
    }
}

pub(super) struct MigrateSchedulerDaemon;
impl Migration for MigrateSchedulerDaemon {
    fn name(&self) -> &'static str {
        "migrate_scheduler_daemon_config"
    }

    fn apply(&self, toml_src: &str) -> Result<MigrationResult, MigrateError> {
        migrate_scheduler_daemon_config(toml_src)
    }
}

pub(super) struct MigrateMemoryRetrieval;
impl Migration for MigrateMemoryRetrieval {
    fn name(&self) -> &'static str {
        "migrate_memory_retrieval_config"
    }

    fn apply(&self, toml_src: &str) -> Result<MigrationResult, MigrateError> {
        migrate_memory_retrieval_config(toml_src)
    }
}

pub(super) struct MigrateMemoryReasoning;
impl Migration for MigrateMemoryReasoning {
    fn name(&self) -> &'static str {
        "migrate_memory_reasoning_config"
    }

    fn apply(&self, toml_src: &str) -> Result<MigrationResult, MigrateError> {
        migrate_memory_reasoning_config(toml_src)
    }
}

pub(super) struct MigrateMemoryReasoningJudge;
impl Migration for MigrateMemoryReasoningJudge {
    fn name(&self) -> &'static str {
        "migrate_memory_reasoning_judge_config"
    }

    fn apply(&self, toml_src: &str) -> Result<MigrationResult, MigrateError> {
        migrate_memory_reasoning_judge_config(toml_src)
    }
}

pub(super) struct MigrateMemoryHebbian;
impl Migration for MigrateMemoryHebbian {
    fn name(&self) -> &'static str {
        "migrate_memory_hebbian_config"
    }

    fn apply(&self, toml_src: &str) -> Result<MigrationResult, MigrateError> {
        migrate_memory_hebbian_config(toml_src)
    }
}

pub(super) struct MigrateMemoryHebbianConsolidation;
impl Migration for MigrateMemoryHebbianConsolidation {
    fn name(&self) -> &'static str {
        "migrate_memory_hebbian_consolidation_config"
    }

    fn apply(&self, toml_src: &str) -> Result<MigrationResult, MigrateError> {
        migrate_memory_hebbian_consolidation_config(toml_src)
    }
}

pub(super) struct MigrateMemoryHebbianSpread;
impl Migration for MigrateMemoryHebbianSpread {
    fn name(&self) -> &'static str {
        "migrate_memory_hebbian_spread_config"
    }

    fn apply(&self, toml_src: &str) -> Result<MigrationResult, MigrateError> {
        migrate_memory_hebbian_spread_config(toml_src)
    }
}

pub(super) struct MigrateHooksTurnComplete;
impl Migration for MigrateHooksTurnComplete {
    fn name(&self) -> &'static str {
        "migrate_hooks_turn_complete_config"
    }

    fn apply(&self, toml_src: &str) -> Result<MigrationResult, MigrateError> {
        migrate_hooks_turn_complete_config(toml_src)
    }
}

pub(super) struct MigrateFocusAutoConsolidateMinWindow;
impl Migration for MigrateFocusAutoConsolidateMinWindow {
    fn name(&self) -> &'static str {
        "migrate_focus_auto_consolidate_min_window"
    }

    fn apply(&self, toml_src: &str) -> Result<MigrationResult, MigrateError> {
        migrate_focus_auto_consolidate_min_window(toml_src)
    }
}

pub(super) struct MigrateSessionProviderPersistence;
impl Migration for MigrateSessionProviderPersistence {
    fn name(&self) -> &'static str {
        "migrate_session_provider_persistence"
    }

    fn apply(&self, toml_src: &str) -> Result<MigrationResult, MigrateError> {
        migrate_session_provider_persistence(toml_src)
    }
}

pub(super) struct MigrateMemoryRetrievalQueryBias;
impl Migration for MigrateMemoryRetrievalQueryBias {
    fn name(&self) -> &'static str {
        "migrate_memory_retrieval_query_bias"
    }

    fn apply(&self, toml_src: &str) -> Result<MigrationResult, MigrateError> {
        migrate_memory_retrieval_query_bias(toml_src)
    }
}

pub(super) struct MigrateMemoryPersonaConfig;
impl Migration for MigrateMemoryPersonaConfig {
    fn name(&self) -> &'static str {
        "migrate_memory_persona_config"
    }

    fn apply(&self, toml_src: &str) -> Result<MigrationResult, MigrateError> {
        migrate_memory_persona_config(toml_src)
    }
}

pub(super) struct MigrateQdrantApiKey;
impl Migration for MigrateQdrantApiKey {
    fn name(&self) -> &'static str {
        "migrate_qdrant_api_key"
    }

    fn apply(&self, toml_src: &str) -> Result<MigrationResult, MigrateError> {
        migrate_qdrant_api_key(toml_src)
    }
}