Skip to content

feat(gitprovider): add optional DescribeIdentity operation - #17

Merged
pikann merged 2 commits into
Paca-AI:masterfrom
gorlix:feat/describe-identity-v2
Nov 3, 2026
Merged

pikann merged 2 commits into
Paca-AI:masterfrom
gorlix:feat/describe-identity-v2

Conversation

@gorlix

@gorlix gorlix commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds an optional IdentityDescriber interface, advertised by the identity_description capability: a provider says who an existing identity is, without a setup flow.

Why

Implements Paca-AI/paca#661. A plugin's data migration creates identities without calling the platform, so they have no handle, and the SPI had no way to ask for it: an Identity only came back from CompleteIdentitySetup. Such a connection stays nameless in Settings → Git and cannot be @mentioned.

Changes

  • IdentityDescriber, DescribeIdentityRequest and the identity_description capability.
  • Conformance checks, fake provider variant and mutant test.
  • A test that a provider which does not declare identity_description answers describe_identity with 501.
  • Golden wire shapes updated. Additive: stays gitprovider.v1.

Tests

go vet, go test -race ./... (126 passed), golangci-lint (0 issues) and the wasip1 build, on top of the optional issue listing (#15). Used end to end by the core and plugin PRs below.

Merge order

  1. This PR, then tag a release (next: v0.4.2 or v0.5.0, your call).
  2. feat(git): name connections with no handle from the provider paca#692 (core).
  3. The GitLab and GitHub plugin PRs, opened after switching them to the tag.

🤖 Generated with Claude Code

gorlix and others added 2 commits November 3, 2026 10:16
Identities created outside a setup flow (a plugin's data migration) reach
core without a handle, and the SPI had no way to ask who they are: an
Identity only came back from CompleteIdentitySetup. DescribeIdentity,
advertised by the new identity_description capability, returns the
Identity for an existing IdentityRef so core can fill in handle, display
name and expiry. Additive: stays gitprovider.v1.

Refs Paca-AI/paca#661

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s not declared

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@pikann pikann left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you for the contribution! 🚀

@pikann
pikann merged commit 540b0a1 into Paca-AI:master Nov 3, 2026
4 checks passed
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.

2 participants