Build a multi-agent research pipeline where every AI agent must pass a trust verification before participating, and every action is recorded in a hash-chained audit trail that is independently verifiable.
Sign in to save downloads to your library and vote.
Preview
π‘οΈ Trust-Gated Multi-Agent Research Team
Build a multi-agent research pipeline where every AI agent must pass a trust verification before participating, and every action is recorded in a hash-chained audit trail that is independently verifiable.
Features
- Trust Gating β Agents are scored (0-100) and tiered (gold/silver/bronze). Only agents meeting the threshold can participate
- Cryptographic Audit Trail β Every agent action is recorded with SHA-256 hashes chaining to the previous entry. If any record is tampered with, all subsequent hashes break
- Multi-Agent Pipeline β Researcher β Analyst β Writer, each building on the previous output
- Visual Dashboard β See which agents pass, which get blocked, and verify the entire audit chain
- Zero External Dependencies β Fully self-contained. Only requires
openaiandstreamlit
How It Works
βββββββββββββββββββββββ
β Trust Registry β
β (verify agents) β
ββββ¬ββββββββ¬ββββββββ¬βββ
β β β
βββββββΌβββ ββββΌβββββ ββΌβββββββββ
βResearch β βAnalystβ β Writer β
β β
75 β β β
60 β β π« 5 β
ββββββ¬ββββ ββββ¬βββββ βββββββββββ
β β
βΌ βΌ
ββββββββββββββββββββββββ
β Research Pipeline β
β (trusted only) β
ββββββββββββ¬ββββββββββββ
β
βΌ
ββββββββββββββββββββββββ
β Hash-Chained Audit β
β (tamper-evident) β
ββββββββββββββββββββββββ
- Trust Check β Each agent's score is verified against the minimum threshold
- Gate β Agents below the threshold are blocked from the pipeline
- Execute β Verified agents run in sequence, each building on the previous output
- Audit β Every action (including trust checks) is recorded in a hash chain
Getting Started
Prerequisites
- Python 3.9+
- OpenAI API key
Installation
pip install -r requirements.txt
Set your API key (optional β can also paste in the sidebar)
export OPENAI_API_KEY=your-api-key
Run
streamlit run trust_gated_agents.py
Quick Start (3 steps)
- Paste your OpenAI API key in the sidebar
- Click Run Trust-Gated Pipeline β agents are pre-selected with an untrusted bot as Writer
- Watch: Researcher (75) and Analyst (60) pass, Untrusted Bot (5) gets blocked
Swap the Writer dropdown to "Report Writer (score 45)" to see all 3 pass.
Audit Trail
The audit trail uses the same hash-chaining pattern as blockchain transaction logs:
[
{
"seq": 0,
"agent": "researcher-001",
"action": "trust_verification",
"hash": "a1b2c3...",
"prev_hash": "0000000000000000000000000000000000000000000000000000000000000000"
},
{
"seq": 1,
"agent": "researcher-001",
"action": "pipeline_step_1",
"hash": "d4e5f6...",
"prev_hash": "a1b2c3..."
}
]
Each entry's hash is computed from: sequence + timestamp + agent + action + input_hash + output_hash + trust_score + prev_hash. Changing any field in any entry invalidates every subsequent hash.
The exported JSON is independently verifiable β no special tools needed, just SHA-256.
Why This Matters
In multi-agent systems, two problems compound:
- Trust β How do you know which agents are reliable before giving them work?
- Accountability β After something goes wrong, how do you reconstruct what happened?
Trust gating solves #1 by checking credentials before execution. The audit trail solves #2 by creating a tamper-evident record that survives the agents' own execution β stored externally, not in the agent's own memory.
Tech Stack
- Streamlit β Interactive UI with visual trust dashboard
- OpenAI β GPT-4o-mini for agent reasoning
- SHA-256 β Hash-chained audit trail (no external crypto dependencies)
Ingestion metadata
- Source catalog
- awesome-llm-apps
- Repository
- Shubhamsaboo/awesome-llm-apps Β· main
- File path
- advanced_ai_agents/multi_agent_apps/trust_gated_agent_team/README.md
- Last refreshed
- 7/23/2026, 10:39:07 PM (4h ago)
- Refresh schedule
- Daily Β· 03:00 UTC
- Dedupe status
- Unique Β· deduped by (source, url)