~ knotless Search/
↑↓ move↵ open⇧↵ all results

johnandersen777.bsky.social/atlibs-socialweb-computer-requester

socialweb.computer market requester and policy modules for atlibs, with its web pages and lexicons

0
0
65 lines · 1.5 KB Raw History
{
	"name": "policy requester-mutuals",
	"description": "socialweb.computer market policy requester-mutuals (kcp parity): Only accept bids from a bidder vouched by the requester (or its operator) that vouches back.",
	"actions": [
		{
			"entry": "evaluate",
			"label": "Evaluate",
			"description": "Returns the kcp verdict {allow, violations:[{msg, policyId}]} as the run result.",
			"fields": [
				{
					"key": "selfDid",
					"label": "Evaluator DID"
				},
				{
					"key": "counterpartyDid",
					"label": "Counterparty DID"
				},
				{
					"key": "mode",
					"label": "scope or full"
				},
				{
					"key": "perspective",
					"label": "requester or bidder (default: the policy's side)"
				},
				{
					"key": "subjectDid",
					"label": "Subject DID (full mode)"
				},
				{
					"key": "rfp",
					"label": "RFP {uri,cid,value?}"
				},
				{
					"key": "bid",
					"label": "Bid {uri,cid,value?}"
				},
				{
					"key": "accept",
					"label": "Accept {uri,cid,value?}"
				},
				{
					"key": "args",
					"label": "Policy args (JSON)"
				},
				{
					"key": "snapshot",
					"label": "Trust snapshot {operatorOf,vouchedBy} (optional; read if absent)"
				}
			]
		}
	],
	"config": [
		{"key": "args", "label": "Arguments", "type": "object", "description": "The policy's args, as an RFP's policy record names them."}
	],
	"calls": [
		"com.atproto.repo.getRecord"
	],
	"implements": [
		{
			"nsid": "com.publicdomainrelay.temp.market.evaluatePolicy",
			"entry": "evaluate"
		}
	]
}