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

27 lines
791 B
Python

import pytest
from pkg.intervals import merge
from pkg.slug import slugify
from pkg.duration import parse
def test_merge_touching_and_adjacent():
assert merge([[1, 3], [3, 5]]) == [[1, 5]]
assert merge([[1, 3], [4, 5]]) == [[1, 5]]
assert merge([[5, 6], [1, 2]]) == [[1, 2], [5, 6]]
assert merge([]) == []
def test_slugify_collapses_and_trims():
assert slugify("Hello, World!") == "hello-world"
assert slugify(" a b ") == "a-b"
assert slugify("--x--") == "x"
assert slugify("") == ""
def test_parse_duration():
assert parse("1h30m") == 5400
assert parse("45m") == 2700
assert parse("90s") == 90
assert parse("1h2m3s") == 3723
with pytest.raises(ValueError):
parse("")
with pytest.raises(ValueError):
parse("3x")