closedhumanPR #32Trust
feat(examples): Agent Action Capsule trust layer + Stripe payment demo
Lands a working capsule-emit-nanda plugin package so NANDA users can
Author
@StevenMih
github profile →- Status
- Closed without merging
- Opened on
- Jun 22
- Branch
- stripe-capsule-payment
Description
The pitch.
## Summary Lands a working `capsule-emit-nanda` plugin package so NANDA users can actually install and use the capsule trust + payments layers, with demos underneath. **Gap in the original PR:** `pip install capsule-emit[nanda]` didn't exist, and `nest run scenarios/receipt_reputation_capsule.yaml` would fail for anyone who cloned the repo. ### What's new: `examples/capsule-emit/` Installable `capsule-emit-nanda` package with two real NANDA layer plugins registered via entry points: ```bash pip install -e examples/capsule-emit nest plugins list | grep -E "trust|payments" # capsule_emit (trust) # stripe_capsule (payments) ``` **`trust: capsule_emit`** — `CapsuleEmitTrust` - Drop-in for `agent_receipts`; zero agent-code changes - Seals every corroborated receipt to an Agent Action Capsule ledger - Ring-severance validators still pass (ring mean ≈ 0.0, honest > 0.1) - Third-party verifiable: `agent-action-capsule verify --store capsule_ledger.jsonl` **`payments: stripe_capsule`** — `StripeCapsuledPayments` - Sandbox/mock by default — no `STRIPE_SECRET_KEY`, no real charges - Real Stripe with `pip install -e "examples/capsule-emit[stripe]"` + `STRIPE_SECRET_KEY=sk_test_...` - Every payment sealed; `agent_input_digest` commits to amount + payer/payee at call time - Dispute proof: re-derive digest from disputed values; mismatch = tamper evidence ### Updated - `examples/capsule-trust/README.md` — capability-first, install points at real package - `examples/stripe-capsule-payment/README.md` — capability-first with code pattern; sandbox vs real-Stripe; IETF slug fixed - `scenarios/receipt_reputation_capsule.yaml` — install comment matches real package path - IETF slug corrected everywhere: `draft-steele-agent-action-capsule` → `draft-mih-scitt-agent-action-capsule` ## Test plan - [ ] `pip install -e examples/capsule-emit` → no errors - [ ] `nest plugins list | grep -E "trust|payments"` shows `capsule_emit` and `stripe_capsule` - [ ] `nest run scenarios/receipt_reputation_capsule.yaml` → validators pass, `capsule_ledger.jsonl` produced - [ ] `agent-action-capsule verify --store capsule_ledger.jsonl` → exit 0 - [ ] `pip install -e "examples/capsule-emit[stripe]"` works; `StripeCapsuledPayments` sandbox runs without a real key - [ ] IETF links resolve: `datatracker.ietf.org/doc/draft-mih-scitt-agent-action-capsule/` ## Background The [Agent Action Capsule](https://datatracker.ietf.org/doc/draft-mih-scitt-agent-action-capsule/) is an IETF draft (Apache-2.0 reference library) that seals agent decisions as tamper-evident records anchored to a SCITT transparency log. This PR shows two NANDA integration points — a one-line YAML swap that adds an independently-verifiable ledger to any scenario, and a payments layer that commits to payment amounts at execution time. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Try it
Open PR on GitHubView diffCheckout locally
git fetch origin pull/32/head:pr-32
git checkout pr-32