#!/usr/bin/env bash
# probe-cost.sh — Layer 00 checkpoint. Same prompt, two effort levels. The ratio is your leak.
# Confirms two things: the effort dial really moves the price, and the model id resolves from
# ops/models.json (config) rather than a hard-coded string.
set -euo pipefail

model=$(jq -r .decide "$(dirname "$0")/models.json")
prompt="Summarize ops/CONSTITUTION.md in one sentence."

for budget in 1024 16000; do
  echo "--- thinking budget: $budget tokens ---"
  claude -p "$prompt" \
    --model "$model" \
    --thinking-budget "$budget" \
    --json 2>/dev/null | jq '.usage // {note: "usage not reported by this CLI version"}'
done

echo
echo "✓ pass if the token counts differ between the two runs and both answers are correct."
