-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdraft-stone-vcap-00.txt
More file actions
1344 lines (830 loc) · 43.4 KB
/
draft-stone-vcap-00.txt
File metadata and controls
1344 lines (830 loc) · 43.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
Individual Submission B. Stone
Internet-Draft SwarmSync.AI
Intended status: Informational March 2026
Expires: 18 September 2026
VCAP: Verified Commerce for Agent Protocols
draft-stone-vcap-00
Abstract
This document specifies the Verified Commerce for Agent Protocols
(VCAP), an open standard for settling financial transactions between
autonomous AI agents using cryptographically verifiable proof of work
delivery. VCAP defines the message formats, state machines,
cryptographic bindings, and callback contracts required for any agent
marketplace to hold funds in escrow, automatically verify
deliverables via independent verification engines, and release or
refund payments based on machine-verifiable evidence. VCAP is
designed as a settlement layer that complements agent-to-agent
communication protocols (such as Google A2A or the Agent Protocol).
Where those protocols define how agents discover and talk to each
other, VCAP defines how agents pay each other with proof that work
was done.
Status of This Memo
This Internet-Draft is submitted in full conformance with the
provisions of BCP 78 and BCP 79.
Internet-Drafts are working documents of the Internet Engineering
Task Force (IETF). Note that other groups may also distribute
working documents as Internet-Drafts. The list of current Internet-
Drafts is at https://datatracker.ietf.org/drafts/current/.
Internet-Drafts are draft documents valid for a maximum of six months
and may be updated, replaced, or obsoleted by other documents at any
time. It is inappropriate to use Internet-Drafts as reference
material or to cite them other than as "work in progress."
This Internet-Draft will expire on 2 September 2026.
Copyright Notice
Copyright (c) 2026 IETF Trust and the persons identified as the
document authors. All rights reserved.
Stone Expires 18 September 2026 [Page 1]
Internet-Draft VCAP March 2026
This document is subject to BCP 78 and the IETF Trust's Legal
Provisions Relating to IETF Documents (https://trustee.ietf.org/
license-info) in effect on the date of publication of this document.
Please review these documents carefully, as they describe your rights
and restrictions with respect to this document. Code Components
extracted from this document must include Revised BSD License text as
described in Section 4.e of the Trust Legal Provisions and are
provided without warranty as described in the Revised BSD License.
Table of Contents
1. 1. Introduction . . . . . . . . . . . . . . . . . . . . . . 3
1.1. 1.1 Problem Statement . . . . . . . . . . . . . . . . . . 3
1.2. 1.2 Design Goals . . . . . . . . . . . . . . . . . . . . 4
1.3. 1.3 Relationship to Other Protocols . . . . . . . . . . . 4
1.4. 1.4 Terminology . . . . . . . . . . . . . . . . . . . . . 4
2. 2. Protocol Overview . . . . . . . . . . . . . . . . . . . . 5
2.1. 2.1 Flow Summary . . . . . . . . . . . . . . . . . . . . 5
2.2. 2.2 Protocol Phases . . . . . . . . . . . . . . . . . . . 5
3. 3. Message Formats . . . . . . . . . . . . . . . . . . . . . 5
3.1. 3.1 Negotiation Request . . . . . . . . . . . . . . . . . 5
3.2. 3.2 Negotiation Response . . . . . . . . . . . . . . . . 6
3.3. 3.3 Escrow Hold . . . . . . . . . . . . . . . . . . . . . 7
3.4. 3.4 Service Delivery . . . . . . . . . . . . . . . . . . 7
3.5. 3.5 Verification Request . . . . . . . . . . . . . . . . 8
3.6. 3.6 Verification Callback (Core Message) . . . . . . . . 9
3.7. 3.7 Escrow Settlement . . . . . . . . . . . . . . . . . . 10
4. 4. State Machines . . . . . . . . . . . . . . . . . . . . . 11
4.1. 4.1 Negotiation State Machine . . . . . . . . . . . . . . 11
4.2. 4.2 Escrow State Machine . . . . . . . . . . . . . . . . 12
4.3. 4.3 Verification State Machine . . . . . . . . . . . . . 13
4.4. 4.4 Service Agreement State Machine . . . . . . . . . . . 14
5. 5. Cryptographic Binding . . . . . . . . . . . . . . . . . . 14
5.1. 5.1 Proof Hash . . . . . . . . . . . . . . . . . . . . . 14
5.2. 5.2 Proof Signature . . . . . . . . . . . . . . . . . . . 15
5.3. 5.3 Action Log Hash Chain (OPTIONAL, RECOMMENDED) . . . . 15
5.4. 5.4 Agent Identity Binding (OPTIONAL) . . . . . . . . . . 15
6. 6. Verification Engines . . . . . . . . . . . . . . . . . . 16
6.1. 6.1 Verifier Requirements . . . . . . . . . . . . . . . . 16
6.2. 6.2 Example Verifier Types . . . . . . . . . . . . . . . 16
6.3. 6.3 Verification Hints . . . . . . . . . . . . . . . . . 17
7. 7. Timeout and Escalation . . . . . . . . . . . . . . . . . 17
7.1. 7.1 Timeout Semantics . . . . . . . . . . . . . . . . . . 17
7.2. 7.2 Timeout Detection . . . . . . . . . . . . . . . . . . 17
7.3. 7.3 Manual Review . . . . . . . . . . . . . . . . . . . . 17
8. 8. Idempotency . . . . . . . . . . . . . . . . . . . . . . . 18
8.1. 8.1 Delivery Idempotency . . . . . . . . . . . . . . . . 18
8.2. 8.2 Escrow Idempotency . . . . . . . . . . . . . . . . . 18
Stone Expires 18 September 2026 [Page 2]
Internet-Draft VCAP March 2026
8.3. 8.3 Verification Callback Idempotency . . . . . . . . . . 18
9. 9. Security Considerations . . . . . . . . . . . . . . . . . 18
9.1. 9.1 Shared Secret Management . . . . . . . . . . . . . . 19
9.2. 9.2 Transport Security . . . . . . . . . . . . . . . . . 19
9.3. 9.3 Callback Authentication . . . . . . . . . . . . . . . 19
9.4. 9.4 Timing-Safe Comparison . . . . . . . . . . . . . . . 19
9.5. 9.5 Proof Integrity . . . . . . . . . . . . . . . . . . . 19
10. 10. Platform Fees . . . . . . . . . . . . . . . . . . . . . 20
10.1. 10.1 Fee Declaration . . . . . . . . . . . . . . . . . . 20
10.2. 10.2 Fee Timing . . . . . . . . . . . . . . . . . . . . 20
11. 11. Extensibility . . . . . . . . . . . . . . . . . . . . . 20
11.1. 11.1 Custom Fields . . . . . . . . . . . . . . . . . . . 20
11.2. 11.2 Verification Engine Extensions . . . . . . . . . . 20
11.3. 11.3 Payment Rail Extensions . . . . . . . . . . . . . . 21
12. 12. Conformance . . . . . . . . . . . . . . . . . . . . . . 21
12.1. 12.1 Conformance Levels . . . . . . . . . . . . . . . . 21
12.2. 12.2 Implementation Checklist . . . . . . . . . . . . . 21
13. 13. Reference Implementation . . . . . . . . . . . . . . . . 22
14. Appendix A: Complete Action Type Registry . . . . . . . . . . 22
15. Appendix B: JSON Schema . . . . . . . . . . . . . . . . . . . 23
16. Appendix C: Relationship to AIVS . . . . . . . . . . . . . . 23
17. Appendix D: Changelog . . . . . . . . . . . . . . . . . . . . 24
18. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 24
19. References . . . . . . . . . . . . . . . . . . . . . . . . . 24
19.1. Normative References . . . . . . . . . . . . . . . . . . 24
19.2. Informative References . . . . . . . . . . . . . . . . . 24
Author's Address . . . . . . . . . . . . . . . . . . . . . . . . 24
1. 1. Introduction
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and
"OPTIONAL" in this document are to be interpreted as described in BCP
14 [RFC2119] [RFC8174] when, and only when, they appear in all
capitals, as shown here.
1.1. 1.1 Problem Statement
As AI agents proliferate, they increasingly need to transact with one
another: hire other agents, delegate subtasks, and pay for completed
work. Today there is no standard for:
How an agent requests work and holds payment in escrow
How a delivering agent proves the work was actually done
How a verification engine independently confirms delivery
Stone Expires 18 September 2026 [Page 3]
Internet-Draft VCAP March 2026
How proof of verification cryptographically triggers fund release
How timeouts and disputes are escalated to human review
Each marketplace invents its own ad-hoc system, creating
fragmentation and vendor lock-in. VCAP provides a vendor-neutral
protocol that any marketplace, payment processor, or agent framework
can implement.
1.2. 1.2 Design Goals
| Goal | Description |
|------|-------------|
| **Vendor-neutral** | Any marketplace or payment processor can implement VCAP |
| **Verification-agnostic** | Any verification engine (browser automation, LLM evaluation, human review) can produce VCAP-compliant proofs |
| **Cryptographically auditable** | Every settlement is tied to a proof hash and signature that can be independently verified |
| **Graceful degradation** | Automated verification falls back to human review on timeout or ambiguity |
| **Composable** | VCAP layers on top of existing agent communication protocols (A2A, Agent Protocol, custom) |
| **Minimal** | The spec defines only what is necessary; implementations may extend it |
1.3. 1.3 Relationship to Other Protocols
VCAP relates to several existing protocols. The Agent Payments
Protocol (AP2) [AP2] defines payment intents that VCAP fulfills at
the settlement layer. The Agent-to-Agent Protocol [A2A] handles
agent discovery and messaging; VCAP adds payment settlement on top.
| Protocol | Layer | VCAP Relationship |
|----------|-------|-------------------|
| Google A2A | Agent Communication | VCAP sits above A2A; uses A2A for discovery/messaging, adds payment settlement |
| Agent Protocol | Task Execution | VCAP wraps Agent Protocol tasks with escrow and verification |
| AIVS (AI Visibility Verification Standard) | Proof Format | AIVS proof bundles are one valid VCAP proof format |
| OAuth 2.0 | Authorization | VCAP agents may use OAuth for identity; VCAP adds payment semantics |
| Stripe Connect / x402 | Payment Rails | VCAP is rail-agnostic; Stripe, crypto, or internal wallets can serve as the escrow backend |
1.4. 1.4 Terminology
| Term | Definition |
|------|------------|
| **Requester** | The agent (or human) that initiates a service request and holds payment |
| **Provider** | The agent that performs the work and receives payment |
| **Marketplace** | The platform that facilitates discovery, escrow, and settlement |
| **Verifier** | An independent engine that confirms whether work was delivered (may be automated or human) |
| **Escrow** | A financial hold on the requester's funds, released only upon verified delivery |
| **Proof Bundle** | A cryptographically signed artifact attesting to the verification result |
| **Service Agreement** | The contract between requester and provider, specifying deliverables and payment |
Stone Expires 18 September 2026 [Page 4]
Internet-Draft VCAP March 2026
2. 2. Protocol Overview
2.1. 2.1 Flow Summary
Requester Marketplace Provider Verifier
│ │ │ │
│──── 1. NEGOTIATE ───────>│ │ │
│ │──── 2. FORWARD ─────────>│ │
│ │<─── 3. RESPOND ──────────│ │
│<─── 4. TERMS ───────────│ │ │
│──── 5. ACCEPT ─────────>│ │ │
│ │── 6. ESCROW_HOLD ───────>│ (funds reserved) │
│ │── 7. AGREEMENT_CREATED ─>│ │
│ │ │ │
│ │ [Provider works...] │ │
│ │ │ │
│ │<─── 8. DELIVER ──────────│ │
│ │──────────── 9. VERIFY ──────────────────────>│
│ │ │ │
│ │ [Verifier runs...] │ │
│ │ │ │
│ │<──────── 10. CALLBACK ──────────────────────│
│ │ │ │
│ │── 11a. ESCROW_RELEASE ──>│ (if VERIFIED) │
│ │── 11b. ESCROW_REFUND ───>│ (if FAILED) │
│<── 12. SETTLEMENT_RECEIPT│ │ │
2.2. 2.2 Protocol Phases
| Phase | Name | Description |
|-------|------|-------------|
| Phase 1 | **Negotiation** | Requester and provider agree on scope, price, and verification criteria |
| Phase 2 | **Escrow** | Marketplace holds requester's funds in escrow |
| Phase 3 | **Execution** | Provider performs the work |
| Phase 4 | **Delivery** | Provider submits deliverables with verification hints |
| Phase 5 | **Verification** | Independent verifier confirms delivery against the agreement |
| Phase 6 | **Settlement** | Escrow releases (on verification) or refunds (on failure) |
| Phase 7 | **Escalation** | Timeout or ambiguity routes to human review |
3. 3. Message Formats
3.1. 3.1 Negotiation Request
Sent by the requester to initiate a service request.
Stone Expires 18 September 2026 [Page 5]
Internet-Draft VCAP March 2026
{
"vcap_version": "1.0",
"message_type": "negotiation_request",
"negotiation_id": "string (UUID, generated by marketplace)",
"requester": {
"agent_id": "string (URI or UUID)",
"platform": "string (e.g., 'swarmsync', 'custom')"
},
"provider": {
"agent_id": "string (URI or UUID)",
"platform": "string"
},
"request": {
"service_type": "string (free-form or from a taxonomy)",
"description": "string (human-readable description of work)",
"budget_amount": "number (decimal, in currency units)",
"budget_currency": "string (ISO 4217, e.g., 'USD')",
"requirements": "object (OPTIONAL, implementation-specific)",
"deadline_utc": "string (OPTIONAL, ISO 8601 datetime)"
},
"verification_hints": {
"type": "string (OPTIONAL, e.g., 'url', 'artifact', 'llm_eval', 'human')",
"url": "string (OPTIONAL, URL of deliverable to verify)",
"selector": "string (OPTIONAL, CSS selector or JSONPath for content extraction)",
"expected_content": "string (OPTIONAL, substring or pattern to match)",
"fingerprint_delta": "boolean (OPTIONAL, check if content changed)",
"custom": "object (OPTIONAL, verifier-specific parameters)"
},
"metadata": "object (OPTIONAL, implementation-specific)"
}
Figure 1: json
3.2. 3.2 Negotiation Response
Sent by the provider to accept, reject, or counter the request.
Stone Expires 18 September 2026 [Page 6]
Internet-Draft VCAP March 2026
{
"vcap_version": "1.0",
"message_type": "negotiation_response",
"negotiation_id": "string (matches request)",
"response_status": "ACCEPTED | REJECTED | COUNTERED",
"counter_terms": {
"amount": "number (OPTIONAL, counter-offer price)",
"currency": "string (OPTIONAL)",
"description": "string (OPTIONAL, modified scope)",
"deadline_utc": "string (OPTIONAL)",
"rejection_reason": "string (OPTIONAL, when REJECTED)"
},
"provider_verification_hints": {
"type": "string (OPTIONAL, provider may suggest verification method)",
"url": "string (OPTIONAL)",
"custom": "object (OPTIONAL)"
}
}
Figure 2: json
3.3. 3.3 Escrow Hold
Created by the marketplace when negotiation reaches ACCEPTED.
{
"vcap_version": "1.0",
"message_type": "escrow_hold",
"escrow_id": "string (UUID)",
"negotiation_id": "string",
"source_wallet": "string (requester's wallet/account identifier)",
"destination_wallet": "string (provider's wallet/account identifier)",
"amount": "number (decimal)",
"currency": "string (ISO 4217)",
"status": "HELD",
"release_condition": "string (memo linking escrow to negotiation)",
"held_at": "string (ISO 8601)",
"metadata": "object (OPTIONAL)"
}
Figure 3: json
3.4. 3.4 Service Delivery
Sent by the provider to claim work completion.
Stone Expires 18 September 2026 [Page 7]
Internet-Draft VCAP March 2026
{
"vcap_version": "1.0",
"message_type": "service_delivery",
"negotiation_id": "string",
"escrow_id": "string",
"provider": {
"agent_id": "string",
"platform": "string"
},
"delivery": {
"status": "string ('success' | 'partial' | 'failed')",
"description": "string (what was delivered)",
"artifacts": [
{
"type": "string (e.g., 'url', 'file', 'text', 'api_response')",
"uri": "string (OPTIONAL)",
"content": "string (OPTIONAL, inline content)",
"hash": "string (OPTIONAL, SHA-256 of artifact)"
}
]
},
"verification_hints": {
"url": "string (OPTIONAL, URL to verify)",
"selector": "string (OPTIONAL, CSS selector for content extraction)",
"expected_content": "string (OPTIONAL, substring to find)",
"fingerprint_delta": "boolean (OPTIONAL, default false)",
"auto_approve": "boolean (OPTIONAL, skip automated verification)"
},
"delivered_at": "string (ISO 8601)"
}
Figure 4: json
3.5. 3.5 Verification Request
Sent by the marketplace to the verifier engine.
Stone Expires 18 September 2026 [Page 8]
Internet-Draft VCAP March 2026
{
"vcap_version": "1.0",
"message_type": "verification_request",
"verification_id": "string (UUID)",
"negotiation_id": "string",
"spec": {
"url": "string (URL to verify)",
"selector": "string | null (CSS selector for extraction)",
"expected_content": "string | null (substring match, case-insensitive)",
"fingerprint_delta": "boolean (check content change)",
"timeout_seconds": "number (max verification duration, default 1800)"
},
"context": {
"marketplace": "string (marketplace identifier)",
"purpose": "escrow_verification",
"escrow_ref": "string (escrow ID)",
"negotiation_id": "string",
"verification_id": "string"
},
"requested_at": "string (ISO 8601)"
}
Figure 5: json
3.6. 3.6 Verification Callback (Core Message)
Sent by the verifier back to the marketplace. This is the most
critical message in the protocol -- it triggers escrow settlement.
Stone Expires 18 September 2026 [Page 9]
Internet-Draft VCAP March 2026
{
"vcap_version": "1.0",
"message_type": "verification_callback",
"verification_id": "string (matches request)",
"passed": "boolean (true = verified, false = failed)",
"proof_hash": "string (SHA-256 hex digest of the canonical proof bundle)",
"proof_signature": "string (HMAC-SHA256 hex digest, signed with shared secret)",
"extracted_content": "string (OPTIONAL, truncated content from target)",
"failure_reason": "string (OPTIONAL, human-readable when passed=false)",
"action_log": [
{
"index": "number (0-based sequential order)",
"action": "string (e.g., 'NAVIGATE', 'EXTRACT', 'SCREENSHOT', 'FINGERPRINT')",
"url": "string (OPTIONAL)",
"selector": "string (OPTIONAL)",
"success": "boolean",
"cost_cents": "number (cost of this action)",
"duration_ms": "number (OPTIONAL)",
"timestamp": "string (ISO 8601)",
"data_snippet": "string (OPTIONAL, first N chars of extracted data)"
}
],
"completed_at": "string (ISO 8601)"
}
Figure 6: json
3.7. 3.7 Escrow Settlement
The final state of the escrow after verification.
Stone Expires 18 September 2026 [Page 10]
Internet-Draft VCAP March 2026
{
"vcap_version": "1.0",
"message_type": "escrow_settlement",
"escrow_id": "string",
"negotiation_id": "string",
"status": "RELEASED | REFUNDED",
"verification_id": "string (links to the verification that triggered settlement)",
"proof_hash": "string (copied from verification callback for audit trail)",
"proof_signature": "string (copied from verification callback)",
"evidence": {
"conduit_verification_id": "string (OPTIONAL)",
"proof_hash": "string",
"proof_signature": "string",
"extracted_content": "string (OPTIONAL)",
"action_log": "array (OPTIONAL, full action log)"
},
"platform_fee": {
"amount": "number (OPTIONAL)",
"currency": "string (OPTIONAL)",
"rate": "number (OPTIONAL, decimal, e.g. 0.05 for 5%)"
},
"settled_at": "string (ISO 8601)"
}
Figure 7: json
4. 4. State Machines
4.1. 4.1 Negotiation State Machine
Stone Expires 18 September 2026 [Page 11]
Internet-Draft VCAP March 2026
┌──────────────┐
│ PENDING │
└──────┬───────┘
│
┌────────────┼────────────┐
│ │ │
▼ ▼ ▼
┌──────────┐ ┌──────────┐ ┌──────────┐
│ ACCEPTED │ │COUNTERED │ │ DECLINED │
└────┬─────┘ └────┬─────┘ └──────────┘
│ │ (terminal)
│ │
│ ┌────┴────┐
│ │ PENDING │ (counter-offer restarts negotiation)
│ └─────────┘
│
▼
[Escrow Hold Created]
[Service Agreement Created]
Transitions:
| From | To | Trigger |
|------|----|---------|
| PENDING | ACCEPTED | Provider accepts terms |
| PENDING | COUNTERED | Provider counter-offers |
| PENDING | DECLINED | Provider rejects |
| COUNTERED | ACCEPTED | Requester accepts counter |
| COUNTERED | DECLINED | Requester rejects counter |
| COUNTERED | COUNTERED | Requester counter-counters |
4.2. 4.2 Escrow State Machine
┌──────────┐
│ HELD │
└────┬─────┘
│
┌─────────┼─────────┐
│ │
▼ ▼
┌──────────┐ ┌──────────┐
│ RELEASED │ │ REFUNDED │
└──────────┘ └──────────┘
(terminal) (terminal)
Transitions:
Stone Expires 18 September 2026 [Page 12]
Internet-Draft VCAP March 2026
| From | To | Trigger | Guard |
|------|----|---------|-------|
| HELD | RELEASED | Verification VERIFIED | Atomic CAS: `status = 'HELD'` |
| HELD | REFUNDED | Verification FAILED or REJECTED | Atomic CAS: `status = 'HELD'` |
| HELD | REFUNDED | Timeout + manual rejection | Atomic CAS: `status = 'HELD'` |
Concurrency Guard: The HELD -> RELEASED/REFUNDED transition MUST use
an atomic compare-and-swap (CAS) operation to prevent double-release.
Implementations SHOULD use database-level atomic updates:
UPDATE Escrow SET status = 'RELEASED', released_at = NOW()
WHERE id = :escrow_id AND status = 'HELD'
-- Returns 0 rows affected if already transitioned
Figure 8: sql
4.3. 4.3 Verification State Machine
┌─────────┐
│ PENDING │
└────┬────┘
│
▼
┌─────────┐
│ RUNNING │
└────┬────┘
│
┌────┼────────┬──────────┐
│ │ │ │
▼ ▼ ▼ ▼
┌────┐┌────┐ ┌───────┐ ┌───────┐
│VERI││FAIL│ │TIMEOUT│ │ ERROR │
│FIED││ ED │ └───┬───┘ └───────┘
└──┬─┘└──┬─┘ │
│ │ ▼
│ │ [Manual Review]
│ │ │
│ │ ┌────┴────┐
│ │ │ PENDING │ (OutcomeVerification)
│ │ └─────────┘
▼ ▼
[ESCROW [ESCROW
RELEASE] REFUND]
Transitions:
Stone Expires 18 September 2026 [Page 13]
Internet-Draft VCAP March 2026
| From | To | Trigger |
|------|----|---------|
| PENDING | RUNNING | Verifier acknowledges job |
| RUNNING | VERIFIED | Verification callback `passed=true` |
| RUNNING | FAILED | Verification callback `passed=false` |
| RUNNING | TIMEOUT | No callback within `timeout_seconds` |
| RUNNING | ERROR | Verifier reports internal error |
| PENDING | TIMEOUT | No acknowledgment within `timeout_seconds` |
| TIMEOUT | (manual) | Escalated to human review queue |
4.4. 4.4 Service Agreement State Machine
┌────────┐
│ ACTIVE │
└───┬────┘
│
┌────┼────────┐
│ │ │
▼ ▼ ▼
┌────┐┌────┐ ┌────┐
│COMP││DISP│ │CANC│
│LETE││UTED│ │ELED│
│ D ││ │ │ │
└────┘└────┘ └────┘
| From | To | Trigger |
|------|----|---------|
| ACTIVE | COMPLETED | Verification VERIFIED |
| ACTIVE | DISPUTED | Verification REJECTED |
| ACTIVE | CANCELLED | Either party cancels before delivery |
5. 5. Cryptographic Binding
5.1. 5.1 Proof Hash
The proof_hash field in the Verification Callback MUST be computed
as:
proof_hash = SHA-256(canonical_json(proof_bundle))
Where canonical_json serializes the proof bundle with:
Object keys sorted alphabetically (recursive)
No whitespace between tokens
UTF-8 encoding
Stone Expires 18 September 2026 [Page 14]
Internet-Draft VCAP March 2026
No trailing newline
5.2. 5.2 Proof Signature
The proof_signature field MUST be computed as:
proof_signature = HMAC-SHA256(canonical_json(proof_body), shared_secret)
Where:
proof_body contains at minimum: { verification_id, negotiation_id,
escrow_ref, passed, proof_hash, completed_at }
shared_secret is a pre-shared key between the marketplace and
verifier (minimum 32 bytes)
The signature binds the proof to the specific escrow, preventing
replay across different transactions
5.3. 5.3 Action Log Hash Chain (OPTIONAL, RECOMMENDED)
For verifiers that record sequential actions (e.g., browser
automation), the action log SHOULD be hash-chained:
hash_0 = SHA-256(canonical_json(action_0))
hash_1 = SHA-256(canonical_json(action_1) || hash_0)
hash_2 = SHA-256(canonical_json(action_2) || hash_1)
...
hash_n = SHA-256(canonical_json(action_n) || hash_(n-1))
The final hash_n SHOULD be included in the proof bundle. Modifying
any past action immediately invalidates all subsequent hashes,
providing tamper evidence.
5.4. 5.4 Agent Identity Binding (OPTIONAL)
When agent identity is cryptographically established (e.g., via
Ed25519 key pairs), the proof bundle MAY include:
{
"agent_identity": {
"agent_id": "string",
"public_key": "string (PEM, Ed25519 SPKI format)",
"signature": "string (HMAC-SHA256 of agent_id + timestamp, signed with agent's private key)",
"timestamp": "string (ISO 8601)"
}
}
Stone Expires 18 September 2026 [Page 15]
Internet-Draft VCAP March 2026
Figure 9: json
Agent identity headers for HTTP transport:
X-Agent-Id: <agent UUID>
X-Agent-Signature: <ISO-timestamp>.<HMAC-SHA256-hex>
X-Agent-Platform: <platform identifier>
6. 6. Verification Engines
6.1. 6.1 Verifier Requirements
A compliant VCAP verifier MUST:
Accept a verification_request message
Return a verification_callback message within the specified
timeout_seconds
Include a proof_hash computed per Section 5.1
Include a proof_signature computed per Section 5.2
Set passed to true only if the verification criteria are met
6. Include an action_log documenting all steps taken
A compliant VCAP verifier SHOULD:
Use hash-chained action logs per Section 5.3
Include extracted_content when applicable
Provide human-readable failure_reason when passed=false
6.2. 6.2 Example Verifier Types
| Type | Description | Use Case |
|------|-------------|----------|
| **Browser Automation** | Navigates to URL, extracts content, fingerprints page | Web deliverables, deployed applications |
| **LLM Evaluation** | Sends deliverable to an LLM for quality assessment | Content generation, code review |
| **API Health Check** | Calls API endpoints and validates responses | API development tasks |
| **Human Review** | Routes to a human reviewer with a structured rubric | Subjective quality, complex deliverables |
| **Composite** | Chains multiple verifiers (e.g., browser + LLM) | Multi-criteria verification |
Stone Expires 18 September 2026 [Page 16]
Internet-Draft VCAP March 2026
6.3. 6.3 Verification Hints
The verification_hints object in the delivery message tells the
verifier what to check. Standard hint fields:
| Field | Type | Description |
|-------|------|-------------|
| `url` | string | URL of the deliverable to verify |
| `selector` | string | CSS selector or JSONPath to extract specific content |
| `expected_content` | string | Substring that must appear (case-insensitive) |
| `fingerprint_delta` | boolean | If true, verify the page content has changed from a prior known state |
| `auto_approve` | boolean | If true, skip automated verification (provider self-attests) |
| `custom` | object | Verifier-specific parameters (e.g., LLM rubric, API schema) |
7. 7. Timeout and Escalation
7.1. 7.1 Timeout Semantics
If a verification does not complete within timeout_seconds (default:
1800 seconds / 30 minutes):
The marketplace MUST transition the verification to TIMEOUT status
The escrow MUST remain in HELD status (funds are NOT auto-released or
auto-refunded)
The marketplace SHOULD create a manual review queue entry with status
PENDING
A human reviewer MUST make the final settlement decision
7.2. 7.2 Timeout Detection
Implementations SHOULD run a periodic check (recommended: every 5
minutes) that:
FOR EACH verification WHERE
status IN ('PENDING', 'RUNNING') AND
created_at < (NOW() - timeout_seconds)
DO
SET status = 'TIMEOUT'
SET failure_reason = 'Verification timed out — escalated to manual review'
CREATE manual_review_entry(status = 'PENDING')
7.3. 7.3 Manual Review
When a verification is escalated to manual review, the reviewer has
access to:
Stone Expires 18 September 2026 [Page 17]
Internet-Draft VCAP March 2026
The original service agreement and negotiation terms
The provider's delivery artifacts
Any partial verification results (action logs, extracted content)
The escrow hold details
The reviewer MUST produce a standard verification_callback message
with:
passed = true or passed = false
action_log containing a single entry documenting the manual decision
proof_hash and proof_signature computed normally
8. 8. Idempotency
8.1. 8.1 Delivery Idempotency
If the same provider submits delivery for the same escrow multiple
times, the marketplace MUST return the existing verification result
rather than creating a new one. This prevents:
Double-release of escrow funds
Duplicate verification jobs
Replay attacks
8.2. 8.2 Escrow Idempotency
The HELD -> RELEASED/REFUNDED transition MUST be atomic and
idempotent. If two concurrent processes attempt to settle the same
escrow, exactly one MUST succeed and the other MUST observe the
already-settled state.
8.3. 8.3 Verification Callback Idempotency
If a verifier sends the same callback multiple times (e.g., due to
network retry), the marketplace MUST process only the first callback
and acknowledge subsequent duplicates without re-settling the escrow.