Skip to content

[Link Agent Wallet] Add report command for agent observability#115

Open
drapeau-stripe wants to merge 1 commit into
drapeau/agent-observability-sdkfrom
drapeau/agent-observability-cli
Open

[Link Agent Wallet] Add report command for agent observability#115
drapeau-stripe wants to merge 1 commit into
drapeau/agent-observability-sdkfrom
drapeau/agent-observability-cli

Conversation

@drapeau-stripe
Copy link
Copy Markdown

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

Summary

Adds link-cli report command for reporting purchase outcomes. Agents call this after every purchase attempt to record what happened (success, blocked, abandoned) along with structured tags and context.

link-cli report \                                                                                                                                                                                                                        
  --domain merchant.com \                                       
  --outcome blocked \                                                                                                                                                                                                                    
  --spend-request-id lsrq_abc123 \
  --tag captcha \                                                                                                                                                                                                                        
  --step "checkout payment form" \                              
  --freeform-context "Challenge appeared after clicking Place Order"                                                                                                                                                                     

Changes:

  • packages/cli/src/commands/report/index.tsx — Command definition using incur + zod
  • packages/cli/src/utils/resource-factory.ts — Add createReportResource()
  • packages/cli/src/cli.tsx — Register the command

The command uses outputPolicy: 'agent-only' and is automatically exposed as an MCP tool when running with --mcp.

Stack

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

@drapeau-stripe drapeau-stripe requested a review from a team as a code owner May 22, 2026 23:15
@drapeau-stripe drapeau-stripe self-assigned this May 22, 2026
@drapeau-stripe drapeau-stripe force-pushed the drapeau/agent-observability-sdk branch from be455b5 to 16b80f7 Compare May 22, 2026 23:21
@drapeau-stripe drapeau-stripe force-pushed the drapeau/agent-observability-cli branch from e659442 to 7154e97 Compare May 22, 2026 23:21
@drapeau-stripe drapeau-stripe force-pushed the drapeau/agent-observability-sdk branch from 16b80f7 to 29d78de Compare May 22, 2026 23:23
@drapeau-stripe drapeau-stripe force-pushed the drapeau/agent-observability-cli branch from 7154e97 to b37e6c8 Compare May 22, 2026 23:23
Add `link-cli report` command that reports purchase outcomes.
Exposed as MCP tool when running with --mcp.

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-cli branch from b37e6c8 to 5b9481c Compare May 22, 2026 23:25
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