Skip to content

Jev access and conformance contract — Release 2 J01

Note

Mirrored from docs/JEV-ACCESS-CONTRACT.md — edit the source, then run python3 bin/docs_build.py build.

Status on 2026-09-25: offline adapter contract only. (2026-10-04: a gated router-study sender now exists; see Router study. Everything else on this page still describes J01.) The user reports TypeSafe access configured locally, but this work did not inspect a credential or account, call TypeSafe, transmit a payload, or incur provider usage. All provider behavior below is documented, not observed against this account. Synthetic fixture results establish only local adapter behavior. Jev has no approved routing or activation scope; Release 1 remains the authority for admission, decisions, policy and rollback.

Published interface and local mapping

Concern TypeSafe documentation reviewed 2026-09-25 J01 interpretation / observed status
Transport and credentials POST https://api.typesafe.ai/v1/systemone accepts JSON state, model, and a nonempty map of named questions, with Authorization: Bearer <API_KEY>. GET /v1/models lists names available to an authenticated account. API reference, model listing A future authorized transport could use stdlib HTTP. J01 only serializes and maps synthetic fixtures: it has no HTTP client, SDK import or key lookup. Account availability and authentication are unobserved.
Question kinds noul gives a probability of yes; choice gives one selected option, per-option probabilities and confidence; score gives an expected numerical score, per-level probabilities, legend and confidence. A request may contain mixed named questions; answers return under those names. API reference, primitives V1 boolean maps to Noul, choice to Choice, and ordinal to Score only within supported cardinality. Preserve the original V1 question/rubric and qualified identity. Independent coexisting predicates remain separate booleans. No live result has validated any mapping.
Cardinality Choice allows at most 255 options. Score accepts 2–10 ordered levels. The HTTP schema identifies nonempty questions but does not state a numerical question-count cap. API reference, OpenAPI schema V1 bounds each question to 2–16 outcomes and a request to 32 questions. A Choice with 2–16 options fits the documented maximum; an Ordinal with 11–16 levels is unsupported, never merged, truncated or recast as Choice. A total request count of 32 is not claimed to fit a provider cap.
State and size State is a string, JSON object, or array. Jev 1.13 lists text input, 64k tokens for state plus all questions and 32k for state plus the longest question. Neither published bound is a byte or character limit. API reference, models The local V1 size and field bounds still apply. An offline fixture cannot establish TypeSafe tokenization or admission for an arbitrary real state; keep a conservative local ceiling and refuse unknown/oversize payloads before any future send. No image, audio, video or binary input.
Response and identity Response has model, answers, and usage (input_tokens, output_tokens). The docs say alias names can move and model reports the versioned model actually used. jev-latest currently points to jev-1.13.0; GET /v1/models currently lists aliases, and versioned IDs can be accepted even if absent from that list. API reference, models Pin an allowed version for an authorized run; retain requested, dispatched and observed model separately. An alias or a request pin is not proof of the observed version. No per-answer response version is specified; record the local provider adapter contract version separately. Version change requires calibration/applicability review.
Distributions and confidence Choice and Score return distributions and a separate confidence. Noul supplies only the yes probability. The API describes Choice/Score probability sums as 1 and confidence as derived from the distribution. API reference, confidence For Noul, form the V1 raw distribution as false: 1-p, true: p; leave vendor confidence null. For Choice/Score, retain the full vendor distribution and vendor confidence separately from any local calibrated distribution. Pick the highest-probability V1 outcome, with stable original-order tie handling; do not turn Score's expected numerical value into a category by rounding. V1's exact key, finite-number, range and sum checks may reject a vendor result. Never repair invalid distributions silently.
Rate and errors Published Jev 1.13 limits are 250,000 tokens/second and 1,200 requests/minute; TypeSafe says these can change without notice. The API names 401 invalid key, 422 validation, 429 rate limit and 529 overload, and recommends exponential backoff for 429/529. models, API reference These are documentation snapshots, not measured account quotas. A future transport needs bounded timeout/retry, shared-limit admission and circuit breaking. 401/422 should fail closed; ambiguous transport failures cannot be treated as free or safely replayed. Never log an unreviewed response body, which may echo invalid input.
Billing TypeSafe's current public model page says input-token billing and free output tokens; its customer agreement describes account credits, order-specific usage terms and account-dependent credit consumption. The response reports token counts, not a billed USD amount. models, customer agreement J01's permitted spend is $0, regardless of credit balance. Do not infer billed cost from token counts, promotional credits or marketing price. Any future provider price and accounting basis need a provider-owned, reviewed decision; no Claude/Copilot/Codex/Cursor pricing file is a Jev authority. Account terms and billable treatment remain unobserved.
Retention and privacy TypeSafe says it does not train model weights on customer Input without consent. Its privacy policy covers submitted input, usage and device data, describes purpose-based retention, and disclaims a security/privacy guarantee. Its agreement allows certain Customer Data processing for telemetry, abuse and legal purposes; the DPA describes retention as long as necessary. The docs offer enterprise zero data retention separately. models, legal overview, privacy policy, customer agreement, DPA No zero-retention entitlement has been verified for this account. No shape matcher can guarantee complete redaction. Treat every state, instruction and criterion as an external disclosure if a later send is approved. Local gitignore and store permissions do not govern provider retention.

