in reviewhumanPR #47Negotiation
chainaim-sathya: feasible-frontier audit + generic-N multi-attribute negotiation with a heuristic/Bayesian opponent-model seam (price + deadline + quantity-3 axis active)
AFFIRMS DEAL ( Agreed-Fair-Distance) - CONFORMS DELIVERY - EFFECTS SETTLEMENT IN A
Author
@chainaim-sathya
github profile →- Status
- In review
- Opened on
- Jul 1
- Branch
- hackathon/chainaim-sathya-nattr-comprehensive-negotiator
Description
The pitch.
# [Hackathon] chainaim-sathya — Certified Multi-Attribute Negotiation (a portable "deal" certificate)
AFFIRMS DEAL ( Agreed-Fair-Distance) - CONFORMS DELIVERY - EFFECTS SETTLEMENT IN A
COMPOSED SKILL SET.
Use Cases : Invoicing, AI Agentic ROI and Accountability , Pay for Outcomes( Not Tokens)
**Problem:** #7 — multi-attribute negotiation · **Layer:** negotiation
**Registered as:** `("negotiation", "chainaim_neg_multi_pareto")` · **Branch:** `hackathon/chainaim-sathya-nattr-comprehensive-negotiator`
**Ships alongside** `alternating_offers` (untouched) — additive, charter-compliant.
Two agents bargain over several real contract terms at once — price, payment window, quantity, quality — land on a win-win, and get a **portable "deal" certificate** that captures the **agreed deal**, the **possible fair-optimal deal**, and **how far apart** they are — proving no better deal was available. It's a *best-execution guarantee for agent deals*, generalized from one price axis to many.
---
## What PR #47 ships
1. **A generic-N Pareto negotiator** (`chainaim_neg_multi_pareto`) — bargains over an arbitrary attribute list, shown live at **2, 3, and 4** opposed terms, with a **byte-identical 2-attribute fast path** (adding terms breaks nothing already working).
2. **The mandated adversarial validator** (`validate_negotiation_frontier`) — rebuilds the whole space of *feasible* deals from the disclosed profiles, **FAILs** the price-only baseline (`alternating_offers`), **PASSes** this PR's negotiator, and **names** the dominating deal when one exists.
3. **A portable JSON deal certificate** (`negotiation_certificate.py`) — serialises the verdict plus each pair's settled deal, both utilities, the fair-optimal `nash_point` + gap, and a content-hash provenance stamp. Public-API-only; **zero change to `validators.py`**.
4. **A heuristic ↔ Bayesian opponent-model seam** — infers the opponent's weights from **observed offers only**, with a reproducible efficiency A/B: the Bayesian estimator drives **strictly fewer** deals off the exact frontier than the heuristic — locked as an invariant (`test_bayesian_opponent_model_flags_fewer_pairs_than_heuristic`). At seed 42 that's **4 → 2** of 10.
---
## Related Skills submitted
## STAND-ALONE SKILLS
ChainAIM Agent Negotiation Certifier
https://chainaim-negotiation-services-production.up.railway.app/skill.md
Also ties to the outcome verified settlement skill ( PR # 61 )
https://chainaim-outcome-verified-settlement-ext-production.up.railway.app/skill.md
## COMPOSED SKILLS
https://chainaim-deal-to-settlement-production.up.railway.app/skill.md
AI-Agents-Payments Skill
https://chainaim-deal-to-settlement-production.up.railway.app/demo/deal?usecase=agent_harness
https://github.com/chainaim-sathya/chainaim-negotiation-services/tree/main/skills/accountable-ai-agent-payments
Invoicing - Accounts Payable
https://chainaim-deal-to-settlement-production.up.railway.app/demo/deal?usecase=invoice
https://github.com/chainaim-sathya/chainaim-negotiation-services/tree/main/skills/invoice-dynamic-discount-settlement
--
## Why it matters — the agentic economy runs on proofs, not promises
Agents see a need to engage in negotiation. What's missing is a *portable proof the deal was fair* that a third party — an auditor, or the counterparty's own system — can independently re-check. In an open agent market you can't take a counterparty's word that a deal was optimal. This certificate is that missing proof — and it works across every term of a deal, not just price. It **catches what a host would otherwise wave through**: an agreement that looked fair but quietly left money on the table, because a better deal was possible that no one ever put forward.
**When agents close deals at machine speed and scale, "trust me" doesn't scale — a portable, re-checkable proof does. That receipt is the settlement layer the agentic economy will run on.**
Plea
…Try it
Open PR on GitHubView diffCheckout locally
git fetch origin pull/47/head:pr-47
git checkout pr-47