You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
contract-risk-negotiation-env is an OpenEnv-compatible reinforcement learning environment that simulates a real-world contract risk analysis workflow. An AI agent reads an incoming email and a contract clause, then must:
Identify the risk present in the contract clause
Classify the type of risk (e.g., financial, legal)
Propose a fix or amendment
Send a professional reply to the email
Real-World Motivation
Contract review is a critical but time-consuming task in business and legal operations. Automated agents that can read contract language, flag risky clauses, propose remediation, and draft professional responses reduce legal exposure and accelerate deal cycles. This environment benchmarks and trains agents to perform these tasks accurately.
Action Definitions
Action
Description
identify_risk
Identify and describe the main risk in the contract clause
classify_risk_type
Classify the type of risk (financial, legal, operational, etc.)
propose_fix
Propose a specific fix or amendment to the clause
send_reply
Send a professional email reply to the original sender
Observation Fields
Field
Type
Description
email
str
The incoming email to the analyst
contract_clause
str
The contract clause to review
detected_risk
str | null
Identified risk (filled after identify_risk)
risk_type
str | null
Risk classification (filled after classify_risk_type)
proposed_fix
str | null
Proposed fix (filled after propose_fix)
history
list[str]
Chronological action history
task_description
str
Natural language task instructions
Task Descriptions
Easy
Clause: "Vendor has unlimited liability"
Goal: Detect unlimited liability as the risk
Scoring: Correct detection → 1.0
Medium
Clause: "Contract auto-renews without notice"
Goal: Detect auto renewal and classify type as financial