Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

fix(workspace): `assertOwnsWorkspace` falls back to upload-then-rollback when the server omits `ownerId`

Open
#1,325 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript
Domain
api, cli

Research direction

Start in packages/opencode/src/altimate/workspace/skill-publish.ts, following publishSkill and assertOwnsWorkspace through the ownership check, upload, attach failure, and cleanup. Review the proposed GET /datamates/{id} and attach-endpoint precheck options, including compatibility with deployed backend versions. Done means ownership is resolved or clearly reported before upload when ownerId is absent, with the existing failure path covered.

Written by the indexing model from the issue text.

Description

publishSkill checks workspace ownership before uploading via assertOwnsWorkspace (packages/opencode/src/altimate/workspace/skill-publish.ts). When the server's workspace listing carries no ownerId (older backend), the check is a no-op and a non-owner's publish uploads the full bundle, fails at the attach step with 404, and is cleaned up with a DELETE. Correct outcome, but check-then-upload degrades to upload-then-rollback for that case, and a failed DELETE would leave an orphaned unattached skill.

Proposed: when ownerId is absent, resolve ownership through GET /datamates/{id} (or the attach endpoint's precheck) before the upload; or surface "ownership unknown, continuing" in the report.

Found during the v0.12.0 release review (CTO persona). Deferred because: depends on which backend versions are still deployed.

🤖 Generated with Claude Code

https://claude.ai/code/session_012Q51zFUmPg1WwtS5CrGJE6

Dominant language
TypeScript
Stars
813
Forks
134
Avg merge
2d 8m
Merged PRs (30d)
65

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from AltimateAI/altimate-code

All issues in AltimateAI/altimate-code

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.