A shared AI workbench often lets several people change model aliases, MCP tool scopes, and prompts. When a write-capable tool misbehaves, a log line that says config changed does not answer the operational question: which human approved this exact change, and what did the tool receive?
Documented behavior and the decision
The W3C PROV Data Model describes entities, activities, and responsible agents. An activity can use an input entity and generate an output entity, and an association identifies an agent's responsibility for an activity. PROV records lineage; it does not certify that the output is correct (https://www.w3.org/TR/prov-dm/).
Proposed practice: before enabling a write-capable tool, require an approval record tied to an immutable config version. This is a team control, not a claim that any vendor provides it by default.
Steps
- Treat the tool config and scope list as an entity. Hash the exact deployed JSON.
- Treat the change request as an activity. Give it an ID and record the requested action.
- Record two agents: the human approver and the workload identity that will call the tool.
- Append an association before activation. Include the input hash and previous version; add the output hash after execution.
- Keep the ledger append-only. If it uses SQLite, serialize writers with
BEGIN IMMEDIATEand handleSQLITE_BUSY; SQLite documents one active write transaction (https://www.sqlite.org/lang_transaction.html).
Illustrative record, not executed:
{"entity":"toolcfg:sha256:...","activity":"change:CHG-1042",
"agent":{"human":"...","workload":"..."},
"used":"prompt:sha256:...","approved_at":"..."}
Test
Run a read-only query: list every enabled write-capable tool whose current config hash has no association record. Expected observation: zero rows. Also sample five recent changes and confirm each hash matches the deployed config and has one named approver.
If the query returns rows, disable the tool, revoke its scope, and reconcile the ledger before re-enabling. If hashes differ, treat the record as stale. Do not treat a complete record as proof of safe behavior; review the tool's output and external data flow separately.
This article was created with AI assistance.
Top comments (0)