szl-typesafe-ai
TypeSafe/Jev: Choice/Noul/Score in code, not TypeScript types. System One models turn natural language and application state into probabilities that software can compose. Use when building routing, ranking, extraction, verification, or replacing an LLM prompt-and-parse step with structured decisions; also when brainstorming what TypeSafe could make possible. Do not use for TypeScript/Java/Rust static types, Zod/Pydantic/mypy/JSON Schema/protobuf codegen, or asking whether a pipeline is type-safe. At SZL, Jev is an optional second reader only.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- szl-typesafe-ai
- license
- Apache-2.0
- description
- TypeSafe/Jev: Choice/Noul/Score in code, not TypeScript types. System One models turn natural language and application state into probabilities that software can compose. Use when building routing, ranking, extraction, verification, or replacing an LLM prompt-and-parse step with structured decisions; also when brainstorming what TypeSafe could make possible. Do not use for TypeScript/Java/Rust static types, Zod/Pydantic/mypy/JSON Schema/protobuf codegen, or asking whether a pipeline is type-safe. At SZL, Jev is an optional second reader only.
03 SKILL.md 正文
TypeSafe at SZL — second reader, not the gate
Live docs are the source of truth. Read them as part of the task:
- Index: https://docs.typesafe.ai/llms.txt
- System One: https://docs.typesafe.ai/concepts/system-one.md
- How to build: https://docs.typesafe.ai/concepts/how-to-build-with-system-one.md
- State: https://docs.typesafe.ai/concepts/state.md
- Primitives: https://docs.typesafe.ai/primitives.md
- Choice: https://docs.typesafe.ai/primitives/choice.md
- Noul: https://docs.typesafe.ai/primitives/noul.md
- Score: https://docs.typesafe.ai/primitives/score.md
- Confidence: https://docs.typesafe.ai/confidence.md
- HTTP API: https://docs.typesafe.ai/api.md
- Python SDK: https://docs.typesafe.ai/sdk/python.md
- JavaScript SDK: https://docs.typesafe.ai/sdk/javascript.md
- Official skill (MIT): https://github.com/typesafe-ai/skills/blob/65a39f393687675ce170e6094757de20370365b9/skills/typesafe-ai/SKILL.md
This overlay does not replace those pages. If the index is unreachable, say so and do not invent version-dependent fields.
What Jev is allowed to do here
Code owns the workflow. Jev supplies typed judgments.
| Need | Primitive | Estate use |
|---|---|---|
| One of a defined set | Choice | evidence class: MEASURED / HOLD / BLOCK / UNAVAILABLE |
| Whether a condition holds | Noul | claims_live, invents_joules, treats_hf_as_source, lambda_as_theorem, unsigned_as_live |
| Degree on ordered levels | Score | overclaim_severity |
Pack: jev-plane/packs/overclaim_reader.json (szl.overclaim_reader.v1).
Reference implementation (not bundled with this skill): the Jev client and compose helpers in szl-typesafe-triage/jev-plane/plane.
Governed wrap: the separate szl-governed-decision skill (install it too).
Fail-closed contract (non-negotiable)
- Missing
TYPESAFE_API_KEY, HTTP 401/422/429/529, timeout, or malformed JSON → classUNAVAILABLE. Never PASS. Never MEASURED. - Local doctrine scanners stay deterministic code. Jev cannot raise an axis that code already blocked. Stricter of local class and reader wins.
- Jev never mints
LIVE. HTTP 200, Space Running, likes, and first paint are REACHABLE / MEASURED, not LIVE. - Jev never writes the Hugging Face Hub. GitHub
szl-holdingsis source. Hub is a demo mirror. jev_allow_aloneis always false.auto_mergeis always false.- Noul has no separate confidence. Values near 0.5 are HOLD.
noul >= 0.65on a forbidden claim → BLOCK. - Choice/Score
confidence < 0.55→ HOLD, even if the chosen label is MEASURED. - Energy / joules stay
UNAVAILABLEunless a live exporter delta exists. Do not write0. - Unsigned receipts stay UNSIGNED-honest. Signer ABSENT and DSSE-LIVE stay distinct.
- Pin a model id in receipts (
jev-1.13.0today). Do not treatjev-latestas a proof pin. - This skill is not TypeScript, Zod, Pydantic, mypy, or JSON Schema.
HTTP shape (current docs)
POST https://api.typesafe.ai/v1/systemone
Authorization: Bearer $TYPESAFE_API_KEY
{
"state": { "command_or_pr": { "text": "..." }, "measured": { } },
"model": "jev-1.13.0",
"questions": {
"evidence_class": {
"type": "choice",
"instructions": "...",
"criteria": { "MEASURED": "...", "HOLD": "...", "BLOCK": "...", "UNAVAILABLE": "..." }
},
"claims_live": { "type": "noul", "instructions": "..." }
}
}
Python: pip install typesafe-sdk then TypeSafeClient().system_one(state=..., questions={...})
with Noul, Choice, Score from typesafe_sdk. Env: TYPESAFE_API_KEY from
https://console.typesafe.ai/keys — never commit the key, never print it.
Compose rule
final = max_strict(local_class, jev_class)
BLOCK > HOLD > UNAVAILABLE > MEASURED
If Jev is UNAVAILABLE, local class still stands. Missing reader is not a veto of a clean local MEASURED scan, and it is not a license to stamp LIVE.
When not to load this skill
- Ordinary TypeScript / static-typing work
- Inventing a new product origin or flagship
- Publishing Hub cards as source of truth
- Closing P0s from a 200 OK alone
04 同仓库更多 Skills
szl-unit-invariants
Checks declared SI dimensions, allowlisted unit conversions, expected ranges and fixed pointwise invariants (equal, sum, difference, product, ratio) over selected measurement or simulation columns, flagging incompatible quantities, scale errors of 1000x and broken conservation checks. Use when merging instrument exports with different units, validating simulation output against conservation laws, or when a reviewer asks how unit errors were ruled out. Not an uncertainty-propagation or symbolic tool.
szl-uncertainty-lineage
Propagate declared measurement uncertainty through a small arithmetic dependency graph using a first-order delta approximation. Use when a researcher needs to see how corrected inputs or shared-source correlation change a reported standard uncertainty; require unit checks separately.
demo
暂无简介
demo
暂无简介
szl-skill-update-review
Compare pinned local skill packages using inventories and a retained lock; report changed skills, files, declarations and reruns without approving safety or validity.
szl-skill-conformance
Checks retained scientific skill-sharing evidence: exact local source and supplied host-export resource bytes, explicit import aliases, task and result digests, positive versus irrelevant-task trigger declarations, and optional artifact-to-trace byte bindings. Use when a shared skill appears imported but invocation is uncertain, when comparing retained trials across hosts, or when an update may invalidate an earlier result. Offline checking never executes the candidate and never certifies real host invocation or scientific correctness.