Trinity Platform - Architecture Explained
- Published:
- Length: 4:45
- Channel: Eugene Vyborov
- Video: https://www.youtube.com/watch?v=XDLOq1crF9w
- YouTube video id: XDLOq1crF9w
Description on YouTube
Every AI agent demo works. One prompt in, one answer out. Then you leave it running unattended - and it dies quietly at 3 a.m. while work keeps piling up and nothing even notices. This animated explainer follows a single scheduled task - "compile the weekly digest" - end to end through Trinity, an open-source platform for running autonomous AI agents like infrastructure. Not slides, not a demo: the actual machinery, drawn from the actual codebase. In this video, I cover: - Why an agent starts as a git repository, and what its container can and cannot reach - The one gate every piece of work passes through - and why it remembers what it has seen - What happens when an agent needs another agent (delegation without a back door) - The four systems around every run: the ledger, the operator queue, the circuit breaker, and capacity - The edges: Slack/Telegram/WhatsApp adapters, a VPN-only perimeter, roles and identity - The fleet's three verbs - delegate, fan out, loop - and the hard budgets that stop a runaway loop Every number on screen comes from the Trinity source tree. The worked example is composed; the machinery is real. Autonomous is not unsupervised. That is the whole point. --- TIMESTAMPS: 0:00 - The 3 a.m. problem 0:17 - The agent: a git repo in an isolated container 0:58 - The platform underneath: two networks, one door 1:25 - The work: everything through one gate 1:49 - Delegation: the agent asks Cornelius 2:02 - It stops to ask a human - then the digest lands in Slack 2:21 - The ledger: everything on the record 2:35 - The operator: a human in the loop 2:50 - The breaker: the 3 a.m. story, retold 3:05 - Capacity: work waits its turn 3:20 - The edges: channels are just adapters 3:35 - Nothing faces the internet 3:49 - People: roles and one identity 4:05 - The fleet's verbs: delegate, fan out, loop 4:23 - Twenty agents. Same machinery. --- Connect with me: Twitter/X: https://x.com/evyborov LinkedIn: https://www.linkedin.com/in/eugenevyborov/ Substack: https://eugenevyborov.substack.com/ Try Trinity (free, open source): Platform: https://trinity.ability.ai GitHub: https://github.com/Abilityai/trinity Docs: https://docs.ability.ai Book a call: https://calendly.com/eugene-vyborov/45min
Full transcript
[0:01]An AI agent is easy to demo. One prompt in, one answer out. Running one is a different job. It dies quietly at 3:00 a.m. Agents don't need better demos. They need infrastructure. An agent begins as a Git repository, a template, instructions, skills, playbooks. Deployed, it becomes a container of its own, its own file system, tools, and memory. Credentials arrive as encrypted files, injected, never sitting in a database.
[0:38]Every 15 minutes, it commits its memory to Git. The mind survives the container. It physically cannot reach the platform's secrets. The network route does not exist. Every 5 seconds, it reports that it's alive. Three missed beats, raise a hand. The platform splits in two. Agents on one network, the core on the other. One back end is the only thing that touches Docker. Agents act through MCP by explicit
[1:11]grant. Redis keeps the fast, transient truths. Postgres keeps the durable ones. Vector captures every line, every container prints, and a dashboard is where humans watch the fleet. Now, the work. And it comes from everywhere at once. A chat, a schedule, a webhook. Follow one. Monday, 9:00. A schedule fires. Everything funnels through one gate. The gate remembers. A retry is replayed, not duplicated.
[1:45]The agent works. Every call logged, timed, priced. It needs context it doesn't have. So, it asks Cornelius, the fleet's knowledge base. The subtask obeys the same gate, slots, and ledger. Delegation is not a backdoor. Context in hand, one thing remains, and it stops to ask a person. Approved. And the digest lands where the team actually reads, not a dashboard artifact. Around every run,
[2:18]four systems are doing their jobs. First, the ledger. Every run lands here. Appended, never edited. Each audit entry is chained to the one before it. Rewriting history breaks the chain. Second, that pause. The task stopped to ask a person. The question waited where a human actually looks. One click answered it. Autonomous is not unsupervised. Third, the 3:00 a.m. problem.
[2:52]One night, this agent's credentials died. The old story. Here, three failures snap a breaker open. Waiting work fails loud. One probe closes it again. Last, capacity. The agent runs three things at once. The rest wait in a durable line. A slot freeze, the line moves, the next task steps through the gate, and the circuit closes. One more thing. The edges. Slack, Telegram, WhatsApp.
[3:25]Each is just an adapter. Replies ride the same adapter back. Text, files, even voice notes. One agent, every channel. And none of this faces the internet. The platform lives behind your VPN. The only public thing is the channel surface, tunneled in. The channels you chose to open. Inside, people get roles. User, operator, creator, [music] admin, separate powers. Agents are shared person by person. By
[3:59]email, an identity follows the person across channels. The fleet has verbs. Delegate. One asks another. Fan out. One task to many. Loop. One agent again and again inside hard bounds kept by runs, by cost, by a no progress check. It cannot spin forever. Now run 20 agents. The machinery does not change. All of it on hardware you control, in
[4:31]software you can read, every action on the record, every failure loud. Trinity, run autonomous AI agents like infrastructure.