~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0
39 lines · 1.3 KB Raw History
name: Tangled Requester Only-Me Policy
description: >
  Only accept bids from a bidder that resolves to the requester's own operator. Evaluates the requester-only-me policy via deno-typescript-shared and
  memoizes the verdict in the policy engine's JSON-object cache.
inputs:
  self-did:
    description: DID running this evaluation (the evaluator's own DID)
    required: true
  rfp:
    description: 'JSON RFP record {uri,cid,value?} present at this stage'
    default: ""
  bid:
    description: 'JSON bid record {uri,cid,value?} present at this stage'
    default: ""
  accept:
    description: 'JSON accept record {uri,cid,value?} present at this stage'
    default: ""
  policy-args:
    description: JSON policy arguments
    default: ""
  cache-key:
    description: Explicit cache key override
    default: ""
  mode:
    description: 'Policy lane: full (records + work) or scope (trust-only hot path / checkScope)'
    default: "full"
  counterparty-did:
    description: DID of the other side (required in scope mode)
    default: ""
outputs:
  allow:
    description: Policy verdict (true/false)
  violations:
    description: JSON array of policy violations
  cache-key:
    description: Cache key the verdict is memoized under
runs:
  using: node20
  main: dist/index.js