{ "lexicon": 1, "id": "computer.socialweb.temp.policy.ghalite", "defs": { "main": { "type": "record", "description": "A market policy a requester publishes in its own repo before a contract's first RFP: a gha-lite workflow that every market.rfp of the contract strongRefs in policies[]. The bidder runs its own workflow and then every attached one, and allows only if all allow; the requester gate runs the same record, which must be in the requester's own repo and, for a bundled name, equal the bundled workflow. Unsigned; written once per contract at a TID and reused by its later RFP rounds.", "key": "tid", "record": { "type": "object", "required": ["name", "workflow", "args", "requester", "perspective", "policies", "createdAt"], "properties": { "name": { "type": "string", "description": "The policy name, e.g. requester-tangled-vouch: the bundled workflow of that name when there is one." }, "workflow": { "type": "string", "description": "The gha-lite workflow as YAML text; readers also take a JSON mapping here." }, "args": { "type": "unknown", "description": "The contract's policyArgs, an object of string values (empty when the contract sets none); recorded, and passed to no policy run today." }, "requester": { "type": "string", "format": "did", "description": "The requester's market DID." }, "perspective": { "type": "string", "knownValues": ["requester"], "description": "Whose policy this is: requester." }, "policies": { "type": "array", "items": { "type": "ref", "ref": "#policy" }, "description": "The one policy entry the record carries: its name and args." }, "createdAt": { "type": "string", "format": "datetime" } } } }, "policy": { "type": "object", "description": "One named policy and its arguments.", "required": ["name"], "properties": { "name": { "type": "string", "description": "The policy name, the same as the record's name." }, "args": { "type": "unknown", "description": "The policyArgs again, present only when the contract sets some." } } } } }