seldon-runtime 0.1.1.dev0__tar.gz → 0.1.1.dev1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. seldon_runtime-0.1.1.dev1/CHANGELOG.md +35 -0
  2. seldon_runtime-0.1.1.dev1/MANIFEST.in +4 -0
  3. {seldon_runtime-0.1.1.dev0/seldon_runtime.egg-info → seldon_runtime-0.1.1.dev1}/PKG-INFO +92 -7
  4. {seldon_runtime-0.1.1.dev0 → seldon_runtime-0.1.1.dev1}/README.md +89 -6
  5. {seldon_runtime-0.1.1.dev0 → seldon_runtime-0.1.1.dev1}/pyproject.toml +2 -1
  6. {seldon_runtime-0.1.1.dev0 → seldon_runtime-0.1.1.dev1}/runtime_modules.txt +1 -0
  7. seldon_runtime-0.1.1.dev1/schemas/compiler-artifact-v1.json +1663 -0
  8. seldon_runtime-0.1.1.dev1/scripts/export_artifact_schema.py +38 -0
  9. {seldon_runtime-0.1.1.dev0 → seldon_runtime-0.1.1.dev1}/seldon_runtime/__init__.py +1 -1
  10. seldon_runtime-0.1.1.dev1/seldon_runtime/artifact.py +336 -0
  11. {seldon_runtime-0.1.1.dev0 → seldon_runtime-0.1.1.dev1}/seldon_runtime/contract_versions.py +1 -0
  12. {seldon_runtime-0.1.1.dev0 → seldon_runtime-0.1.1.dev1}/seldon_runtime/contracts.py +1 -0
  13. {seldon_runtime-0.1.1.dev0 → seldon_runtime-0.1.1.dev1}/seldon_runtime/executor.py +4 -1
  14. {seldon_runtime-0.1.1.dev0 → seldon_runtime-0.1.1.dev1}/seldon_runtime/output_budget.py +22 -5
  15. {seldon_runtime-0.1.1.dev0 → seldon_runtime-0.1.1.dev1}/seldon_runtime/semantic.py +62 -4
  16. {seldon_runtime-0.1.1.dev0 → seldon_runtime-0.1.1.dev1/seldon_runtime.egg-info}/PKG-INFO +92 -7
  17. {seldon_runtime-0.1.1.dev0 → seldon_runtime-0.1.1.dev1}/seldon_runtime.egg-info/SOURCES.txt +7 -0
  18. {seldon_runtime-0.1.1.dev0 → seldon_runtime-0.1.1.dev1}/seldon_runtime.egg-info/requires.txt +3 -0
  19. seldon_runtime-0.1.1.dev1/tests/fixtures/compiler-artifact/manifest.json +90 -0
  20. seldon_runtime-0.1.1.dev1/tests/test_artifact.py +407 -0
  21. seldon_runtime-0.1.1.dev1/tests/test_correctness_repairs.py +161 -0
  22. {seldon_runtime-0.1.1.dev0 → seldon_runtime-0.1.1.dev1}/tests/wheel_probe.py +44 -0
  23. seldon_runtime-0.1.1.dev0/MANIFEST.in +0 -2
  24. {seldon_runtime-0.1.1.dev0 → seldon_runtime-0.1.1.dev1}/LICENSE +0 -0
  25. {seldon_runtime-0.1.1.dev0 → seldon_runtime-0.1.1.dev1}/NOTICE +0 -0
  26. {seldon_runtime-0.1.1.dev0 → seldon_runtime-0.1.1.dev1}/seldon_runtime/attempt_bound.py +0 -0
  27. {seldon_runtime-0.1.1.dev0 → seldon_runtime-0.1.1.dev1}/seldon_runtime/components.py +0 -0
  28. {seldon_runtime-0.1.1.dev0 → seldon_runtime-0.1.1.dev1}/seldon_runtime/conditional.py +0 -0
  29. {seldon_runtime-0.1.1.dev0 → seldon_runtime-0.1.1.dev1}/seldon_runtime/deadline.py +0 -0
  30. {seldon_runtime-0.1.1.dev0 → seldon_runtime-0.1.1.dev1}/seldon_runtime/gliner_normalize.py +0 -0
  31. {seldon_runtime-0.1.1.dev0 → seldon_runtime-0.1.1.dev1}/seldon_runtime/instruction_envelope.py +0 -0
  32. {seldon_runtime-0.1.1.dev0 → seldon_runtime-0.1.1.dev1}/seldon_runtime/json_pointer.py +0 -0
  33. {seldon_runtime-0.1.1.dev0 → seldon_runtime-0.1.1.dev1}/seldon_runtime/local.py +0 -0
  34. {seldon_runtime-0.1.1.dev0 → seldon_runtime-0.1.1.dev1}/seldon_runtime/local_models.py +0 -0
  35. {seldon_runtime-0.1.1.dev0 → seldon_runtime-0.1.1.dev1}/seldon_runtime/local_telemetry.py +0 -0
  36. {seldon_runtime-0.1.1.dev0 → seldon_runtime-0.1.1.dev1}/seldon_runtime/native_schema.py +0 -0
  37. {seldon_runtime-0.1.1.dev0 → seldon_runtime-0.1.1.dev1}/seldon_runtime/program_validation.py +0 -0
  38. {seldon_runtime-0.1.1.dev0 → seldon_runtime-0.1.1.dev1}/seldon_runtime/provider_error.py +0 -0
  39. {seldon_runtime-0.1.1.dev0 → seldon_runtime-0.1.1.dev1}/seldon_runtime/research_kernels.py +0 -0
  40. {seldon_runtime-0.1.1.dev0 → seldon_runtime-0.1.1.dev1}/seldon_runtime/runner.py +0 -0
  41. {seldon_runtime-0.1.1.dev0 → seldon_runtime-0.1.1.dev1}/seldon_runtime/telemetry.py +0 -0
  42. {seldon_runtime-0.1.1.dev0 → seldon_runtime-0.1.1.dev1}/seldon_runtime/templates.py +0 -0
  43. {seldon_runtime-0.1.1.dev0 → seldon_runtime-0.1.1.dev1}/seldon_runtime/tool_wire.py +0 -0
  44. {seldon_runtime-0.1.1.dev0 → seldon_runtime-0.1.1.dev1}/seldon_runtime.egg-info/dependency_links.txt +0 -0
  45. {seldon_runtime-0.1.1.dev0 → seldon_runtime-0.1.1.dev1}/seldon_runtime.egg-info/top_level.txt +0 -0
  46. {seldon_runtime-0.1.1.dev0 → seldon_runtime-0.1.1.dev1}/setup.cfg +0 -0
  47. {seldon_runtime-0.1.1.dev0 → seldon_runtime-0.1.1.dev1}/tests/fixtures/digest_goldens.json +0 -0
  48. {seldon_runtime-0.1.1.dev0 → seldon_runtime-0.1.1.dev1}/tests/fixtures/local_gliner_raw.json +0 -0
  49. {seldon_runtime-0.1.1.dev0 → seldon_runtime-0.1.1.dev1}/tests/fixtures/serving_compat/function-plan-v1.json +0 -0
  50. {seldon_runtime-0.1.1.dev0 → seldon_runtime-0.1.1.dev1}/tests/fixtures/serving_compat/function-plan-v2.json +0 -0
  51. {seldon_runtime-0.1.1.dev0 → seldon_runtime-0.1.1.dev1}/tests/fixtures/serving_compat/function-plan-v3.json +0 -0
  52. {seldon_runtime-0.1.1.dev0 → seldon_runtime-0.1.1.dev1}/tests/fixtures/serving_compat/function-plan-v4.json +0 -0
  53. {seldon_runtime-0.1.1.dev0 → seldon_runtime-0.1.1.dev1}/tests/fixtures/serving_compat/function-plan-v5.json +0 -0
  54. {seldon_runtime-0.1.1.dev0 → seldon_runtime-0.1.1.dev1}/tests/installed_local_probe.py +0 -0
  55. {seldon_runtime-0.1.1.dev0 → seldon_runtime-0.1.1.dev1}/tests/test_contracts.py +0 -0
  56. {seldon_runtime-0.1.1.dev0 → seldon_runtime-0.1.1.dev1}/tests/test_gliner_normalize.py +0 -0
  57. {seldon_runtime-0.1.1.dev0 → seldon_runtime-0.1.1.dev1}/tests/test_import_closure.py +0 -0
  58. {seldon_runtime-0.1.1.dev0 → seldon_runtime-0.1.1.dev1}/tests/test_install.py +0 -0
  59. {seldon_runtime-0.1.1.dev0 → seldon_runtime-0.1.1.dev1}/tests/test_local.py +0 -0
  60. {seldon_runtime-0.1.1.dev0 → seldon_runtime-0.1.1.dev1}/tests/test_runner.py +0 -0
