concept

Dataset and model provenance

Check recorded source, revision, rights evidence, owner and explicit purpose approval in a trusted fixture.

Formal Syntax & Structure

artificial-intelligence syntaxartificial-intelligence
blocked_assets(rows, purpose)

Working Example

Example Snippetartificial-intelligence
def blocked_assets(rows, purpose):    # Trusted review metadata, not a legal or license interpreter.    required = ("source", "revision", "rights_record", "owner")    return sorted(row["id"] for row in rows                  if any(not isinstance(row.get(k), str) or not row[k].strip()                         for k in required)                  or row.get("approved") is not True                  or purpose not in row.get("purposes", []))
assets = [dict(id="A", source="invented FAQ", revision="1",               rights_record="P1", owner="editor", approved=True,               purposes=["retrieval"]),          dict(id="B", source="public page", revision="2",               rights_record="", owner="editor", approved=False,               purposes=[])]print(blocked_assets(assets, "retrieval"))print(blocked_assets(assets, "training"))