jevbooks

The 16 Jev design patterns

Ways to compose Jev decisions in code. Each one is a problem you will run into, the way out, and the projects that took it.

What goes to the model, what stays in code

  1. historylast msg

    Viewfinder

    State minimalism · 取景框

    Frame only what is being judged

  2. 1 candidate2 candidate3 candidate4 candidatepick 3

    Menu

    Candidate enumeration · 菜单

    Order only what is on the menu

  3. rulesnoulnoulscore

    Question bank

    Rules as questions · 题库

    One rule, one question

  4. pickLLM"paris"check✓

    Ghostwriter

    Decide/generate split · 代笔

    Jev decides, the ghostwriter writes

How one request is shaped

  1. statenoulchoicescorenoul

    Questionnaire

    Flat fan-out · 问卷

    One thing per question, all at once

  2. stateoptargettargettarget

    Prefetch

    Speculative heads · 预问

    Ask every branch, read the one you take

  3. action?done?your code

    Blind review

    Cross-check · 盲审

    The reviewer never sees the answer

  4. rulesallowallowLLM200308

    Funnel

    Cascade · 漏斗

    Cheap first, expensive last

How a probability becomes an action

  1. .45.8allowaskdenyallowaskdeny

    Traffic light

    Tiered thresholds · 信号灯

    Red stops, amber looks, green goes

  2. 0.51unknown

    Grey zone

    No-judgment band · 灰区

    0.5 is not medium, it is unknown

  3. .6.8exitenteronoff

    Thermostat

    Hysteresis · 恒温器

    On at 20°, off at 22°

  4. .81.12.55min · max · Σ.12

    Scorecard

    Composite scoring · 记分卡

    The model scores, code adds up

How you know it holds

  1. answerΣp = 1c ∈ opts0≤p≤1

    Inspection

    Contract validation · 验货

    A missing part is not a zero

  2. timeoutallowdenyallowdeny--on-error allow--on-error deny

    Fail open, fail closed

    Failure-mode knob · 常开常闭

    Decide now which way the door fails

  3. .81.12.55replaychanged: 12

    Flight recorder

    Journal & replay · 黑匣子

    Record the probability, not the action

  4. 01synthetic distribution

    Check-up

    Measured calibration · 体检

    Questions get check-ups too