SSMDE – AI Routing and Escalation (3.2)

Turn raw model scores into accountable actions with bands, manifests, and stamps

Problem → Fit

Problem. A model returns a score or class, but ops still asks: auto-execute or send to a human? Logs lack behavioral honesty and replayable proof.
Fit. With SSMDE, each AI output carries a bounded stability dial, a policy band that drives routing, a manifest that fixes cutpoints and response windows, and a stamp that makes the decision auditable.


Invariant math (behavior dial for any model)

Use the portable, order-invariant pipeline to compute align for the specific output:

a_c   := clamp(a_raw, -1+eps_a, +1-eps_a)
u     := atanh(a_c)
U     += w * u
W     += w
align := tanh( U / max(W, eps_w) )

Map to a human/policy band:

band := band_from_align(align, manifest_id)

Collapse parity stays sacred: phi((m,a)) = m


How to derive a_raw (model-specific choices)

Pick one per manifest and declare it; then apply the invariant pipeline above.

a_raw := margin_to_threshold(score, threshold)        # classification margin
a_raw := calibrated_confidence(score_cal)             # post-calibration output
a_raw := -uncertainty_mc_dropout(var)                 # negative of predictive variance
a_raw := agreement_ensemble(p_win_consensus)          # ensemble agreement
a_raw := drift_inverse(d_data, baseline)              # inverse of input/data drift
semantics := "positive = within safe envelope; negative = unstable/uncertain"


What an AI SSMDE record looks like

Minimal (routing-only)

{
  value: { decision: "approve_loan", score: 0.912 },
  band:  "AMBER",
  manifest_id: "AI_LENDING_ROUTE_vX"
}

Full (audit-ready)

{
  value: { decision: "approve_loan", score: 0.912, featureset_id: "FS_23A" },
  align: +0.18,
  band:  "AMBER",
  manifest_id: "AI_LENDING_ROUTE_vX",
  stamp: "SSMCLOCK1|2025-11-05T08:42:11Z|sha256=7fa1...|prev=3bc9..."
}


Routing policy (declare once in the manifest)

bands := [
  { name:"GREEN", range:"[+0.30, +1.00)", action:"auto_execute" },
  { name:"AMBER", range:"[-0.20, +0.30)", action:"hold_for_human_review <= 30m" },
  { name:"RED",   range:"(-1.00, -0.20)", action:"block_execute; escalate_safety <= 10m" }
]

  • Labels are operational authority, not UI colors.
  • Response windows are contractual and time-bounded.

Producer workflow (model service)

[ ] Compute a_raw as declared (e.g., margin_to_threshold)
[ ] Run clamp → atanh → fuse → tanh  → align
[ ] Compute band via manifest cutpoints
[ ] Emit SSMDE block with manifest_id and stamp

Consumer workflow (orchestrator / guardrail)

[ ] Route by band (GREEN→auto; AMBER→human queue; RED→block)
[ ] Enforce response windows from manifest
[ ] Verify stamp chain, recompute band_from_align


Copy-ready examples

Auto-execute

{
  value: { decision: "flag_content_safe", score: 0.981 },
  align: +0.62,
  band:  "GREEN",
  manifest_id: "AI_MODERATION_ROUTE_vX",
  stamp: "SSMCLOCK1|2025-11-05T07:10:05Z|sha256=f51e...|prev=f0a2..."
}

Human review

{
  value: { decision: "approve_with_limits", score: 0.674 },
  align: +0.05,
  band:  "AMBER",
  manifest_id: "AI_CREDIT_ROUTE_vX",
  stamp: "SSMCLOCK1|2025-11-05T08:42:11Z|sha256=7fa1...|prev=3bc9..."
}

Block and escalate

{
  value: { decision: "override_denied", score: 0.541 },
  align: -0.47,
  band:  "RED",
  manifest_id: "AI_OVERRIDE_SAFETY_vX",
  stamp: "SSMCLOCK1|2025-11-05T09:02:33Z|sha256=2ad4...|prev=7fa1..."
}


Receiver-side verification (defense against vendor drift)

[ ] -1 < align < +1
[ ] band == band_from_align(align, manifest_id)
[ ] stamp.sha256 == sha256(bytes(canonical(record)))
[ ] chain(prev) verifies end-to-end
[ ] phi((m,a)) = m   # value untouched by align


Common pitfalls and fixes

  • Pitfall: Using ad-hoc smoothing instead of the bounded pipeline.
    Fix: Declare a_raw, then only clamp → atanh → fuse → tanh (or an explicitly equivalent, bounded, order-invariant method).
  • Pitfall: “GREEN means OK everywhere” without numeric ranges.
    Fix: Cutpoints and response windows live in the manifest tied to manifest_id.
  • Pitfall: Quietly tightening thresholds mid-incident.
    Fix: Mint a new manifest_id; stamps expose the timeline.
  • Pitfall: Assuming stamped = correct.
    Fix: Stamps prove what was declared, when—not physical truth. Keep separate calibration/QA.

Quick start (Day 1 → Day 30)

Day 1

emit { value:{decision:<str>, score:<num>}, band:"<GREEN|AMBER|RED>", manifest_id:"<ID>" }

Day 7

add align; begin stamping:
stamp := "SSMCLOCK1|<utc_iso>|sha256=<...>|prev=<...>"

Day 30

enforce response windows; run weekly replay:
verify band_from_align and stamp chain vs manifest


One-line takeaway

SSMDE turns model outputs into accountable events: bounded stability, declared routing authority, fixed policy, and stamped proof—ready for regulated operations.


Navigation

Previous: SSMDE – Finance / Operations Stability (3.1)
Next: SSMDE – Industrial / Hardware Health (3.3)


Directory of Pages
SSMDE – Table of Contents