Skip to content

feat: share a skill as a whole #1641#1734

Merged
astsiapanay merged 1 commit into
developmentfrom
feat/issue-1641
Jul 17, 2026
Merged

feat: share a skill as a whole #1641#1734
astsiapanay merged 1 commit into
developmentfrom
feat/issue-1641

Conversation

@astsiapanay

Copy link
Copy Markdown
Collaborator

Adds test coverage confirming that the SKILL resource type is fully integrated with the existing sharing mechanism: a skill can be shared as a whole unit, files beneath it inherit the granted access, and both explicit revocation and whole-resource deletion clean up the share metadata.

Applicable issues

Description of changes

  • The core sharing support for SKILL (resource type registration, share-limits table entry, and the generic parent-folder permission inheritance used by ShareService/AccessService) already landed via prior work on the folder-as-resource epic (Folder-as-resource foundation: SKILL type, v2 route, whole-resource PUT/GET #1634, Folder-as-resource: access control integration for skills #1640).
  • Added SkillResourceApiTest.testRevokeSharedAccess: shares a whole skill resource, accepts the invitation, verifies access, then explicitly revokes it via /v1/ops/resource/share/revoke and confirms access to the skill and its files is removed.
  • Added SkillResourceApiTest.testCleanUpShareAccessWhenOnResourceDeletion: shares a skill, accepts, deletes it, recreates a skill at the same path, and confirms the previous share does not carry over — verifying the existing whole-resource DELETE cleanup (Folder-as-resource: whole-resource DELETE via tombstone marker state #1635) applies to SKILL.
  • Verified checkstyle and the full test suite pass (with two full-suite failures traced to pre-existing, unrelated environment flakiness in shared test setup/teardown, not this change).

Checklist

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Add tests verifying a shared skill's access can be explicitly revoked
and that deleting a shared skill cleans up its share metadata, on top
of the existing generic sharing support for the SKILL resource type.
@ai-dial-actions

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@astsiapanay
astsiapanay merged commit 1cab688 into development Jul 17, 2026
10 checks passed
@astsiapanay
astsiapanay deleted the feat/issue-1641 branch July 17, 2026 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Folder-as-resource: share a skill as a whole

3 participants