Scenario: A Traceability Gate Wearing a Review Badge
This is an illustrative design, not a deployment report. A team logs agent runs: prompt hash, model ID, tool calls, artifact hash, and a reviewer field. The proposed rule blocks deploys when provenance is incomplete. It checks traceability, not correctness.
Prerequisites: a lineage store keyed by run ID, a pipeline that fails closed, and one named owner for the schema.
What PROV-DM Documents
W3C PROV-DM models entities, activities, and responsible agents. An association records an agent's responsibility for an activity. The spec states the model records lineage; it does not certify output correctness. A complete record answers who or what touched an artifact, not whether the change is safe.
Steps: Split One Gate Into Two
- Keep a traceability gate. Fail closed on a missing run ID or mismatched artifact hash.
- Add a separate correctness gate. Require a named approver and a stored diff-review outcome.
- Record approver identity as an agent association, not a boolean
reviewed: true. - Store the two verdicts in separate fields so one can pass while the other blocks.
- Make deploy depend on both verdicts and log each failure reason separately.
Test the Split Before Trusting It
This is a proposed verification; no pipeline was run here. Prepare four synthetic lineage records; no real model call is needed. In prose: first, full lineage with no approver. Expected: traceability passes, correctness blocks. Second, approver present with a broken artifact hash. Expected: traceability blocks. Third, full lineage, approver, rejected review. Expected: correctness blocks. Fourth, full lineage, approver, approved review. Expected: release, with both verdicts logged.
If all four records get the same verdict, the gates are reading one field; inspect pipeline configuration. If correctness passes with a missing approver, a default is being applied; remove it and repeat. A lineage record is evidence of trace, not proof of safe change.
If logs later tune thresholds, split by run date first. Fitting on held-out runs leaks their information, as scikit-learn's common-pitfalls guide describes.
Limits
- Throwaway local experiments with no shared artifact: lineage cost exceeds value.
- Artifacts that cannot be hashed or rebuilt: traceability has nothing to bind to.
- Teams with no named approver role: fix the role first; a gate cannot invent accountability.
This article was created with AI assistance.
Top comments (0)