Hand-written fixtures (claude, a claude subagent, pi, opencode, agy) and a unittest feeding them through feed_lines at random and systematic byte cuts. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
24 lines
11 KiB
JSON
24 lines
11 KiB
JSON
{"type": "queue-operation", "operation": "enqueue", "timestamp": "2026-01-05T10:00:00.000Z", "sessionId": "11111111-aaaa-4bbb-8ccc-000000000001", "content": "Fix the café menu parser — it drops accents (é, ñ) ✅"}
|
|
{"type": "queue-operation", "operation": "dequeue", "timestamp": "2026-01-05T10:00:00.000Z", "sessionId": "11111111-aaaa-4bbb-8ccc-000000000001"}
|
|
{"sessionId": "11111111-aaaa-4bbb-8ccc-000000000001", "cwd": "/home/synth/projects/demo", "gitBranch": "main", "version": "2.1.400", "userType": "external", "isSidechain": false, "entrypoint": "cli", "type": "user", "uuid": "u-0001", "parentUuid": null, "timestamp": "2026-01-05T10:00:01.037Z", "message": {"role": "user", "content": "Fix the café menu parser — it drops accents (é, ñ) ✅"}}
|
|
{"sessionId": "11111111-aaaa-4bbb-8ccc-000000000001", "cwd": "/home/synth/projects/demo", "gitBranch": "main", "version": "2.1.400", "userType": "external", "isSidechain": false, "entrypoint": "cli", "type": "assistant", "uuid": "a-0001", "parentUuid": "u-0001", "timestamp": "2026-01-05T10:00:03.111Z", "requestId": "req_synth_01", "message": {"id": "msg_synth_01", "type": "message", "role": "assistant", "model": "claude-opus-4-8", "content": [{"type": "thinking", "thinking": "The parser lowercases with an ASCII table; look at menu.py first.", "signature": "c3ludGg="}], "stop_reason": null, "usage": {"input_tokens": 12, "output_tokens": 240, "cache_read_input_tokens": 18000, "cache_creation_input_tokens": 2500, "cache_creation": {"ephemeral_5m_input_tokens": 500, "ephemeral_1h_input_tokens": 2000}, "service_tier": "standard", "speed": "standard"}}}
|
|
{"sessionId": "11111111-aaaa-4bbb-8ccc-000000000001", "cwd": "/home/synth/projects/demo", "gitBranch": "main", "version": "2.1.400", "userType": "external", "isSidechain": false, "entrypoint": "cli", "type": "assistant", "uuid": "a-0002", "parentUuid": "a-0001", "timestamp": "2026-01-05T10:00:04.148Z", "requestId": "req_synth_01", "message": {"id": "msg_synth_01", "type": "message", "role": "assistant", "model": "claude-opus-4-8", "content": [{"type": "text", "text": "I'll look at the parser first."}], "stop_reason": null, "usage": {"input_tokens": 12, "output_tokens": 240, "cache_read_input_tokens": 18000, "cache_creation_input_tokens": 2500, "cache_creation": {"ephemeral_5m_input_tokens": 500, "ephemeral_1h_input_tokens": 2000}, "service_tier": "standard", "speed": "standard"}}}
|
|
{"sessionId": "11111111-aaaa-4bbb-8ccc-000000000001", "cwd": "/home/synth/projects/demo", "gitBranch": "main", "version": "2.1.400", "userType": "external", "isSidechain": false, "entrypoint": "cli", "type": "assistant", "uuid": "a-0003", "parentUuid": "a-0002", "timestamp": "2026-01-05T10:00:05.185Z", "requestId": "req_synth_01", "message": {"id": "msg_synth_01", "type": "message", "role": "assistant", "model": "claude-opus-4-8", "content": [{"type": "tool_use", "id": "toolu_synth_01", "name": "Bash", "input": {"command": "rg -n 'lower' menu.py && git status --short", "description": "Find the lowercasing"}}], "stop_reason": "tool_use", "usage": {"input_tokens": 12, "output_tokens": 240, "cache_read_input_tokens": 18000, "cache_creation_input_tokens": 2500, "cache_creation": {"ephemeral_5m_input_tokens": 500, "ephemeral_1h_input_tokens": 2000}, "service_tier": "standard", "speed": "standard"}}}
|
|
{"sessionId": "11111111-aaaa-4bbb-8ccc-000000000001", "cwd": "/home/synth/projects/demo", "gitBranch": "main", "version": "2.1.400", "userType": "external", "isSidechain": false, "entrypoint": "cli", "type": "user", "uuid": "u-0002", "parentUuid": "a-0003", "timestamp": "2026-01-05T10:00:09.333Z", "message": {"role": "user", "content": [{"type": "tool_result", "tool_use_id": "toolu_synth_01", "content": "12: name = name.lower()\n M menu.py", "is_error": false}]}, "toolUseResult": {"stdout": "12: name = name.lower()\n M menu.py", "stderr": "", "interrupted": false, "isImage": false}}
|
|
|
|
this line is not JSON and must be skipped
|
|
{"sessionId": "11111111-aaaa-4bbb-8ccc-000000000001", "cwd": "/home/synth/projects/demo", "gitBranch": "main", "version": "2.1.400", "userType": "external", "isSidechain": false, "entrypoint": "cli", "type": "assistant", "uuid": "a-0004", "parentUuid": "u-0002", "timestamp": "2026-01-05T10:00:12.444Z", "requestId": "req_synth_02", "message": {"id": "msg_synth_02", "type": "message", "role": "assistant", "model": "claude-opus-4-8", "content": [{"type": "tool_use", "id": "toolu_synth_02", "name": "Edit", "input": {"file_path": "/home/synth/projects/demo/menu.py", "old_string": "name.lower()", "new_string": "name.casefold()"}}], "stop_reason": "tool_use", "usage": {"input_tokens": 4, "output_tokens": 90, "cache_read_input_tokens": 20500, "cache_creation_input_tokens": 300, "cache_creation": {"ephemeral_5m_input_tokens": 300, "ephemeral_1h_input_tokens": 0}, "speed": "standard"}}}
|
|
{"sessionId": "11111111-aaaa-4bbb-8ccc-000000000001", "cwd": "/home/synth/projects/demo", "gitBranch": "main", "version": "2.1.400", "userType": "external", "isSidechain": false, "entrypoint": "cli", "type": "user", "uuid": "u-0003", "parentUuid": "a-0004", "timestamp": "2026-01-05T10:00:13.481Z", "message": {"role": "user", "content": [{"type": "tool_result", "tool_use_id": "toolu_synth_02", "content": "The file /home/synth/projects/demo/menu.py has been updated."}]}, "toolUseResult": {"filePath": "/home/synth/projects/demo/menu.py", "oldString": "name.lower()", "newString": "name.casefold()", "structuredPatch": [{"oldStart": 12, "oldLines": 1, "newStart": 12, "newLines": 1, "lines": ["- name = name.lower()", "+ name = name.casefold()"]}]}}
|
|
{"sessionId": "11111111-aaaa-4bbb-8ccc-000000000001", "cwd": "/home/synth/projects/demo", "gitBranch": "main", "version": "2.1.400", "userType": "external", "isSidechain": false, "entrypoint": "cli", "type": "assistant", "uuid": "a-0005", "parentUuid": "u-0003", "timestamp": "2026-01-05T10:00:15.555Z", "requestId": "req_synth_03", "message": {"id": "msg_synth_03", "type": "message", "role": "assistant", "model": "claude-opus-4-8", "content": [{"type": "tool_use", "id": "toolu_synth_03", "name": "Bash", "input": {"command": "git commit -am 'fix(menu): keep accents' && git push"}}], "stop_reason": "tool_use", "usage": {"input_tokens": 3, "output_tokens": 55, "cache_read_input_tokens": 20800, "cache_creation_input_tokens": 120, "speed": "fast"}}}
|
|
{"sessionId": "11111111-aaaa-4bbb-8ccc-000000000001", "cwd": "/home/synth/projects/demo", "gitBranch": "main", "version": "2.1.400", "userType": "external", "isSidechain": false, "entrypoint": "cli", "type": "user", "uuid": "u-0004", "parentUuid": "a-0005", "timestamp": "2026-01-05T10:00:18.666Z", "message": {"role": "user", "content": [{"type": "tool_result", "tool_use_id": "toolu_synth_03", "content": "[main 1a2b3c4] fix(menu): keep accents\n 1 file changed, 1 insertion(+), 1 deletion(-)", "is_error": false}]}, "toolUseResult": {"stdout": "[main 1a2b3c4] fix(menu): keep accents\n 1 file changed, 1 insertion(+), 1 deletion(-)", "stderr": ""}}
|
|
{"sessionId": "11111111-aaaa-4bbb-8ccc-000000000001", "cwd": "/home/synth/projects/demo", "gitBranch": "main", "version": "2.1.400", "userType": "external", "isSidechain": false, "entrypoint": "cli", "type": "assistant", "uuid": "a-0006", "parentUuid": "u-0004", "timestamp": "2026-01-05T10:00:20.740Z", "requestId": "req_synth_04", "message": {"id": "msg_synth_04", "type": "message", "role": "assistant", "model": "claude-opus-4-8", "content": [{"type": "text", "text": "Done — `casefold()` keeps « é » and « ñ ». 🎉"}], "stop_reason": "end_turn", "usage": {"input_tokens": 3, "output_tokens": 55, "cache_read_input_tokens": 20800, "cache_creation_input_tokens": 120, "speed": "standard"}}}
|
|
{"sessionId": "11111111-aaaa-4bbb-8ccc-000000000001", "cwd": "/home/synth/projects/demo", "gitBranch": "main", "version": "2.1.400", "userType": "external", "isSidechain": false, "entrypoint": "cli", "type": "system", "subtype": "stop_hook_summary", "uuid": "s-0001", "parentUuid": "a-0006", "timestamp": "2026-01-05T10:00:21.777Z", "hookCount": 1, "hookInfos": [{"command": "stop_guard.py"}], "preventedContinuation": false}
|
|
{"sessionId": "11111111-aaaa-4bbb-8ccc-000000000001", "cwd": "/home/synth/projects/demo", "gitBranch": "main", "version": "2.1.400", "userType": "external", "isSidechain": false, "entrypoint": "cli", "type": "system", "subtype": "turn_duration", "uuid": "s-0002", "parentUuid": "s-0001", "timestamp": "2026-01-05T10:00:21.777Z", "durationMs": 20000}
|
|
{"type": "ai-title", "aiTitle": "Keep accents in the menu parser", "sessionId": "11111111-aaaa-4bbb-8ccc-000000000001"}
|
|
{"type": "last-prompt", "lastPrompt": "Fix the café menu parser", "sessionId": "11111111-aaaa-4bbb-8ccc-000000000001"}
|
|
{"sessionId": "11111111-aaaa-4bbb-8ccc-000000000001", "cwd": "/home/synth/projects/demo", "gitBranch": "main", "version": "2.1.400", "userType": "external", "isSidechain": false, "entrypoint": "cli", "type": "user", "uuid": "u-0005", "parentUuid": "s-0002", "timestamp": "2026-01-05T10:01:35.515Z", "message": {"role": "user", "content": [{"type": "text", "text": "Now ask a subagent to review it."}]}}
|
|
{"sessionId": "11111111-aaaa-4bbb-8ccc-000000000001", "cwd": "/home/synth/projects/demo", "gitBranch": "main", "version": "2.1.400", "userType": "external", "isSidechain": false, "entrypoint": "cli", "type": "assistant", "uuid": "a-0007", "parentUuid": "u-0005", "timestamp": "2026-01-05T10:01:37.589Z", "requestId": "req_synth_05", "message": {"id": "msg_synth_05", "type": "message", "role": "assistant", "model": "claude-sonnet-5", "content": [{"type": "tool_use", "id": "toolu_synth_04", "name": "Agent", "input": {"description": "Review the fix", "prompt": "Review menu.py", "subagent_type": "general-purpose"}}], "stop_reason": "tool_use", "usage": {"input_tokens": 900, "output_tokens": 400, "cache_read_input_tokens": 0, "cache_creation_input_tokens": 21000}}}
|
|
{"sessionId": "11111111-aaaa-4bbb-8ccc-000000000001", "cwd": "/home/synth/projects/demo", "gitBranch": "main", "version": "2.1.400", "userType": "external", "isSidechain": false, "entrypoint": "cli", "type": "user", "uuid": "u-0006", "parentUuid": "a-0007", "timestamp": "2026-01-05T10:02:20.180Z", "message": {"role": "user", "content": [{"type": "tool_result", "tool_use_id": "toolu_synth_04", "content": [{"type": "text", "text": "Looks right."}]}]}, "toolUseResult": {"status": "completed", "agentId": "a1b2c3d4e5f60718", "totalDurationMs": 41000, "totalTokens": 5200, "totalToolUseCount": 1, "content": [{"type": "text", "text": "Looks right."}]}}
|
|
{"sessionId": "11111111-aaaa-4bbb-8ccc-000000000001", "cwd": "/home/synth/projects/demo", "gitBranch": "main", "version": "2.1.400", "userType": "external", "isSidechain": false, "entrypoint": "cli", "type": "assistant", "uuid": "a-0008", "parentUuid": "u-0006", "timestamp": "2026-01-05T10:02:22.254Z", "requestId": "req_synth_06", "message": {"id": "msg_synth_06", "type": "message", "role": "assistant", "model": "<synthetic>", "content": [{"type": "text", "text": "You've hit your session limit · resets 3pm (Europe/Paris)"}], "stop_reason": "stop_sequence", "usage": {"input_tokens": 0, "output_tokens": 0}}, "isApiErrorMessage": true, "error": "rate_limit"}
|
|
{"sessionId": "11111111-aaaa-4bbb-8ccc-000000000001", "cwd": "/home/synth/projects/demo", "gitBranch": "main", "version": "2.1.400", "userType": "external", "isSidechain": false, "entrypoint": "cli", "type": "system", "subtype": "turn_duration", "uuid": "s-0003", "parentUuid": "a-0008", "timestamp": "2026-01-05T10:02:23.291Z", "durationMs": 48000}
|