[Link Agent Wallet] Add report resource for agent observability#114
Open
drapeau-stripe wants to merge 1 commit into
Open
[Link Agent Wallet] Add report resource for agent observability#114drapeau-stripe wants to merge 1 commit into
drapeau-stripe wants to merge 1 commit into
Conversation
This was referenced May 22, 2026
be455b5 to
16b80f7
Compare
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
16b80f7 to
29d78de
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
ReportResourceto 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.IReportResourceinterface andCreateReportParams/ReportRecordtypes ininterfaces.tsReportResourceimplementation following the same pattern asSpendRequestResource(Bearer auth, 401 retry, JSON POST)POST ${apiBaseUrl}/agent_observationsStack
reportcommandDepends on the pay-server endpoint being deployed: https://git.corp.stripe.com/stripe-internal/mint/pull/2186497
Test plan
pnpm --filter @stripe/link-sdk test)