This table describes published material as of the review date. TypeSafe may update its API or limits; the agreement explicitly anticipates incompatible API updates. Recheck the official documentation and applicable account terms before any live use. TypeSafe's public model price is a dated provider statement, not a Polytropos pricing constant or an observed charge.

Payload and access gate for a possible later probe

The current user choice permits synthetic fixtures only and no external probe. Local credential configuration is user reported and unverified. J01 must not read the credential merely to demonstrate it exists. A later live probe needs its own authorization for the exact action and must first present a reviewable, byte-bounded payload and spend ceiling. A successful connection would establish only the exercised API surface, not quality, safety, retention, broader conformance or permission to activate.

The proposed first probe, not approved to send, is one request with synthetic content and all three documented question types. The model pin is the 2026-09-25 public model listing, not an account observation; recheck it before dispatch. The application body below is the exact proposed UTF-8 JSON byte sequence, with no trailing newline: 1,107 bytes, SHA-256 8643de1ad1b22d7a0b9da2cf8b782acb13047d91e3641741bb320ad29c8b9151. jev_decision_provider.serialize_payload produces these canonical bytes for offline review; the J01 fixture test fails if the documented bytes drift. No sender is present.

{"model":"jev-1.13.0","questions":{"failure_cause@v1":{"criteria":{"capability_limit":"The environment and context are ready, but reasoning capacity is insufficient.","environment":"A required environment setting is absent.","missing_context":"Task context is missing but the environment is ready."},"instructions":"Which category best explains the synthetic failure?","type":"choice"},"remediation_complexity@v1":{"criteria":["Supply one missing setting; no code changes.","Inspect and adjust several settings or interfaces.","Design and verify a cross-module change."],"instructions":"How complex is the next remediation step for this synthetic failure?","type":"score"},"should_escalate@v1":{"criteria":{"false":"The missing setting must be supplied; a stronger model is not required.","true":"A stronger model is required to continue the sample task."},"instructions":"Does this synthetic failure require a stronger reasoning model rather than an environment fix?","type":"noul"}},"state":{"failure":"A sample build stops before compiling because SAMPLE_SETTING is missing.","fixture":"synthetic-only"}}

The proposed envelope is one HTTPS POST to https://api.typesafe.ai/v1/systemone, at most once, with no automatic retry or redirect and a ten-second timeout. This is a call-count/byte boundary, not an enforceable dollar ceiling or an authenticated entitlement check; account terms and billing remain unknown. No transport or credential-loading command is implemented or run by this offline J01 slice.

Only the exact reviewed JSON bytes, HTTPS destination, Content-Type: application/json, and Authorization: Bearer header would be sent. The credential value must come from a locally controlled secret source at dispatch time, never from this file, a fixture, command output, URL, log, commit, or chat. A GET /v1/models lookup is a separate outbound request and needs inclusion in that authorization if used. No real failure text, transcript, path, account identifier, project data, raw trace, tool output, evidence record or private store contents belong in this first payload. The synthetic text above is a candidate contract, not approval to send it.

