Repository navigation
SlimToken v0.2.0
SlimToken v0.2.0 — engine hardening.
Measured against v0.1.0 (plan replay, paired runs in alternating order,
DeepSeek and Muse, 2026-11-11):
- 48-task wave with an artifact validator, DeepSeek: 12.97 s -> 7.32 s
(-44%). With early first-token sampling (now the default): 6.31 s. - 15-task build, both providers: no regression in wall time, tokens,
tasks completed, or own-test pass rate. - Muse at 120 RPM pacing: unchanged (pacing is the limit there).
- No run in these campaigns hit a rate limit or a provider failure, so
the failure-path changes below are covered by unit tests, not by a
live failure run.
Scheduler
- The artifact validator runs inside each task. A slow validator no
longer stops admission and stream reads. - Failure classes (rate_limited, transport, content, permanent). Only
transport failures decrease concurrency. A permanent error (HTTP 400,
401, 403, 404, 405, 413, 422) is not retried and not repaired. A
repair after a transport failure sends the original request again. - The controller hears failed attempts and first tokens when they occur.
- Retry jitter is different for each request. Retry-After is obeyed up
to 120 s, and on 5xx replies. - Wasted tokens of discarded attempts are in the report.
- Run journal (journal.jsonl), --resume-from, and Ctrl-C that still
writes the report. - SharedLimits: one rate and in-flight budget for all runs of a manager.
- Opt-in: --first-token-watchdog FACTOR.
Client
- Stream idle timeout (--stream-idle-timeout-secs, default 120, 0
disables) and TCP keepalive. Raise it for servers that send nothing
for a long time while a model reasons. - Failover and fan-out health routing can bound a call (call_timeout),
so a provider that hangs counts as a failure.
Upgrade notes
- Hosts that build SchedulerConfig, TaskRecord, RunReport,
FailoverConfig or HealthRoutingConfig with a full struct literal must
add the new fields. - slimtoken run now writes journal.jsonl in the output directory.
Full list: CHANGELOG.md.
Binaries (serve feature on): Windows x64, Linux x86_64 and aarch64
(static musl), macOS Intel and Apple Silicon.