Files
Robert KarlandClaude Fable 5.1 a8469d55b5 step 13: acceptance harness (pi in Docker, four tasks, judges), API-only acceptance script, GLM vocabulary load fix
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>
2026-10-18 19:19:36 -07:00

14 lines
471 B
Python

def merge(intervals):
"""Merge a list of closed integer intervals [a, b] (a <= b). Overlapping or touching intervals
([1, 3] and [3, 5], or [1, 3] and [4, 5] since every integer is covered) become one. Returns a new
sorted list."""
if not intervals:
return []
out = []
for a, b in sorted(intervals):
if out and a < out[-1][1]:
out[-1][1] = max(out[-1][1], b)
else:
out.append([a, b])
return out