A WORKING LAB FOR DEVELOPERS & AGENT BUILDERS

Give your code
better judgment.

TypeSafe’s Jev turns messy input into typed judgments.
Your code keeps the thresholds, routing, and final say.

No signup. No visitor API key. Start with a saved example.

01 / THE WORKING STUDIO

See the if. Not the chat.

Change the input. Inspect the judgment.
Move the boundary your code controls.

CHOOSE A SCENARIO
1

You provide the state

EDITABLE INPUT

Routes support tickets by category, urgency, and frustration.

Start with a variant
SAVED EXAMPLE

Try “Calm billing” to compare it with this angry outage. Then run Jev.

Live runs send this input and context to TypeSafe. Use sample data, not secrets.

Saved example loaded. Edit the input or choose another variant to make a live request.
2

Jev returns judgments

SAVED DEMO

Typed values, not generated prose. Your code uses these.

View the input behind these demo answers
My production API has been down for 2 hours and I'm losing money! This is completely unacceptable. I need someone to fix this NOW or I want a full refund.
Saved illustrative answers. No API request or live timing.
Choicecategory

What kind of ticket is `ticket`?

bug_report
89% confidence
Option probabilities
bug_report89%
billing8%
other2%
feature_request1%
Noulurgency

Does `ticket` convey urgency or time-sensitivity?

0.94probability of yes
0 · no1 · yes
Scorefrustration

How frustrated is the author of `ticket`?

2 / 2weighted score

Very angry, strong language, or threatening to leave

See the rubric
  1. Calm, just stating facts
  2. Frustrated but civil
  3. Very angry, strong language, or threatening to leave
Noulrefund_requested

Does `ticket` ask for money back?

0.76probability of yes
0 · no1 · yes

Saved judgments, real policy. Edit the input to request fresh answers.

Choice Which option?Noul Probability of yesScore Position on a rubric
3

Your code decides

Same judgments. Your threshold. Your outcome.

POLICY OUTCOME · DEMO INPUTengineering-priority
0.70
0.50Higher = more cautious0.95
category.confidence0.89 0.70

Answer confidence vs. your floor. Other rules still apply.

Try 0.90. The same 0.89 confidence now sends this ticket to a human. No new API call.

policy.ts
if (answers.category.confidence < 0.70) {
  return { route: "human" };
}
if (answers.category.choice === "bug_report" && answers.urgency.noul > 0.8) {
  return { route: "engineering-priority" };
}
return { route: `queue:${answers.category.choice}` };

Jev returned bug_report with 89% confidence and 0.94 urgency. Your policy selects engineering-priority.

Illustrative policy, evaluated locally. No tickets routed, commands executed, content published, or payments made.

Jev judges. Code decides. You can inspect both.Learn to design your own

02 / FROM THE DEMO TO YOUR CODEBASE

You’ve seen the branch.
Now design the system.

The slider is the easy part. Choosing the right questions, setting a defensible floor, and knowing when to ask a human — that’s the work.

The ebook picks up exactly where this Studio stops.

IN THE STUDIO

Try a prepared decision.

IN THE EBOOK

Learn why the policy works.

IN YOUR CODEBASE

Test a gate on your own data.

TENX LABS FIELD GUIDE / 01
Smart
If
Statements.

Building Software
with TypeSafe Jev (System One)

statejudgmentyour if
SKPJEV JUDGES.
CODE DECIDES.

A practical field guide. Not another prompt collection.

THE COMPANION EBOOK · BY SKP / TENX LABS

Smart If Statements

Build the judgment layer.
Keep control of everything after it.

For developers, indie hackers, and agent builders who want to classify, route, score, and gate — without turning every branch into a chat completion.

  • Design better questions. API shapes, typed primitives, and concrete rubrics.
  • Own the policy. Fan-out, confidence gates, composite scores, and intent routing.
  • Know what can fail. Jaggedness, overrides, shadow testing, and version pinning.
  • Practice, then adapt. Eight exercises, worked case studies, and a record-your-own live lab.
$29USD · ebook launch price
PDF · 11 chapters + appendix
Gumroad checkout is not open yet.Read an excerpt while you’re here

Published by TenX Labs. Written by SKP. An independent guide to TypeSafe Jev.

Need the source templates too? Pro pack · $49

Pro launch price: $49 USD. Ebook plus four source templates; not included in the $29 ebook.

  • 01-support-triage.ts
  • 02-affiliate-publish-gate.ts
  • 03-tool-risk-gate.ts
  • 04-offer-picker.py

These are starting points to adapt and test, not production safety guarantees. Checkout details are pending.

03 / LOOK INSIDE, BEFORE YOU BUY

Less mystery. More working knowledge.

FROM CHAPTER 5.2Confidence gating
“The answer tells you what. Confidence (or distance from 0.5 for Noul) tells you whether to act.”

“Low confidence is not failure; it is a first-class outcome: review, escalate, or ask a different question.”

Smart If Statements · SKP

A short guide. The whole decision path.

From your first typed question to a policy you can test and refine.

01—04

The mental model, API, and primitives

05—08

Patterns, limitations, and improvement

09—11

Case studies, live lab, and getting started

See all 11 chapters
  1. Your first smart if statement
  2. Three primitives, three different questions
  3. Design the state before the question
  4. Make one real request
  5. Put uncertainty and overrides in code
  6. Worked pattern: an editorial publish gate
  7. Worked pattern: a tool-review boundary
  8. Select an offer without inventing dependencies
  9. Advanced: compose judgments without losing meaning
  10. Test the policy; evaluate the model separately
  11. Run a small live lab, then decide what to ship
Explore the ebook · $29

KEEP THE MENTAL MODEL

Not buying yet? Take the desk reference.

Three primitives. Four patterns. A before-production checklist.
A free Markdown download adapted from the ebook. No email required.

A FEW STRAIGHT ANSWERS

Know what
you’re getting.

Is this demo actually calling Jev?

Default examples use saved, illustrative answers and make no API call. Edit the text or select a non-default variant, then Run, to request live judgments through the Studio’s server. Live results are labeled. If a request fails, we show the error — never substitute saved answers for your edits. Moving the threshold only reruns local policy.

Do I need an API key or an account?

Not to use the Studio. Live runs use the host’s server-side TypeSafe key when configured. To integrate Jev into your own application, you’ll need your own TypeSafe access. The ebook does not include API credits or guarantee access to TypeSafe’s early-access service.

Does the ebook include the Pro templates?

The $29 ebook includes explanations, code examples, exercises, case studies, and a record-your-own live lab. The four separate TypeScript/Python source templates belong to the $49 Pro pack. These are distinct offers; the Studio does not imply that the templates come with the ebook-only purchase.

Is this a production-ready safety system?

No. These are teaching examples with illustrative thresholds. Jev’s judgments are probabilistic. Validate against your own labeled data, keep deterministic checks and side effects in code, and add human review where the stakes demand it. The Studio never executes the actions it displays.

Who made this?

TenX Labs publishes Smart If Studio and Smart If Statements. SKP is the author. This is an independent educational product about TypeSafe’s Jev, not an official TypeSafe product. Technical references are linked in the ebook.

KEEP THE IF. IMPROVE THE JUDGMENT.

Your next branch can be smarter.

Explore the ebook · $29