oc_assert
Evaluate an outcome contract assertion against a provided snapshot, persist the redacted result, and return a pass/fail/inconclusive verdict with failed leaf assertions.
Instructions
Evaluate a single Outcome Contract assertion against caller-supplied evidence (snapshot), persist the redacted result for bounded retrieval, and return verdict pass/fail/inconclusive plus failed leaf assertions. Core-tier single-call surface; retry and escalation live in the pilot runtime.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Reserved for future contract templating. Ignored in v1.11. | |
| contract | No | Assertion DSL object (see src/contracts/types.ts: kind ∈ url|dom_text|dom_count|network|screenshot_class|no_dialog|image_qa|performance|console|and|or|not). Validated via validateAssertion() before evaluation. | |
| evidence | No | Pre-captured page evidence. Required for evaluation; without it the verdict is `inconclusive`. | |
| contract_id | No | Optional identifier for a registered contract in the canonical outcome-template registry. Mutually exclusive with `contract`. |