fix: add missing DELETE endpoint for skills #286
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.36) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 193 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.315
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #286"
general
weight: 0.35
inFocus7
Description
Adds the missing
DELETE /v0/skills/{skillName}/versions/{version}endpoint to the registry API.Motivation: The
arctl skill deleteCLI command and client were already implemented, but the server had no corresponding endpoint, causing 404 errors.What changed:
internal/registry/api/handlers/v0/skills.gowith proper huma error codes (huma.Error404NotFound,huma.Error401Unauthorized,huma.Error403Forbidden)DeleteSkill(ctx, tx, name, version)to the database layer — deletes the skill row and promotes the next latest version in a transactionDeleteSkillto service interface and fake registry for testingFixes #223
Change Type
/kind fix
Changelog
``
release-note
`Add DELETE endpoint for removing skill versions from the registry
Additional Notes
Test plan
passespasses:- TestSkillDelete
: publish → verify exists → delete via CLI → confirm 404 → re-delete failsTestSkillDeletePromotesLatest-
: publish v0.0.1 and v0.0.2 → verify latest is v0.0.2 → delete v0.0.2 → verify latest promoted to v0.0.1TestSkillDeleteNotFound-
: HTTP DELETE on non-existent skill returns 404
Database deletion handles is_latest` promotion in a transaction