- engineering-docs → archive/2026-03-29-engineering-docs (63/63 tasks complete) - phase-2-production-ready → archive/2026-03-29-phase-2-production-ready (89/89 tasks complete) - openspec/specs/ synced with all Phase 1 + Phase 2 + engineering-docs capabilities (22 specs total) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
985 B
985 B
Spec: Go SDK (github.com/sentryagent/idp-sdk-go)
Status: Pending CEO approval Workstream: 3 of 8
Scope
sdk-go/directory at project root- Context-aware
AgentIdPClientusing standard librarynet/http TokenManagerwith mutex-guarded cache and 60s auto-refresh- Service clients:
AgentRegistryClient,CredentialClient,TokenClient,AuditClient - Idiomatic Go error type
AgentIdPErrorimplementingerrorinterface go.modmodule:github.com/sentryagent/idp-sdk-gosdk-go/README.md
Acceptance Criteria
- All 14 endpoints covered
- All methods take
context.Contextas first argument - No panics — all errors returned as
error AgentIdPErrorimplementserrorand exposes.Code,.HTTPStatus,.DetailsTokenManageris goroutine-safe (sync.Mutexon cache)go vetandstaticcheckpass with zero warningsgo test ./...with >80% coverage- README matches Node.js SDK structure