Skip to content

e2e: survive malformed tool-call JSON; record small-model results#117

Merged
hfoffani merged 1 commit into
mainfrom
harness-robust-8b
Jul 13, 2026
Merged

e2e: survive malformed tool-call JSON; record small-model results#117
hfoffani merged 1 commit into
mainfrom
harness-robust-8b

Conversation

@hfoffani

Copy link
Copy Markdown
Owner

Follow-up to #113/#116, from testing the smaller model as discussed.

What happened

Three rounds with meta-llama/llama-3.1-8b-instruct (the suggested small model), all unsound, each failing differently:

  1. Mangled the road map in PDDL, then drifted into writing pseudo-code about calling tools instead of calling them
  2. Emitted malformed JSON in tool-call arguments — which crashed the harness (bug, fixed here: such calls now get an error tool-result so the model can retry)
  3. Fired 7 tool calls in a single batch (write+write+validate+write+write+solve+parse) without reading any result, then stopped

Why it's worth recording

It sharpens the doc's thesis with data: qwen-72b needed the fix loop and used it (sound on round 2); llama-8b can't sustain the loop at all — and the soundness gate correctly rejected every round. The e2e README now carries an observed-results table.

Changes

  • harness.py: malformed tool-call JSON → error tool-result instead of a crash (--dry-run still green)
  • e2e/llm/README.md: observed-results table

Transcripts of the failed rounds stay local/gitignored as usual.

🤖 Generated with Claude Code

llama-3.1-8b (3 rounds, all unsound) exposed a harness crash: invalid
JSON in tool-call arguments raised JSONDecodeError mid-run. Such calls
now get an error tool-result so the model can retry, and the README
gains an observed-results table (qwen-72b sound on round 2 vs
llama-8b's three distinct failure modes) — the weak-model thesis,
measured.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@hfoffani
hfoffani merged commit f548ea3 into main Jul 13, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant