Skip to content

Latest commit

 

History

History
47 lines (38 loc) · 3.05 KB

File metadata and controls

47 lines (38 loc) · 3.05 KB

AgentPay Walkthrough

The published video is a recording of the interactive demo. English captions are provided as a WebVTT track. It contains no new model call or blockchain transaction. The code walkthrough and historical receipt are intentionally separate.

Scene On screen Caption / narration
Commission 5 USDC task budget; approval-first policy An agent needs permission to buy its next inference, not your whole wallet.
Work Baseline failure; saved checkpoint Reproduce the duplicate charge. Save the task before requesting more inference. This capacity trigger is scripted.
Discover Actual aiplans.dev capture and model channels Compare model channels. Toolkit is the configured machine-fulfillment route, not a claimed cheapest provider.
Permission Approval requested The owner decides whether procurement can proceed.
Connect Toolkit capture, SDK request, event playback One bounded request. A 0.1 USDC ceiling. Historical evidence, not a new payment.
Receipt 273 tokens and 0.000001 USDC The recorded testnet transaction settles metered usage, not the full authorization ceiling.
Verify Retry guard; three passing tests; acceptance Run the local acceptance tests. The teaching fixture was not generated by the historical request.
Overview Six-stage map and selected nodes Permission, procurement, proof, then back to the task.
Preview Direct preview without an accepted commission Inspect the complete workflow before starting. Preview creates no payment or acceptance.

How to Re-record

Run the reference server using npm run dev, then use a locally installed Playwright module and its browser runtime. scripts/capture-demo.mjs accepts PLAYWRIGHT_MODULE (module name or absolute ESM module path), DEMO_URL (default http://127.0.0.1:4021/agentpay/) and CAPTURE_DIR (default a new temporary directory). No production account or wallet is needed.

node scripts/capture-demo.mjs

The script prints its output directory, performs real clicks, checks the result, and writes walkthrough.webm, captions.vtt, desktop/mobile screenshots and verification.json. Preserve the public simulation disclosure during recording. Convert the video for distribution with the local FFmpeg installation:

ffmpeg -i /absolute/capture/path/walkthrough.webm -c:v libx264 -crf 24 -pix_fmt yuv420p -movflags +faststart -an /absolute/capture/path/walkthrough.mp4

The public player at apps/demo/brief.html uses the original assets/walkthrough.webm and assets/walkthrough.vtt; MP4 conversion above is optional for submission platforms that require it. To verify, check video dimensions/duration in the browser or with ffprobe, open the player, and inspect frames from the beginning, middle and end.

Troubleshooting: if Playwright is not found, set PLAYWRIGHT_MODULE to your installation's index.mjs. If the server is on another port, change DEMO_URL. If a UI assertion fails, fix the regression before publishing the new recording; do not substitute a manufactured screenshot.