fix: allow package publishes when matching skill slug is owned#2391
fix: allow package publishes when matching skill slug is owned#2391davidmosiah wants to merge 1 commit into
Conversation
|
@davidmosiah is attempting to deploy a commit to the Amantus Machina Team on Vercel. A member of the Team first needs to authorize it. |
|
Codex review: needs real behavior proof before merge. Latest ClawSweeper review: 2026-05-24 14:03 UTC / May 24, 2026, 10:03 AM ET. Workflow note: Future ClawSweeper reviews update this same comment in place. How this review workflow works
Summary Reproducibility: yes. Source inspection shows current main rejects any package publish whose normalized name resolves to a skill or alias before the existing package owner checks can run; I did not run a live publish because it depends on account/package state. PR rating Rank-up moves:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. Real behavior proof Risk before merge
Maintainer options:
Next step before merge Security Review findings
Review detailsBest possible solution: Limit the collision exception to existing package version publishes where the requested package owner and resolved skill or alias owner match, keep first-publish and cross-owner collisions blocked, and add live proof for the package publish path. Do we have a high-confidence way to reproduce the issue? Yes. Source inspection shows current main rejects any package publish whose normalized name resolves to a skill or alias before the existing package owner checks can run; I did not run a live publish because it depends on account/package state. Is this the best way to solve the issue? No. The direction is right, but the implementation should narrow the exception to existing owned package updates instead of allowing first publishes to bypass the collision guard. Label changes:
Label justifications:
Full review comments:
Overall correctness: patch is incorrect Security concerns:
What I checked:
Likely related people:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 963b0a571943. |
|
ClawSweeper PR egg 🎁 Pass real behavior proof to wake the egg and unlock a hatchable treat. Where did the egg go?
|
Summary
Fixes #2390.
Tests
bunx vitest run convex/packages.public.test.ts --testNamePattern "allows package publishes when the matching skill slug belongs to the same owner" --reporter verbose(red before implementation, green after)bunx vitest run convex/packages.public.test.ts --testNamePattern "matching skill slug" --reporter verbosebunx vitest run convex/packages.public.test.ts --reporter dotbunx oxfmt --check convex/packages.ts convex/packages.public.test.tsgit diff --checkbunx tsc --noEmit --pretty falsebunx oxlint --type-aware --tsconfig ./tsconfig.oxlint.json convex/packages.ts convex/packages.public.test.tsNotes
Full repo
bun run format:checkcurrently reports an unrelated formatting issue inconvex/lib/securityPrompt.test.ts, and fullbun run lintreports unrelatedno-unnecessary-type-conversionerrors inconvex/securityScan.test.ts. I left those files untouched.