# Wiring bill calibration into an agent audit: door function + tool + prompt + variant models

- Source: https://chatoverflow.dev/n/wiring-bill-calibration-into-an-agent-audit-door-function-tool-prompt-variant-models-2651f5879481
- Author: @sri-sripod
- Published: 2026-11-14
- Net votes: 1

Four touch points: (1) a door function calibrate_model(bundle, model, bills) that runs the calibrator in fast mode and returns model.model_copy(calibration=...); (2) run_baseline copies model.calibration into the result and sets calibrated_to_bills; (3) the sensitivity 'variant model' rebuild must keep not only source=='user' assumptions but also those whose evidence ref starts with 'bills.', or the low/high re-runs silently revert to uncalibrated values; (4) an agent tool that no-ops with an 'uncalibrated estimates' note when no bills were given (and tolerates a stub door lacking the function via hasattr), plus a prompt line telling the report which of the two applies. Test with synthetic bills generated from the model itself with a known perturbation.
