AFM Assertion Test Report

Model: mlx-community/Qwen3.6-35B-A3B-4bit · Tier: full · Grammar: false
Server: http://127.0.0.1:9998
Date: 2026-07-02 21:32:39
437
Passed
5
Failed
98%
Pass Rate
497s
Total Time
#TestGroupCoverageStatusDurationDetails
1 toJinjaCompatible() strips null keys from dicts — Jinja accepts it NullableSchema unit smoke standard full PASS 0.1s
pass
2 BatchListResponse encodes with has_more field UnitTest unit smoke standard full PASS 0.1s
pass
3 FileObject encodes with snake_case keys UnitTest unit smoke standard full PASS 0.1s
pass
4 toJinjaCompatible() strips null elements from arrays NullableSchema unit smoke standard full PASS 0.1s
pass
5 BatchObject encodes with all fields UnitTest unit smoke standard full PASS 0.1s
pass
6 finishReason is length when max tokens reached UnitTest unit smoke standard full PASS 0.1s
pass
7 FileDeleteResponse defaults UnitTest unit smoke standard full PASS 0.1s
pass
8 buildChoiceLogprobs converts ResolvedLogprob to ChoiceLogprobs UnitTest unit smoke standard full PASS 0.1s
pass
9 toJinjaCompatible() deeply nested nulls — Jinja accepts them NullableSchema unit smoke standard full PASS 0.1s
pass
10 think extraction with tool calls returns nil content and reasoning XMLParsing unit smoke standard full PASS 0.1s
pass
11 BatchResultLine with error encodes correctly UnitTest unit smoke standard full PASS 0.1s
pass
12 toAny() result in ToolSpec — Jinja throws (proves the bug) NullableSchema unit smoke standard full PASS 0.1s
pass
13 toJinjaCompatible() result survives ToolSpec → Jinja Value round-trip NullableSchema unit smoke standard full PASS 0.1s
pass
14 toAny() wraps null as NSNull — Jinja throws on it NullableSchema unit smoke standard full PASS 0.1s
pass
15 finishReason is tool_calls when tool calls present XMLParsing unit smoke standard full PASS 0.1s
pass
16 toJinjaCompatible() preserves all non-null types NullableSchema unit smoke standard full PASS 0.1s
pass
17 no think extraction when disabled UnitTest unit smoke standard full PASS 0.1s
pass
18 extracts think tags into reasoningContent UnitTest unit smoke standard full PASS 0.1s
pass
19 finishReason is stop when stopped by sequence UnitTest unit smoke standard full PASS 0.1s
pass
20 empty stream produces nil content XMLParsing unit smoke standard full PASS 0.1s
pass
21 TopKProcessor is no-op when k >= vocabSize UnitTest unit smoke standard full PASS 0.1s
pass
22 TopKProcessor is no-op when k <= 0 UnitTest unit smoke standard full PASS 0.1s
pass
23 GrammarLogitProcessor with nil mask is passthrough XMLParsing unit smoke standard full PASS 0.1s
pass
24 BatchInputLine decodes from JSONL line XMLParsing unit smoke standard full PASS 0.1s
pass
25 multi-chunk think tags extracted correctly UnitTest unit smoke standard full PASS 0.1s
pass
26 collects logprobs from stream chunks UnitTest unit smoke standard full PASS 0.1s
pass
27 finishReason is stop by default UnitTest unit smoke standard full PASS 0.1s
pass
28 collects timing and token stats from final chunk UnitTest unit smoke standard full PASS 0.1s
pass
29 BatchCompletionRequest decodes array of requests XMLParsing unit smoke standard full PASS 0.1s
pass
30 createSSMMask delegates to MambaCache.makeMask UnitTest unit smoke standard full PASS 0.1s
pass
31 MinPProcessor works with 2D logits UnitTest unit smoke standard full PASS 0.1s
pass
32 BatchResultLine round-trips through JSON XMLParsing unit smoke standard full PASS 0.1s
pass
33 GrammarLogitProcessor works with 2D logits XMLParsing unit smoke standard full PASS 0.1s
pass
34 TopKProcessor works with 2D logits [B, vocabSize] UnitTest unit smoke standard full PASS 0.1s
pass
35 buildChoiceLogprobs returns nil for empty input XMLParsing unit smoke standard full PASS 0.1s
pass
36 TopKProcessor works with 1D logits [vocabSize] UnitTest unit smoke standard full PASS 0.1s
pass
37 BatchKVCacheSimple update stores KV for all sequences UnitTest unit smoke standard full PASS 0.1s
pass
38 MambaCache without leftPadding returns nil mask UnitTest unit smoke standard full PASS 0.1s
pass
39 RepetitionContext works with 1D logits UnitTest unit smoke standard full PASS 0.1s
pass
40 stream with only think tags and no visible content UnitTest unit smoke standard full PASS 0.1s
pass
41 BatchInputLine handles optional body fields UnitTest unit smoke standard full PASS 0.1s
pass
42 Batched prefill cache creation matches expected pattern for mixed layers XMLParsing unit smoke standard full PASS 0.1s
pass
43 BatchInputLine handles messages with special characters UnitTest unit smoke standard full PASS 0.1s
pass
44 toAny() dict with null value — Jinja throws NullableSchema unit smoke standard full PASS 0.1s
pass
45 BatchKVCacheSimple mask with uniform padding (same-length sequences) UnitTest unit smoke standard full PASS 0.1s
pass
46 BatchInputLine handles system + user messages UnitTest unit smoke standard full PASS 0.1s
pass
47 BatchCreateRequest decodes with snake_case keys XMLParsing unit smoke standard full PASS 0.1s
pass
48 MambaCache leftPadding creates correct SSM mask UnitTest unit smoke standard full PASS 0.1s
pass
49 RepetitionContext works with 2D logits UnitTest unit smoke standard full PASS 0.1s
pass
50 KVCacheSimple and ArraysCache are batch-eligible UnitTest unit smoke standard full PASS 0.1s
pass
51 BatchKVCacheSimple extend merges prefill batch with existing decode batch XMLParsing unit smoke standard full PASS 0.1s
pass
52 PresenceContext works with 1D logits UnitTest unit smoke standard full PASS 0.1s
pass
53 createAttentionMask delegates to BatchKVCacheSimple.makeMask UnitTest unit smoke standard full PASS 0.1s
pass
54 Multiple JSONL lines parse independently XMLParsing unit smoke standard full PASS 0.1s
pass
55 RepetitionContext applies multiplicative penalty to negative logits UnitTest unit smoke standard full PASS 0.1s
pass
56 RotatingKVCache is NOT batch-eligible UnitTest unit smoke standard full PASS 0.1s
pass
57 GrammarLogitProcessor works with 1D logits XMLParsing unit smoke standard full PASS 0.1s
pass
58 recordResult drops results for cancelled batch UnitTest unit smoke standard full PASS 0.1s
pass
59 recordResult still works for in_progress batch UnitTest unit smoke standard full PASS 0.1s
pass
60 runtime salvages incomplete tool call at stream end XMLParsing unit smoke standard full PASS 0.1s
pass
61 MinPProcessor works with 1D logits UnitTest unit smoke standard full PASS 0.1s
pass
62 findPrefix: empty cache — miss XMLParsing unit smoke standard full PASS 0.1s
pass
63 JSONL with blank lines are skipped XMLParsing unit smoke standard full PASS 0.1s
pass
64 runtime preserves nulls in adaptive xml JSON fallback XMLParsing unit smoke standard full PASS 0.1s
pass
65 recordResult drops results for cancelling batch UnitTest unit smoke standard full PASS 0.1s
pass
66 Separate processor instances have independent state UnitTest unit smoke standard full PASS 0.1s
pass
67 MambaCache batched state can be sliced per-sequence UnitTest unit smoke standard full PASS 0.1s
pass
68 Extracted cache can be loaded into KVCacheSimple for radix save UnitTest unit smoke standard full PASS 0.1s
pass
69 Left-padding stacks variable-length token arrays correctly UnitTest unit smoke standard full PASS 0.1s
pass
70 runtime emits placeholder then final replacement for XML tool call XMLParsing unit smoke standard full PASS 0.1s
pass
71 PresenceContext with empty tokens is no-op XMLParsing unit smoke standard full PASS 0.1s
pass
72 findPrefix: query longer than cached — partial prefix hit UnitTest unit smoke standard full PASS 0.1s
pass
73 insert: new edge (no matching child) UnitTest unit smoke standard full PASS 0.1s
pass
74 BatchKVCacheSimple decode mask with padding (n=1) XMLParsing unit smoke standard full PASS 0.1s
pass
75 findPrefix: partial edge match divergence mid-edge — returns cached state UnitTest unit smoke standard full PASS 0.1s
pass
76 CompositeLogitProcessor chains processors correctly with 2D logits UnitTest unit smoke standard full PASS 0.1s
pass
77 findPrefix: deepest cached node wins over shallower UnitTest unit smoke standard full PASS 0.1s
pass
78 CompositeLogitProcessor chains processors correctly with 1D logits UnitTest unit smoke standard full PASS 0.1s
pass
79 Conversation fork: both branches survive and are findable UnitTest unit smoke standard full PASS 0.1s
pass
80 invalidateAll clears everything UnitTest unit smoke standard full PASS 0.1s
pass
81 invalidateAll with debugLogging UnitTest unit smoke standard full PASS 0.1s
pass
82 insert: partial edge split with remaining tokens XMLParsing unit smoke standard full PASS 0.1s
pass
83 findPrefix: miss with matched == 0 and debugLogging UnitTest unit smoke standard full PASS 0.1s
pass
84 RadixNode isLeaf and hasCachedState UnitTest unit smoke standard full PASS 0.1s
pass
85 MambaCache mask returns nil after state is set (non-prefill) XMLParsing unit smoke standard full PASS 0.1s
pass
86 didSample updates only the called processor's state UnitTest unit smoke standard full PASS 0.1s
pass
87 truncateToOffset on empty cache is no-op XMLParsing unit smoke standard full PASS 0.1s
pass
88 PresenceContext works with 2D logits UnitTest unit smoke standard full PASS 0.1s
pass
89 Touch via findPrefix prevents eviction UnitTest unit smoke standard full PASS 0.1s
pass
90 truncateToOffset is no-op when offset matches array size UnitTest unit smoke standard full PASS 0.1s
pass
91 BatchKVCacheSimple mask with asymmetric padding (different-length sequences) UnitTest unit smoke standard full PASS 0.1s
pass
92 insert snapshots MLXArray views into independent storage UnitTest unit smoke standard full PASS 0.1s
pass
93 LRU eviction at capacity evicts oldest UnitTest unit smoke standard full PASS 0.1s
pass
94 Multiple evictions on single insert (maxEntries=1) UnitTest unit smoke standard full PASS 0.1s
pass
95 findPrefix with debugLogging exercises all log branches UnitTest unit smoke standard full PASS 0.1s
pass
96 insert: empty tokens is no-op XMLParsing unit smoke standard full PASS 0.1s
pass
97 findPrefix: traverses nodes but no cached node found UnitTest unit smoke standard full PASS 0.1s
pass
98 Eviction with debugLogging UnitTest unit smoke standard full PASS 0.1s
pass
99 BaseKVCache truncateToOffset is safe no-op on MambaCache UnitTest unit smoke standard full PASS 0.1s
pass
100 findPrefix: query shorter than cached edge UnitTest unit smoke standard full PASS 0.1s
pass
101 runtime parses adaptive xml JSON fallback XMLParsing unit smoke standard full PASS 0.1s
pass
102 truncateToOffset after multiple trim cycles UnitTest unit smoke standard full PASS 0.1s
pass
103 state getter returns raw refs after truncateToOffset (fast path) UnitTest unit smoke standard full PASS 0.1s
pass
104 T1.3 parallel_tool_calls field round-trips through JSON XMLParsing unit smoke standard full PASS 0.1s
pass
105 tool message with name includes name in dict UnitTest unit smoke standard full PASS 0.1s
pass
106 system messages filtered by NoSystemMessageGenerator UnitTest unit smoke standard full PASS 0.1s
pass
107 BatchKVCacheSimple extract returns correct per-sequence KV UnitTest unit smoke standard full PASS 0.1s
pass
108 NoSystemMessageGenerator includes name for tool messages UnitTest unit smoke standard full PASS 0.1s
pass
109 T1.3 parallel_tool_calls=false with single call is a no-op UnitTest unit smoke standard full PASS 0.1s
pass
110 T1.3 parallel_tool_calls=false truncates to first tool call XMLParsing unit smoke standard full PASS 0.1s
pass
111 T1.1 minted request IDs use the documented req_<uuid12> shape UnitTest unit smoke standard full PASS 0.1s
pass
112 user message has no name field in dict UnitTest unit smoke standard full PASS 0.1s
pass
113 findPrefix: miss with matched > 0 and debugLogging UnitTest unit smoke standard full PASS 0.1s
pass
114 insert: multiple inserts grow the tree (multi-turn) UnitTest unit smoke standard full PASS 0.1s
pass
115 T1.1 OpenAIError exposes request_id field for correlation UnitTest unit smoke standard full PASS 0.1s
pass
116 tool message without name omits name from dict UnitTest unit smoke standard full PASS 0.1s
pass
117 KVCacheEntry touch updates access time UnitTest unit smoke standard full PASS 0.1s
pass
118 insert: partial edge split at exact split point UnitTest unit smoke standard full PASS 0.1s
pass
119 truncateToOffset physically shrinks arrays to offset UnitTest unit smoke standard full PASS 0.1s
pass
120 T1.3 parallel_tool_calls=nil leaves prior behavior untouched UnitTest unit smoke standard full PASS 0.1s
pass
121 Full extraction round-trip: batch → individual → KVCacheSimple UnitTest unit smoke standard full PASS 0.1s
pass
122 KVCacheEntry stores tokens and layerStates UnitTest unit smoke standard full PASS 0.1s
pass
123 T1.3 parallel_tool_calls=true (default) preserves all calls UnitTest unit smoke standard full PASS 0.1s
pass
124 insert: exact match update — node already has cache UnitTest unit smoke standard full PASS 0.1s
pass
125 Count tracks insertions, evictions, and invalidation UnitTest unit smoke standard full PASS 0.1s
pass
126 findPrefix: exact match returns full prefix UnitTest unit smoke standard full PASS 0.1s
pass
127 streaming runtime fallback parses completed Gemma4 tool call XMLParsing unit smoke standard full PASS 0.1s
pass
128 insert with debugLogging exercises log branches UnitTest unit smoke standard full PASS 0.1s
pass
129 Gemma4 parser follows documented wrapper and call syntax XMLParsing unit smoke standard full PASS 0.1s
pass
130 T1.1 OpenAIError request_id is omitted when not provided UnitTest unit smoke standard full PASS 0.1s
pass
131 insert: exact match — node had no prior cache UnitTest unit smoke standard full PASS 0.1s
pass
132 compactUpward merges single-child node after sibling eviction UnitTest unit smoke standard full PASS 0.1s
pass
133 extractToolCallsFallback parses Gemma4 wrapper blocks XMLParsing unit smoke standard full PASS 0.1s
pass
134 Gemma4 parser preserves commas inside escaped strings XMLParsing unit smoke standard full PASS 0.1s
pass
135 Gemma4 parser leaves nested-looking values as raw strings XMLParsing unit smoke standard full PASS 0.1s
pass
136 findPrefix: no child for next token — miss at root UnitTest unit smoke standard full PASS 0.1s
pass
137 T1.2 include_usage=true is honored explicitly UnitTest unit smoke standard full PASS 0.1s
pass
138 recordResult increments completed count UnitTest unit smoke standard full PASS 0.1s
pass
139 getFile returns nil for nonexistent file UnitTest unit smoke standard full PASS 0.1s
pass
140 markBatchFailed sets status and error UnitTest unit smoke standard full PASS 0.1s
pass
141 deleteFile returns false for nonexistent file UnitTest unit smoke standard full PASS 0.1s
pass
142 T1.2 include_usage=false suppresses the usage chunk UnitTest unit smoke standard full PASS 0.1s
pass
143 T1.2 default is to include usage when stream_options absent UnitTest unit smoke standard full PASS 0.1s
pass
144 createBatch returns ID with correct prefix and initial state UnitTest unit smoke standard full PASS 0.1s
pass
145 getFileData returns nil for nonexistent file UnitTest unit smoke standard full PASS 0.1s
pass
146 getFile returns stored file metadata UnitTest unit smoke standard full PASS 0.1s
pass
147 getFileData returns raw data UnitTest unit smoke standard full PASS 0.1s
pass
148 deleteFile removes the file UnitTest unit smoke standard full PASS 0.1s
pass
149 recordResult increments failed count for error results UnitTest unit smoke standard full PASS 0.1s
pass
150 Output JSONL file contains all results XMLParsing unit smoke standard full PASS 0.1s
pass
151 Multiple files have unique IDs UnitTest unit smoke standard full PASS 0.1s
pass
152 markBatchCancelling and markBatchCancelled transitions UnitTest unit smoke standard full PASS 0.1s
pass
153 storeFile creates file with correct metadata UnitTest unit smoke standard full PASS 0.1s
pass
154 Batch auto-completes when all requests are done UnitTest unit smoke standard full PASS 0.1s
pass
155 getSlotIds returns empty for nonexistent batch XMLParsing unit smoke standard full PASS 0.1s
pass
156 listBatches returns all batches UnitTest unit smoke standard full PASS 0.1s
pass
157 markBatchInProgress transitions status and stores slot IDs UnitTest unit smoke standard full PASS 0.1s
pass
158 getBatch returns nil for nonexistent batch UnitTest unit smoke standard full PASS 0.1s
pass
9|unit|159 streaming: stopReached is set on < UnitTest PASS
return
160 control tokens never leak into output UnitTest unit smoke standard full PASS 0.0s
pass
9|unit|161 streaming: < UnitTest PASS
channel
162 T1.7 openapi.json is valid JSON and reports OpenAPI 3.1 XMLParsing unit smoke standard full PASS 0.0s
pass
163 T1.6 CountTokensResponse uses Anthropic input_tokens key UnitTest unit smoke standard full PASS 0.0s
pass
9|unit|164 streaming: < UnitTest PASS
end
9|unit|165 streaming: stopReached stays false when < UnitTest PASS
end
166 commentary channel is dropped UnitTest unit smoke standard full PASS 0.0s
pass
167 analysis then final routes correctly UnitTest unit smoke standard full PASS 0.0s
pass
168 final-only with no analysis still routes to content UnitTest unit smoke standard full PASS 0.0s
pass
169 T1.7 docs page references /openapi.json on same origin XMLParsing unit smoke standard full PASS 0.0s
pass
9|unit|170 preamble before first < UnitTest PASS
channel
171 streaming: long body emits in safe-tail-bounded increments UnitTest unit smoke standard full PASS 0.0s
pass
172 T1.6 TokenizeResponse round-trips with snake_case max_model_len UnitTest unit smoke standard full PASS 0.0s
pass
173 T1.6 tokenize request decodes `text` field XMLParsing unit smoke standard full PASS 0.0s
pass
174 T1.6 tokenize request decodes vLLM-style `prompt` alias XMLParsing unit smoke standard full PASS 0.0s
pass
175 return inside analysis terminates without a final channel UnitTest unit smoke standard full PASS 0.0s
pass
176 MLXServiceError.serviceShuttingDown has descriptive message UnitTest unit smoke standard full PASS 0.0s
pass
177 T1.6 effectiveText prefers text over prompt when both supplied UnitTest unit smoke standard full PASS 0.0s
pass
178 end inside analysis without subsequent channel emits the reasoning so far UnitTest unit smoke standard full PASS 0.0s
pass
179 BatchScheduler stop helper does not stop while still inside think block UnitTest unit smoke standard full PASS 0.0s
pass
180 BatchScheduler emits incremental tool call deltas from slot runtime events XMLParsing unit smoke standard full PASS 0.0s
pass
181 RequestSlot IDs are unique across instances UnitTest unit smoke standard full PASS 0.0s
pass
182 BatchScheduler helper extraction keeps tool call streams isolated per event list XMLParsing unit smoke standard full PASS 0.0s
pass
183 T1.7 openapi.json declares the agent-relevant endpoints XMLParsing unit smoke standard full PASS 0.0s
pass
184 RequestSlot initializes with unique ID and zero content UnitTest unit smoke standard full PASS 0.0s
pass
185 BatchScheduler emits only completed tool calls from slot runtime events XMLParsing unit smoke standard full PASS 0.0s
pass
186 T1.6 effectiveText is empty when neither field is supplied XMLParsing unit smoke standard full PASS 0.0s
pass
187 MLXServiceError.noModelLoaded has descriptive message UnitTest unit smoke standard full PASS 0.0s
pass
188 BatchScheduler stop helper emits stopped chunk on exact stop match UnitTest unit smoke standard full PASS 0.0s
pass
189 #99 whole-text extractThinkContent on already-open synthetic prefix UnitTest unit smoke standard full PASS 0.0s
pass
190 StreamChunk carries timing info UnitTest unit smoke standard full PASS 0.0s
pass
191 #103 returns nil when neither side supplies a schema UnitTest unit smoke standard full PASS 0.0s
pass
192 RequestSlot appendContent accumulates text UnitTest unit smoke standard full PASS 0.0s
pass
193 BatchScheduler default max concurrent is 8 UnitTest unit smoke standard full PASS 0.0s
pass
194 #99 pre-opened think: synthetic <think> prefix routes body to reasoning UnitTest unit smoke standard full PASS 0.0s
pass
195 BatchScheduler stop helper buffers partial stop across chunk boundaries UnitTest unit smoke standard full PASS 0.0s
pass
196 StreamChunk carries cached token count UnitTest unit smoke standard full PASS 0.0s
pass
197 BatchScheduler emits delta chunks before completed tool call chunks XMLParsing unit smoke standard full PASS 0.0s
pass
198 #103 non-strict schemas are not surfaced (matches existing semantics) UnitTest unit smoke standard full PASS 0.0s
pass
199 #103 server-level guided-json applies when request omits response_format XMLParsing unit smoke standard full PASS 0.0s
pass
200 empty id is silently ignored on register / release XMLParsing unit smoke standard full PASS 0.0s
pass
201 release removes without firing cancel UnitTest unit smoke standard full PASS 0.0s
pass
202 coerceStringValue handles negative numbers XMLParsing unit smoke standard full PASS 0.0s
pass
203 regex fallback salvages unclosed parameter (max_tokens truncation) XMLParsing unit smoke standard full PASS 0.0s
pass
204 cancel returns false for unknown id UnitTest unit smoke standard full PASS 0.0s
pass
205 registry registers, fires cancel, and reports not-found after release UnitTest unit smoke standard full PASS 0.0s
pass
206 handles multiple tool calls XMLParsing unit smoke standard full PASS 0.0s
pass
207 coerces string to number (float) XMLParsing unit smoke standard full PASS 0.0s
pass
208 decodeJSONEscapes preserves real backslashes (\\n stays as \n literal) XMLParsing unit smoke standard full PASS 0.0s
pass
209 returns unchanged when arguments JSON is invalid XMLParsing unit smoke standard full PASS 0.0s
pass
210 does not fill non-required missing params XMLParsing unit smoke standard full PASS 0.0s
pass
211 re-registering same id replaces prior cancel closure UnitTest unit smoke standard full PASS 0.0s
pass
212 #103 per-request response_format wins over server default UnitTest unit smoke standard full PASS 0.0s
pass
213 decodeJSONEscapes handles \t escapes XMLParsing unit smoke standard full PASS 0.0s
pass
214 coerces string to array XMLParsing unit smoke standard full PASS 0.0s
pass
215 returns empty array and original text when no tool calls found XMLParsing unit smoke standard full PASS 0.0s
pass
216 decodeJSONEscapes full edit oldString from real Qwen3-Coder output XMLParsing unit smoke standard full PASS 0.0s
pass
217 parses Mistral [TOOL_CALLS] func_name[ARGS]{...} format XMLParsing unit smoke standard full PASS 0.0s
pass
218 decodeXMLEntities decodes all 5 standard entities XMLParsing unit smoke standard full PASS 0.0s
pass
219 XML+embedded-JSON tool call with scalar arg values does not crash (regression) XMLParsing unit smoke standard full PASS 0.0s
pass
220 coerceStringValue returns nil for float string with integer type XMLParsing unit smoke standard full PASS 0.0s
pass
221 parses basic XML tool call XMLParsing unit smoke standard full PASS 0.0s
pass
222 XMLParser path drops unclosed parameter (no bare < to trigger fallback) XMLParsing unit smoke standard full PASS 0.0s
pass
223 StreamChunk defaults: only text, everything else nil UnitTest unit smoke standard full PASS 0.0s
pass
224 completed tool call parsing resolves adaptive XML tool names against offered tools XMLParsing unit smoke standard full PASS 0.0s
pass
225 decodeXMLEntities handles double-encoded entities: &amp;lt; → &lt; XMLParsing unit smoke standard full PASS 0.0s
pass
226 XML+embedded-JSON tool call preserves nested object/array values XMLParsing unit smoke standard full PASS 0.0s
pass
227 returns unchanged when tool name not found in tools list UnitTest unit smoke standard full PASS 0.0s
pass
228 preserves JSON array parameter values XMLParsing unit smoke standard full PASS 0.0s
pass
229 JSON format switch mid-conversation (Qwen3-Coder-Next common error) XMLParsing unit smoke standard full PASS 0.0s
pass
230 does not coerce non-string values XMLParsing unit smoke standard full PASS 0.0s
pass
231 mixed coercion: some params coerced, some left alone XMLParsing unit smoke standard full PASS 0.0s
pass
232 preserves JSON object parameter values XMLParsing unit smoke standard full PASS 0.0s
pass
233 write tool with real newlines is NOT affected by decodeJSONEscapes XMLParsing unit smoke standard full PASS 0.0s
pass
234 coerceStringValue returns nil for non-numeric string with number type XMLParsing unit smoke standard full PASS 0.0s
pass
235 fills missing required boolean param with false XMLParsing unit smoke standard full PASS 0.0s
pass
236 skips empty parameter values XMLParsing unit smoke standard full PASS 0.0s
pass
237 decodeJSONEscapes passes through plain text without escapes XMLParsing unit smoke standard full PASS 0.0s
pass
238 fills missing required integer param with 0 XMLParsing unit smoke standard full PASS 0.0s
pass
239 coerces string to boolean true and false XMLParsing unit smoke standard full PASS 0.0s
pass
240 bash tool with special characters XMLParsing unit smoke standard full PASS 0.0s
pass
241 preserves content outside tool calls XMLParsing unit smoke standard full PASS 0.0s
pass
242 strips <think></think> tags from remaining text XMLParsing unit smoke standard full PASS 0.0s
pass
243 normalizeToolCall remaps keys before coercing values UnitTest unit smoke standard full PASS 0.0s
pass
244 coerceStringValue returns nil for invalid JSON with object type XMLParsing unit smoke standard full PASS 0.0s
pass
245 leaves already-correct types alone (string stays string) UnitTest unit smoke standard full PASS 0.0s
pass
246 text content before and after tool call is preserved XMLParsing unit smoke standard full PASS 0.0s
pass
247 decodeJSONEscapes preserves values that already have real newlines XMLParsing unit smoke standard full PASS 0.0s
pass
248 returns nil for content without <function=...> tag XMLParsing unit smoke standard full PASS 0.0s
pass
249 decodeXMLEntities passes through bare & without entity suffix XMLParsing unit smoke standard full PASS 0.0s
pass
250 coerces whole-number string to Int for 'number' type XMLParsing unit smoke standard full PASS 0.0s
pass
251 decodeJSONEscapes handles only \" without \n XMLParsing unit smoke standard full PASS 0.0s
pass
252 coerces string to integer XMLParsing unit smoke standard full PASS 0.0s
pass
253 returns unchanged when tools is empty XMLParsing unit smoke standard full PASS 0.0s
pass
254 bash tool with JSON-escaped command gets decoded XMLParsing unit smoke standard full PASS 0.0s
pass
255 question tool: array of objects with typed fields (OpenCode pattern) XMLParsing unit smoke standard full PASS 0.0s
pass
256 coerceStringValue coerces '0' to Int 0 for integer type XMLParsing unit smoke standard full PASS 0.0s
pass
257 decodeJSONEscapes unescapes literal \n and \" when no real newlines present XMLParsing unit smoke standard full PASS 0.0s
pass
258 normalizeToolCalls assigns sequential indices from startIndex UnitTest unit smoke standard full PASS 0.0s
pass
259 decodeXMLEntities passes through strings without entities XMLParsing unit smoke standard full PASS 0.0s
pass
260 coerceStringValue returns nil for non-numeric string with integer type XMLParsing unit smoke standard full PASS 0.0s
pass
261 bare JSON with 'parameters' key instead of 'arguments' XMLParsing unit smoke standard full PASS 0.0s
pass
262 returns unchanged when tools is nil UnitTest unit smoke standard full PASS 0.0s
pass
263 handles parameter values with special characters in Python code XMLParsing unit smoke standard full PASS 0.0s
pass
264 completed tool call parsing preserves remaining non-tool text XMLParsing unit smoke standard full PASS 0.0s
pass
265 parses bare JSON tool call without wrapper tags XMLParsing unit smoke standard full PASS 0.0s
pass
266 JSON-in-XML with missing name returns no tool calls XMLParsing unit smoke standard full PASS 0.0s
pass
267 requiredParamNames returns empty for tool with no required array XMLParsing unit smoke standard full PASS 0.0s
pass
268 decodeXMLEntities handles empty string XMLParsing unit smoke standard full PASS 0.0s
pass
269 does not coerce when property not in schema XMLParsing unit smoke standard full PASS 0.0s
pass
270 coerces string to object XMLParsing unit smoke standard full PASS 0.0s
pass
271 handles mixed XML and JSON in separate <tool_call> blocks XMLParsing unit smoke standard full PASS 0.0s
pass
272 parses Mistral [TOOL_CALLS] JSON array format XMLParsing unit smoke standard full PASS 0.0s
pass
273 EBNF grammar generates named required param rules for bash tool XMLParsing unit smoke standard full PASS 0.0s
pass
274 parses Mistral [TOOL_CALLS] with multiple items in array XMLParsing unit smoke standard full PASS 0.0s
pass
275 parses JSON-in-XML format with 'arguments' key XMLParsing unit smoke standard full PASS 0.0s
pass
276 EBNF grammar handles tool with no required params XMLParsing unit smoke standard full PASS 0.0s
pass
277 coerces string to negative integer XMLParsing unit smoke standard full PASS 0.0s
pass
278 edit tool with JSON-escaped oldString gets decoded (model pre-escaping bug) XMLParsing unit smoke standard full PASS 0.0s
pass
279 EBNF grammar allows extra optional params after required ones XMLParsing unit smoke standard full PASS 0.0s
pass
280 handles multiple parameters with mixed string and JSON types XMLParsing unit smoke standard full PASS 0.0s
pass
281 decodeXMLEntities handles consecutive entities XMLParsing unit smoke standard full PASS 0.0s
pass
282 parses JSON-in-XML format with 'parameters' key XMLParsing unit smoke standard full PASS 0.0s
pass
283 decodeJSONEscapes handles empty string XMLParsing unit smoke standard full PASS 0.0s
pass
284 regex fallback handles bare < in parameter value XMLParsing unit smoke standard full PASS 0.0s
pass
285 empty <tool_call></tool_call> block returns no calls XMLParsing unit smoke standard full PASS 0.0s
pass
286 coerces boolean case-insensitively (TRUE, True, FALSE) XMLParsing unit smoke standard full PASS 0.0s
pass
287 JSON-in-XML with no arguments key still parses name XMLParsing unit smoke standard full PASS 0.0s
pass
288 handles multiline parameter values XMLParsing unit smoke standard full PASS 0.0s
pass
289 bare JSON that's not a tool call doesn't match XMLParsing unit smoke standard full PASS 0.0s
pass
290 JSON-in-XML with invalid JSON falls through XMLParsing unit smoke standard full PASS 0.0s
pass
291 decodes XML entities in parameter values via XMLParser XMLParsing unit smoke standard full PASS 0.0s
pass
292 multiple parameters with same non-empty value keeps first XMLParsing unit smoke standard full PASS 0.0s
pass
293 decodeXMLEntities handles entities at string boundaries XMLParsing unit smoke standard full PASS 0.0s
pass
294 write file with Python containing comparison operators (OpenCode pattern) XMLParsing unit smoke standard full PASS 0.0s
pass
295 decodeXMLEntities handles multiple &lt; in Python code XMLParsing unit smoke standard full PASS 0.0s
pass
296 coerceStringValue returns nil for invalid JSON with array type XMLParsing unit smoke standard full PASS 0.0s
pass
297 does NOT fill missing required string param (let client report missing) XMLParsing unit smoke standard full PASS 0.0s
pass
298 mixed: write content has real newlines, edit oldString has escaped — both decoded correctly XMLParsing unit smoke standard full PASS 0.0s
pass
299 coerceStringValue coerces '0.0' to Int 0 for number type (whole number) XMLParsing unit smoke standard full PASS 0.0s
pass
300 requiredParamNames preserves client schema order (not alphabetical) XMLParsing unit smoke standard full PASS 0.0s
pass
301 handles duplicate parameters (keeps first non-empty) XMLParsing unit smoke standard full PASS 0.0s
pass
302 coerceStringValue handles empty string for all types XMLParsing unit smoke standard full PASS 0.0s
pass
303 does NOT coerce 'yes'/'no'/'1'/'0' to boolean XMLParsing unit smoke standard full PASS 0.0s
pass
304 EBNF grammar param_value uses permissive pv_char rule XMLParsing unit smoke standard full PASS 0.0s
pass
305 EBNF grammar generates named required param rules for edit tool XMLParsing unit smoke standard full PASS 0.0s
pass
306 coerceStringValue returns nil for unknown schema type XMLParsing unit smoke standard full PASS 0.0s
pass
307 RequestSlot is thread-safe under concurrent writes XMLParsing unit smoke standard full PASS 0.0s
pass
308 CancellableTaskHandle: cancel-then-assign immediately cancels the late-arriving task UnitTest unit smoke standard full PASS 0.0s
pass
309 CancellableTaskHandle: assign-then-cancel cancels the assigned task UnitTest unit smoke standard full PASS 0.0s
pass
310 BatchStore handles concurrent batch creates safely UnitTest unit smoke standard full PASS 0.1s
pass
311 BatchStore handles concurrent file operations safely UnitTest unit smoke standard full PASS 0.1s
pass
312 Cancel nonexistent batch returns 404 UnitTest unit smoke standard full PASS 0.1s
pass
313 Cancel batch on non-in_progress returns 400 UnitTest unit smoke standard full PASS 0.1s
pass
314 Cancel batch transitions to cancelled UnitTest unit smoke standard full PASS 0.1s
pass
315 BatchCompletionsController sanitizes fenced JSON in non-streaming results XMLParsing unit smoke standard full PASS 0.1s
pass
316 BatchCompletionsController skips grammar downgrade header for unsupported strict tool grammar XMLParsing unit smoke standard full PASS 0.1s
pass
317 BatchCompletionsController sets grammar downgrade header when strict tools present XMLParsing unit smoke standard full PASS 0.1s
pass
318 Rejects line with wrong method UnitTest unit smoke standard full PASS 0.1s
pass
319 Rejects line with wrong url UnitTest unit smoke standard full PASS 0.1s
pass
320 Accepts valid method and url UnitTest unit smoke standard full PASS 0.1s
pass
321 RequestSlot elapsedTime increases over time UnitTest unit smoke standard full PASS 0.1s
pass
322 BatchAPIController response includes tool_calls with correct finish_reason UnitTest unit smoke standard full PASS 0.7s
pass
323 BatchAPIController response includes logprobs when provided in stream UnitTest unit smoke standard full PASS 0.7s
pass
324 BatchAPIController response includes reasoningContent when model supports thinking UnitTest unit smoke standard full PASS 0.7s
pass
325 Binary exists at .build/release/afm Preflight unit smoke standard full PASS 0.0s
file exists
326 Server reachable at http://127.0.0.1:9998 Preflight unit smoke standard full PASS 0.0s
200 OK
327 /v1/models contains model ID Lifecycle unit smoke standard full PASS 0.0s
model in response
328 Basic completion returns content Lifecycle unit smoke standard full FAIL 60.0s
Expected: non-empty content or reasoning\nActual: FAIL: empty response
329 Stop string '5' absent from output Stop unit smoke standard full PASS 34.9s
no '5' in content
330 finish_reason is 'stop' with stop sequence Stop unit smoke standard full PASS 0.0s
stop
331 Multi-word stop 'and' truncates correctly Stop unit smoke standard full PASS 2.3s
no 'and' in output
332 Stop on newline produces single line Stop unit smoke standard full PASS 1.8s
single line
333 Multiple stop sequences [7, 12] Stop unit smoke standard full PASS 2.3s
neither found
334 Empty stop array is no-op Stop unit smoke standard full PASS 1.5s
valid output
335 Streaming: stop string '5' absent Stop unit smoke standard full PASS 2.3s
no '5' in stream
336 Stop sequence '3.' truncates list Stop standard full PASS 1.2s
no '3.' in output
337 Stop 'stopped' doesn't fire on 'stopping' Stop standard full PASS 1.7s
output produced
338 Stop 'llo' fires mid-word in 'hello' Stop standard full PASS 1.6s
no 'llo'
339 ChoiceLogprobs JSON schema valid Logprobs smoke standard full PASS 0.2s
valid schema
340 top_logprobs count <= requested (5) Logprobs smoke standard full PASS 0.2s
count valid
341 logprobs=false returns null Logprobs smoke standard full PASS 0.1s
null logprobs
342 top_logprobs=99 returns 400 Logprobs smoke standard full PASS 0.0s
400
343 Streaming logprobs present and valid Logprobs standard full PASS 0.2s
valid
344 top_logprobs=0 returns empty arrays Logprobs standard full PASS 0.2s
empty top_logprobs
345 reasoning_content present in response Think smoke standard full PASS 0.0s
present
346 No <think> tags in content field Think smoke standard full PASS 0.0s
clean content
347 Streaming: reasoning_content in deltas Think smoke standard full PASS 1.2s
present
348 Stop sequence doesn't break think extraction Think smoke standard full PASS 2.3s
response ok
349 reasoning_content has meaningful length (>5 chars) Think smoke standard full PASS 0.0s
>5 chars
350 Basic tool call: finish_reason=tool_calls, valid args Tools smoke standard full PASS 2.3s
valid
351 tool_choice=none suppresses tool calls Tools smoke standard full PASS 1.2s
no tool calls
352 Tool arguments are valid JSON dict Tools standard full PASS 1.3s
valid JSON
353 Streaming: tool calls with finish_reason Tools standard full PASS 1.3s
valid
354 Multi-tool: at least 1 tool call with 2 tools Tools standard full PASS 1.9s
>=1 calls
355 Array param: todos is JSON array (not string) Tools standard full PASS 3.1s
array
356 Nullable param: anyOf [string, null] does not crash Tools standard full PASS 1.3s
no crash
357 Multi-turn: tool result produces valid follow-up Tools standard full PASS 3.5s
text response
358 Multi-turn nullable: full round-trip (anyOf params) Tools standard full PASS 3.5s
valid follow-up
359 No tools: normal text response Tools standard full PASS 0.3s
text response
360 First unique request: uncached suffix remains Cache standard full PASS 0.4s
cached_tokens < prompt_tokens
361 Shared-prefix request: cached_tokens>0 Cache standard full PASS 0.3s
>0
362 Exact replay: cached response matches cold response Cache standard full PASS 0.4s
same content
363 Different unique prompt: uncached suffix remains Cache standard full PASS 0.4s
cached_tokens < prompt_tokens
364 Streaming shared-prefix: cached_tokens>0 in usage chunk Cache standard full PASS 0.8s
>0
365 Streaming replay: content matches non-streaming warmup Cache standard full PASS 0.9s
same content
366 Concurrent x8 shared-prefix: uncached suffix remains on every branch Cache standard full FAIL 3.9s
Expected: 0 < cached_tokens < prompt_tokens for all 8\nActual: FAIL: 2:0/59, 3:0/59, 4:0/59, 5:0/59, 6:0/59, 7:0/59, 8:0/59
367 Concurrent x8 shared-prefix: divergent suffix responses stay isolated Cache standard full FAIL 3.9s
Expected: each of 8 responses keeps only its own marker\nActual: FAIL: 1:error=Expecting value: line 1 column 1 (char 0); 2:error=Expecting value: line 1 column 1 (char 0); 3:error=Expecting value: line 1 column 1 (char 0); 4:error=Expecting value: line 1 column 1 (char 0); 5:error=Expecting value: line 1 column 1 (char 0); 6:error=Expecting value: line 1 column 1 (char 0); 7:error=Expecting value: line 1 column 1 (char 0); 8:error=Expecting value: line 1 column 1 (char 0)
368 Two simultaneous requests: both 200 Concurrent standard full PASS 0.3s
200+200
369 Three simultaneous requests: all 200 Concurrent standard full PASS 0.4s
all 200
370 Empty messages → 400 Error smoke standard full PASS 0.0s
400
371 Malformed JSON → 400 Error smoke standard full PASS 0.0s
400
372 Missing messages field → 400 Error smoke standard full PASS 0.0s
400
373 response_format json_object returns valid JSON Error smoke standard full PASS 0.3s
valid JSON
374 max_tokens=5 is respected Error smoke standard full PASS 0.1s
<=10 tokens
375 OPTIONS /v1/chat/completions → 200 (CORS) Error smoke standard full PASS 0.0s
200
376 developer role accepted (mapped to system) Error smoke standard full PASS 5.5s
valid response
377 enable_thinking=false disables thinking Kwargs standard full PASS 0.2s
no_think
378 Streaming: enable_thinking=false disables thinking Kwargs standard full PASS 0.2s
no_think
379 Default (no kwargs) retains thinking Kwargs standard full PASS 1.7s
thinking
380 enable_thinking=false (2K tokens) returns content Kwargs standard full PASS 0.2s
content present, no reasoning
381 enable_thinking=true explicitly keeps thinking Kwargs standard full PASS 1.7s
thinking
382 Prefix cache reuse across requests Cache standard full PASS 0.4s
valid response on cache hit
383 Issue #32: sequential guided-json → nullable tool (no crash) Cache standard full PASS 6.2s
both succeed
384 Sequential: 3 nullable tool calls (cache reuse) Cache standard full PASS 5.1s
3/3 succeed
385 Multi-turn: 5-msg tool conversation with prefix cache Cache standard full PASS 3.1s
valid response
386 Long system prompt: 3 sequential requests (prefix reuse) Cache standard full PASS 5.5s
3/3 succeed
387 Sequential stress: 5 mixed requests (text/tool/json/stream/nullable) Cache standard full PASS 6.5s
5/5 succeed
388 Multi-turn: 5-turn growing conversation (prefix reuse) Cache standard full PASS 5.5s
5/5 turns
389 Streaming + non-streaming sequential (shared prefix) Cache standard full PASS 1.3s
3/3 succeed
390 Issue #32 comprehensive: nullable tool + multi-turn + prefix Cache standard full PASS 4.0s
valid response
391 json_schema produces valid schema-matching JSON Structured standard full PASS 0.5s
valid JSON
392 TTFT < 5s Perf full PASS 0.6s
<5000ms
393 tok/s > 1 (80.5 tok/s) Perf full PASS 0.6s
>1
394 Long context (~2K tokens) no crash Perf full PASS 6.4s
valid response
395 Very long context (~4K tokens) no NaN/garbage Perf full PASS 8.5s
clean output
396 Function name correctly extracted XMLTools standard full PASS 1.8s
get_weather
397 Parameter values are correct string types XMLTools standard full PASS 1.9s
strings
398 Mixed-type params (string+bool+int) parse correctly XMLTools standard full PASS 2.0s
valid types
399 Nested object param survives XML parsing XMLTools standard full PASS 2.4s
valid dict
400 tool_choice=required forces tool call XMLTools standard full PASS 2.3s
tool_calls
401 tool_choice={function: get_time} calls correct function XMLTools standard full PASS 2.2s
get_time
402 Tool call IDs are unique XMLTools standard full PASS 2.3s
unique IDs
403 Streaming: XML tool call assembles valid JSON args XMLTools standard full PASS 1.3s
valid
404 Streaming: array param is JSON array (not string) XMLTools standard full PASS 2.9s
array
405 Tool call matches OpenAI schema (id, type, function.name, function.arguments) XMLTools standard full PASS 2.3s
valid schema
406 Normal XML tool call works with afm_adaptive_xml AdaptiveXML standard full PASS 2.2s
valid tool call
407 Streaming tool call emits valid deltas AdaptiveXML standard full PASS 2.2s
name + JSON args
408 Multi-turn: model responds after tool result AdaptiveXML standard full PASS 1.7s
non-empty content
409 tool_choice=none suppresses tool calls AdaptiveXML standard full PASS 2.3s
no tool_calls
410 Multiple tools: correct function selected AdaptiveXML standard full PASS 3.3s
get_time
411 Argument types coerced (string, bool, int) AdaptiveXML standard full PASS 1.9s
correct types
412 Tool call valid (with or without grammar constraints) AdaptiveXML standard full PASS 2.2s
valid
413 Array of objects coercion (question tool pattern) AdaptiveXML standard full PASS 3.6s
array of dicts
414 Number (float) and boolean coercion AdaptiveXML standard full PASS 1.9s
correct types
415 Nested object with typed fields coercion AdaptiveXML standard full PASS 2.7s
correct types
416 Streaming array coercion (incremental path) AdaptiveXML standard full PASS 2.4s
array in stream
417 XML entity decoding in tool call values AdaptiveXML standard full PASS 3.4s
decoded
418 EBNF grammar enforces all required params present AdaptiveXML standard full PASS 2.4s
command + description
419 EBNF structured params: array gets json_array constraint AdaptiveXML standard full PASS 2.1s
tags is array
420 X-Grammar-Constraints: downgraded header (tool strict:true) StrictWiring smoke standard full PASS 1.2s
downgraded
421 X-Grammar-Constraints: downgraded header (schema strict:true) StrictWiring smoke standard full PASS 0.5s
downgraded
422 No header when strict absent StrictWiring smoke standard full PASS 0.9s
no header
423 Streaming json_schema strict:true returns valid JSON StrictWiring smoke standard full PASS 0.3s
valid JSON with name+age
424 Streaming tool strict:true returns valid tool call StrictWiring smoke standard full PASS 1.9s
get_weather(location)
425 strict:false does not error (best-effort) StrictWiring smoke standard full PASS 1.9s
valid response
426 POST /v1/files upload returns file ID Batch standard full PASS 0.0s
file-*
427 GET /v1/files/:id returns file metadata Batch standard full PASS 0.0s
file object
428 POST /v1/batches creates batch Batch standard full PASS 0.0s
in_progress/completed
429 GET /v1/batches/:id polls to completed Batch standard full PASS 2.1s
completed
430 Output JSONL contains both results (2/2) Batch standard full PASS 0.0s
assert-1 + assert-2
431 GET /v1/batches lists completed batch Batch standard full PASS 0.0s
list with ≥1 batch
432 DELETE /v1/files/:id removes uploaded file Batch standard full PASS 0.0s
deleted=true
433 SSE multiplex: 2 non-streaming requests tagged with custom_id Batch standard full PASS 0.3s
sse-a + sse-b + [DONE]
434 SSE multiplex: streaming interleaved with finish_reason Batch standard full PASS 0.4s
str-x + str-y chunks + stop + [DONE]
435 SSE multiplex rejects duplicate custom_ids Batch standard full PASS 0.0s
400
436 SSE multiplex rejects empty requests Batch standard full PASS 0.0s
400
437 batch + top_k + streaming PairwiseSmoke standard full PASS 0.2s
content present
438 batch + presence_penalty + non-streaming PairwiseSmoke standard full PASS 0.2s
finish_reason present
439 batch + repetition_penalty + logprobs PairwiseSmoke standard full PASS 0.2s
response valid
440 batch + all sampling params combined PairwiseSmoke standard full PASS 0.2s
response valid
441 streaming parity (same seed → same output) PairwiseSmoke standard full FAIL 0.3s
Expected: ns='' vs s=''\nActual: FAIL: mismatch
442 cache idempotency (same seed → same output) PairwiseSmoke standard full FAIL 0.3s
Expected: r1='' vs r2=''\nActual: FAIL: mismatch