@@ -0,0 +1,35 @@
1
+ # Changelog
2
+
3
+ ## Unreleased — standalone compiler artifact reader, 2026-11-30
4
+
5
+ - Add a separate `compiler-artifact-v1` reader for a bounded, inline JSON manifest
6
+ and caller-owned asynchronous model bindings. Validate hashes, explicit semantic
7
+ versions, plan/spec compatibility, model capabilities and context/output bounds
8
+ before dispatch; no endpoint or credential is loaded from an artifact.
9
+ - Preserve the hosted `Runner`, bundle eligibility, authorization, expiry and
10
+ refresh behavior. Standalone artifacts have no control-plane or telemetry calls.
11
+ - Reject research code, native protocols not yet supported by this handoff, external
12
+ file references, symlinks, oversized manifests and secret-bearing configuration
13
+ fields. Hashes establish integrity relative to a manifest, not publisher trust;
14
+ prompts and specs remain potentially sensitive customer data.
15
+ - This is a reader implementation awaiting integration with the compiler exporter.
16
+ No package has been published, no live model qualified, and no new serving
17
+ capability has been enabled in hosted Seldon.
18
+
19
+ ## 0.1.1.dev1 — unreleased, 2026-11-27
20
+
21
+ - Add `optimizer-correctness-v8` execution readers without changing historical
22
+ plan or spec digests.
23
+ - Add the explicit `chunk_text.token_boundary: "utf8-v2"` contract. Individual
24
+ tokenizer tokens can contain incomplete UTF-8 characters; decoding those tokens
25
+ independently previously counted the remaining document as one token. New
26
+ marked chunks keep complete source characters, full coverage and the actual
27
+ requested token budget. Unmarked chunks retain historical boundaries.
28
+ - Add `context_measured_v3`: native Fastino GLiNER extraction reserves its
29
+ inherited output allowance for accounting and response bounds without subtracting
30
+ it from the encoder input window. The actual provider input is still checked;
31
+ other protocols retain their existing context rules. Older policy values do
32
+ not change. The provider's encoder input contract is documented at
33
+ <https://docs.fastino.ai/inference/chat-completions>.
34
+ - This source revision is not a publication or production rollout. It requires
35
+ compatible hosted readers before new marked runs are created.
@@ -0,0 +1,4 @@
1
+ include LICENSE NOTICE README.md CHANGELOG.md runtime_modules.txt
2
+ recursive-include tests *.py *.json
3
+ recursive-include schemas *.json
4
+ include scripts/export_artifact_schema.py
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: seldon-runtime
3
- Version: 0.1.1.dev0
3
+ Version: 0.1.1.dev1
4
4
  Summary: Standalone Seldon Functions interpreter and local execution client
