{
  "schema": "XIAOMAI_WEEKLY_PUBLIC_OBSERVATIONS_V1",
  "week": "2026-W47",
  "week_start": "2026-11-16",
  "week_end": "2026-11-22",
  "evidence_through": "2026-11-22",
  "evidence_read_until": "2026-11-22T15:14+08:00",
  "purpose": "Selected observations from the stated week. Different tasks, samples and denominators are not pooled. No issues were published for W45 and W46.",
  "review_performed": "Based on existing findings, registrations and scorer outputs; preparing this report did not rerun any model.",
  "evidence_availability": "Underlying research records, hidden tasks, answers and complete logs are private. This summary is not sufficient to independently reproduce the experiments.",
  "source_commitments": [
    {
      "description": "2026-11-21 ruler v1 design and scorer controls",
      "sha256": "ab8a6b8eea357af6a6f6ad69991743e9f087f04e2444b01583a8d459a5ec65df"
    },
    {
      "description": "2026-11-21 ceiling-check registration",
      "sha256": "9829213119fc269aa6e3d797c478bcdca04b596141eea54deaf47c163f948ca2"
    },
    {
      "description": "2026-11-21 ceiling-check result",
      "sha256": "9be91fa354c2cafcd0312b627be4f02457324549ee5a629dfc6316e322afa655"
    },
    {
      "description": "2026-11-21 local 9B discovery registration and closure",
      "sha256": "2c871828e43977b9c5d2257dc8cf29b1185fca92a399e627c198050b7fb218f1"
    },
    {
      "description": "2026-11-21 stopped 9B discovery runs",
      "sha256": "b7cfe97d66df620a774fe50b8a04c32fd43494463c34c823ef98a23250552d9a"
    },
    {
      "description": "2026-11-21 9B Q4 speed findings",
      "sha256": "f0b19703fd6a3fc2af67ba36205b9883d988cf63eaf29883013b5582c928e89b"
    },
    {
      "description": "2026-11-21 9B Q4 quality findings (first stage)",
      "sha256": "d841bd3ea018a52a6c5d753f04a0da382b5405089c5e3d5338f01877b5211975"
    },
    {
      "description": "2026-11-21 35B-A3B llama-bench table",
      "sha256": "6887006af890ca4fa18944e25cf5d0b592dd893d32a63d2f314e948fd855f069"
    },
    {
      "description": "2026-11-21 35B-A3B MTP A/B summary",
      "sha256": "ab78e44aa770252ef2d4893991cacf46c40948ebc6d79ac8804d8d247dac4e68"
    },
    {
      "description": "2026-11-21 35B-A3B two-stream memory load summary",
      "sha256": "bc2ff508efdd6154c1abf6b89cb64a25c517853a1140b607bb727ffa5984c585"
    },
    {
      "description": "2026-11-21 35B-A3B setup receipt",
      "sha256": "b9c7a95ac03163658744d33fc242d6ffc5e55cf2b1a53e3a8b22812d687b5047"
    },
    {
      "description": "2026-11-21/22 hint-gap registration with dated addenda (working-tree version)",
      "sha256": "0a37b3fdd96338d4deefa43ccd994ad0ada33b0e17b2a2510ca42a7015ccac19"
    },
    {
      "description": "2026-11-21 hint-gap status note",
      "sha256": "857eb5ecf46bd86d848215efb7044ebf3a6f6d660a6a2310e1a4dde2f5103ec5"
    },
    {
      "description": "2026-11-22 interim mechanical score, hinted",
      "sha256": "add3d441e819f6876dde24d3d0f4ecd5600674a36c5deaef34dbe6463d9486c2"
    },
    {
      "description": "2026-11-22 interim mechanical score, unhinted as kept",
      "sha256": "d892e7cc9db058d7a46db1ff178b9ca2275df5c275c21c318987bcc2245f23b9"
    },
    {
      "description": "2026-11-22 self-tuning registration",
      "sha256": "404561d3591e511cfb9aff81dd546e52de71f38fb71adcbebd938eac48630539"
    },
    {
      "description": "2026-11-22 self-tuning ledger (snapshot at build time)",
      "sha256": "68d17e6f6c78b76dd744a454e857e6e7171d3ad3793e17eb92b1fab162cbc340"
    },
    {
      "description": "2026-11-22 self-tuning summary (snapshot at build time)",
      "sha256": "ea7b78c250f65935fc652c74a6b4ddd86b2cdb70d65cc05465a84272f6e3b18d"
    },
    {
      "description": "2026-11-22 self-tuning driver log (snapshot at build time)",
      "sha256": "48e6b40c362b8efbd402f366048a08a7af2a2f59fa4263cc4164e40d20accea0"
    },
    {
      "description": "2026-11-22 alternating A/B check (order A B A B A B)",
      "sha256": "a316af052a8f1a801339595e136e17e907ba360db8af4ad418d30f07d7e4fa08"
    },
    {
      "description": "2026-11-22 engine self-editing registration with dated addenda (run started 11-22)",
      "sha256": "d81f88d26e106714e5b4c435eeb623b733c34a99cd9c0abb6549a46e6e76cbc4"
    },
    {
      "description": "2026-11-22 engine self-editing ledger (snapshot at build time; only entries up to the 14:30 cut-off are used)",
      "sha256": "660ff16c55477edb35cc866dd447109e1bbfc586546d78210fe4250879ff30b3"
    },
    {
      "description": "2026-11-22 engine self-editing summary (snapshot at build time; budget only)",
      "sha256": "95e9f1fdea0b91bdae22fdb67d0f485f1dc064681280a1b81eb43fe16848a398"
    },
    {
      "description": "2026-11-22 original-versus-original control under the KL rule",
      "sha256": "b09884cbc1c690c4a3c6cffd90e0900029bd1b93cb3a3a1b30d465afac3385c8"
    },
    {
      "description": "2026-11-22 decode profile of the original engine (CPU only)",
      "sha256": "f688b7315f06e0d704569bea7cabd73c53e31810a363497c8612c2c14f58ec16"
    },
    {
      "description": "2026-11-22 the model notebook in the self-editing run (snapshot)",
      "sha256": "717129484d700af87cbf0915814de751914f30c20a418f111bbd47f5933d16f1"
    },
    {
      "description": "2026-11-22 harness start and restart log",
      "sha256": "9605882acd57db621c0812cffd41a9f3198c3b4a1e40bad8a75d0d08b05f2f7e"
    },
    {
      "description": "2026-11-22 engine self-editing harness state (snapshot)",
      "sha256": "e559cc36aaf9ee4375e10598f6161e8b604a305de5ea9bc263c7a6fb1ff69dea"
    },
    {
      "description": "2026-11-22 harness v11 driver log (includes the voided v5 attempt)",
      "sha256": "7654efadec043ee49d539465fe735a447d5cc0a4d7e8ebb64915f59a64e64070"
    },
    {
      "description": "2026-11-22 branch-level flow trace of the self-editing harness",
      "sha256": "260a755d4d182b91f28e10f6e827c81d4c2d656db70016594f6f8036a05e5eb9"
    },
    {
      "description": "2026-11-22 shared machine-lock crate tests (snapshot)",
      "sha256": "2dd4b1ec85d9f733102c1310d8663f8e55b854ac663adb8e5aaa4bddf47e4f2d"
    },
    {
      "description": "2026-11-22 Rust rewrite of the 35B model: milestone 1 plan",
      "sha256": "65f7a8ef9c4393b7f1df3c975e85e66819ecf3475f1b71e5bc4e85391238daed"
    },
    {
      "description": "2026-11-22 llama.cpp layer-by-layer reference dumps and one-token versus batch comparison",
      "sha256": "358af600aaa914a2334397be207683e1e73c649928c3d53ca37cd0071c3c8c08"
    }
  ],
  "open_source_tools": [
    {
      "name": "llama.cpp",
      "repository": "https://github.com/ggml-org/llama.cpp",
      "version": "b11669",
      "source_ref": "620d2225cc436ab0b001e3200e590e3b286ef9ab",
      "license": "MIT",
      "license_url": "https://github.com/ggml-org/llama.cpp/blob/620d2225cc436ab0b001e3200e590e3b286ef9ab/LICENSE",
      "role": "executed_runtime",
      "usage_zh": "Vulkan 版 llama-server 以 GPU 分流執行 35B；llama-perplexity 做改引擎的 KL 品質判定；原始碼是模型改動的沙盒與不能改的原版；ggml 中間結果是 Rust 引擎逐層對照的答案。改的是本機沙盒副本，不是上游專案。",
      "usage_en": "The Vulkan llama-server ran the 35B with a GPU split; llama-perplexity computed the KL quality check for engine editing; the source tree is the sandbox the model edits and the untouchable original; ggml dumps are the layer-by-layer reference for the Rust engine. The model edits a local sandbox copy, not the upstream project."
    },
    {
      "name": "CodeGraph",
      "repository": "https://github.com/colbymchenry/codegraph",
      "version": "1.6.2",
      "source_ref": "6560052a6f856855d3f71eee838fd66ccfa4285d",
      "license": "MIT",
      "license_url": "https://github.com/colbymchenry/codegraph/blob/6560052a6f856855d3f71eee838fd66ccfa4285d/LICENSE",
      "role": "produced_input_data",
      "usage_zh": "量尺用的程式索引資料庫由它在 10 月建立，資料庫記錄的版本是 1.6.2；本週沒有重新建索引。題目、陷阱清單和判分是小麥自己的，不是 CodeGraph 的功能。",
      "usage_en": "It built the code-index database behind the ruler in October; the database records version 1.6.2, and it was not re-indexed this week. Tasks, pitfall list and scoring are our own, not CodeGraph features."
    },
    {
      "name": "Ornith-1.5-35B-A3B GGUF",
      "repository": "https://huggingface.co/ornith-ai/Ornith-1.5-35B-A3B-GGUF/tree/12393612fd4f730ff5aadc23e9b8f9648aa49ceb",
      "version": "Q4_K_M · 12393612",
      "source_ref": "12393612fd4f730ff5aadc23e9b8f9648aa49ceb",
      "license": "MIT (model card)",
      "license_url": "https://huggingface.co/ornith-ai/Ornith-1.5-35B-A3B-GGUF/blob/12393612fd4f730ff5aadc23e9b8f9648aa49ceb/README.md",
      "role": "model_source",
      "file_sha256": "42739874cc2ccfdb8523b23fbe52e29b2a7555c8176737ca9ca0b5d59859d41f",
      "usage_zh": "主模型的官方 GGUF 來源；本機 Q4_K_M 檔的 SHA-256 與這個版本上的檔案相同。模型卡標示 MIT，卡上指向的 LICENSE 檔目前不存在。我們沒有重訓或改動權重。",
      "usage_en": "Official GGUF source of the main model; the local Q4_K_M file has the same SHA-256 as the file at this revision. The model card declares MIT; the LICENSE file it links to does not currently exist. We did not retrain or modify the weights."
    }
  ],
  "rust_dependencies": {
    "versions_from": "Cargo.lock of our own tools",
    "crates": [
      {
        "name": "memmap2",
        "version": "0.9.12",
        "license": "MIT OR Apache-2.0",
        "used_by": "Rust engine"
      },
      {
        "name": "rayon",
        "version": "1.12.0",
        "license": "MIT OR Apache-2.0",
        "used_by": "Rust engine"
      },
      {
        "name": "half",
        "version": "2.7.1",
        "license": "MIT OR Apache-2.0",
        "used_by": "Rust engine"
      },
      {
        "name": "libloading",
        "version": "0.8.9",
        "license": "ISC",
        "used_by": "Rust engine (llama.cpp dumper)"
      },
      {
        "name": "anyhow",
        "version": "1.0.104",
        "license": "MIT OR Apache-2.0",
        "used_by": "Rust engine"
      },
      {
        "name": "serde_json",
        "version": "1.0.154",
        "license": "MIT OR Apache-2.0",
        "used_by": "Rust engine, self-tuning and engine-editing harnesses"
      }
    ],
    "note": "Library dependencies, not research methods."
  },
  "hardware": {
    "laptop": "MSI Stealth 15M B12UE",
    "cpu": "Intel Core i7-1280P, 14 cores (6 performance + 8 efficiency), 20 threads; llama.cpp runs used 12 threads",
    "ram": "32 GB (2 x 16 GB) DDR4-3200",
    "gpu": "NVIDIA GeForce RTX 3060 Laptop, 6 GB, used through Vulkan; Intel Iris Xe integrated. WMI reports 4 GB for the 3060 because of a 32-bit field limit.",
    "storage": "4 TB NVMe SSD",
    "os": "Windows 11 Home 10.0.26200",
    "ceiling_note": "About 22 tokens/s ceiling = about 1.8 GB read per token at 40-51 GB/s DDR4 bandwidth"
  },
  "records": [
    {
      "id": "W47-01",
      "date": "2026-11-21",
      "kind": "ruler",
      "metrics": {
        "closed_tasks": 30,
        "closed_flawed": 22,
        "closed_sound": 8,
        "scorer_controls_passed": 11,
        "scorer_controls_total": 11,
        "discovery_hidden_items": 25,
        "discovery_query_limit": 30,
        "reader_control_matched": 13,
        "reader_control_items": 14
      },
      "note": "Tasks, answers and the hidden pitfall list are not published. The reader control did not fully pass: one expected answer was wrong."
    },
    {
      "id": "W47-02",
      "date": "2026-11-21",
      "kind": "ceiling_check",
      "metrics": {
        "closed_tools_flawed_handled": [
          22,
          22
        ],
        "closed_tools_sound_handled": [
          8,
          8
        ],
        "closed_tools_evidence_handled": [
          10,
          10
        ],
        "closed_blind_flaw_named": [
          20,
          22
        ],
        "closed_blind_sound_kept": [
          7,
          8
        ],
        "discovery_tools_found": [
          9,
          25
        ],
        "discovery_blind_found": [
          3,
          25
        ],
        "discovery_found_only_with_tools": 7,
        "discovery_tools_claims": {
          "counted": 15,
          "supported": 9,
          "unsupported": 2,
          "unclear": 1,
          "disputed": 3
        },
        "reliable_questions": {
          "tools": [
            4,
            5
          ],
          "blind": [
            1,
            5
          ]
        }
      },
      "note": "Fresh Claude subagents, one run per batch. Task author, pitfall list author, readers and subjects are the same model family; not a general strong-model ceiling."
    },
    {
      "id": "W47-03",
      "date": "2026-11-21",
      "kind": "quantized_speed",
      "metrics": {
        "model": "Ornith-1.5-9B Q4_K_M",
        "backend": "llama.cpp b11669 CPU, 12 threads",
        "generation_tokens_per_s": 6.55,
        "prompt_tokens_per_s": 45.86,
        "generation_seconds_per_token_in_task": [
          0.153,
          0.179
        ],
        "speedup_vs_bf16_engine": {
          "generation": "3.5-4x",
          "prompt": "about 5x"
        }
      },
      "note": "Compared with BF16 engine figures from a different time and engine; not a same-run A/B test."
    },
    {
      "id": "W47-04",
      "date": "2026-11-21",
      "kind": "quantized_quality",
      "metrics": {
        "top1_equal_base": [
          222,
          242
        ],
        "top1_equal_base_wilson95_pct": [
          87.6,
          94.6
        ],
        "top1_equal_with_module": [
          [
            261,
            285
          ],
          [
            77,
            85
          ]
        ],
        "bf16_choice_outside_q4_top20": 0
      },
      "note": "First stage only. KL and answer correctness were not measured. Positions within a sequence are correlated; only two base-model sequences."
    },
    {
      "id": "W47-05",
      "date": "2026-11-21",
      "kind": "stopped_runs",
      "metrics": {
        "local_9b_discovery_records": 5,
        "scored": 0
      },
      "note": "Stopped in two batches (MTP test first, then the main-model switch). No results were read or scored."
    },
    {
      "id": "W47-06",
      "date": "2026-11-21",
      "kind": "local_35b_speed",
      "metrics": {
        "model": "Ornith-1.5-35B-A3B Q4_K_M",
        "backend": "llama.cpp b11669 Vulkan, laptop GPU with 6 GB",
        "generation_tokens_per_s": {
          "cpu_only": 9.16,
          "experts_of_40_layers_on_cpu": 16.92,
          "experts_of_36_layers_on_cpu": 21.76,
          "experts_of_33_layers_on_cpu": 21.79,
          "experts_of_30_or_27_layers_on_cpu": "out of GPU memory"
        },
        "mtp_single_stream_mean_of_2": {
          "base": 19.2,
          "mtp": 22.3
        },
        "switch_basis_model_card_self_reported": {
          "swe_atlas_qna_35b_vs_9b": [
            39.8,
            20.6
          ],
          "terminal_bench_2_1": [
            67.8,
            46.2
          ],
          "mcp_atlas": [
            70.2,
            54.2
          ],
          "re_measured": false
        },
        "mtp_draft_accepted": [
          [
            930,
            1812
          ],
          [
            930,
            1812
          ]
        ],
        "two_stream_memory_load": [
          {
            "setting": "ncmoe36_ub512",
            "per_stream_tokens_per_s": [
              13.3,
              13.4
            ],
            "server_private_gb": 5.68,
            "available_mb": 2462,
            "page_ins_per_s": 5984
          },
          {
            "setting": "ncmoe36_ub256",
            "per_stream_tokens_per_s": [
              13.8,
              13.8
            ],
            "server_private_gb": 5.55,
            "available_mb": 3340,
            "page_ins_per_s": 2363
          },
          {
            "setting": "ncmoe36_mtp_ub256",
            "per_stream_tokens_per_s": [
              13.9,
              15.0
            ],
            "server_private_gb": 7.1,
            "available_mb": 2396,
            "page_ins_per_s": 24903
          }
        ]
      },
      "note": "Single machine with 32 GB RAM. MTP was turned off for the test runs because it increased paging under memory pressure."
    },
    {
      "id": "W47-07",
      "date": "2026-11-22",
      "kind": "hint_gap_interim",
      "metrics": {
        "hinted_scored": {
          "flawed_scored": 10,
          "flawed_outcomes": {
            "handled": 7,
            "missed": 2,
            "revised_wrong": 1
          },
          "flawed_sql_correct": 7,
          "sound_scored": 2,
          "sound_outcomes": {
            "handled": 2
          }
        },
        "unhinted_scored_as_kept": {
          "flawed_scored": 14,
          "flawed_outcomes": {
            "missed": 11,
            "silent_fix": 3
          },
          "flawed_sql_correct": 3,
          "sound_scored": 4,
          "sound_outcomes": {
            "handled": 3,
            "kept_wrong": 1
          }
        },
        "both_conditions_flawed_overlap": {
          "tasks": 10,
          "hinted_handled": 7,
          "unhinted_sql_correct": 2
        },
        "hinted_completed_total": 18,
        "unhinted_completed_total": 19,
        "keep_reasoning_check_completed": [
          3,
          12
        ]
      },
      "note": "Interim mechanical scores only. Unhinted notes were not yet judged by readers, so whether the model named the flaw without a hint is unmeasured. The unhinted condition stopped early, a registered deviation. No formal result yet."
    },
    {
      "id": "W47-08",
      "date": "2026-11-22",
      "kind": "self_tuning",
      "metrics": {
        "finished": true,
        "rounds_budget_registered": 16,
        "flag_rounds": 10,
        "investigation_rounds": 6,
        "investigation_tools": [
          "server_log",
          "machine_now",
          "source_search",
          "source_read"
        ],
        "investigation_first_attempt": "Four turns of 2,048 tokens each with no tool call; voided with the ledger unchanged and restarted with a 700-token cap per turn",
        "investigation_turn_cap_tokens": 700,
        "rounds_done": 16,
        "experiments_in_ledger": 16,
        "experiment_status_counts": {
          "ok": 11,
          "failed_to_start": 5
        },
        "baseline_runs": 3,
        "baseline_median_tokens_per_s": 22.88,
        "restart_noise_pct": 5.64,
        "acceptance_margin_pct": 11.28,
        "acceptance_threshold_tokens_per_s": 25.5,
        "best_is_baseline": true,
        "best_flags": "-ngl 99 --n-cpu-moe 36 -ub 256 -t 12 -c 32768",
        "best_gen_median_tokens_per_s": 22.88,
        "experiments_measured": 11,
        "experiments_failed_to_start": 5,
        "experiments_accepted": 0,
        "verdicts": [
          {
            "id": "E1",
            "phase": "flags_only",
            "change_from_baseline": "-t 8",
            "status": "ok",
            "verdict": "not better than best by more than 11.3%",
            "gen_median": 22.41,
            "output_prefix_chars_equal_to_baseline": 1124,
            "round_seconds": 381
          },
          {
            "id": "E2",
            "phase": "flags_only",
            "change_from_baseline": "--moe-cache-mib 2048",
            "status": "failed_to_start",
            "verdict": "server exited (exit code: 1) before it was ready: 0.12.914.295 E llama_init_from_model: failed to initialize the context",
            "gen_median": null,
            "output_prefix_chars_equal_to_baseline": null,
            "round_seconds": 285
          },
          {
            "id": "E3",
            "phase": "flags_only",
            "change_from_baseline": "--moe-cache-mib 512",
            "status": "ok",
            "verdict": "not better than best by more than 11.3%",
            "gen_median": 5.09,
            "output_prefix_chars_equal_to_baseline": 268,
            "round_seconds": 459
          },
          {
            "id": "E4",
            "phase": "flags_only",
            "change_from_baseline": "--moe-cache-mib 1024",
            "status": "ok",
            "verdict": "not better than best by more than 11.3%",
            "gen_median": 5.12,
            "output_prefix_chars_equal_to_baseline": 268,
            "round_seconds": 373
          },
          {
            "id": "E5",
            "phase": "flags_only",
            "change_from_baseline": "--prio 2",
            "status": "ok",
            "verdict": "not better than best by more than 11.3%",
            "gen_median": 23.17,
            "output_prefix_chars_equal_to_baseline": 1124,
            "round_seconds": 318
          },
          {
            "id": "E6",
            "phase": "flags_only",
            "change_from_baseline": "-c 16384",
            "status": "ok",
            "verdict": "not better than best by more than 11.3%",
            "gen_median": 22.93,
            "output_prefix_chars_equal_to_baseline": 1124,
            "round_seconds": 446
          },
          {
            "id": "E7",
            "phase": "flags_only",
            "change_from_baseline": "-t 20",
            "status": "ok",
            "verdict": "not better than best by more than 11.3%",
            "gen_median": 14.72,
            "output_prefix_chars_equal_to_baseline": 1124,
            "round_seconds": 660
          },
          {
            "id": "E8",
            "phase": "flags_only",
            "change_from_baseline": "--prio 2 --moe-cache-mib 1536",
            "status": "failed_to_start",
            "verdict": "server exited (exit code: 1) before it was ready: 0.10.149.092 E llama_init_from_model: failed to initialize the context",
            "gen_median": null,
            "output_prefix_chars_equal_to_baseline": null,
            "round_seconds": 443
          },
          {
            "id": "E9",
            "phase": "flags_only",
            "change_from_baseline": "--n-cpu-moe 30",
            "status": "failed_to_start",
            "verdict": "server exited (exit code: 1) before it was ready: 0.15.090.840 E llama_model_load: error loading model: unable to alloca",
            "gen_median": null,
            "output_prefix_chars_equal_to_baseline": null,
            "round_seconds": 692
          },
          {
            "id": "E10",
            "phase": "flags_only",
            "change_from_baseline": "--n-cpu-moe 30 -c 16384",
            "status": "failed_to_start",
            "verdict": "server exited (exit code: 1) before it was ready: 0.09.915.183 E llama_model_load: error loading model: unable to alloca",
            "gen_median": null,
            "output_prefix_chars_equal_to_baseline": null,
            "round_seconds": 278
          },
          {
            "id": "E11",
            "phase": "investigation_tools",
            "change_from_baseline": "--prio 2 --cpu-range 0-7",
            "status": "ok",
            "verdict": "not better than best by more than 11.3%",
            "gen_median": 20.9,
            "output_prefix_chars_equal_to_baseline": 1124,
            "round_seconds": 734
          },
          {
            "id": "E12",
            "phase": "investigation_tools",
            "change_from_baseline": "--n-cpu-moe 33",
            "status": "failed_to_start",
            "verdict": "server exited (exit code: 0xc0000409) before it was ready: 0.03.434.859 W model has unused tensor blk.40.nextn.enorm.wei",
            "gen_median": null,
            "output_prefix_chars_equal_to_baseline": null,
            "round_seconds": 458
          },
          {
            "id": "E13",
            "phase": "investigation_tools",
            "change_from_baseline": "--n-cpu-moe 35 -c 16384",
            "status": "ok",
            "verdict": "not better than best by more than 11.3%",
            "gen_median": 24.69,
            "output_prefix_chars_equal_to_baseline": 803,
            "round_seconds": 677
          },
          {
            "id": "E14",
            "phase": "investigation_tools",
            "change_from_baseline": "--n-cpu-moe 35 -c 16384 --prio 2",
            "status": "ok",
            "verdict": "not better than best by more than 11.3%",
            "gen_median": 24.74,
            "output_prefix_chars_equal_to_baseline": 803,
            "round_seconds": 242
          },
          {
            "id": "E15",
            "phase": "investigation_tools",
            "change_from_baseline": "--n-cpu-moe 34 -c 16384",
            "status": "ok",
            "verdict": "not better than best by more than 11.3%",
            "gen_median": 25.07,
            "output_prefix_chars_equal_to_baseline": 803,
            "round_seconds": 385
          },
          {
            "id": "E16",
            "phase": "investigation_tools",
            "change_from_baseline": "--n-cpu-moe 34 -c 16384 --prio 2",
            "status": "ok",
            "verdict": "not better than best by more than 11.3%",
            "gen_median": 25.12,
            "output_prefix_chars_equal_to_baseline": 803,
            "round_seconds": 223
          }
        ]
      },
      "note": "Ten rounds with only help text and machine information, then six rounds with read-only investigation tools on the same ledger (registered in addenda; deviation from the original 20 rounds and from the cancelled run2). The first investigation attempt was voided and restarted with a shorter cap per turn. Baseline, margin and decision rule unchanged. No setting passed. No random-search control; the six later rounds also saw the earlier ledger, so they are not a fair comparison with the first ten. One run of the loop."
    },
    {
      "id": "W47-09",
      "date": "2026-11-22",
      "kind": "engine_self_edit",
      "metrics": {
        "executed": true,
        "status_at_cutoff": "running",
        "measurement_budget_registered": 12,
        "measurement_budget_now": 13,
        "measurements_used": 5,
        "improvements": 0,
        "ledger_entries_at_cutoff": [
          "v1",
          "v2",
          "v3",
          "v4",
          "v5"
        ],
        "first_speedup_pct": 5,
        "second_speedup_pct": 2.5,
        "editable_roots_now": [
          "src/",
          "ggml/src/",
          "ggml/include/",
          "include/"
        ],
        "removed_from_editable_roots": [
          "tools/server/",
          "common/"
        ],
        "quality_rule": {
          "since": "13:06 (v8), author decision",
          "tool": "llama-perplexity (not editable)",
          "mean_kld_max": 0.0005,
          "same_top_min_pct": 99.0,
          "context": 512,
          "chunks": 4,
          "scored_positions_approx": 1000,
          "reference_q4_vs_16bit_mean_kld_approx": 0.05
        },
        "bit_identical_rule": "Used until 13:06; replaced because almost every real speed-up changes floating-point summation order",
        "bandwidth_reasoning": {
          "weights_read_per_token_gb_approx": 1.8,
          "memory_bandwidth_gb_s": [
            40,
            51
          ],
          "ceiling_tokens_per_s_approx": 22,
          "cpu_only_now_tokens_per_s": [
            13,
            14.5
          ]
        },
        "control_original_vs_original": {
          "method": "v8",
          "ratio": 1.01,
          "mean_kld": 0,
          "same_top_pct": 100.0,
          "orig_tokens_per_s": 10.39,
          "cand_tokens_per_s": 10.53
        },
        "harness_changes": [
          "Context overflow: notebook plus a context reset (v3)",
          "A fixed nudge to make one small edit and measure it (v4)",
          "Edit tool rejected CRLF source six times; those failures are not counted against the model (v5)",
          "Measurement hardening after an author request and an independent auditor: harness wall-clock timing, random prompts and order with a prewarm, a pristine original built from its own worktree with a fingerprint check, tools/server and common removed from editable roots (v7)",
          "Bit-identical output replaced by a KL quality rule; profiler tool added (v8)",
          "Free trial_run tool after a real measurement was used as a debug probe; budget 12 to 13 (v10)",
          "Measurement errors out instead of proceeding on a busy machine; shared-CPU speed runs voided and redone without cost (v11, 14:19)"
        ],
        "versions": [
          {
            "id": "v1",
            "change": "Skip a fast matrix routine that always gives up during one-token decoding (one line)",
            "description_in_ledger": "Skip doomed first llamafile_sgemm attempt for decode GEMVs (ne11<2) — overhead only, zero FP change",
            "status": "correct_not_faster",
            "ratio": 0.997,
            "quality": null,
            "method": "old: engine-reported timing, 4 prompts x 48 tokens, identical output"
          },
          {
            "id": "v2",
            "change": "Skip one thread barrier when no data-type conversion is needed",
            "description_in_ledger": "Conditional ggml_barrier skip when src1 already in vec_dot_type (no wdata packing) — removes intra-op barrier overhead from hot decode path",
            "status": "correct_not_faster",
            "ratio": 0.942,
            "quality": null,
            "method": "v7: harness wall clock, random prompts and order, identical output"
          },
          {
            "id": "v3",
            "change": "Debug prints in the expert matrix operation",
            "description_in_ledger": "Debug prints for MUL_MAT_ID tensor sizes and path selection",
            "status": "build_failed",
            "ratio": null,
            "quality": null,
            "method": "build failed before measurement"
          },
          {
            "id": "v4",
            "change": "Remove the broken debug prints",
            "description_in_ledger": "Remove broken debug fprintf blocks from ggml_compute_forward_mul_mat_id (zero FP change)",
            "status": "build_failed",
            "ratio": null,
            "quality": null,
            "method": "build failed before measurement"
          },
          {
            "id": "v5",
            "change": "Hoist loop-invariant block bounds out of the data-packing inner loop of the expert matrix operation",
            "description_in_ledger": "Hoist loop-invariant block bounds (bs, ne10_block_start/end) out of wdata packing inner loop in ggml_compute_forward_mul_mat_id — pure overhead removal, identical from_float args, zero FP change",
            "status": "correct_not_faster",
            "ratio": 0.971,
            "quality": {
              "mean_kld": 0.0,
              "max_kld": 4.9e-05,
              "same_top_pct": 100.0
            },
            "method": "v8: batch KL computed and printed by the candidate process (measured by harness v11 before v12)"
          }
        ],
        "profile_original": {
          "threads": 12,
          "cpu_only": true,
          "ms_per_token_in_graph_nodes": 140.0,
          "moe_expert_share_pct": {
            "down": 21.9,
            "gate": 18.4,
            "up": 17.9
          },
          "moe_expert_total_share_pct": 58.2,
          "another_profile_run_ms_per_token": 165.8
        }
      },
      "note": "Started 2026-11-22 and still running at the cut-off. The model edits a sandbox copy of the llama.cpp source on the CPU path; the harness and rules are fixed by the program. v1 was measured with the older method, v2 with the v7 method and v5 with the v8 method; v3 and v4 did not build. Profiles vary by run (140.0 and 165.8 ms per token). One run."
    },
    {
      "id": "W47-10",
      "date": "2026-11-22",
      "kind": "self_tuning_alternating_check",
      "metrics": {
        "order": "A B A B A B",
        "restart_before_each": true,
        "a_flags": "-ngl 99 --n-cpu-moe 36 -ub 256 -t 12 -c 32768",
        "b_flags": "-ngl 99 --n-cpu-moe 34 -ub 256 -t 12 -c 16384",
        "a_tokens_per_s": [
          24.4,
          24.3,
          23.6
        ],
        "b_tokens_per_s": [
          24.6,
          24.9,
          24.9
        ],
        "a_mean": 24.1,
        "b_mean": 24.8,
        "b_faster_pct": 2.9,
        "rule_written_before": "B is faster only if all three B medians exceed all three A medians; any overlap means cannot tell",
        "result": "B faster",
        "chance_of_this_ordering_if_equal": "1/20",
        "in_loop_gap_pct": "8-10",
        "same_baseline_morning_vs_this_check": [
          22.9,
          24.1
        ],
        "b_context_is_half_of_a": true,
        "separate_from_formal_verdict": true
      },
      "note": "A separate check specified before running; recorded apart from the 16-round verdict, which is unchanged. Only three runs per side; the gain is far below the in-loop gap mostly because of time of day; B halves the usable context, a cost outside this measurement."
    },
    {
      "id": "W47-11",
      "date": "2026-11-22",
      "kind": "harness_flow_trace",
      "metrics": {
        "failure_branches": 62,
        "bugs_found": 17,
        "could_record_fake_improvement": [
          "The KL check ran the batch path (512 tokens at once), not the token-by-token path that speed measures",
          "Speed assumed exactly 128 generated tokens, so a version that stops early would look faster",
          "The KL number was parsed from the candidate's own process output"
        ],
        "any_version_passed": false,
        "recorded_results_affected": 0,
        "fixes_for_these_three": {
          "written": "2026-11-22 14:42 addendum: measurement v12 (exactly 128 tokens with ignore_eos; KL judged by the original process; quality also on the token-by-token path; plus tokenization, environment-attribution, version-integrity, resume-state and timeout fixes)",
          "harness_restarts_at_cutoff": [
            "13:53 selfedit-v10",
            "14:19 selfedit-v11",
            "14:57 selfedit-v12",
            "15:04 selfedit-v12b"
          ],
          "control_v12_finished": false,
          "versions_measured_with_v12": [],
          "v5_method": "v8 (measured by harness v11 before v12)"
        },
        "busy_machine_fix": {
          "deployed": "2026-11-22 14:19 (v11)",
          "seen_in_use": "The first v5 speed measurement was voided because rustc.exe and link.exe were running, then redone",
          "before": "After a long wait on a busy machine, measurement went ahead and still counted",
          "after": "Errors out; a speed run that shared the CPU is voided and redone without costing budget",
          "shared_lock_crate_tests": 9,
          "race_test": "First version still passed 3 of 3 with the protection removed; rewritten to force the race, it now fails when the protection is removed"
        },
        "method_order_after_trace": [
          "Design that removes the problem",
          "Deterministic check (types, tests, lint)",
          "Runtime check",
          "Written rule, last"
        ]
      },
      "note": "Read-only branch-level trace of the self-editing harness. Fixes for the three holes were written in the 14:42 addendum (measurement v12) and the harness was restarted as v12 and v12b; at the cut-off the v12 original-versus-original control had not finished and no version had been measured with v12. No version has passed, so no recorded result is affected."
    },
    {
      "id": "W47-12",
      "date": "2026-11-22",
      "kind": "rust_engine_rewrite",
      "metrics": {
        "started": "2026-11-22 13:35",
        "milestone_1": "Load 35B-A3B Q4_K_M in our own Rust engine, run all 40 layers on the CPU and match llama.cpp layer by layer; no GPU and no speed work",
        "layers": 40,
        "gated_deltanet_layers": 30,
        "full_attention_layers": 10,
        "parts_built_in_parallel": [
          "GGUF reading",
          "Quantized matrix math",
          "The two layer types",
          "MoE experts",
          "Dumper that records llama.cpp's own intermediate values"
        ],
        "parts_checked": "Each part was compared against llama.cpp's own code while being built",
        "llama_cpp_one_token_vs_batch": {
          "prompt_tokens": 5,
          "first_divergence_layer": 3,
          "first_three_layers_rel_diff_approx": "1e-7",
          "logits_rel_diff": 0.037,
          "logits_max_abs_diff": 0.61,
          "max_abs_logit": 16.6,
          "next_token_same_steps": [
            5,
            5
          ],
          "layer_output_max_rel_diff_last_step": [
            [
              0,
              2.9e-08
            ],
            [
              1,
              2.4e-08
            ],
            [
              2,
              3.9e-08
            ],
            [
              3,
              0.0014
            ],
            [
              19,
              0.019
            ],
            [
              39,
              0.073
            ]
          ]
        },
        "comparison_standard": "Each layer is fed llama.cpp's exact inputs and only that layer's output is compared; the full run is judged against llama.cpp's own one-token versus batch noise (top-token agreement and KL)",
        "assembly_of_40_layers": "in progress",
        "end_to_end_result": null
      },
      "note": "Assembly of the 40 layers was in progress at the cut-off. There is no end-to-end result yet."
    }
  ]
}
