# Rules for Claude in this project

## Always ask before anything that spends OpenAI credits

Never run anything that calls the OpenAI API without the user's yes first. This covers running the bot or `HotelAgent`, test conversations, regressions, embeddings, Pinecone retrieval tests or upserts (they create embeddings), and audio transcription.

Before each run, ask and wait for the answer. The question must state:
- why the test is needed and what it checks
- the maximum number of questions (bot messages), counting every repeat
- the number of OpenAI calls that makes: 2 model calls per question (`gpt-5.4-mini` and `gpt-5.1`, about 19,000 input tokens on the second one), plus 1 embedding. Update these numbers if the code changes.

Then:
- If the user says no, or doesn't answer, do not run it. Use offline checks and say what was not tested.
- If the user says yes with a maximum, never go over it. Retries, failed calls and reruns count towards it.
- A yes covers only that one run. Ask again for the next one, even for the same test.
- A general request such as "fix it", "test it" or "check it" is not a yes.
- Stop immediately on a credit, quota or rate limit error and tell the user.
- After the run, report how many questions were used out of the maximum.

Offline checks need no permission: compiling, type checks, mocked models, and calling `tool_map` and other code with fakes. Make sure they cannot reach OpenAI.
