# Jev decision-record checklist

From "Who called Jev, under which rules, and when? A decision-record checklist" by the ModelMesa team:
https://modelmesa.com/blog/jev-decision-record-checklist

1. **Inventory your key.** List every service, job and machine that can call Jev. If you can't produce that list, that's your first finding.
2. **Send every call through one wrapper.** Make a single internal function that requires a service and project name and writes a per-call record. No untagged calls.
3. **Log the version that answered,** not just the one you asked for. Store the response's `model` field on every call.
4. **Pin deliberately.** If you've tuned confidence thresholds against a version, TypeSafe's docs recommend pinning that version's ID (currently `jev-1.13.0`) instead of the alias and moving on your own schedule. Record every pin change.
5. **Version your questions like code.** Keep question definitions in your repo, hash them, and log the hash with each call. An instruction edit should be a reviewed commit, not a quiet config change.
6. **Keep an append-only change log** for key rotations, pin moves, and threshold and instruction changes. Even an insert-only database table beats searching chat history.
7. **Estimate cost at the source.** TypeSafe prices Jev per input token, and output tokens are free. Its models page listed $0.042 per million input tokens when we checked on Oct 8, 2026, so check the current price. Multiply `usage.input_tokens` by that price per project and you have estimated cost by team before the invoice arrives.
8. **Log upstream errors separately.** Track 401, 422, 429 and 529 as distinct statuses. TypeSafe says its rate limits are "adjusting dynamically" and can change without notice, so you want to see a 429 trend early.
9. **Decide retention on purpose.** Write down how long metadata lives, whether bodies are stored at all, and who can view them.
10. **Test the record.** Pick a random call from last week and answer: which service, which version, which instructions, which thresholds, and who last changed any of them. If that takes more than a few minutes, close the gaps.

Per-call record, metadata only by default: timestamp, caller (service, environment, project), model requested, model that answered, question-definitions hash, thresholds applied, answers with confidence, `usage.input_tokens`, HTTP status, latency. Leave raw `state` out unless body logging is a deliberate, redacted, short-retention choice.
