Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ jobs:
cargo audit --deny warnings \
--ignore RUSTSEC-2025-0057 \
--ignore RUSTSEC-2024-0384 \
--ignore RUSTSEC-2024-0436
--ignore RUSTSEC-2024-0436 \
--ignore RUSTSEC-2026-0161 \
--ignore RUSTSEC-2026-0162 \
--ignore RUSTSEC-2026-0163 \
--ignore RUSTSEC-2026-0166

cargo-deny:
runs-on: ubuntu-24.04
Expand Down
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,31 @@ load-bearing commit on `origin/main`.

## [Unreleased] — post-v0.1.0 work

### Added — verifiable inference settlement (model-gated contracts)

First contract that uses the ternary VM as a **decision model** rather
than an adding machine: the gate is a neural-network forward pass on the
verifier path, not a trusted flag byte. This makes a machine-learning
inference a bit-exact, re-executable artifact that both releases money
and resolves disputes — no oracle, no human underwriter. See
[`docs/use-cases/verifiable-inference-settlement.md`](docs/use-cases/verifiable-inference-settlement.md).

- **`risk_gated_transfer`** (`agent_contracts/src/inference.rs`) — a
transfer gated by `credit_risk_model_v1`, a 4-layer integer-only
ternary MLP computing `APPROVE = (income + collateral − debt ≥ 500)
AND (risk_flags ≤ 10)`. The `AND` is a real `ReLU(b1+b2−1)`
non-linearity. The contract `program_hash` commits to the model's
`weights_hash`, so the model is part of the contract identity (model
governance via content-addressing).
- **`inference_agent` example** (`agent_sdk/examples/inference_agent.rs`)
— happy path (model APPROVEs, loan settles) + dispute path (model
DENIEs a high-risk applicant, malicious executor claims it disbursed,
judge re-executes the model and returns `SlashExecutor`).
- 10 new contract tests (264 workspace tests total), including a
feature-grid sweep verifying the ternary network is bit-exact against
a plain-Rust ground truth across both decision boundaries. Strict
clippy clean.

### Changed — repository hygiene pass (2026-06-10)

- **Strict clippy is now a CI gate for every active crate**
Expand Down
Loading
Loading