SD-10196: Open PRs in skills.new#169
Conversation
|
Claude finished @inesp's task in 2m 23s —— View job This PR cleanly extends the existing PR-fallback flow to the Sleuth/skills.new vault and is well-commented and tested, with a few edge cases around 403 handling and partial PR creation worth tightening. [MEDIUM] Any 403 from the upload endpoint is treated as an edit-permission denial, misrouting auth failures into the PR-offer flowLocation: Issue: The condition Suggestion: Gate the fallback on the explicit machine-readable signal rather than the bare status code — e.g. treat it as an edit denial only when [MEDIUM] A mid-upload failure leaves a created PR with only partial file changesLocation: Issue: Suggestion: If the server supports it, send the file changes in a single batched mutation, or attempt to delete/close the PR on partial failure. At minimum, document this non-atomic behavior in [LOW] An asset whose zip contains only `metadata.toml` would open an empty pull requestLocation: Issue: Suggestion: After unpacking, if no non-metadata files were added, return an error (and ideally avoid creating the PR), e.g. [LOW] No command-level test covers the new Sleuth PR-offer wiringLocation: Issue: The vault layer is well tested ( Suggestion: Add a command-level test that feeds an |
The push fails and we are asked if we want to create a PR:

After answering Yes, a PR is opened:

