# Protocol v2: VAI DeepSeek is the API baseline; Sonnet and Haiku (session) replace Qwen and Llama on a fixed sample. # It extends locked v1. protocol: volve-dia version: 2 status: locked drafted: 2026-11-19 revised: "2026-11-19, before any v2 run: roles redefined (VAI = API baseline; Sonnet and Haiku replace Qwen and Llama on a sample)" extends: file: configs/protocol_v1.yaml sha256: fb11c6074b2794d11a65faf0b5425f57fda70eacdb99d0e18e3a6093bc10b477 deviation: date: 2026-11-19 what: >- Protocol v1 was locked on 2026-11-18 and its local Qwen3-8B / Llama 3.1 8B baselines had already started (Qwen T4/C4 seed 0 and T2 seeds 0-1 in progress, Llama not started). The project owner stopped both on 2026-11-19 and replaced them with Claude Sonnet and Claude Haiku run inside the Claude Code session on a fixed sample (no Anthropic API key exists). The API baseline of v1 (the `api` cell) is filled by the VAI model "DeepSeek-V4.1-Flash-1017", the model already used by the vopec-chatbot project, on the full matrix. The model changes were made after v1 baseline runs began and were not driven by a test-well result. Two earlier same-day drafts (Claude through the API; VAI replacing Qwen and Llama) were replaced before any v2 call. v1_artifacts: >- All v1 checkpoints, logs and Qwen results stay unchanged under outputs/m34/qa/, outputs/m34/t2_llm/ and logs/runs/. They are reported as partial v1 results: Qwen T4/C4 seed 0 has 10,214 of 16,317 predictions (c4, c4_clean and rag complete, agent 545 of 1,662); Qwen T2 has seed 0 (23,447) and 17,827 of 23,447 for seed 1; Llama has none. The v1 jobs were stopped, not completed. unchanged_from_v1: - split by well and wellbore sensitivity, development wells and few-shot example rule - T4 question set (1,662 questions, 1,376 paired C4 questions, 1,293 without date-disagreement pages) - masking rules, T2 masked inputs and both NPT definitions - both C4 passes (all paired reports and without the 16 date-disagreement pages), 7 unmatched reports dropped - automatic scoring against the XML/WITSML reference, metrics, whole-well cluster bootstrap (2000 resamples, seed 20261117) - TF-IDF + logistic regression and DistilBERT as comparison baselines (v1 results, not rerun) - retrieval settings (8 passages, 12,000 context characters), 3 tool steps, 2 few-shot examples - sampling: temperature 0.2, max_tokens 320 and the seed field, as in the v1 local runs baselines: api: - id: vai-deepseek-v4-1-flash label: VAI DeepSeek-V4.1-Flash-1017 api_model: DeepSeek-V4.1-Flash-1017 role: the v1 `api` baseline, full matrix tasks: [t4, c4, t2_zero_shot] choice_note: >- Chosen among the VAI models listed in the vopec-chatbot notes for price (3,600 / 7,100 credits per 1M input / output tokens, about 1 VND per credit), latency (about 1 s per call), JSON compliance in the smoke check (0 invalid outputs in 140 calls) and switchable thinking. glm-5.3 costs about nine times more; Qwen3.8-27B about 2.6 times more. only_this_api_model: true missing_access: Abort and report. Do not fall back to another model without a new decision. session_models: - {id: sonnet, replaces: qwen, runs_in: Claude Code session subagents, api_key: none} - {id: haiku, replaces: llama, runs_in: Claude Code session subagents, api_key: none} retired: [qwen, llama] session_sample: status: auxiliary; excluded from G2 coverage, because it does not cover the matrix locked in v1 seed: 20261117 wells: all 11 wells, drawn once with the fixed seed before any answer exists. The development split has only two wells (F-7, F-9) and 144 eligible questions, too few for 300. No prompt, model setting or threshold is tuned on the sample. t4: questions: 300 from the C4-paired set (printed, answerable, complete OCR, well-scoped, 1,366 eligible), stratified by family and well conditions: [zero_shot_xml, rag_xml, c4_xml, c4_html, c4_ocr] repetitions: 1 answers_per_model: 1500 t2: items: 500 from the masked T2 table (23,447), stratified by well definitions: [a, b] repetitions: 1 batch_size: {t4: 30, t2: 100} prompts: built by the v1 `answer_question` code, so retrieval, context size and instruction match the VAI runs limits: >- Session models read prompts from batch files. They are instructed to read nothing else, but file access is not enforced. One repetition, no seed. Results are reported as a sample, never as G2 coverage. inference: surface: OpenAI-compatible chat/completions on the VAI gateway (httpx; URL and key only in the untracked .env) temperature: 0.2 max_tokens: 320 chat_template_kwargs: {enable_thinking: false} structured_output: response_format json_object; the v1 ANSWER, ACTION and T2 shapes are enforced locally attempts_per_call: 3 repetitions: 3 repetition_note: >- Three independent calls per condition, with seed k sent. Whether the gateway honours the seed is not verified, so each is reported as a repetition, not a seeded replicate. The repetition index k is stored in the seed column. logged_per_call: model id returned, response id, finish reason, token usage, attempt, error type shared_key_note: The VAI key is shared by a group and by vopec-chatbot. Default 4 concurrent calls; never touch other jobs. checkpoints: qa: outputs/m34/v2/qa//rep.sqlite t2: outputs/m34/v2/t2_llm//rep.sqlite smoke: outputs/m34/v2/smoke/ separation: one SQLite file per protocol, model and repetition; provenance records the v2 checksum g2: rule: >- G2 is checked per protocol version. v1 requires its own Qwen, Llama and api cells and cannot be met, because the Qwen and Llama runs were stopped. v2 requires TF-IDF, DistilBERT, majority and lexicon cells from v1 plus VAI T2 zero-shot (3 repetitions) and VAI on every T4/C4 mode, source and repetition. The Sonnet and Haiku sample is reported beside it as an auxiliary result. v2_required_models_qa: [vai-deepseek-v4-1-flash] v2_required_models_t2: [vai-deepseek-v4-1-flash] budget: gate: >- scripts/15_m34_v2.py refuses to run without --approved-budget-tokens and stops when the logged prompt + completion tokens reach it. VAI list price for DeepSeek-V4.1-Flash: 3,600 credits per 1M input tokens and 7,100 per 1M output tokens (1 credit is about 1 VND; source: vopec-chatbot session notes of 2026-11-11). The 10M-credit quota is shared by the team. Smoke-based estimate for the full v2 run: about 210M input and 4.5M output tokens, about 0.79M credits. session_agents: >- Session subagents (no API key) split by purpose. Writing code, code review and similar engineering or editing work uses Opus. Model-run benchmark tasks that produce predictions or ratings (raters, judge, reference samples) use the lower models, Sonnet or Haiku, chosen per task. Fable is not used.