Skip to content
Bots
← All editions

AI Open Source Radar / #085

Agent Contracts — Relari

Paulo Cesar Braga2 min read

English translation of the original edition published on LinkedIn. Assessments reflect the context of the original publication. View the original ↗

🔬 AI Open Source Radar #085

🧩 Architecture Layer 📜 Behavioral Contract Layer

🆕 Emerging Discipline 🔐 Agent Contract Engineering

📌 Project: Agent Contracts — Relari

How do we know that an agent performed a task correctly?

We normally check:

“Does the result look right?”

But this may be insufficient.

Imagine a financial agent.

It produces exactly the expected result.

However, during execution:

→ accessed a prohibited source;

→ ignored a mandatory approval;

→ used an unauthorized tool;

→ skipped a validation step.

The result is right.

Not execution.

🧠 The problem it addresses

Agents are probabilistic systems.

So we need to be able to explicitly declare:

what needs to be true before, during and after execution.

Agent Contracts organizes this into three parts:

🟦 PRECONDITIONS

What needs to be true before starting?
↓
🟪PATHCONDITIONS
What conditions need to be respected during execution?
↓
🟩POSTCONDITIONS

What needs to be true when it's over?

This turns expected behavior into something verifiable.

⚙️ What stood out to me

The contract not only verifies:

OUTPUT

It can check:

EXECUTION PATH.

This allows you to distinguish:

✅ correct result + correct process

of

⚠️ correct result + invalid process.

And the project goes beyond offline testing.

It also explores:

Runtime Certification

to produce evidence that a particular performance satisfied the contract.

🔬 AI Open Source Radar

🟡 Recommendation: Observe

🏛️ Architectural role: Behavioral Contract Verification

🌱 Maturity: Emerging

💬 My view

The more agents make decisions with real consequences, the less acceptable it will be to define behavior only on prompts.

📈 My outlook

Critical agents will have versioned contracts stating:

Preconditions + Pathconditions + Postconditions

📌 Repository: https://lnkd.in/dVpUsuT9

❓ Does your agent just have instructions on how it should behave — or is there a verifiable contract saying what it really needs to do?

#AIOpenSourceRadar #AgentContracts #AgentEngineering #AIAgents #AIGovernance #AIEngineering #OpenSource