___________________________________________________________________________
/ \
| ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ |
| ░ ██╗██╗ ██╗██╗ ██╗███████╗██████╗ ██████╗ ██╗ ██╗ ░ |
| ░ ██║██║ ██║██║ ██╔╝██╔════╝██╔══██╗██╔═══██╗╚██╗██╔╝ ░ |
| ░ ██║██║ ██║█████╔╝ █████╗ ██████╦╝██║ ██║ ╚███╔╝ [ EST. 76 ] ░ |
| ░██ ██║██║ ██║██╔═██╗ ██╔══╝ ██╔══██╗██║ ██║ ██╔██╗ ░ |
| ░╚█████╔╝╚██████╔╝██║ ██╗███████╗██████╦╝╚██████╔╝██╔╝ ██╗ ░ |
| ░ ╚════╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝╚═════╝ ╚═════╝ ╚═╝ ╚═╝ ░ |
| ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ |
| ========================================================================= |
• ACID SANDBOX 时间-交通
\___________________________________________________________________________/
|| ||
"把需求任何脆弱"
[现在在轨道上播放#01]
停止让自主的 agents 浪费您的生产数据库并燃烧400美元在运行环路。 JUKEBOX 记录每个 LLM 提示流,MCP 工具调用,以及文件系统突变到一个加密的 Venyl 磁带 (.jbx) —— 给您的 agents BEGIN / COMMIT / ROLLBACK 语义和 < 1ms 零成本时间旅行重放。
现代的agent框架(LangGraph,AutoGen,CrewAI,OpenAI,Agents SDK)在管弦乐提示方面非常出色,但它们将副作用作为火与忘却。 当一个15步的agent工作流程在变换了3个SQL表和8步的5个本地文件后出现第12步的幻觉时,"检查聊天历史"不会救你。
JUKEBOX(Architectived by Marius Carlsson)是用Rust写成的系统级运行时间,带有Python绑定,带来数据库级ACID交易和确定性乙烯重放到任何AI agent堆:
git 克隆 https://github.com/socrates6969/jukebox-os.git 互联网档案馆的存檔,存档日期2013-07-02.
CD 点唱机
pip 安装 -e 进口 Ayncio
从点唱机导入点唱机、 沙盒政策、 CircuitBreaker
jb = 点唱盒(
磁带 dir=./磁带"
沙盒=Sandbox Policy(文件系统="副本 on write",mcp mode="阶段酸性")
断路器=循环器Breaker(最大成本 usd=0.50,最大语义 repeat=3)
)
@jb.track(名称="发票-和解-agent").
async def run account agent(客户 id:str,金额 usd:浮点) - > dict:
以 jb.transaction( tape id="tr 8f92a1c4")作为 tx:
tx.record agent turn () (中文(简体) ).
agent 名称="规划者"
消息=f“为 {客户 id} 固定退款${amount usd} ”
型号="gpt-4o"
费用美元=0.008
)
tx.state file 写入(
path=./ tapes/ staged ledger demo.json" 互联网档案馆的存檔,存档日期2011-09-02.
内容=f'{{"客户":"{客户 id}","退款 usd":{amount usd}}}}
)
如果数量 usd > 5000.0:
等待 tx.rollback( reason=“退款超过500美元自主门槛值”)
返回 {'状态': "ROLLED BACK", "tape id": tx.tape id}
等待 tx. 承诺( )
返回 {“状态”: “COMMITED ”、 “ tape id ”: tx.tape id}
如果。.. 名字。.. "... main...":
print( asyncio. run( 运行会计 agent (“ cust 9981, 420. 0 ”) ) 从 jukebox 导入磁带
磁带 = tape.load (.)/ tapes/tr 8f92a1c4.jbx").
b 侧=磁带.fork(
框=3时
超载模型="claude-3-7-sonnet-latest"
覆盖 system prompt=" 您是严格的 SQL 审计员。 在没有条款的情况下永远不要发行DELETE"
)
print(b_side.replay_and_diff().to_markdown())+-----------------------------------------------------------------------------------+
申请与组织
| [ LangGraph ] [ CrewAI ] [ AutoGen ] [ OpenAI / Anthropic SDK ] |
+-----------------------------------------+-----------------------------------------+
@ jukebox. track / MCP 代理服务器
v
+-----------------------------------------------------------------------------------+
| 🍒 JUKEBOX RUST CORE RUNTIME (libjukebox) 🔮 |
| |
| +-------------------------+ +-----------------------+ +---------------------+ |
安蒂 -斯基普需要布莱克3 MERKLE CAS
- 零重播出口 ========================================================================================================================================================================================================================================================
• Token预算门 • jbx二进制磁带 • Spans & Metrics |
| +-------------------------+ +-----------------------+ +---------------------+ |
| |
| +-----------------------------------------------------------------------------+ |
(原始内容存档于2018-09-21). SHADOW BOOTH: Transacional Wasi & CoW SANDBOX | | | | | | | | | | | | | | | |
[虚拟 CoW 文件系统] [SQL Savepoint Proxy] [MCP stage Gate] * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ** * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ********************************
| +--------------------------------------+--------------------------------------+ |
+-----------------------------------------|-----------------------------------------+
|
+--------------------+--------------------+
| |
[VERIERPESS] [VERIERFIER故障]
| |
v v
(ATOMIC WORLING COMMITE) (INST ZERO-ResIDE) (英语).
写入被冲到磁盘/ API ROLLBACK & ALERT
# 列出最近的 agent 飞行录音在您的本地展厅
$ jukebox ls --tape-dir ./tapes
Jukebox 24小时飞行记录器//现场录音机
------------------------------------------------------------------------------
TRACK ID AGENT 名称费用状况
------------------------------------------------------------------------------
tr 8f92a1c4 发票-和解-agent 5 0.0080
# 重放密码验证 < 1ms 中的.jbx Merkle 磁带( C)
$ jukebox 重放。/ tapes/tr 8f92a1c4.jbx
- 叉子雷波和拉起一个凳子:
git克隆 https://github.com/socrates6969/jukebox-os.git cd jukebox-os pip 安装 -e. pytest pytest -v
- 房屋规则(行为守则):阅读我们的CODE OF CONDUCT.md和Confubulting.md。
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
马里乌斯·卡尔松(@马里乌斯卡尔松)
"叫你们在Jukebox上学安全驾驶!"
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
• 发布 Live 24Hr餐厅检查员
本文由 AI图鉴自动抓取并翻译,版权归原作者所有;如需查看原文请点下方链接。
___________________________________________________________________________
/ \
| ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ |
| ░ ██╗██╗ ██╗██╗ ██╗███████╗██████╗ ██████╗ ██╗ ██╗ ░ |
| ░ ██║██║ ██║██║ ██╔╝██╔════╝██╔══██╗██╔═══██╗╚██╗██╔╝ ░ |
| ░ ██║██║ ██║█████╔╝ █████╗ ██████╦╝██║ ██║ ╚███╔╝ [ EST. 76 ] ░ |
| ░██ ██║██║ ██║██╔═██╗ ██╔══╝ ██╔══██╗██║ ██║ ██╔██╗ ░ |
| ░╚█████╔╝╚██████╔╝██║ ██╗███████╗██████╦╝╚██████╔╝██╔╝ ██╗ ░ |
| ░ ╚════╝ ╚═════╝ ╚═╝ ╚═╝╚══════╝╚═════╝ ╚═════╝ ╚═╝ ╚═╝ ░ |
| ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ |
| ========================================================================= |
| ★ 24-HOUR DETERMINISTIC AGENT RUNTIME • ACID SANDBOX • TIME-TRAVEL ★ |
\___________________________________________________________________________/
|| ||
▄████████████▄ "DROP THE NEEDLE ON ANY FRAME" ▄████████████▄
[ 🎙️ NOW PLAYING ON TRACK #01 ]
Stop letting autonomous agents trash your production database and burn $400 in runaway loops. JUKEBOX records every LLM prompt, token stream, MCP tool call, and filesystem mutation onto a cryptographic vinyl tape (.jbx)—giving your agents BEGIN / COMMIT / ROLLBACK semantics and <1ms zero-cost time-travel replay.
Modern agent frameworks (LangGraph, AutoGen, CrewAI, OpenAI Agents SDK) are great at orchestrating prompts, but they treat side effects as fire-and-forget. When a 15-step agent workflow hallucinates on Step 12 after mutating three SQL tables and five local files on Step 8, "checkpointing the chat history" won't save you.
JUKEBOX (architected by Marius Carlsson) is a systems-level runtime written in Rust with Python bindings that brings database-grade ACID transactions and deterministic vinyl replay to any AI agent stack:
git clone https://github.com/socrates6969/jukebox-os.git
cd jukebox-os
pip install -e .import asyncio
from jukebox import Jukebox, SandboxPolicy, CircuitBreaker
jb = Jukebox(
tape_dir="./tapes",
sandbox=SandboxPolicy(filesystem="copy_on_write", mcp_mode="staged_acid"),
breaker=CircuitBreaker(max_cost_usd=0.50, max_semantic_repeat=3),
)
@jb.track(name="invoice-reconciliation-agent")
async def run_accounting_agent(customer_id: str, amount_usd: float) -> dict:
async with jb.transaction(tape_id="tr_8f92a1c4") as tx:
tx.record_agent_turn(
agent_name="planner",
message=f"Staging refund of ${amount_usd} for {customer_id}",
model="gpt-4o",
cost_usd=0.008,
)
tx.stage_file_write(
path="./tapes/staged_ledger_demo.json",
content=f'{{"customer": "{customer_id}", "refund_usd": {amount_usd}}}',
)
if amount_usd > 500.0:
await tx.rollback(reason="Refund exceeds $500 autonomous threshold")
return {"status": "ROLLED_BACK", "tape_id": tx.tape_id}
await tx.commit()
return {"status": "COMMITTED", "tape_id": tx.tape_id}
if __name__ == "__main__":
print(asyncio.run(run_accounting_agent("cust_9981", 420.00)))from jukebox import Tape
tape = Tape.load("./tapes/tr_8f92a1c4.jbx")
b_side = tape.fork(
at_frame=3,
override_model="claude-3-7-sonnet-latest",
override_system_prompt="You are a strict SQL auditor. Never issue DELETE without a WHERE clause.",
)
print(b_side.replay_and_diff().to_markdown())+-----------------------------------------------------------------------------------+
| APPLICATION & ORCHESTRATION LAYER |
| [ LangGraph ] [ CrewAI ] [ AutoGen ] [ OpenAI / Anthropic SDK ] |
+-----------------------------------------+-----------------------------------------+
| @jukebox.track / MCP Proxy
v
+-----------------------------------------------------------------------------------+
| 🍒 JUKEBOX RUST CORE RUNTIME (libjukebox) 🔮 |
| |
| +-------------------------+ +-----------------------+ +---------------------+ |
| | ANTI-SKIP NEEDLE | | BLAKE3 MERKLE CAS | | OTEL GEN_AI | |
| | • Cosine Loop Breaker | | • Zero-Cost Replay | | EXPORTER | |
| | • Token Budget Gate | | • .jbx Binary Tape | | • Spans & Metrics | |
| +-------------------------+ +-----------------------+ +---------------------+ |
| |
| +-----------------------------------------------------------------------------+ |
| | SHADOW BOOTH: TRANSACTIONAL WASI & CoW SANDBOX | |
| | [ Virtual CoW Filesystem ] [ SQL Savepoint Proxy ] [ MCP Stage Gate ] | |
| +--------------------------------------+--------------------------------------+ |
+-----------------------------------------|-----------------------------------------+
|
+--------------------+--------------------+
| |
[ VERIFIER PASSES ] [ VERIFIER FAILS ]
| |
v v
( ATOMIC WORLD COMMIT ) ( INSTANT ZERO-RESIDUE )
Writes flushed to Disk/API ROLLBACK & ALERT
# List recent agent flight recordings in your local booth
$ jukebox ls --tape-dir ./tapes
🍒 JUKEBOX 24-HOUR FLIGHT RECORDER // LOCAL BOOTH TAPES 🔮
------------------------------------------------------------------------------
TRACK ID AGENT NAME FRAMES COST STATUS
------------------------------------------------------------------------------
tr_8f92a1c4 invoice-reconciliation-agent 5 $0.0080 COMMITTED
# Replay & cryptographically verify a .jbx Merkle tape in <1ms
$ jukebox replay ./tapes/tr_8f92a1c4.jbx
- Fork the Repo & Pull Up a Stool:
git clone https://github.com/socrates6969/jukebox-os.git cd jukebox-os pip install -e . pytest pytest -v
- House Rules (Code of Conduct): Read our CODE_OF_CONDUCT.md and CONTRIBUTING.md.
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
░ BUILT WITH CHROME, NEON & RUST BY MARIUS CARLSSON (@mariuscarlsson) ░
░ "THANK YOU FOR DINING AT JUKEBOX — DRIVE SAFELY!" ░
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
⭐ Star jukebox-os on GitHub • 🔮 Launch Live 24-Hr Diner Inspector
Auto-fetched and translated by AI Atlas. All rights belong to the original author.