Skip to content

[Link Agent Wallet] Add report resource for agent observability#114

Open
drapeau-stripe wants to merge 1 commit into
mainfrom
drapeau/agent-observability-sdk
Open

[Link Agent Wallet] Add report resource for agent observability#114
drapeau-stripe wants to merge 1 commit into
mainfrom
drapeau/agent-observability-sdk

Conversation

@drapeau-stripe
Copy link
Copy Markdown

@drapeau-stripe drapeau-stripe commented May 22, 2026

Summary

Adds ReportResource to the SDK for reporting agent purchase outcomes to Stripe. Agents call this after every purchase attempt (success, blocked, or abandoned) so we can build an agent checkout benchmark and identify failure modes.

  • IReportResource interface and CreateReportParams / ReportRecord types in interfaces.ts
  • ReportResource implementation following the same pattern as SpendRequestResource (Bearer auth, 401 retry, JSON POST)
  • Endpoint: POST ${apiBaseUrl}/agent_observations

Stack

# PR What it does
1 (this PR) SDK resource
2 #115 CLI report command
3 #116 Skill instructions

Depends on the pay-server endpoint being deployed: https://git.corp.stripe.com/stripe-internal/mint/pull/2186497

Test plan

  • Unit tests pass (pnpm --filter @stripe/link-sdk test)

Add IReportResource interface and ReportResource implementation that
POSTs to /agent_observations. Supports reporting purchase outcomes
(success, blocked, abandoned) with domain, tags, and context.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Committed-By-Agent: claude
@drapeau-stripe drapeau-stripe force-pushed the drapeau/agent-observability-sdk branch from 16b80f7 to 29d78de Compare May 22, 2026 23:23
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.

1 participant