Before any later request containing real failure text, a human must inspect the exact transformed field values and complete serialized payload, the intended endpoint and destination, provider/account retention terms, credential source, call count, timeout/retry bounds, and a dollar ceiling that can be enforced before dispatch. The producer must select an explicitly vendor-eligible V1 request and allowed question sensitivities, allowlist only required fields, redact every free-text leaf with bin/redact.py before bounding it, count redactions by kind rather than value, reject unresolved restricted/project-local content, and show the transformed payload for review. The matcher catches known credential shapes; it cannot prove that names, novel secrets, proprietary details or indirect identifiers are gone. If the exact reviewed payload changes, review again. A secret found or a size limit exceeded is a refusal, not permission to silently trim semantic evidence.

Any live probe also requires a verified account/model entitlement, an explicit provider-owned admission decision covering worst-case requests and retries, no automatic credit refill exposure beyond the approved ceiling, and a recorded owner for cost evidence. An unknown price, quota, token count, credit conversion, duplicate-charge policy or billing basis blocks paid dispatch; usage.input_tokens alone is not a bill. Request failures must report only bounded status and safe error categories locally; raw response bodies, request bodies and credentials must not enter failure logs. A probe remains advisory and cannot alter routing, calibration, capability rows or the D23 approval state.

Router study — the one live sender (2026-10-04)

bin/jev_router.py is the only code that can send to TypeSafe. bin/jev_decision_provider.py stays offline, and the router reuses its serializer and strict mapper. On 2026-10-04 the user authorized building the sender and a router study for the route experiment. Sending stays gated on approval of the exact bytes:

  • Payload. Each experiment task gets one V1 request with four public questions: two choices over a fixed route menu of at most 16 arms, one 5-level score and one noul. The state holds the task's committed prompt (public in this repo) and title. Both are redacted with bin/redact.py before the prompt is split into chunks within the V1 state bound. Each route is described only by its a-priori shape, models, tiers and pricing-profile estimate, never by a measured result. prepare writes the canonical bytes, their sizes and digests, redaction counts by kind, and a manifest sha. show prints the exact bytes.
  • Gate. send refuses unless --approve equals the manifest sha and every payload still matches its digest. It also refuses unless the pending calls fit --max-calls, which is checked before anything is sent. Each task gets one HTTPS POST with a timeout, no redirect and no retry. An O_EXCL marker is written before the call, and a call with any record is never re-sent.
  • Credential. The key is read at send time from $TYPESAFE_API_KEY, or else TYPESAFE_API_KEY in ~/.config/polytropos/.env (--env-file overrides). It is never printed, logged, stored or placed in a URL. An error message names only the variable and the file.
  • Records. The private run store (routeruns/jev-router/<study>/) keeps the observed model, token usage, the documented answer fields, and the names (never values) of any undocumented fields. A failure records only its HTTP status and an error kind. The strict V1 mapper decides conformance. If it refuses, Jev's own choice field is used and labelled non-conformant, never repaired.
  • Cost and authority. Usage is reported as Jev's token counts. No pricing file covers Jev, so no dollar or credit figure is derived. Picks are experiment arms only; they never change routing policy, calibration or capability rows.

J01 acceptance boundary

Offline tests should prove that unsupported 11–16-level ordinals and malformed, mismatched, incomplete or out-of-range synthetic vendor envelopes fail closed with typed contract errors; no default import opens a network or requires a key. J01 implements no outbound transport, so it cannot prove that real failure text would be adequately redacted, that a credential/admission gate works for live calls, or that TypeSafe accepts a payload. The synthetic mapper checks the response model and usage shapes but intentionally leaves observed identity and usage null; a future live path must retain the actual response model and usage, check version applicability, and distinguish them from request pins before recording an observation. Those are separate, later acceptance requirements, not claims inferred from synthetic fixtures. Test results are local mechanics, never evidence about the TypeSafe service. The V1 DecisionRequest and DecisionResult parsers remain authoritative for correlation, question/version identity, full distributions, status, observed model and usage basis.

Still unknown: whether the configured account can authenticate, which model names it can use, account-specific quota and billing terms, whether any enterprise retention term applies, the ordinary retention period for request content, precise server behavior at V1 question counts and local size boundaries, a stable error-body schema, idempotency semantics, a latency service level, and how a timed-out request is charged. Those require separately scoped evidence; the API's documented status codes do not settle them. J02 comparison and J03 activation remain independent later decisions.