Add outcome contracts for v0.9

This commit is contained in:
Felipe Domingues 2026-07-22 13:56:34 -03:00
parent b312f18251
commit bb581ab7f8
23 changed files with 1107 additions and 95 deletions

View file

@ -16,6 +16,23 @@ node bin/vibeflow.mjs check examples/unsafe-support-agent.workflow.json --fail-o
Expected result: VF001-VF009 findings covering secrets, dangerous nodes, webhook authentication, error handling, idempotency, AI safety, timeouts, and retries.
## Dangerous outcome
```bash
node bin/vibeflow.mjs check examples/unsafe-refund.workflow.json --fail-on never
```
Expected result: the ordinary HTTP refund node triggers blocking VF010 plus VF012 and VF013, even though its node type is not inherently dangerous.
## Contracted outcome
```bash
node bin/vibeflow.mjs check examples/safe-refund.workflow.json \
--config examples/outcome-contracts.vibeflow.json
```
Expected result: exit `0`, zero findings. The graph contains a dominating atomic claim and durable audit, structural approval/amount/counterparty gates, error notification, and compensation evidence.
## Automation output
```bash