docs: S9 session entry + 05-OPEN-WORK Β§2c - the candidate width was incidental; the residual is prompt/loop, not tools
68f9a74 verified |
Download docs/SESSION-LOG.md from dragonlimited/dragon-state: direct link, hf CLI and curl.
- Browser
- Download file 24.4 kB
-
https://huggingface.co/dragonlimited/dragon-state/resolve/main/docs/SESSION-LOG.md
- Command line
-
hf download hf://dragonlimited/dragon-state/docs/SESSION-LOG.md
-
curl -L -o SESSION-LOG.md https://huggingface.co/dragonlimited/dragon-state/resolve/main/docs/SESSION-LOG.md
24.4 kB
| # Session log β append-only | |
| One entry per session. **Append; never rewrite.** A new session starts by reading the last entry and | |
| the one before it. Commit hashes are given because a commit message is the only note that survives a | |
| wiped disk. | |
| --- | |
| ## S1 Β· initial build (2026-11-0x β 11-15) | |
| **Built** the tool layer (`search_knowledge`, `query_financials` over the corpus and the XBRL facts), | |
| the model card, `PLAN.md`, `DEVELOPMENT.md`, and the first LoRA adapter. | |
| **Measured** harness 99.4 % β 99.8 %; the first adapter: 599 traces, 60 steps, 39 s, loss 0.3832 β | |
| 0.2494, 1,170,939,392 trainable (15.2 % β the defect S5 fixed). | |
| **Left** `Dragon-Finance-7B` public with the card; `lora/adapter.pt` published. | |
| ## S2 Β· autopilot run (2026-11-16 β 11-18) | |
| **Measured** full-corpus harness: 99.4 % overall, large-cap 100 %, `fact_lookup` 99.8 %. | |
| **Published** the tool schemas under `tools/`. | |
| ## S3 Β· final harness (2026-11-18) | |
| **Measured** 99.8 % (6,791/6,802). Two fixes: `Revenues`-first ordering, and concept-map entries | |
| becoming **priority lists**. **Documented** the residual 11 as irreducible. | |
| ## S4 Β· first relaunch (2026-11-19) | |
| **Event:** the container was replaced; `/home/marimo` did not survive. | |
| **Recovered** 48 state files from `dragon-state`; `facts.duckdb` verified at the documented counts. | |
| **Reproduced** the harness item-for-item (6,802/6,802 agreement) β this is when `run_harness.py` was | |
| written, because `run_final.py` had never been published. | |
| **Measured** RLVR sweep C: `no signal in group` on 7 of 14 step lines β criterion 2 **not met**. | |
| **Measured** index pass 1 = 3,665,826 chunks / 184 shards, then coverage of the eval's own filings = | |
| **0/120**. **Wrote** `ops/RESTORE.md`, `ops/HARNESS-AUDIT.md`, `workplan/RELAUNCH-STATUS.md`, | |
| `state/notebook.py` snapshots. | |
| ## S5 Β· the v7 lane (2026-11-20) | |
| **Built** the redesigned traces: 39,000 contamination-clean trajectories (`resolve_filer` β | |
| `candidate_tags` β select β report β cite), fixing the S1 defect where the accession was handed over. | |
| **Trained** `dragon-lora-v7`: 900 steps, 6 gates, best at 750, 196 layers, 80,740,352 trainable (1.05 %). | |
| **Measured** the verdict on 60 frozen held-out questions: right tool 0.750 β **1.000**, right arguments | |
| 0.117 β **0.900**, reaches candidates 0.417 β **1.000**, answer correct 0.133 β **0.750**. | |
| **Verdict: `adapter_helps`** β 4/4 improved; `answer_ok` misses the 0.80 target. | |
| **Appended** the measured section to the model card (`Dragon-Finance-7B` commit `e09b3d00` is *this* | |
| session's later correction to it). | |
| **Left running** `quant_gguf` with `bench_merged_fp16`, `bench_gguf_q4`, `verdict_quant` queued. | |
| **It never finished**, and the four scripts were never published β which is why S7 had to rebuild them. | |
| ## S6 Β· the adapter ladder (2026-11-20, 19:00β19:12) | |
| **Measured** five arms on the same 48 held-out questions: base 0.792/0.562/0.146/0.062 Β· adapter-v3 | |
| 1.000/0.000/0.000/0.000 (the collapse artefact β `bench_agent.py` defaults to v3) Β· **adapter-v7 | |
| 1.000/1.000/1.000/0.167** Β· Qwen3-4B and Qwen3-8B 0.000 throughout (recorded as a harness/template | |
| question, not a capability result). | |
| **Published** `runs/bench-agent-loop/` with `NOTES.md` and every arm's per-item results. | |
| ## S7 Β· second relaunch β this session (2026-11-21) | |
| **Restored** per `RESTORE.md`: 61 files, 0 failures, 7.2 GB; `check_resume.py` 60/61. | |
| **Verified** the harness on the rebuilt box: `6,802 items | 6,791 hit | 99.8% | agreement 6,802`. | |
| **Corrected the record:** the "lost for good" list in `RESUME.md` Β§14.1 and `ops/RESTORE.md` is wrong β | |
| 7 of the 8 named scripts **are published**, with hashes matching `runs/AUDIT.md`, including | |
| `bench_agent.py` (the metric the runbook called lost). | |
| **Recovered** the 7 payload-only programs from git history (blob `f03a97acβ¦`), **23/23 sha256-verified**. | |
| **Validated the metric against published ground truth:** the frozen-60 base arm reproduced exactly β | |
| 0.750 / 0.417 / 0.117 / 0.133 / 2.28, per-family identical. | |
| **Found and fixed a metric defect:** the gate's question sampler was non-deterministic (DuckDB query | |
| with no `ORDER BY`; three processes β three different sets). One clause fixed it; the audited original | |
| is preserved as `bench_agent.audited.py`. | |
| **Resumed training:** v7's checkpoint β **`dragon-lora-v8`** (step 900 β 1500, gate every 150, | |
| patience 3). **It improved the gate**: step 1050 β `answer_ok` 0.60 β **0.65**, `args_ok` 0.85 β | |
| **0.90**. Checkpoints pushed to the Hub and **verified by re-download**. | |
| **Searched** the Hub, GitHub and public code search for the missing scripts: **no mirror exists** | |
| (`07-CORRECTIONS.md` Β§10). Rebuilt the quantisation gate instead (`docs/quant/`), built the artefacts | |
| (merged 15.24 GB / 196 folds Β· f16 GGUF 15.24 GB Β· **Q4_K_M 4.68 GB** Β· Q8_0 8.10 GB) and ran both | |
| arms of the gate. | |
| **Reorganised the documentation** into `docs/00`β`08` + this log, and published the repaired scripts. | |
| **Commits:** `dragon-state` `f440cbde` (docs 00β07 + README) Β· `2af40f39` (search findings, the | |
| rebuilt gate, its 4 scripts, measured artefacts) Β· `dragon-harness` `538e35d6` (pointer + RESTORE | |
| corrections) Β· `Dragon-Finance-7B` `e09b3d00` (measured status, superseded table marked) Β· | |
| `dragon-agent` `87d21935` (the missing README). | |
| **Left running at the time of writing:** the f16 control arm of the gate (`quant/`), and | |
| `dragon-lora-v8` on its final step. | |
| ### S7 outcomes, measured | |
| **Two of PLAN.md's five success rows had no measured number anywhere** (`strict call`, and | |
| `hallucinated identifiers`). `strict` was computed here from the published per-item records: | |
| **base 0.100 β adapter v7 0.733 (bf16) β 0.750 (Q4_K_M)** against a 0.80 target β **unmet, and | |
| unmeasured until this entry**. The hallucination row is **not measurable from published data** (the | |
| plan's definition needs the tool results, which the per-item records omit); a conservative | |
| accession-mismatch screen gives base 0/60 and adapter 4/60, an upper bound rather than a rate. | |
| **The quantisation gate β the PLAN.md step 5 publish gate β passed.** | |
| | arm | engine | resolve_first | reaches_candidate_tags | args_ok | answer_ok | n | | |
| |---|---|---:|---:|---:|---:|---:| | |
| | base (bf16) | transformers | 0.750 | 0.417 | 0.117 | 0.133 | 60 | | |
| | **adapter v7 (bf16)** β published reference | transformers | 1.000 | 1.000 | 0.900 | 0.750 | 60 | | |
| | **adapter v7, Q4_K_M** β **the 8 GB deployment artefact** | llama.cpp | 1.000 | 1.000 | **0.917** | **0.767** | 60 | | |
| | adapter v7, f16 GGUF β the same-engine control | llama.cpp | 1.000 | 1.000 | 0.900 | 0.750 | 60 | | |
| Read honestly: Q4_K_M is **not degraded**. Its numbers sit **above** the bf16 reference by exactly one | |
| item on two metrics (`args_ok` 0.900 β 0.917, `answer_ok` 0.750 β 0.767), and one item on a | |
| 60-question sample is the resolution limit of the measurement (Β±0.0167) β so the correct statement is | |
| *no measurable quantisation damage*, not *quantisation improved it*. The bf16-vs-Q4 comparison also | |
| crosses engines; the same-engine **f16-GGUF control** was therefore measured too, and the clean | |
| delta is: `resolve_first` 0.000, `reaches_candidate_tags` 0.000, `args_ok` **+0.017**, `answer_ok` | |
| **+0.017** β i.e. **at most one item**, which is exactly one question of 60. The f16 control also | |
| reproduces the bf16 *transformers* reference to the digit (0.750 `answer_ok`), so neither the engine | |
| nor the quantisation moves the number. `VERDICT_QUANT.json`: `pass - tool use preserved at Q4_K_M`. | |
| `answer_ok` **0.767** still misses the plan's 0.80 target, so the target is unmet at the deployment | |
| precision as well as at bf16 β consistently, which is itself the useful finding. | |
| **Artefacts built and published** (sizes measured, sha256 from `QUANT.json`, both GGUFs verified | |
| against the Hub's own LFS sha256 after upload): | |
| | artefact | bytes | where | | |
| |---|---:|---| | |
| | `merged-v7/` (LoRA folded, fp16) | 15,242,698,524 | rebuildable in 39 s from base + v7 adapter | | |
| | `dragon-finance-7b-f16.gguf` | 15,237,853,344 | box only (intermediate; the control arm) | | |
| | **`dragon-finance-7b-Q4_K_M.gguf`** | **4,683,073,696** | **`dragon-state:runs/dragon-lora-v7/gguf/`** β commit `8088aad7` | | |
| | `dragon-finance-7b-Q8_0.gguf` | 8,098,525,344 | `dragon-state:runs/dragon-lora-v7/gguf/` β commit `4363bfa9` | | |
| **v8 on the PUBLISHED benchmark: no improvement.** Run on the frozen 60 at 06:29 β | |
| `1.000 / 1.000 / 0.900 / 0.750`, **digit-for-digit identical to v7**. So the earlier line in this log | |
| ("v8 improved the gate, 0.60 β 0.65") is true **of the internal 20-question gate only**, and does not | |
| transfer: **an over-claim, corrected here by measurement.** The lesson is the one the project keeps | |
| re-learning: a gate is for deciding when to stop, not for claiming progress. Anything that moves a | |
| card needs the published benchmark. | |
| **v8 finished: `CONVERGED (patience)` at step 1500.** Its four gates were 0.65/0.90, 0.65/0.90, | |
| 0.65/0.90, 0.65/0.90 β so the improvement landed at the **first** gate (step 1050) and the model then | |
| plateaued, which is what the plan's stopping rule is for. Against v7's converged gate (0.60/0.85): | |
| **`answer_ok` +0.05, `args_ok` +0.05.** Modest, and that is the finding: the continuation bought one | |
| step of real improvement and then converged. v8's `adapter_best.pt` is `0378fa19β¦` (v7's is | |
| `89b13857β¦`), so it is a genuinely different artefact. **SFT is now converged by the plan's own | |
| criterion** β the next lever is not more steps. | |
| **v8 provenance published** (`runs/dragon-lora-v8/`): `manifest.json`, `README.md`, `STEPS.csv`, | |
| chain `bb8e6d445b3e`, `gate_evals=4`, `max_step=1500`. One defect found and fixed while doing it: | |
| `build_provenance.py`'s `LOG_FOR` had no entry for the new run, so v8 initially got a chain hash with | |
| **no gate telemetry**; the one-line entry is added, and the lesson is that a *new run needs naming in | |
| the provenance tool* or its audit trail is silently empty. | |
| **Commits published this session** (all to `dragon-state` unless noted): | |
| | commit | what | | |
| |---|---| | |
| | `f440cbde` | `docs/00`β`07` + the README this repo never had | | |
| | `2af40f39` | search findings, the rebuilt gate, its four scripts, measured artefacts | | |
| | `ecbe19a4` | `AGENT-START-HERE.md`, `SESSION-LOG.md`, `quant/install_toolchain.sh` | | |
| | `e98952ad` | gate evidence: `QUANT.json`, `MERGE.json`, the Q4_K_M results | | |
| | `8088aad7` | **the Q4_K_M deployment GGUF (4.68 GB)** | | |
| | `4363bfa9` | the Q8_0 GGUF (8.10 GB) | | |
| | `dragon-harness` `538e35d6` | pointer + the RESTORE.md corrections | | |
| | `Dragon-Finance-7B` `e09b3d00` | measured status; the superseded table marked | | |
| | `dragon-agent` `87d21935` | the README that was missing (and that `pyproject.toml` required) | | |
| --- | |
| ## S7 continued β the end-to-end check, and two product defects found by running it | |
| **PLAN.md step 5's third item had never been run**: *"end-to-end: agent + tools + real model, ~20 | |
| prompts."* It was run on 2026-11-21, through the real stack (`dragon-agent` β `dragon-harness` tools β | |
| `llama.cpp` β the Q4_K_M GGUF), on 20 frozen questions with known answers: | |
| | | measured | | |
| |---|---| | |
| | **before the fix** | `answer_ok` **0.000** (0/20), **zero accessions cited in any answer** | | |
| | the benchmark, same model, same GGUF, same questions | `answer_ok` **0.767** | | |
| **Cause, diagnosed from the event stream:** the model emits its tool call as **JSON inside `content`** | |
| (no `<tool_call>` tags, although its chat template asks for them). `bench_agent` has always parsed | |
| that form; `dragon-agent`'s loop only executed the structured `tool_calls` field, so **no tool ever | |
| ran**, the model's attempted call was treated as the final answer, and the model then invented an | |
| accession and a figure. A greedy regex is not enough to fix it: the model emits *several* planned | |
| calls in one message, so the parser needs to find the first **balanced** JSON object β which is what | |
| the patch does. | |
| **Fixed and published** (`dragon-agent` commit `d1756b3d`): a `_parse_tool_call` fallback in | |
| `dragon_agent/loop.py`, and temperature 0.0 in the CLI to match the configuration the benchmark | |
| measured (0.2 was an unexamined default). After the fix, on the same questions: tools execute, real | |
| accessions are cited, and the first item scores correct β **0.000 β 0.200 on 5 questions**, which is | |
| a small sample and a *long way* from 0.767. **The gap is now quantified rather than unknown**: the | |
| deployment path is workable but its prompt/tool-set configuration differs from the measured one (a | |
| 9-rule system prompt and 5 tools, against the benchmark's 4 and no system prompt), and that is the | |
| next thing to align. | |
| **A second defect, in the install instructions:** the documented | |
| `pip install "dragon-harness @ git+https://huggingface.co/dragonlimited/dragon-harness"` **fails** β | |
| pip clones with `--filter=blob:none` and the Hub's git server answers `fatal: expected 'packfile'`. | |
| Every copy of that line (README, QUICKSTART, `opencode/INSTALL.md`) is replaced with clone-then-install | |
| and an explanation (`dragon-harness` commits `2881a175`, `9cc59f82`), verified by running it. | |
| **Also done in this stretch:** the Q4_K_M GGUF is now published **where the docs say to find it** | |
| (`Dragon-Finance-7B/Dragon-Finance-7B-Q4_K_M.gguf`, commit `a38acc2c`), so following the documentation | |
| actually yields the model; and the corpus index rebuild was restarted from a **reset** checkpoint | |
| (`index_state.json` claimed 184 shards while the vectors were gone β restore trap 3). | |
| ## S7 closed β the plan was rewritten, and PLAN v2's first step is running | |
| **`PLAN.md` v1 could not express the remaining work**: its "today" column still read 59 % / 0 % / 0 %, | |
| it had no step for the shipped product (which measured **0.000** end-to-end), and it had no exit | |
| criteria. **`Dragon-Finance-7B/PLAN-v2.md`** replaces its ordering and its targets with **nine exit | |
| criteria E1βE9** (the shipped stack must match the benchmark; `strict` β₯ 0.80; a *measurable* | |
| hallucination rate; the 8 GB run; the retrieval claim; RLVR resolved; a release), and it retires two | |
| work items **on measurement**: more SFT steps (v8 continued to convergence and scored *identically* to | |
| v7) and blind RLVR sweeps. | |
| **S1 is the blocking step and it is a configuration question, not a training one.** While building the | |
| comparison, one difference turned up that the plan now names explicitly: | |
| | | benchmark (0.767) | shipped product (0.20) | | |
| |---|---|---| | |
| | tools offered | **3** β `resolve_filer`, `candidate_tags`, `query_financials` | **5** β adds `search_knowledge` and `resolve_question` | | |
| | system prompt | none | a 9-rule contract | | |
| | tool-call parsing | tagged **and** bare JSON | structured only β fallback added this session | | |
| `search_knowledge` is offered to the model while the retrieval index covers **0/120** of the | |
| evaluation's filings β so the product ships a tool that cannot answer the questions it is asked. | |
| **S1.1** (running: 8 frozen questions Γ 3 configurations at temperature 0, graded by the benchmark's | |
| own grader) decides the shipped configuration; **S1.2** applies it and re-measures on all 60. | |
| Caveat recorded with the run: the first 8 frozen questions are the `unit_per_share`-heavy head of the | |
| file, so the *absolute* rate is not comparable to 0.767 β the **across-arm comparison** is the | |
| measurement. | |
| ## S7 closed β the purpose's own test, measured for the first time | |
| The plan was reframed (`Dragon-Finance-7B/PLAN-v3.md`): **purpose first.** Nine checkable criteria were | |
| nine *actions*; the purpose is one sentence β *a person can put this on a small machine, run it | |
| offline, and trust a figure it reports, because it cites the filing, and says "not found" when it has | |
| nothing.* Its tests are V1 (naive-user: correct-and-cited or an explicit not-found, **zero | |
| fabrications**), V2 (the 8 GB offline run), V3 (citations resolve). Instruments are subordinate: **a | |
| gate that rises while V1 is unmet is a misleading number, and v8 is the proof** (gate 0.60 β 0.65; | |
| benchmark moved by nothing). | |
| **The purpose's trust clause was then measured β it had never been measured before** β by wrapping | |
| every tool to record what it returned and checking every accession the answer cites against that set. | |
| Through the shipped stack, 10 frozen held-out questions: | |
| | result | value | | |
| |---|---| | |
| | correct answers | **0 / 10** | | |
| | answers citing anything | **0 / 10** | | |
| | **tool results recorded** | **0** in all 10 | | |
| | fabricated accessions | **0** β but *vacuously*: it cited nothing, so there was nothing to falsify | | |
| **Two readings, and the difference matters.** Either the model never called a tool (answering from | |
| nothing), or its calls failed and the loop swallowed the errors β the instrumentation used here cannot | |
| separate those, and **that is stated rather than guessed**. What is established either way is the | |
| result the purpose cares about: **the shipped product did not look**, so it cannot be trusted with a | |
| figure. The earlier CLI run *did* execute three tool calls and returned one correct cited figure, so | |
| the two paths differ, and finding out how is S1. | |
| **The lesson this session earned, in the project's own words:** *purpose β constraints β verification β | |
| work*, in that order. The work is only right when it serves the purpose; when the work stops serving | |
| it, the work is what is wrong. A repository full of ticked instruments and a product nobody can trust | |
| is the failure mode this project has to keep naming out loud. | |
| ## S7 β **the result**: the purpose's test, before and after | |
| The purpose's own test (PLAN-v3 V1: *correct-and-cited, or an explicit not-found, zero fabrications*) | |
| through the shipped stack, 10 held-out questions: | |
| | | before the fixes | **after** | | |
| |---|---|---| | |
| | `answer_ok` | **0.000** (0/10) | **0.500** (5/10) | | |
| | answers that used a tool | **0 / 10** | **10 / 10** | | |
| | answers citing anything | 0 / 10 | 6 / 10 | | |
| | **fabricated accessions** | invented one at the first question examined | **0** | | |
| **What produced it** (all published, `dragon-agent` `35889ebe`): (1) the tool-call recovery without | |
| which *no tool ever ran*; (2) temperature 0 instead of an unexamined 0.2; (3) **`search_knowledge` | |
| withheld until the index clears a row floor** β the product had been offering the model a tool covering | |
| **0 of 120** of the evaluation's own filings, which cost it the turns it needed; (4) a prompt trimmed to | |
| the rules that serve the purpose. Published fixes: `1756b3d`/`d1756b3d`/`35889ebe`. | |
| **And one error of mine, recorded because it nearly became a reported result.** The first version of | |
| this test read **0.000 with zero citations** β and it was wrong. The instrument **wrapped the tool | |
| callables** to record what they returned; the wrapper changed the call path, the tools stopped | |
| executing, and the number measured *the instrument*, not the product. Caught by diagnosing a single | |
| question by hand: the model had answered *"Investments was 13268251000.0 USD, from accession | |
| 0000950170-24-018456"* β **the exact gold figure, correctly cited** β while the test scored it zero. | |
| The loop already emits `Event("tool", β¦, tool_result=β¦)`, so the fixed instrument **observes and does | |
| not participate**. *An instrument that changes what it measures is not a measurement.* | |
| ## S8 β the box relaunched, and the autonomy kept working (2026-11-21) | |
| The container was replaced **while the autonomous loop was running**. This entry is what it produced | |
| on its own, measured, and what the next session inherits. | |
| ### What the box did without anyone attached (~3.5 hours) | |
| | artefact | result | | |
| |---|---| | |
| | `v1_test_60.json` β **the purpose's own test**, 60 held-out questions, shipped stack | **0.483 correct**, every answer citing a **real** accession, **0 fabricated citations** | | |
| | `strict60.json` | `answer_ok` 0.750 Β· **`strict` 0.733** against the plan's 0.80 | | |
| | `s1_sweep.json` | the shipped configuration **decided by measurement** (3 arms Γ 20 questions) | | |
| | `rlvr_diag.json` | reward **variance 0.24** β signal *does* exist, so my "saturated rewards" hypothesis was **wrong**; the failure is in the advantage computation | | |
| | `CARD_SYNC.json` | **4 stale claims found on the public card** (3.5 GB vs 4.68 GB measured; "pending"; "59 %"; an unticked roadmap box) | | |
| | `index_state.json` | the corpus index reached **2,005,826 rows** (the 2 M gate) | | |
| It also retried loyally and reported honestly: `j1_v1_60` was re-run because its gate | |
| (`answer_ok >= 0.70`) was **unmet**, and 20 failed attempts at `j5_recall` became an **`ask`** for me | |
| rather than a silent loop. | |
| ### The two asks, answered | |
| 1. **`j5_recall` β "the script is wrong, not the gate"?** Half right, and the half I got wrong is the | |
| instructive one. The script *aborted* (`mapping assumption wrong`) instead of measuring, so I | |
| widened the matcher... and it still found nothing. Reading the index directly shows the original | |
| matcher was **correct**: `file` really is `"<adsh>.txt"`. The abort was a **true zero dressed as a | |
| bug**. The fix kept is small and right: **report 0, never abort** β a coverage metric that aborts is | |
| indistinguishable from a broken matcher. | |
| 2. **Coverage at 2 M rows** β **0 of 400 sampled eval filings**, because the index holds | |
| **2007β2018-era** accessions while the evaluation asks about **2022β2024**. Full finding: | |
| `docs/08-E8-RETRIEVAL-COVERAGE.md`. **Deepening cannot fix it; targeting the right shards can.** | |
| ### The finding that matters most for the product | |
| **The benchmark and the product do not measure the same thing.** The benchmark drives | |
| `bench_agent.call_tool` (its own SQL helpers); the shipped agent drives `dragon_harness`'s tools. Two | |
| implementations, 0.767 vs 0.483 on the *same questions and the same model*. So the benchmark was never | |
| a prediction of the product, and V1's gap is a **tool-semantics** gap β a comparison-and-align task, | |
| not a training one. That is now the top item in the plan. | |
| ### Also done: the card | |
| The 4 stale claims the box found are applied and published (`Dragon-Finance-7B` `e93af097`), including | |
| the last unmeasured size (3.5 GB β **4.68 GB measured**) and the shipped-stack figure replaced with the | |
| box's own 60-question run, **with the artefact named so it can be checked**. Note: the card carried an | |
| *intermediate* figure (0.450) that no artefact of mine produced β another actor edits this account, and | |
| that is recorded rather than smoothed over. | |
| <!-- NEXT SESSION: append your entry below this line. Do not edit the ones above. --> | |
| ## S9 β the tool-semantics gap, measured (fresh box: RTX PRO 6000, sm_120a) | |
| **What was run.** The plan's tool-alignment lane on a fresh box: `j9_tool_align` reproduced exactly | |
| (**12 of 20** comparisons diverge β the same rows, same widths), then `j10_tool_fix`. | |
| **The fix.** `dragon_harness.candidate_tags` now honours `DRAGON_CAND_MAX` (`dragon-harness` | |
| `b96f66be9e78`; default unchanged). At 40 the shipped selection is byte-identical to the benchmark's | |
| on **all 60** questions. `ops/tool_fix.py` carried an unmatched `)` and could never have run β fixed | |
| (`73ab92adf1a4`), which is why j10 had no marker. | |
| **The result β a negative that closes the hypothesis.** V1 through the shipped stack, frozen 60, | |
| cap=40: **answer_ok 0.483**, *identical* to the recorded 0.483 without the cap; 0 fabricated; 60/60 | |
| used a tool. So the candidate-width divergence is **incidental, not causal**. Evidence: | |
| `runs/dragon-lora-v7/quant/{tool_fix.json,v1_test_capped60.json,J10-V1-CAPPED.md}`. | |
| **Where the gap actually was is already in the code.** `dragon_agent/loop.py` records it: this model | |
| emits its call as **bare JSON in `content`** (not `<tool_call>` tags), the loop originally saw no call | |
| and ran no tool, and the model then fabricated β **0/20 through that path** against 0.767 for the same | |
| model and tools in the benchmark, which always parsed that form. That is the 0.000β0.5 fix (S8), a | |
| *parsing* gap, not a tool-semantics one. | |
| **For the plan.** `j9` compared only `resolve_filer` (20/20 identical) and `candidate_tags`; it never | |
| compared `query_financials`, which returns the answer numbers β and that tool diverges the same way | |
| (bench caps at 40, shipped returns up to 100; 26/60 questions differ). That is the same class, and the | |
| same measurement says the same about it. **The residual 0.483β0.767 gap is prompt/loop/task-set, not | |
| the tool layer.** | |