{
 "measurement": "Claude Code's own context floor, measured directly instead of derived",
 "claude_code_version": "2.1.229 (Claude Code)",
 "what_this_corrects": "The /cost/ calculator published BASELINE {on: 31367, off: 49162}. Those were the loaded measurement 58,130 minus 26,763 for one user-level CLAUDE.md. That subtraction removed a single user-scope item and left the machine's user-level skills, MCP servers and plugins inside the figure called 'Claude Code's own floor'. Both numbers were about 9,000 tokens too high. They are now {on: 22340, off: 40144}, measured directly.",
 "method": {
  "floor": "An EMPTY temp directory, created fresh per measurement and asserted empty, with --setting-sources project asserted onto the command line so nothing user-scope loads. Prompt: 'Reply with only: OK'. Tokens are inputTokens + cacheCreationInputTokens + cacheReadInputTokens from modelUsage.",
  "noise_floor": "Every cell is measured TWICE per round and the gap kept as that round's noise. The baseline drifts a couple of hundred tokens over a session, so a difference smaller than the gap is not a difference. Observed noise here was 0 to 4 tokens.",
  "same_round": "All arms run inside one round before the next begins. Cross-round pairing on a drifting baseline has produced a bogus delta on this site before.",
  "loaded_arm_asserts_the_flag_is_ABSENT": "The loaded cells assert --setting-sources is NOT on the command line, so the two arms cannot silently be the same measurement.",
  "user_md_never_touched": "The user CLAUDE.md is never moved or renamed. Its CONTENT is copied into a sandbox as a PROJECT CLAUDE.md and the paired delta taken. Moving the real file breaks auth and returns zeros.",
  "dot_usage_vs_modelusage": "Both are recorded. They differ by a constant 521 tokens on the isolated arm and are identical on the loaded arm. The published measure-context.sh reads .usage; this site's rules say modelUsage. The calculator's figures use modelUsage."
 },
 "results": {
  "floor_tool_search_on": 22340,
  "floor_tool_search_off": 40144,
  "tool_search_delta": 17804,
  "tool_search_delta_previously_implied": 17795,
  "user_claude_md_content": 26834,
  "user_claude_md_bytes": 72783,
  "other_user_scope_config": 10686,
  "loaded_machine_total": 59862,
  "reconstruction_check": "22343 + 26834 + 10686 = 59863 against 59862 measured, 1 token apart",
  "what_the_earlier_correction_missed": 10686
 },
 "known_limits": {
  "one_machine": "The 26,834 and 10,686 figures describe one machine's user-scope configuration and transfer to nobody. The two FLOOR figures are properties of Claude Code and should.",
  "deltas_were_never_wrong": "Every paired delta on this site is unaffected and one of them is re-confirmed here: the tool-search gap reproduced to within 0.06%. The error was only ever in absolute baselines.",
  "usage_convention": "Reading .usage instead of modelUsage gives 21,819 rather than 22,340 on the isolated arm, a constant 521-token difference. Any figure quoted from this site should say which it used."
 },
 "raw": {
  "floor_and_loaded": {
   "prompt": "Reply with only: OK",
   "rounds": [
    {
     "round": 0,
     "isolated": {
      "status": "ok",
      "dot_usage": [
       21818,
       21822
      ],
      "model_usage": [
       22339,
       22343
      ],
      "dot_min": 21818,
      "model_min": 22339,
      "dot_noise": 4,
      "model_noise": 4,
      "turns": [
       1,
       1
      ],
      "reply": "OK"
     },
     "loaded": {
      "status": "ok",
      "dot_usage": [
       60151,
       59860
      ],
      "model_usage": [
       60151,
       59860
      ],
      "dot_min": 59860,
      "model_min": 59860,
      "dot_noise": 291,
      "model_noise": 291,
      "turns": [
       1,
       1
      ],
      "reply": "OK"
     }
    },
    {
     "round": 1,
     "isolated": {
      "status": "ok",
      "dot_usage": [
       21820,
       21820
      ],
      "model_usage": [
       22341,
       22341
      ],
      "dot_min": 21820,
      "model_min": 22341,
      "dot_noise": 0,
      "model_noise": 0,
      "turns": [
       1,
       1
      ],
      "reply": "OK"
     },
     "loaded": {
      "status": "ok",
      "dot_usage": [
       59858,
       59862
      ],
      "model_usage": [
       59858,
       59862
      ],
      "dot_min": 59858,
      "model_min": 59858,
      "dot_noise": 4,
      "model_noise": 4,
      "turns": [
       1,
       1
      ],
      "reply": "OK"
     }
    },
    {
     "round": 2,
     "isolated": {
      "status": "ok",
      "dot_usage": [
       21822,
       21820
      ],
      "model_usage": [
       22343,
       22341
      ],
      "dot_min": 21820,
      "model_min": 22341,
      "dot_noise": 2,
      "model_noise": 2,
      "turns": [
       1,
       1
      ],
      "reply": "OK"
     },
     "loaded": {
      "status": "ok",
      "dot_usage": [
       59860,
       59860
      ],
      "model_usage": [
       59860,
       59860
      ],
      "dot_min": 59860,
      "model_min": 59860,
      "dot_noise": 0,
      "model_noise": 0,
      "turns": [
       1,
       1
      ],
      "reply": "OK"
     }
    },
    {
     "round": 3,
     "isolated": {
      "status": "ok",
      "dot_usage": [
       21818,
       21820
      ],
      "model_usage": [
       22339,
       22341
      ],
      "dot_min": 21818,
      "model_min": 22339,
      "dot_noise": 2,
      "model_noise": 2,
      "turns": [
       1,
       1
      ],
      "reply": "OK"
     },
     "loaded": {
      "status": "ok",
      "dot_usage": [
       59864,
       59862
      ],
      "model_usage": [
       59864,
       59862
      ],
      "dot_min": 59862,
      "model_min": 59862,
      "dot_noise": 2,
      "model_noise": 2,
      "turns": [
       1,
       1
      ],
      "reply": "OK"
     }
    }
   ]
  },
  "decomposition": {
   "prompt": "Reply with only: OK",
   "user_md_bytes": 72783,
   "rounds": [
    {
     "round": 0,
     "floor": {
      "status": "ok",
      "runs": [
       22341,
       22341
      ],
      "min": 22341,
      "noise": 0,
      "md_bytes": 0
     },
     "floor_plus_md": {
      "status": "ok",
      "runs": [
       49177,
       49177
      ],
      "min": 49177,
      "noise": 0,
      "md_bytes": 72783
     },
     "loaded": {
      "status": "ok",
      "runs": [
       59864,
       59864
      ],
      "min": 59864,
      "noise": 0,
      "md_bytes": 0
     },
     "md_cost": 26836,
     "user_scope_total": 37523,
     "remainder_not_md": 10687
    },
    {
     "round": 1,
     "floor": {
      "status": "ok",
      "runs": [
       22343,
       22343
      ],
      "min": 22343,
      "noise": 0,
      "md_bytes": 0
     },
     "floor_plus_md": {
      "status": "ok",
      "runs": [
       49177,
       49177
      ],
      "min": 49177,
      "noise": 0,
      "md_bytes": 72783
     },
     "loaded": {
      "status": "ok",
      "runs": [
       59860,
       59860
      ],
      "min": 59860,
      "noise": 0,
      "md_bytes": 0
     },
     "md_cost": 26834,
     "user_scope_total": 37517,
     "remainder_not_md": 10683
    },
    {
     "round": 2,
     "floor": {
      "status": "ok",
      "runs": [
       22343,
       22343
      ],
      "min": 22343,
      "noise": 0,
      "md_bytes": 0
     },
     "floor_plus_md": {
      "status": "ok",
      "runs": [
       49177,
       49177
      ],
      "min": 49177,
      "noise": 0,
      "md_bytes": 72783
     },
     "loaded": {
      "status": "ok",
      "runs": [
       59864,
       59864
      ],
      "min": 59864,
      "noise": 0,
      "md_bytes": 0
     },
     "md_cost": 26834,
     "user_scope_total": 37521,
     "remainder_not_md": 10687
    },
    {
     "round": 3,
     "floor": {
      "status": "ok",
      "runs": [
       22343,
       22343
      ],
      "min": 22343,
      "noise": 0,
      "md_bytes": 0
     },
     "floor_plus_md": {
      "status": "ok",
      "runs": [
       49174,
       49174
      ],
      "min": 49174,
      "noise": 0,
      "md_bytes": 72783
     },
     "loaded": {
      "status": "ok",
      "runs": [
       59862,
       59862
      ],
      "min": 59862,
      "noise": 0,
      "md_bytes": 0
     },
     "md_cost": 26831,
     "user_scope_total": 37519,
     "remainder_not_md": 10688
    }
   ]
  },
  "tool_search": {
   "prompt": "Reply with only: OK",
   "rounds": [
    {
     "round": 0,
     "on": [
      22341,
      22339
     ],
     "off": [
      40144,
      40146
     ],
     "on_min": 22339,
     "off_min": 40144,
     "on_noise": 2,
     "off_noise": 2,
     "delta": 17805
    },
    {
     "round": 1,
     "on": [
      22343,
      22341
     ],
     "off": [
      40146,
      40144
     ],
     "on_min": 22341,
     "off_min": 40144,
     "on_noise": 2,
     "off_noise": 2,
     "delta": 17803
    },
    {
     "round": 2,
     "on": [
      22339,
      22343
     ],
     "off": [
      40148,
      40144
     ],
     "on_min": 22339,
     "off_min": 40144,
     "on_noise": 4,
     "off_noise": 4,
     "delta": 17805
    },
    {
     "round": 3,
     "on": [
      22339,
      22343
     ],
     "off": [
      40144,
      40144
     ],
     "on_min": 22339,
     "off_min": 40144,
     "on_noise": 4,
     "off_noise": 0,
     "delta": 17805
    }
   ]
  }
 }
}