5
5
  License-Expression: Apache-2.0
6
6
  Project-URL: Source, https://github.com/Deep-Insight-Labs/seldon-runtime
@@ -19,6 +19,8 @@ Requires-Dist: pytest>=8; extra == "dev"
19
19
  Requires-Dist: ruff==0.16.4; extra == "dev"
20
20
  Requires-Dist: build>=1; extra == "dev"
21
21
  Requires-Dist: twine>=6; extra == "dev"
22
+ Provides-Extra: schema
23
+ Requires-Dist: pydantic==2.14.4; extra == "schema"
22
24
  Dynamic: license-file
23
25
 
24
26
  # Seldon Runtime
@@ -32,27 +34,28 @@ Optimization and hosted comparison happen on Seldon. The runtime contains no
32
34
  optimizer, billing service, dashboard or server infrastructure. Its first local
33
35
  model adapter uses pinned GLiNER2 open weights for extraction and classification.
34
36
 
35
- This is a source preview. A source checkout or successful build does not establish
36
- PyPI publication, production feature activation, or quality on your own inputs.
37
+ The first preview, [\`0.1.1.dev0\`](https://pypi.org/project/seldon-runtime/0.1.1.dev0/),
38
+ is available on PyPI. Local execution requires a Seldon deployment with bundle
39
+ delivery enabled for your workspace.
37
40
 
38
41
  ## Install
39
42
 
40
43
  Python 3.11 or later is required. The base interpreter uses Pydantic, jsonschema
41
44
  and tiktoken. Local GLiNER inference additionally needs PyTorch and the model extra.
42
- Before publication, replace the package name below with a locally built wheel.
45
+ The commands below pin the published preview.
43
46
 
44
47
  On Linux, install CPU PyTorch explicitly to avoid downloading CUDA dependencies:
45
48
 
46
49
  ```sh
47
50
  python -m pip install torch --index-url https://download.pytorch.org/whl/cpu
48
- python -m pip install 'seldon-runtime[gliner]'
51
+ python -m pip install 'seldon-runtime[gliner]==0.1.1.dev0'
49
52
  ```
50
53
 
51
54
  On macOS:
52
55
 
53
56
  ```sh
54
57
  python -m pip install torch
55
- python -m pip install 'seldon-runtime[gliner]'
58
+ python -m pip install 'seldon-runtime[gliner]==0.1.1.dev0'
56
59
  ```
57
60
 
58
61
  In a uv environment, use `uv pip install` for the same commands. In a Linux uv
@@ -60,7 +63,7 @@ project, persist the dedicated torch index:
60
63
 
61
64
  ```sh
62
65
  uv add torch --index pytorch=https://download.pytorch.org/whl/cpu
63
- uv add 'seldon-runtime[gliner]'
66
+ uv add 'seldon-runtime[gliner]==0.1.1.dev0'
64
67
  ```
65
68
 
66
69
  The model weights and tokenizer files download on first use. Cache the pinned
@@ -135,6 +138,88 @@ Always close the runner to stop background tasks and attempt a bounded flush.
135
138
 
136
139
  ## Development
137
140
 
141
+ ### Standalone compiler artifacts (unreleased)
142
+
143
+ The separate compiler-artifact reader executes locally compiled user-owned plans.
144
+ It does not use `Runner.load`, hosted Function IDs, a Seldon API key, refresh or
145
+ telemetry. This reader is under development; a public compiler/exporter is not yet
146
+ available. The existing hosted-bundle instructions above remain unchanged.
147
+
148
+ An export directory contains one `manifest.json`, at most 2 MiB. Plan and spec are
149
+ inline; no file paths, URLs, credentials or executable Python are supported. The
150
+ generated [JSON schema](schemas/compiler-artifact-v1.json) defines the envelope.
151
+ Schema generation uses a separately pinned development dependency because supported
152
+ Pydantic versions emit different schema descriptions. Runtime compatibility remains
153
+ `pydantic>=2.2`; all supported versions run the semantic reader tests. Regenerate in
154
+ a development environment with `python -m pip install '.[schema]'` followed by
155
+ `python -m scripts.export_artifact_schema`. CI checks the committed schema using
156
+ that generator's `--check` mode, independently of the runtime compatibility matrix.
157
+
158
+ The manifest freezes the compiler version, exact runtime version (`0.1.1.dev1`),
159
+ optimizer contract (v1–v8), evaluation semantics, instruction envelope, conditional
160
+ permission, plan/spec hashes, model requirements and a small evidence summary.
161
+ `manifest_digest` is the canonical runtime `digest` of all raw manifest fields
162
+ except `manifest_digest`. Plan/spec digests use their validated model `.digest`.
163
+ Omitted/default fields therefore follow the existing runtime serialization contract.
164
+
165
+ Supply endpoint configuration and credentials through your own transport, never
166
+ through the artifact. For example, given an independently configured asynchronous
167
+ `customer_provider(payload)` that returns decoded JSON output:
168
+
169
+ ```python
170
+ from seldon_runtime.artifact import ModelRequirements, RuntimeBinding, load_artifact
171
+
172
+ artifact = load_artifact("./selected-pipeline")
173
+ configured_model = ModelRequirements(
174
+ protocol="openai-chat-completions",
175
+ capabilities=("chat", "structured_output"),
176
+ context_length=8192,
177
+ max_output_tokens=256,
178
+ revision="deployment-1",
179
+ )
180
+ bindings = {"custom": RuntimeBinding(configured_model, customer_provider)}
181
+ result = await artifact.run({"text": "customer input"}, bindings=bindings, timeout=55)
182
+ ```
183
+
184
+ The binding keys must exactly cover the models used by the plan and its explicit
185
+ reference fallback. Configure capabilities and revision from your actual endpoint;
186
+ copying them from an untrusted artifact does not qualify a model. Protocol/revision
187
+ and output ceiling must match, capabilities must cover the requirements, and context
188
+ must be at least the declared size. The reader applies the frozen output/context
189
+ policy before invoking a provider; your transport still owns TLS, credential origin
190
+ binding, response-size limits and protocol decoding. Known transport failures use
191
+ `ProviderError`; untyped failures stop without automatic fallback or retry.
192
+
193
+ This initial handoff supports OpenAI-compatible chat steps and supported deterministic
194
+ operators, including versioned chunking/conditional graphs. Native `choice`/`extract`
195
+ adapters and research `generated_kernel` steps are explicitly rejected. A model
196
+ revision is an operator-supplied identity, not proof of immutable upstream weights.
197
+ Artifacts may contain sensitive prompts/spec text. Digest checks detect corruption,
198
+ not malicious replacement of both the content and its digest; trust the producer
199
+ separately. Linux/macOS filesystem APIs are used; Windows is not qualified.
200
+
201
+ The standalone fixture in `tests/fixtures/compiler-artifact` is generated from the
202
+ runtime test factory, pending a real compiler producer. Installed wheel/sdist probes
203
+ exercise its nonconstant execution through the real interpreter with a deterministic
204
+ provider callback. They do not qualify a live model, compiler selection quality or
205
+ the complete compiler-to-runtime lifecycle.
206
+
207
+ ### Interpreter development
208
+
209
+ The unreleased `0.1.1.dev1` readers support `optimizer-correctness-v8`.
210
+ New `chunk_text` steps may freeze `token_boundary: "utf8-v2"` with `unit: "tokens"`;
211
+ this counts tokenizer tokens without splitting UTF-8 characters. Steps without
212
+ the marker keep their historical chunk boundaries. The kernel still enforces its
213
+ 32-chunk cap, and hosted plans may set a lower fan-out cap.
214
+
215
+ `context_measured_v3` treats native Fastino GLiNER extraction as an encoder input
216
+ window. Its inherited LLM output allowance still bounds financial reservations,
217
+ response sizing and admission tokens; it no longer consumes encoder input context.
218
+ Other native protocols retain `context_measured_v2` context rules. These policies
219
+ are frozen identities: existing bundles and requests keep their saved behavior.
220
+ See [the changelog](CHANGELOG.md). Upgrade readers before creating these new
221
+ contracts; an old runtime must not serve a new marked plan or policy.
222
+
138
223
  ```sh
139
224
  python -m pip install -e '.[dev]'
140
225
  python -m ruff check .
@@ -9,27 +9,28 @@ Optimization and hosted comparison happen on Seldon. The runtime contains no
9
9
  optimizer, billing service, dashboard or server infrastructure. Its first local
10
10
  model adapter uses pinned GLiNER2 open weights for extraction and classification.
11
11
 
12
- This is a source preview. A source checkout or successful build does not establish
13
- PyPI publication, production feature activation, or quality on your own inputs.
12
+ The first preview, [\`0.1.1.dev0\`](https://pypi.org/project/seldon-runtime/0.1.1.dev0/),
13
+ is available on PyPI. Local execution requires a Seldon deployment with bundle
14
+ delivery enabled for your workspace.
14
15
 
15
16
  ## Install
16
17
 
17
18
  Python 3.11 or later is required. The base interpreter uses Pydantic, jsonschema
18
19
  and tiktoken. Local GLiNER inference additionally needs PyTorch and the model extra.
19
- Before publication, replace the package name below with a locally built wheel.
20
+ The commands below pin the published preview.
20
21
 
21
22
  On Linux, install CPU PyTorch explicitly to avoid downloading CUDA dependencies:
22
23
 
23
24
  ```sh
24
25
  python -m pip install torch --index-url https://download.pytorch.org/whl/cpu
25
- python -m pip install 'seldon-runtime[gliner]'
26
+ python -m pip install 'seldon-runtime[gliner]==0.1.1.dev0'
26
27
  ```
27
28
 
28
29
  On macOS:
29
30
 
30
31
  ```sh
31
32
  python -m pip install torch
32
- python -m pip install 'seldon-runtime[gliner]'
33
+ python -m pip install 'seldon-runtime[gliner]==0.1.1.dev0'
33
34
  ```
34
35
 
35
36
  In a uv environment, use `uv pip install` for the same commands. In a Linux uv
@@ -37,7 +38,7 @@ project, persist the dedicated torch index:
37
38
 
38
39
  ```sh
39
40
  uv add torch --index pytorch=https://download.pytorch.org/whl/cpu
40
- uv add 'seldon-runtime[gliner]'
41
+ uv add 'seldon-runtime[gliner]==0.1.1.dev0'
41
42
  ```
42
43
 
43
44
  The model weights and tokenizer files download on first use. Cache the pinned
@@ -112,6 +113,88 @@ Always close the runner to stop background tasks and attempt a bounded flush.
112
113
 
113
114
  ## Development
114
115
 
116
+ ### Standalone compiler artifacts (unreleased)
117
+
118
+ The separate compiler-artifact reader executes locally compiled user-owned plans.
119
+ It does not use `Runner.load`, hosted Function IDs, a Seldon API key, refresh or
120
+ telemetry. This reader is under development; a public compiler/exporter is not yet
121
+ available. The existing hosted-bundle instructions above remain unchanged.
122
+
123
+ An export directory contains one `manifest.json`, at most 2 MiB. Plan and spec are
124
+ inline; no file paths, URLs, credentials or executable Python are supported. The
125
+ generated [JSON schema](schemas/compiler-artifact-v1.json) defines the envelope.
126
+ Schema generation uses a separately pinned development dependency because supported
127
+ Pydantic versions emit different schema descriptions. Runtime compatibility remains
128
+ `pydantic>=2.2`; all supported versions run the semantic reader tests. Regenerate in
129
+ a development environment with `python -m pip install '.[schema]'` followed by
130
+ `python -m scripts.export_artifact_schema`. CI checks the committed schema using
131
+ that generator's `--check` mode, independently of the runtime compatibility matrix.
132
+
133
+ The manifest freezes the compiler version, exact runtime version (`0.1.1.dev1`),
134
+ optimizer contract (v1–v8), evaluation semantics, instruction envelope, conditional
135
+ permission, plan/spec hashes, model requirements and a small evidence summary.
136
+ `manifest_digest` is the canonical runtime `digest` of all raw manifest fields
137
+ except `manifest_digest`. Plan/spec digests use their validated model `.digest`.
138
+ Omitted/default fields therefore follow the existing runtime serialization contract.
139
+
140
+ Supply endpoint configuration and credentials through your own transport, never
141
+ through the artifact. For example, given an independently configured asynchronous
142
+ `customer_provider(payload)` that returns decoded JSON output:
143
+
144
+ ```python
145
+ from seldon_runtime.artifact import ModelRequirements, RuntimeBinding, load_artifact
146
+
147
+ artifact = load_artifact("./selected-pipeline")
148
+ configured_model = ModelRequirements(
149
+ protocol="openai-chat-completions",
150
+ capabilities=("chat", "structured_output"),
151
+ context_length=8192,
152
+ max_output_tokens=256,
153
+ revision="deployment-1",
154
+ )
155
+ bindings = {"custom": RuntimeBinding(configured_model, customer_provider)}
156
+ result = await artifact.run({"text": "customer input"}, bindings=bindings, timeout=55)
157
+ ```
158
+
159
+ The binding keys must exactly cover the models used by the plan and its explicit
160
+ reference fallback. Configure capabilities and revision from your actual endpoint;
161
+ copying them from an untrusted artifact does not qualify a model. Protocol/revision
162
+ and output ceiling must match, capabilities must cover the requirements, and context
163
+ must be at least the declared size. The reader applies the frozen output/context
164
+ policy before invoking a provider; your transport still owns TLS, credential origin
165
+ binding, response-size limits and protocol decoding. Known transport failures use
166
+ `ProviderError`; untyped failures stop without automatic fallback or retry.
167
+
168
+ This initial handoff supports OpenAI-compatible chat steps and supported deterministic
169
+ operators, including versioned chunking/conditional graphs. Native `choice`/`extract`
170
+ adapters and research `generated_kernel` steps are explicitly rejected. A model
171
+ revision is an operator-supplied identity, not proof of immutable upstream weights.
172
+ Artifacts may contain sensitive prompts/spec text. Digest checks detect corruption,
173
+ not malicious replacement of both the content and its digest; trust the producer
174
+ separately. Linux/macOS filesystem APIs are used; Windows is not qualified.
175
+
176
+ The standalone fixture in `tests/fixtures/compiler-artifact` is generated from the
177
+ runtime test factory, pending a real compiler producer. Installed wheel/sdist probes
178
+ exercise its nonconstant execution through the real interpreter with a deterministic
179
+ provider callback. They do not qualify a live model, compiler selection quality or
180
+ the complete compiler-to-runtime lifecycle.
181
+
182
+ ### Interpreter development
183
+
184
+ The unreleased `0.1.1.dev1` readers support `optimizer-correctness-v8`.
185
+ New `chunk_text` steps may freeze `token_boundary: "utf8-v2"` with `unit: "tokens"`;
186
+ this counts tokenizer tokens without splitting UTF-8 characters. Steps without
187
+ the marker keep their historical chunk boundaries. The kernel still enforces its
188
+ 32-chunk cap, and hosted plans may set a lower fan-out cap.
189
+
190
+ `context_measured_v3` treats native Fastino GLiNER extraction as an encoder input
191
+ window. Its inherited LLM output allowance still bounds financial reservations,
192
+ response sizing and admission tokens; it no longer consumes encoder input context.
193
+ Other native protocols retain `context_measured_v2` context rules. These policies
194
+ are frozen identities: existing bundles and requests keep their saved behavior.
195
+ See [the changelog](CHANGELOG.md). Upgrade readers before creating these new
196
+ contracts; an old runtime must not serve a new marked plan or policy.
197
+
115
198
  ```sh
116
199
  python -m pip install -e '.[dev]'
117
200
  python -m ruff check .
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "seldon-runtime"
7
- version = "0.1.1.dev0"
7
+ version = "0.1.1.dev1"
8
8
  description = "Standalone Seldon Functions interpreter and local execution client"
9
9
  readme = "README.md"
10
10
  license = "Apache-2.0"
@@ -19,6 +19,7 @@ Issues = "https://github.com/Deep-Insight-Labs/seldon-runtime/issues"
19
19
  [project.optional-dependencies]
20
20
  gliner = ["gliner2[local]~=2.1.0"]
21
21
  dev = ["pytest>=8", "ruff==0.16.4", "build>=1", "twine>=6"]
22
+ schema = ["pydantic==2.14.4"]
22
23
 
23
24
  [tool.setuptools]
24
25
  packages = ["seldon_runtime"]
@@ -19,3 +19,4 @@ output_budget
19
19
  instruction_envelope
20
20
  local_models
21
21
  local_telemetry
22
+ artifact