oc_assert
Evaluate an Outcome Contract assertion against provided page evidence. Returns verdict pass, fail, or inconclusive with details on failed leaf assertions.
Instructions
Evaluate a single Outcome Contract assertion against caller-supplied evidence (snapshot). Returns verdict pass/fail/inconclusive plus the list of failed leaf assertions. Core-tier single-call surface; retry and escalation live in the pilot runtime.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contract_id | No | Optional identifier for a registered contract. Reserved for forward compatibility — currently no registry exists, so callers must supply `contract` inline. | |
| contract | No | Assertion DSL object (see src/contracts/types.ts: kind ∈ url|dom_text|dom_count|network|screenshot_class|no_dialog|image_qa|and|or|not). Validated via validateAssertion() before evaluation. | |
| args | No | Reserved for future contract templating. Ignored in v1.11. | |
| evidence | No | Pre-captured page evidence. Required for evaluation; without it the verdict is `inconclusive`. |