kcode-k1-codex-testkit 0.1.0

Deterministic fake app-server conformance kit for the K1 Codex adapter family
Documentation
1
2
3
4
5
6
7
# kcode-k1-codex-testkit

This crate owns deterministic managed-Linux conformance verification for the K1 Codex adapter family. Its public `run_conformance` function starts one local POSIX-shell fake app-server and uses the published 0.1.0 runtime and shim APIs; it never contacts a provider or the network.

The scenario verifies one initialized process, locked-down model-free global arguments, per-thread model selection, persistent thread reuse, cross-conversation concurrency, same-conversation exclusion, typed dynamic-call IDs and exact results, idle and active close behavior, dropped-turn interruption, shim history and multi-wave launch-before-acknowledgement ordering, separated unbounded diagnostics, and bounded shutdown. Adjacent pure protocol/state checks cover malformed requests, unsupported requests, model reroutes, duplicate call IDs, and duplicate RPC IDs.

The fake synchronizes only through JSON lines and owned marker files. It uses no timing sleeps. A Tokio unit test invokes the public conformance entry point and enforces the package's strict 500-nonblank-line budget across the manifest, documentation, and source.