Skip to content

feat(quality): add migrate-config step 22 and --init step_quality for [quality] section#3233

Merged
bug-ops merged 1 commit intomainfrom
quality-migrate-config-init
Apr 18, 2026
Merged

feat(quality): add migrate-config step 22 and --init step_quality for [quality] section#3233
bug-ops merged 1 commit intomainfrom
quality-migrate-config-init

Conversation

@bug-ops
Copy link
Copy Markdown
Owner

@bug-ops bug-ops commented Apr 18, 2026

Summary

Closes #3228.

PR #3226 added the MARCH self-check quality pipeline but two integration points were missing. This PR adds them:

  • migrate_quality_config (crates/zeph-config/src/migrate.rs): migration step 22 that appends a commented-out [quality] block to configs that lack it. Line-anchored idempotency check (no false-positives on [quality.foo] subtables). Direct string append — no DocumentMut round-trip that would reformat user config.
  • step_quality() (src/init/mod.rs): --init wizard step prompting for self_check (Confirm), trigger (Select: has_retrieval/always/manual), and latency_budget_ms (Input, validated [2000, 60000]). When self_check=true, prints an info note that proposer_provider and checker_provider must also be configured.
  • Re-export QualityConfig and TriggerPolicy from zeph-core/src/config.rs.

Test plan

  • cargo nextest run -p zeph-config -E 'test(migrate_quality)' — 3/3 pass (absent, commented, active)
  • cargo nextest run -p zeph -E 'test(build_config_quality)' — 4/4 pass (all 3 TriggerPolicy variants + defaults)
  • cargo +nightly fmt --check — clean
  • cargo clippy --workspace -- -D warnings — clean
  • cargo nextest run --workspace --lib --bins — 8413/8413 pass

@github-actions github-actions Bot added rust Rust code changes core zeph-core crate enhancement New feature or request size/L Large PR (201-500 lines) labels Apr 18, 2026
@bug-ops bug-ops enabled auto-merge (squash) April 18, 2026 23:50
… [quality] section

Add two missing integration points for the MARCH self-check quality pipeline:

- migrate_quality_config (zeph-config/src/migrate.rs): step 22 appends a
  commented-out [quality] block to configs that lack it. Uses line-anchored
  idempotency check and direct string append (no DocumentMut round-trip).
- step_quality (src/init/mod.rs): --init wizard step prompting for self_check,
  trigger (Select from TriggerPolicy variants), and latency_budget_ms with
  validator [2000, 60000]. Informs users when self_check=true that
  proposer_provider/checker_provider are also required.
- Re-export QualityConfig and TriggerPolicy from zeph-core/src/config.rs.

Closes #3228
@bug-ops bug-ops force-pushed the quality-migrate-config-init branch from 0fe21bb to e26f991 Compare April 18, 2026 23:50
@bug-ops bug-ops merged commit 2662d2b into main Apr 18, 2026
32 checks passed
@bug-ops bug-ops deleted the quality-migrate-config-init branch April 18, 2026 23:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core zeph-core crate enhancement New feature or request rust Rust code changes size/L Large PR (201-500 lines)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(quality): add migrate-config step and --init wizard entry for [quality] self-check section

1 participant