tools/acceptance/: Dockerfile (pi 0.85.1 image), run-task.sh / run-all.sh / judge.sh / pretty.py, tasks md-toc, kvstore, bugfix (seeded), minesweeper with hidden tests / black-box judges, models.tsv, README. Runs go to runs/ (ignored); curated results land under bench/unbiased/ when the campaign closes. frontend/tests/acceptance-real-engine.sh: PLAN.md step 13 (c): sampled checks, seeded repeat, tool call, decode and prompt-reading speed against an expected figure with a 15 % band. frontend/strata_context.cpp: the vocabulary-only load is retried with general.architecture overridden to "llama" when llama.cpp does not know the file's architecture; GLM 5.3 Flash's file says glm5-next (neurall's fork) and the front end refused to start (USTRAT-6). Verified on the 2x B200 pod: GLM starts, template renders, answers. tools/pod/README.md: pod-to-pod tree copy (90 s against hours from the laptop), bringup must wait for the tree. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
22 lines
1.1 KiB
Python
Executable File
22 lines
1.1 KiB
Python
Executable File
#!/usr/bin/env python3
|
|
"""Turn pi's --mode json event stream (stdin) into a readable tail for the tmux window."""
|
|
import json, sys
|
|
for line in sys.stdin:
|
|
try: ev = json.loads(line)
|
|
except Exception: sys.stdout.write(line); sys.stdout.flush(); continue
|
|
t = ev.get("type", "")
|
|
if t == "message_end":
|
|
m = ev.get("message", {})
|
|
if m.get("role") == "assistant":
|
|
u = m.get("usage") or {}
|
|
for c in m.get("content", []):
|
|
if c.get("type") == "text" and c.get("text", "").strip(): print(f"\n[assistant] {c['text'].strip()[:1500]}")
|
|
elif c.get("type") == "toolCall": print(f"[tool call] {c.get('name')} {json.dumps(c.get('arguments', {}))[:300]}")
|
|
print(f" (in {u.get('input')} out {u.get('output')} stop {m.get('stopReason')})")
|
|
elif t == "tool_execution_end":
|
|
r = ev.get("result", {}); txt = ""
|
|
for c in (r.get("content") or []):
|
|
if c.get("type") == "text": txt += c.get("text", "")
|
|
print(f"[tool result] {txt.strip()[:400]}")
|
|
sys.stdout.flush()
|