Jev 1.14 Python 3.11+ 166-page PDF

Replace the fragile classifier.

Typed, calibrated decisions with Jev, Pydantic and evals you can trust

166-page PDF for backend Python engineers replacing a fragile LLM classifier. Build deskgate — a decision layer over Jev, Clef, and OpenAI Decisions — with thresholds, evals, shadow mode, and a runbook.

14-day refund if the book isn't useful for you. Team use inside your org is fine — please don't resell the PDF.

Production Decision Models in Python cover by Nuno Bispo

01 · build


# One ticket in → typed answers out → an action in code
team = Choice(instructions="Which team?", criteria=TEAMS)
refund = Noul(instructions="Asks for a refund?")
if answer.p_choice >= thresholds.act_at:
return Band.ACT

You build deskgate — a decision layer for a support inbox — over Jev (with Clef and OpenAI Decisions behind the same interface). Thresholds, policy, evals, and shadow mode live in code. Companion: production-decision-models.

What you'll learn

Replace JSON-mode classifiers with typed Choice, Score, and Noul questions.
One DecisionBackend over Jev, Cloudflare Clef, and OpenAI Decisions.
Act / confirm / abstain gates that belong in code, not in the prompt.
Policy rules for refunds, paging, and routing — tested without API keys.
A sixty-ticket golden set with gray-zone labels and a CI eval gate.
Calibration reports, Wilson bounds, and thresholds per pinned model.
Shadow mode, canary rollout, and question fingerprints that refuse stale replays.
Gate agent tool calls with the same decision layer (Pydantic AI approvals).
Ops report, cost per ticket, and a runbook for on-call.

02 · readers


Who it's for

Backend Python engineers

You are replacing a fragile LLM JSON-mode classifier with something you can threshold, test, and leave running. This book is for that job.

Teams shipping decision layers

Routing, refunds, and tool gates are decisions — not chat. Learn to put probability bands and business rules in code.

Jev / Clef / Decisions builders

One interface across three vendors, with evals and calibration that measure your traffic, not the vendor homepage.

On-call owners

You will build deskgate for a fictional bike shop inbox — then operate it with shadow mode, canaries, and a real runbook.

03 · contents


Inside the book

18 chapters and 6 appendices — from the first decision call to the runbook.

Foundations
  1. 1. The Fuzzy If
  2. 2. Your First Decision
  3. 3. Choice, Score and Noul
  4. 4. State Is the Prompt
  5. 5. Contracts with Pydantic
  6. 6. One Interface, Three Vendors
Policy and proof
  1. 7. Probability Is Not Confidence
  2. 8. Policy Belongs in Code
  3. 9. A Golden Set and an Eval Harness
  4. 10. Calibration on Your Own Traffic
  5. 11. Tests That Run Without Keys
Ship and operate
  1. 12. Fan-out, Screens and Composite Scores
  2. 13. Cascades
  3. 14. Shipping the Service
  4. 15. Observability and Cost
  5. 16. Model Upgrades, Shadow Mode and Rollout
  6. 17. Gating Agent Tool Calls
  7. 18. The Runbook
Appendices
  1. A. Jev API Quick Reference
  2. B. Porting Between Vendors
  3. C. What This Book Does Not Cover
  4. D. A Golden-Set Kit
  5. E. Companion Code Map
  6. F. Glossary

04 · pages


Sample pages

Ten pages from the PDF — click any page to view it larger. Or download the free sample PDF.

p. 1

Cover

Typed, calibrated decisions with Jev, Pydantic and evals you can trust.

p. iii

Contents

Eighteen chapters and six appendices — decisions, not generation.

p. 1

Chapter 1

The fuzzy if: where System One models fit in a Python service.

p. 7

Chapter 2

Your first decision call with typesafe-sdk and a typed response.

p. 47

Chapter 7

Probability is not confidence — act, confirm, and abstain bands.

p. 63

Chapter 9

A sixty-ticket golden set, metrics, and a CI eval gate.

p. 71

Chapter 10

Calibration on your traffic: reliability tables and Wilson bounds.

p. 118

Chapter 16

Model upgrades with shadow mode, canary, and fingerprinted replays.

p. 133

Chapter 18

The runbook: dials, symptoms, and what on-call does next.

05 · author


Nuno Bispo

Nuno Bispo

Senior software engineer and integration architect with 15+ years across insurance, banking, and airlines. Writes about Python, AI, and MicroPython at Developer Service. Author of Practical Pydantic.

Also by Nuno Bispo

Get launch notes and Python deep-dives

Free essays on developer-service.blog — join the list for new posts and book updates.

Subscribe via Ghost

06 · faq


FAQ

A DRM-free PDF download link by email and on the success page. The file is production-decision-models-in-python.pdf.

Jev 1.14 (jev-1.14.0) and typesafe-sdk 0.7.6 on Python 3.11+. Clef and the OpenAI Decisions API appear wherever the difference matters. Companion: github.com/nunombispo/production-decision-models.

Yes — the public GitHub repo linked from the book includes deskgate: backends, policy, evals, recorded replays, thresholds, CI, and the runbook.

Signed download links stay valid for 14 days. Reply to your receipt email if you need a refresh.

If the PDF is not what you expected, contact support@developer-service.io within 14 days of purchase for a refund.

Recording a live replay and the live smoke test need TYPESAFE_API_KEY. The offline pytest suite and recorded replays run without keys.

Ship an agent you would trust on-call.

166-page PDF — $19.99

Instant download after payment · Email with a signed link · 14-day refund