feat: add Maiat trust evaluator example for ACP jobs#193
Open
JhiNResH wants to merge 1 commit intogame-by-virtuals:mainfrom
Open
feat: add Maiat trust evaluator example for ACP jobs#193JhiNResH wants to merge 1 commit intogame-by-virtuals:mainfrom
JhiNResH wants to merge 1 commit intogame-by-virtuals:mainfrom
Conversation
Shows how to use Maiat as an on_evaluate callback to auto-verify job deliverables. Two options: 1. One-liner with maiat-evaluator package (pip install maiat-evaluator) 2. Inline evaluator with no extra dependency Features: - Auto-reject garbage deliverables (empty, too short, placeholder text) - Auto-approve trusted providers (trust score >= 80) - Block low-trust providers (score < 30) - Record outcomes back to Maiat for trust score updates
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an example showing how to use Maiat as a trust-based evaluator for ACP jobs via the
on_evaluatecallback.What it does
The example provides two integration options:
Option 1: One-liner (recommended)
Option 2: Inline (no extra dependency)
Copy the inline evaluator function — zero dependencies beyond
httpx.Evaluation Logic
hello,{}, etc.)Why
Currently there's no example of a trust-based evaluator in the GAME SDK examples. Most agents use a simple
job.evaluate(True)which auto-approves everything — including garbage deliverables. This example shows how to add meaningful quality checks.Files Changed
examples/game/maiat_evaluator_example.py(new)