Skip to content

feat: add transfer_service_ownership preserving description - #48

Merged
mikewheeleer merged 1 commit into
Agentpay-Org:mainfrom
Jagadeeshftw:feature/contracts-transfer-service-ownership
Jun 24, 2026
Merged

feat: add transfer_service_ownership preserving description#48
mikewheeleer merged 1 commit into
Agentpay-Org:mainfrom
Jagadeeshftw:feature/contracts-transfer-service-ownership

Conversation

@Jagadeeshftw

Copy link
Copy Markdown
Contributor

Summary

Adds transfer_service_ownership(caller, service_id, new_owner) letting the current service owner or the admin reassign ServiceMetadata.owner while preserving the existing description. The call honours the pause gate and emits owner_chg(service_id, old_owner, new_owner) for indexers. Adds the append-only error ServiceMetadataNotFound = 13.

Closes #38

Test output

test result: ok. 26 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

Security notes

Authorisation requires caller.require_auth() and restricts the transfer to the stored owner or the admin; missing metadata fails closed with ServiceMetadataNotFound (#13).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Jagadeeshftw
Jagadeeshftw force-pushed the feature/contracts-transfer-service-ownership branch from 25dadae to ffb98b9 Compare June 24, 2026 02:27
@mikewheeleer

Copy link
Copy Markdown
Contributor

nice feature — ownership handoff with preserved state is the right shape. merging 👍

mikewheeleer added a commit that referenced this pull request Jun 24, 2026
…uard, schema-version stamp, and expanded test coverage
@mikewheeleer
mikewheeleer merged commit 2e6d1dc into Agentpay-Org:main Jun 24, 2026
1 check failed
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.

Add transfer_service_ownership so a service owner can hand off their service

2 participants