Skip to content

refactor(skills): add #[non_exhaustive] to extensible pub enums missed in #4545 #4563

@bug-ops

Description

@bug-ops

Description

PR #4545 (bba7514) added #[non_exhaustive] to extensible pub enums across 14 crates. zeph-skills was only partially covered — scanner.rs was touched but the bulk of pub enums in the crate were missed.

Missing annotations

All of the following are in crates/zeph-skills/src/:

Enum File Note
MatchResult matcher.rs:82 New match modes expected
SkillMatcherBackend matcher.rs:565 New backends (LLM, hybrid) expected
PromotionRecommendation promoter.rs:30 Extensible verdict type
SkillSource trust.rs:44 New trust sources expected
FailureKind evolution.rs:36 New failure kinds likely
SkillOutcome evolution.rs:137 New outcome types expected
SkillVerdict evaluator.rs:112 Extensible verdict type
MergeDecision merger.rs:51 New merge decisions may be added
SkillEvent watcher.rs:44 New file-system events expected
SkillError error.rs:24 Error enums should always be #[non_exhaustive]
SkillRole group.rs:30 New roles likely
GroupResult group.rs:59 New group result states expected

Fix

Add #[non_exhaustive] to each listed enum. Follow the same pattern as bba7514.

Metadata

Metadata

Assignees

Labels

P3Research — medium-high complexityskillszeph-skills cratetech-debtTechnical debt

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions