Chapter 5 experiment ledger¶
This ledger distinguishes a complete experiment from a supported hypothesis.
official_complete means every execution/evidence gate in the Chinese
manuscript has substantive evidence; a statistically negative result remains
a complete experiment and is reported as such.
Use the experiment number in the first column to find the current book exercise. Run directories retain the numbers used when the evidence was collected. For 5-16, the digest identifies an archived comparison outside Git. The project guide explains the checks and how to reproduce the comparison.
| Experiment | Canonical evidence | Status | official_complete |
Hypothesis | Evidence SHA-256 |
|---|---|---|---|---|---|
| 5-1 | provider-failover/validation/runs/exp5-1-handoff-20260824T150228Z/manifest.json |
passed | true | portability supported; redundant-call reduction not observed | 102f27e469fcc020667be93eec0e16d84dec7f454244a147401fd4f932b242be |
| 5-2 | provider-failover/validation/runs/exp5-2-continuation-20260824T152045Z/manifest.json |
passed | true | continuation cheaper only for long prose; not safe for truncated arguments | c513b9e8265c4ce4eaf1bb0e6f082c68f756d1cff6e7784cf13ea923357605f4 |
| 5-3 | code-for-math/validation/runs/exp5-1-ark-doubao-flash-aime2024-20260730-v1/manifest.json |
passed | true | not supported | 3f4508457ae620efdb8864ed52ef150d3e584da128f2249ca18553904d6f571a |
| 5-4 | code-for-logic/validation/real_ark_doubao_flash_hf84_20260730.json |
passed | true | contradicted | ac602aebf67e9b2ee508f3472f4348fd7c30edd05098fed8cbc6ebef15d2df28 |
| 5-5 | small-model-codified-rules/validation/real_ollama_qwen3_4b_60x2_20260730.json |
passed | true | not supported | 003c8e0593623b700a173b463199ae080a6c7bcbcedce1f5568d579515da66ab |
| 5-6 | paper-to-ppt/validation/runs/exp5-4-real-pdf-both-20260730-v9/comparison_summary.json |
passed | true | context advantage supported; quality tied | bfd913d311ab4d6ad5a8cae93b61ce54ce6d19f9d2d10ee2afdef06becd1e09f |
| 5-7 | paper-to-video/validation/runs/exp5-5-kimi-fish-qwen-20260730-v1/manifest.json |
passed | true | supported | 93bb69a916a76d12de56270928971f6e39f47755214f7a135817d7effd8b3f09 |
| 5-8 | video-edit/validation/runs/exp5-6-real-blender-20260730-055102/manifest.json |
passed | true | supported | fd044738e812faa832863f4c112880a9583c268afb7d08f388c00623498ab7a8 |
| 5-9 | cad-vs-diffusion/validation/runs/exp5-7-cad-vs-diffusion-20260821-015734-v1/manifest.json |
passed | true | supported | ae7c5fdf685562e5e53ac625fe1b512b6ba7a8692bbc45bada888b555c702b86 |
| 5-10 | adaptive-log-parser/validation/runs/20260729T212342Z-5_7-live/manifest.json |
passed | true | supported | 00851a7b15fba8bad94422b7870b9eda1a9f3b12f3e509b2d768db244edc2507 |
| 5-11 | log-diagnosis/validation/runs/exp5-8-live-http-mcp-20260730-053403/manifest.json |
passed | true | supported | 68e09e7c8b4fc100e0612a6f81978079c393a822025bfa794b6dda85134a5813 |
| 5-12 | dynamic-form/validation/runs/20260729T212542Z-5_9-live-browser/manifest.json |
passed | true | supported | 6e6b2cc9c31071c880f2c66a7f172d4933a1ee2f51ac7206b89a1cd89dca08a7 |
| 5-13 | erp-agent/validation/runs/20260729T210334Z-5_10-postgresql/manifest.json |
passed | true | supported | 5b167f34d18cca867b6fa5fe2d61cd1bf4324f618d6e21221fe9131e56aaed16 |
| 5-14 | conversational-ui/validation/runs/20260729T212933Z-5_11-hmr/manifest.json |
passed | true | supported | 34d6d8f325ac598b8e55a8a93763dda2bdb019020aa0cf67aa421e861be9279c |
| 5-15 | permission-embedded-data-objects/README.md and demo.py |
available | false | data-layer authorization and integrity remain enforceable under dynamic application code | — |
| 5-16 | agent-creator/runs/exp5-12-kimi-k3-20260730-v1/comparison.json |
passed | true | strict joint advantage not observed | dee9c74c6b89d2563cd78752b75e96293a33159439d87133add220f7d80782ed |
Contract observations¶
- 5-1: eighteen cells (six provider pairs x three arms) ran against live
Moonshot
kimi-k3, Anthropicclaude-haiku-4-5-20251001, and Googlegemini-3.5-flash, with every request and raw response retained. The neutral arm completed in 6/6 pairs with the correct total; naive and strip completed in 3/6 and 4/6 respectively. Rejected requests retain original 4xx bodies. The runner switches directly after two completed tool calls. Theoutagemetadata describes a simulated 429/429/503 scenario; this run does not exercise retry/backoff or a circuit-breaker implementation. Cross-vendor format rejections are real. Acceptance of one converted request is an observation about that request and service version, not a general conclusion about opaque-field validation. Repeated calls after switching were 0 in all arms. Task state was available in tool results. The neutral arm used 4,183 input tokens against strip's 2,760 (+52%) on the two pairs where all arms completed, at an identical number of rounds. - 5-2: three providers x three break points x three repeats, cutting a live
stream at a fixed character offset because a real disconnect does not land on
a delta boundary. Prefix continuation is clearly cheaper than resending the
whole turn only when the truncated prose is long: 43.1% fewer output tokens on
Moonshot, 15.1% on Anthropic and 66.3% on Google. The meta-instruction was
more expensive than a plain resend in every single cell, by up to 3.4x. On a
truncated tool-argument the ranking inverts: Moonshot's continuation produced
valid JSON twice out of three but was never semantically right (closing
{"city":"东as{"city":"东"}turns Tokyo into "East"), while resending and the meta-instruction were 3/3 correct, so the 76.3% token saving buys a silently wrong argument. Two break points did not reproduce and are recorded as such: the model emitted no visible reasoning in 8 of 9 attempts at the reasoning break point, and Gemini's stream never exposes a partial tool call at all. One Anthropic cell failed with a real 400 because the cut landed on a space and the API rejects an assistant prefix ending in whitespace. Redundant query calls were 0 in every cell; the historicalduplicate_side_effectsmetric observes a read-only flight-price query, not real write-side effects. - 5-3: all 30 unique AIME 2024 problems completed in both arms with zero provider errors, and every code trajectory called the real sandbox. Code was 53.3% versus CoT 36.7%, but exact paired p=0.125.
- 5-4: the pinned K&K revision supplied 84 stratified paired tasks; every
code trajectory used
python-constraint. Code was 39.3% versus pure reasoning 75.0% (p=2.27e-7 in the opposite direction), so neither >90% nor significant improvement is claimed. - 5-5: local Ollama
qwen3:4bcompleted all 60 frozen cases in both arms with database/server-clock truth and full messages/tool receipts. Codified rules were 91.7% versus control 95.0% (p=0.6875). - 5-6: both arms produced twenty-page Slidev decks from the hash-pinned real PDF and all three provenance-tracked original figure crops. Real rendering, iterative Vision review and the same independent judge all ran; both final decks scored 95 and passed with no high/medium defect. Quality tied, while peak context was 24,186 tokens for the split design versus 92,601 for single-agent self-review (3.83×), and total tokens were 73,227 versus 298,259.
- 5-7: twelve real Experiment 5-6 pages received live Kimi K3 narration, independent Qwen-VL-Max pixel review, and Fish Audio S1 speech. The H.264/AAC result is 513.010 seconds (8.55 minutes); summed page audio is 512.913 seconds and maximum page drift is 0.024 seconds.
- 5-8: a real source video was localized coarse-to-fine, Blender executed generated scripts, the Vision reviewer rejected the negative control and triggered correction/refinement, and the accepted boundary error stayed within the manuscript's three-second tolerance.
- 5-9: the same flange spec (Ø80 × 10 mm, four M5 holes on a Ø60
circle) went through both routes for real. Route A: Kimi
kimi-k2.5wrote 17 lines of CadQuery, executed locally, exporting STEP + STL; the M5 STL measured 80 mm across and 10 mm thick, with a mean hole diameter of 5.499 mm on a 60 mm pitch circle. Route B used Gemini to render the product and the public Hunyuan3D-2.1 Space to generate the mesh. Its Z-normal midsection had no detected inner loops. The mesh scale and orientation must be established before comparing its dimensions with the drawing. Changing to M6 took one parameter edit and no further LLM calls on route A (measured bore 6.499 mm). Regenerating route B changed its maximum XY span from 0.519 to 1.988 in mesh coordinates. The potted-plant control reversed the ranking: Kimi vision scored procedural matplotlib greenery 3 versus the diffusion image 8. DashScope (401) and SiliconFlow (402) were probed and abandoned, recorded in the README's honesty notes. - 5-10: two live log producers emitted initially unsupported formats; real model-generated parsers compiled, passed tests, hot-loaded, parsed the live streams, and produced a browser-rendered visualization.
- 5-11: real local HTTP trajectories drove model diagnosis and executable
regression tests; every test failed on the buggy service and passed after
the fix. The official
github/github-mcp-servercreatedhttps://github.com/bojieli/ai-agent-book/issues/502. - 5-12: a real model generated the Beijing-flight cascading form; Chromium verified one submission containing departure city/date, one-way/round-trip, and conditionally visible return date.
- 5-13: PostgreSQL held both required tables, the real model generated SQL artifacts for all ten manuscript questions, and the database results were independently checked and browser-rendered without asking the model to copy result rows.
- 5-14: three real-model customization turns changed color, typography and title in a React/FastAPI app; Vite HMR was observed in-browser after every source mutation and a production build passed.
- 5-15: the copied PEDO implementation includes a deterministic PostgreSQL demo and core/scenario tests. A live Agent-generated-code campaign remains an optional reader run rather than completed evidence.
- 5-16: both generated Agents passed structure, compilation, tests, standard tool protocol, real Kimi K3 tasks and multi-turn state gates. The template arm tied deterministic quality (39/39 each) while using 1,181 creator tokens versus 381,814 and 24.7 seconds versus 5,412.8 seconds; it was more efficient but not strictly higher quality.
Renumbering history¶
Two manuscript insertions have shifted this chapter's numbering.
When the CAD-versus-generative-model experiment was inserted as Experiment 5-7 (now 5-9), the experiments that had been 5-7 through 5-13 were renumbered to 5-8 through 5-14. When the two trace-portability experiments were then inserted at the head of the chapter as Experiments 5-1 and 5-2, everything that had been 5-1 through 5-14 moved to 5-3 through 5-16.
Evidence directory names embedded in run folders (such as
20260729T212342Z-5_7-live and exp5-8-live-http-mcp-...) are historical and
intentionally preserved so evidence hashes and provenance remain stable; the
table above maps them to their current experiment numbers. For the same reason
the retained Experiment 5-16 comparison directory is still named exp5-12-...,
from a run that predates both renumberings. The protocol, source code, chapter
text, and current index all identify it as Experiment 5-16.
Editorial artifact availability check¶
- Experiment 5-8: All 78 manifest entries were verified. The review checkout contains 70 matching artifacts. The original local run directory also contains the six Blender logs,
final.mp4, andnegative_control.mp4, all with the expected sizes and SHA-256 digests. -
Experiment 5-9: All 13 artifacts listed in the manifest were verified by SHA-256 under
chapter5/cad-vs-diffusion/output/in the original checkout. The manifest and provider receipts are available in Git. The 13 output files are local artifacts. -
Experiment 5-16: the archived comparison was recovered from the local experiment directory in the original checkout. Its SHA-256 matches the digest in the table above. The recovered report confirms 39/39 quality points for each arm and the creator token and elapsed-time figures above. The report is not tracked in Git.