dprod icon indicating copy to clipboard operation
dprod copied to clipboard

Make clear that DPROD is not the evaluator, and who builds the evaluation context

Open tonyseale opened this issue 1 month ago • 0 comments

Since #245 removed dprod:path, operands read a single property from the request, the state snapshot or the context. The documentation does not say clearly enough:

  1. DPROD is a specification, not an evaluator. An evaluator is an external program that implements the specification. Nothing in DPROD receives a request or returns a decision.
  2. Who builds the evaluation context. The calling system that needs a decision gathers the facts, flattens them onto the request and state nodes, and hands the frozen dprod:EvaluationContext to the evaluator. specification.md §3.4 and the dprod:EvaluationContext and dprod:state comments say the evaluator constructs or supplies it, which contradicts the Evaluation Context example and the requirement that the evaluator never reads live data.
  3. What dprod:requestSource is. The request node built by the calling system (agent, action, asset, plus any request facts the policies need). It is plain RDF, not an odrl:Request.
  4. What replaces dprod:path. There is no example of a fact that is more than one hop away (for example the jurisdiction of the requesting agent's organisation) and how the calling system resolves it onto the request.

This is a clarification only; no normative behaviour changes.

tonyseale avatar Oct 08 '26 16:10 tonyseale