coakka-runtime-python 3.3.1__py3-none-any.whl

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.
@@ -0,0 +1,684 @@
1
+ Metadata-Version: 2.4
2
+ Name: coakka-runtime-python
3
+ Version: 3.3.1
4
+ Summary: CoAkka Runtime Python connector
5
+ Requires-Python: >=3.11
6
+ Classifier: Programming Language :: Python :: Implementation :: CPython
7
+ Classifier: Programming Language :: Python :: 3.11
8
+ License-Expression: Apache-2.0
9
+ Requires-Dist: coakka-v2-connector==3.3.1
10
+ License-File: LICENSE
11
+ License-File: NATIVE-LICENSE.md
12
+ License-File: PACKAGE-LICENSE.md
13
+ License-File: NOTICE
14
+ Description-Content-Type: text/markdown
15
+
16
+ # coakka-runtime-python
17
+
18
+ ![CoAkka](https://raw.githubusercontent.com/phuong-tran/coakka-samples/main/docs/common/assets/brand/coakka-logo.png)
19
+
20
+ **The Python connector for CoAkka Runtime, a native-backed, polyglot
21
+ distributed runtime for application-owned work.** Keep business handlers in
22
+ Python and call work by target name across languages, processes and hosts.
23
+ The shared native core owns delivery and outcomes; the connector presents
24
+ those capabilities through familiar Python values and context managers.
25
+
26
+ ## Version `3.3.1`
27
+
28
+ `3.3.1` is the first Python connector revision for Core generation `3.3`.
29
+ `coakka-runtime-python==3.3.1` is a metadata-only package. It requires exactly
30
+ `coakka-v2-connector==3.3.1`. The latter owns the `coakka_v2_connector` Python
31
+ module and its native libraries. Each platform wheel includes Core 3.3, build
32
+ `16bdd692faf918d1a959c073ad20318392659f4b`, ABI 1, and its Python adapter.
33
+ Use GIL-enabled CPython 3.11 or later. Applications migrating from 2.x must
34
+ adopt the API introduced in 3.0.0.
35
+
36
+ ## Install
37
+
38
+ Starting with 3.3.1, the recommended PyPI install name changes from
39
+ `coakka-v2-connector` to `coakka-runtime-python` to match CoAkka’s
40
+ `<product>-<language>` naming convention. The original name still receives
41
+ this release, and the Python import stays `coakka_v2_connector`.
42
+
43
+ Create a virtual environment and install the matching wheel from PyPI.
44
+
45
+ ```sh
46
+ python -m venv .venv
47
+ # macOS and Linux
48
+ . .venv/bin/activate
49
+ python -m pip install --only-binary=:all: coakka-runtime-python==3.3.1
50
+ ```
51
+
52
+ On Windows, after creating the environment, run
53
+ `.venv\Scripts\python.exe -m pip install --only-binary=:all: coakka-runtime-python==3.3.1`.
54
+
55
+ Existing applications can keep the `coakka-v2-connector` dependency and upgrade
56
+ it in place:
57
+
58
+ ```sh
59
+ python -m pip install --upgrade --only-binary=:all: coakka-v2-connector==3.3.1
60
+ ```
61
+
62
+ To adopt the new name, change the direct dependency in `requirements.txt` or
63
+ `pyproject.toml` to `coakka-runtime-python==3.3.1`, refresh the lock file if
64
+ your project uses one, and install normally. Pip installs the same platform
65
+ wheel either way. Application code continues to import `coakka_v2_connector`.
66
+
67
+ ## Quick Start
68
+
69
+ Save as `first_run.py` and run `python first_run.py` in the virtual
70
+ environment. It registers a local handler, prints `accepted-Ada Lovelace`,
71
+ and closes the host on exit.
72
+
73
+ ```python
74
+ from coakka_v2_connector import ConnectorStartSpec, RuntimeHost, local_route
75
+
76
+
77
+ def accept_name(payload: bytes) -> bytes:
78
+ return b"accepted-" + payload
79
+
80
+
81
+ target = "customers.accept"
82
+ start_spec = ConnectorStartSpec(
83
+ system_name="customer-app",
84
+ node_id="customer-app-1",
85
+ routes=[local_route(target)],
86
+ )
87
+
88
+ with RuntimeHost.start(start_spec=start_spec) as runtime:
89
+ runtime.register_payload_handler(target, accept_name)
90
+ reply = runtime.ask_payload(
91
+ source="customer-api",
92
+ target=target,
93
+ payload=b"Ada Lovelace",
94
+ timeout_ms=2000,
95
+ )
96
+ print(reply.decode("utf-8"))
97
+ ```
98
+
99
+ See [Python transport configuration](https://github.com/phuong-tran/coakka-publish/blob/main/docs/coakka-runtime/reference/python-configuration.md),
100
+ the [compatibility matrix](https://github.com/phuong-tran/coakka-publish/blob/main/docs/coakka-runtime/reference/compatibility-matrix.md),
101
+ and the [CoAkka documentation](https://github.com/phuong-tran/coakka-samples/blob/main/docs/README.md).
102
+
103
+ ## CoAkka ecosystem
104
+
105
+ Use CoAkka Runtime to exchange messages between services. If your Python service
106
+ also needs to expose an HTTP API, [CoAkka HTTP Runtime for Python](https://github.com/phuong-tran/coakka-publish/blob/main/coakka-http-runtime/python/README.md)
107
+ can serve that API independently or alongside CoAkka Runtime.
108
+
109
+ Browse the [CoAkka samples](https://github.com/phuong-tran/coakka-samples) for runnable examples
110
+ across languages, or see the [ecosystem overview](https://github.com/phuong-tran/coakka-publish/blob/main/docs/common/ecosystem-overview.md)
111
+ for a guide to the products.
112
+
113
+ ## Benchmarks
114
+
115
+ Reviewed results for a native client calling a Python service on Raspberry Pi 5
116
+ will appear in the [CoAkka Runtime connector benchmarks](https://github.com/phuong-tran/coakka-publish/blob/main/coakka-runtime/benchmark/README.md).
117
+
118
+ ## Package contents
119
+
120
+ - `RuntimeHost.start(...)` as the preferred single-process lifecycle entrypoint
121
+ - `ConnectorOrchestrator.start(...)` remains as the compatibility name for the
122
+ same runtime host
123
+ - `PythonRuntimeClient` as the lower-level request/reply engine
124
+ - `submit_request_typed(...)`, `submit_request_json(...)`, `submit_request_raw(...)`
125
+ - `terminal_events(buffer_capacity=...)`
126
+ - typed payload identity helpers around `message_type`,
127
+ `payload_schema_version`, and `payload_format`, including
128
+ `PayloadIdentity.text(...)`
129
+ - `local_route(...)` for same-process targets so first-run samples do not spell
130
+ host/port placeholders or endpoint flag numbers by hand
131
+ - control snapshot apply helpers
132
+ - monitor notification wait helpers
133
+ - Core-issued startup and delivery snapshots; omitted execution and
134
+ connection intent is submitted as `AUTO`, with current effective connection
135
+ mode `MULTIPLEXING`
136
+ - `ask_payload(...)` and `register_payload_handler(...)` for a bytes-first
137
+ path whose framing, request reading, terminal matching and native buffer
138
+ release are owned by Core
139
+ - one active runtime host per Python process
140
+ - capability discovery before selecting optional connection features
141
+ - startup-configured connection strategy and structured apply results
142
+
143
+ The bundled Core's reported capabilities determine TCP TLS or mTLS availability. The security
144
+ APIs below apply to Core builds that report those capabilities.
145
+
146
+ Request/reply lane in Python now has two host API shapes over the same runtime contract:
147
+
148
+ - `ask_*`: submit and wait inline
149
+ - `submit_request_*` + `terminal_events(...)`: submit now, consume terminal outcome (`response` or `deadletter`) later through a stdlib queue-backed subscription
150
+
151
+ `terminal_events(...)` is a connector-owned API shape, not a separate backend mode. The current transport backend remains an implementation detail underneath.
152
+
153
+ ## Before / After
154
+
155
+ CoAkka is easiest to understand from a fake backend HTTP handoff. The
156
+ browser/API edge can be real HTTP and should stay HTTP. The fake part is the
157
+ second private endpoint a team adds only so app-owned store work has something
158
+ URL-shaped to call:
159
+
160
+ ```python
161
+ @app.post("/backend/customers")
162
+ def create_customer(command: CustomerDraft):
163
+ return store.create(command)
164
+ ```
165
+
166
+ The caller now owns URL config, HTTP parsing, status mapping, timeout mapping,
167
+ retry policy, logs, and test fixtures for a boundary that is not really a
168
+ public API:
169
+
170
+ ```python
171
+ reply = requests.post(
172
+ "http://customer-store/backend/customers",
173
+ json=command,
174
+ timeout=5,
175
+ )
176
+ reply.raise_for_status()
177
+ customer = reply.json()
178
+ ```
179
+
180
+ Read the address change like this:
181
+
182
+ ```text
183
+ Before fake backend HTTP:
184
+ POST /api/customers -> requests.post("http://customer-store/backend/customers")
185
+
186
+ After CoAkka:
187
+ POST /api/customers -> target "samples.customer.store" -> registered handler
188
+ ```
189
+
190
+ After CoAkka, HTTP can stay at the real edge, and the private backend URL
191
+ becomes a runtime target owned by the process that handles it:
192
+
193
+ ```python
194
+ from coakka_v2_connector import (
195
+ ConnectorStartSpec,
196
+ PayloadFormat,
197
+ PayloadIdentity,
198
+ RuntimeHost,
199
+ local_route,
200
+ )
201
+
202
+ start_spec = ConnectorStartSpec(
203
+ system_name="customer-store",
204
+ node_id="customer-store-node-1",
205
+ routes=[local_route("samples.customer.store", 19102)],
206
+ )
207
+
208
+ def handle_customer(request):
209
+ return runtime.client.make_json_reply_from_request_identity(
210
+ request=request,
211
+ source="samples.customer.store",
212
+ payload={"status": "accepted"},
213
+ )
214
+
215
+ with RuntimeHost.start(start_spec=start_spec) as runtime:
216
+ runtime.register_handler("samples.customer.store", handle_customer)
217
+
218
+ response = runtime.ask_json(
219
+ source="samples.customer.frontend",
220
+ target="samples.customer.store",
221
+ payload={"name": "Ada"},
222
+ payload_identity=PayloadIdentity(
223
+ "samples.customer.create.request.v1",
224
+ 1,
225
+ PayloadFormat.JSON,
226
+ ),
227
+ timeout_ms=5000,
228
+ operation="create_customer",
229
+ )
230
+ ```
231
+
232
+ The important change is not "HTTP is bad." Public HTTP and gRPC still belong at
233
+ real API edges. CoAkka removes the extra backend HTTP surface when the caller
234
+ and handler are application-owned capabilities that only need typed runtime
235
+ delivery, request/reply completion, and deadletter visibility.
236
+
237
+ `ConnectorOrchestrator` remains available for existing code. New Python code
238
+ should prefer `RuntimeHost` so the file reads as one embedded runtime owner,
239
+ not a remote connector setup.
240
+
241
+ Version 3.0.0 retains `separate_delivered_request_lane` as a compatibility
242
+ input, not a statement of actual delivery topology. Read the accepted topology
243
+ from `runtime_snapshot()` and `runtime_startup_config()`; native-engine Core
244
+ may require its separate owned request reader regardless of that input.
245
+ Descriptors are not evidence of the active engine.
246
+
247
+ In this release, `queue_capacity`, `enable_monitor` and `network` default to
248
+ `None`, preserving omission. Queue omission submits Core's zero selector and
249
+ uses its accepted capacity; Python does not substitute a capacity table.
250
+ Monitor omission leaves Core's default OFF, distinguishable from explicit
251
+ `False` in `defaultedGroups`. Monitor signals follow Core's accepted collection
252
+ permission. Network omission leaves Core's native EMBEDDED default with
253
+ `explicitPolicy=False`; explicit EMBEDDED remains distinguishable as explicit.
254
+ `runtime_network_config()` and the combined snapshot copy those Core facts.
255
+ Optional network ports retain presence, including an explicitly supplied zero;
256
+ Core alone decides whether that field applies or a reachable endpoint is valid.
257
+
258
+ `strict_no_drop=True` remains the builder's explicit safe intent for the frozen
259
+ base C ABI, whose required boolean has no absence state; it is not reported as
260
+ a discovered Core default. Always read effective values from Core snapshots.
261
+ Runtime info exposes `transportProvider`; runtime config exposes
262
+ `transportBindHost` and `transportBindPort`. These copy Core's public transport
263
+ facts, not a connector probe or a claim that an input bind preference was applied.
264
+ Historical pre-release inspection names are not retained as aliases.
265
+ Configuration models no longer expose a local `require_valid()` policy pass.
266
+ Core rejects invalid routes, generations, network or overload intent on
267
+ construction/apply, preserving its numeric status. Python retains only type,
268
+ ABI-width and NUL-safe C-string conversion checks. Payload-identity helpers
269
+ still enforce their declared typed application-value shape, not runtime policy.
270
+
271
+ Bytes-first handlers run synchronously on the sole Core request-reader turn
272
+ and must return promptly. Typed handlers use a bounded Python worker queue.
273
+ Each queued typed job keeps only its encoded frame, accepted one-way flag and
274
+ handler binding, not a second payload/target projection. Workers decode owning
275
+ Python message values. Application-retained messages/callback graphs use the
276
+ application's memory budget; queue slot limits are not a whole-heap byte cap.
277
+ Handler and asynchronous-terminal workers are started lazily, rather than
278
+ creating idle Python workers for a bytes-only host.
279
+
280
+ Handler registration owns Python callable references and exact UTF-8 target
281
+ keys, not native route admission. It requires a callable and a real boolean
282
+ for typed-reply intent; Core still validates routes and request admission.
283
+ Empty or NUL-bearing callback keys can be represented without claiming that
284
+ Core accepts a corresponding route. Duplicate registration is refused rather
285
+ than replacing a live callback. Once host close begins, both handler shapes
286
+ refuse new registration before publication. A registration racing close may
287
+ finish first, but cannot publish into the detached closed registry.
288
+
289
+ Successful close retires the reader/workers and native calls, detaches the
290
+ callback map under its publication lock, then releases its roots outside both
291
+ registry and close locks. Application finalizers can re-enter closed APIs;
292
+ registration still refuses and close is idempotent. Caller-held references,
293
+ cycles and application-finalizer completion remain application/GC concerns,
294
+ not a native resource or liveness fact. Handler-map count and retained callable
295
+ graph bytes are application-determined; whole-host pressure qualification is
296
+ still required before release.
297
+
298
+ `take_background_error()` on the client or host transfers the first unclaimed
299
+ Python worker exception, or returns `None`. It works after close and preserves
300
+ the original type, numeric fields, cause and traceback. This diagnostic is not
301
+ a Core delivery outcome. Close does not erase it: a traceback can retain
302
+ callback/request objects until the error is taken and released. The caller
303
+ owns the taken exception graph. One retained error is a count bound, not a byte
304
+ bound; later errors are not queued while that slot is occupied. Concurrent
305
+ takers have one winner. No callback or error finalizer runs under its lock.
306
+ Reader-side projection or value/dispatch-publication exceptions use this same
307
+ first-error slot and end that reader loop, without replaying work. A full
308
+ diagnostic slot keeps its earlier exception.
309
+
310
+ Candidate construction prepares language bookkeeping before creating Core and
311
+ guards its remaining queue/thread activation. If construction fails, no native
312
+ runtime/client/reader owner is published; a late-starting reader cannot enter
313
+ Core after rollback. The reader is retired before native destruction.
314
+ Native output guards cover the call, status projection and value copying, not
315
+ only the final copy. An unpublished runtime, reader, ask client/ticket, exported
316
+ host handles, frame, encoded/copied bytes or decoded-value lease is retired
317
+ through Core's corresponding cleanup API when Python raises after native
318
+ completion. Returned data never borrow released native storage. Null success
319
+ is a contract error, not an inferred allocation failure; native refusals retain
320
+ their numeric status. This is not a guarantee against process termination or
321
+ an interruption/failure inside cleanup itself.
322
+
323
+ Resource cleanup does not roll back accepted application work or consumed
324
+ terminal results. A lost ticket/frame/result is not silently retried. Closing
325
+ host handles does not reset Core's one-shot export; retiring the sole reader
326
+ does not make its Core source reusable. Failed construction retires that
327
+ runtime; a new construction uses a new Core owner. No connector OS probing or
328
+ native-state reconstruction is involved.
329
+ Call `close()` from an external application owner after handlers return, not
330
+ from a connector reader/handler worker. Worker-origin close raises `RuntimeError`
331
+ before changing lifecycle state, so request handling can finish and the
332
+ external owner can still close. There is no hidden deferred-close thread.
333
+
334
+ `RuntimeHost.start(...)` guards its newly started client until facade creation
335
+ and process-slot publication succeed. A facade construction error closes that
336
+ unpublished client before propagating. One factory slot covers the base host
337
+ and facade subclasses; construction is non-reentrant. Register handlers only
338
+ on the returned host. Close keeps the slot occupied while the client drains,
339
+ without holding the factory lock across worker/native retirement. A refused
340
+ close leaves the facade open and slot occupied, so an external owner can retry;
341
+ only successful close releases the process slot.
342
+
343
+ Connection startup is reported through Core's accepted
344
+ `runtime_startup_config()["connection"]` receipt and live
345
+ `tcp_connection_config()`, not a synthesized apply result. Version 3.0.0 removes
346
+ the former `startup_connection_result()` compatibility projection: explicit
347
+ settings do not prove a `changed` outcome. `RuntimeTcpConnectionStrategySpec()`
348
+ contains no overrides and submits Core AUTO by omission; it never forces
349
+ PER_EXCHANGE. Current Core selects MULTIPLEXING. Startup receipts remain
350
+ historical accepted facts after close, not a liveness check. Live inspection
351
+ errors propagate without a fallback to the retained receipt. Actual security
352
+ and explicit connection apply results still come directly from Core.
353
+
354
+ Candidate terminal/deadletter observers use language-owned bounded buffers
355
+ with an out-of-band closed state, not a queued sentinel. Closing a subscription
356
+ unregisters it without stopping Core; closing the host wakes all its observer
357
+ waiters and refuses new subscriptions. All previously accepted items remain
358
+ available in FIFO order, then `get()` returns `None` without waiting. Full
359
+ buffers still drop newly observed items and increment observer drop counters;
360
+ this does not change Core delivery/admission. Subscription wrapper construction
361
+ finishes before registration, so allocation failure leaves no hidden observer.
362
+ Close needs no list snapshot or extra queue slot. Per-observer capacity is an
363
+ item-count bound, not a total Python heap or global subscriber/byte budget;
364
+ the latter remains part of private package-pressure qualification.
365
+ Observer wait timeouts must be finite and non-negative, or `None` for an
366
+ explicit indefinite wait; shutdown still wakes that indefinite wait.
367
+
368
+ Runtime FFI inputs use the actual storage value of `bytes`, `str` and `int`,
369
+ including their subclasses, rather than overridden length/conversion hooks.
370
+ Ordinary builtins keep identity; subclass snapshots may require a boundary
371
+ copy. Native lengths and integer widths are derived only afterward. This is
372
+ memory-safe value projection, not an alternative encoder or Core policy check.
373
+
374
+ The bytes-first path reuses immutable source/target encodings in two private
375
+ 64-entry tables. Only keys through 128 UTF-8 bytes are eligible; this is a
376
+ cache bound, not a Core input limit. Larger values and full-table misses are
377
+ encoded uncached and submitted unchanged. Cached encoded values total at most
378
+ 25,088 bytes, plus bounded text keys and Python table/entry overhead. Calling
379
+ threads hold only weak shortcuts, not extra retained keys or payloads; their
380
+ metadata count follows application-owned calling threads. Successful host
381
+ close clears both tables after native calls drain. Returned immutable bytes
382
+ remain owned by their caller through the synchronous native borrow.
383
+
384
+ Lazy handler and asynchronous-terminal groups admit work only after their
385
+ starts succeed. A partial or late start is retired before the error propagates;
386
+ it does not stop the valid host or publish a failed handler. Registration can
387
+ be retried. Group-local cancellation preserves normal host stop and accepted
388
+ ticket cleanup; each language role is bounded to one or two workers. This is
389
+ Python scheduling ownership, not a claim about native thread count or affinity.
390
+
391
+ Candidate native calls which require a successful status raise
392
+ `CoreCallError`, a `RuntimeError` subtype, on refusal. Its integer `status`
393
+ and string `operation` preserve Core's result, including unknown status values;
394
+ applications must not classify failures by parsing exception text. The ask
395
+ constructor uses Core's status/out-owner contract once, without retry or a
396
+ fallback to the old pointer-only constructor. Only success transfers an owner.
397
+ A success result with no owner is a separate contract error, not an invented
398
+ resource-exhaustion status. Dedicated structured policy errors remain as
399
+ documented in [Python transport API](https://github.com/phuong-tran/coakka-publish/blob/main/docs/coakka-runtime/reference/python-configuration.md).
400
+
401
+ The rich request/reply API introduced in 3.0.0 uses frozen Python `Message` values,
402
+ not generated schema objects. Headers are copied into a read-only mapping;
403
+ use `dataclasses.replace(message, correlation_id="another-id")` to derive a
404
+ value. Builders such as `make_json_request(...)` return this same type. There
405
+ are no generated-message serialization methods: Core alone
406
+ encodes and decodes through its public message-value contract. Numeric kind,
407
+ business status, format, hint and schema version preserve their values,
408
+ including unknown codes and status zero; text is UTF-8 with length-bearing NUL
409
+ support and payload is opaque `bytes`.
410
+
411
+ `Deadletter` preserves an absent `original_envelope` as `None`, endpoint-attempt
412
+ facts and Core-issued `DeliveryFailure` dimensions when present. Unknown causes
413
+ remain unknown with bounded raw metadata retained; the connector does not
414
+ interpret detail text. Every returned value owns Python copies after Core's
415
+ lease is released. This boundary keeps Core's 64 MiB frame, 1 MiB packed
416
+ metadata and depth-16 decode limits; these are not a cap on all transient
417
+ Python/parser memory. Unknown wire fields are not retained and property order
418
+ is unspecified. Invalid representation is refused without an alternate codec.
419
+ Python checks only host-type/ABI-width conversion here; Core owns semantic
420
+ admission and routing. This is a new 3.0.0 API, not a compatibility shim
421
+ for historical wheel schema classes. Exact installed wheel qualification and
422
+ whole-host pressure remain promotion controls.
423
+
424
+ Candidate route updates also use Core's control-value encoder. It preserves
425
+ generation, sequence, source diagnostics and an omitted versus explicit
426
+ overload policy; semantic route/policy admission remains Core's apply step,
427
+ not the encoder. Format values keep full ABI-width intent rather than silently
428
+ narrowing endpoint ports or unknown enums. Encoded bytes are copied and Core's
429
+ temporary owner is released even if the subsequent apply refuses. Core bounds
430
+ the table/text charge and encoded update to 1 MiB each. The source candidate
431
+ runs rich request/reply using only Python's standard library; schema tooling
432
+ is test-only. Historical wheel metadata/embedded payloads are not promoted by
433
+ this source result; candidate wheels have their own frozen artifact receipts.
434
+
435
+ For route updates, `overload_policy=None` means absent: Core resolves its
436
+ configured boot-time policy, not the last active policy or a replay of the
437
+ Python startup input. A `RuntimeOverloadPolicy(...)` is complete explicit
438
+ intent, including an all-zero policy. Startup submits its initial intent once.
439
+ Read `runtime_config()`'s `configured*OverloadMode` /
440
+ `configuredRemoteOutboundReplyReserveSlots` and corresponding `effective*`
441
+ fields for Core's boot/active facts. Stale/invalid updates retain the active
442
+ route/policy pair and original numeric refusal. Control source/sequence are
443
+ diagnostics, not sequencing or authorization policy: only an omitted source
444
+ chooses the connector's system-name label; explicit empty/NUL text and zero
445
+ sequence remain unchanged through encoding.
446
+
447
+ Runtime observation calls copy Core-issued values before their native borrow
448
+ ends. Configuration read and string copy are serialized together, since a
449
+ later configuration getter can retire the preceding borrowed view. Host close
450
+ also waits for admitted observation calls. `runtime_snapshot()` identities
451
+ come from the same Core configuration copy included in that aggregate, not
452
+ the original input objects. The aggregate combines independent samples, not
453
+ one atomic whole-runtime transaction. Inspection refusal propagates its Core
454
+ status; no input value or guessed default is substituted.
455
+
456
+ Hot-path reading note:
457
+
458
+ - false-sharing is not the first-order hot-path concern for this Python layer
459
+ in the same way it is for the native C++ connector
460
+ - the current Python connector cost center is more likely to sit in:
461
+ - native value projection around Core-owned calls
462
+ - Core value conversion and Python object mapping
463
+ - queue/subscription churn around `terminal_events(...)`
464
+ - thread and event handoff topology
465
+ - only revisit cacheline-style hardening here if this layer later moves toward
466
+ packed native-side state, off-heap rings, or a flatter shared-memory layout
467
+
468
+ Runtime library resolution order:
469
+
470
+ 1. explicit `runtime_lib_path` passed to `RuntimeHost.start(...)`
471
+ 2. `$COAKKA_RUNTIME_LIB`, when present
472
+ 3. the exact image named by the installed wheel's bounded package receipt
473
+
474
+ Empty/invalid explicit intent is an error, never absence. Installed Core and
475
+ host-adapter images load directly from the package directory after their
476
+ size/hash/identity checks;
477
+ there is no process temp cache, executable extraction, cwd/system-library
478
+ discovery or fallback after package damage. Receipt traversal/duplicates,
479
+ missing/linked/changed image and stale identity fail before native loading.
480
+ These checks protect the packaged byte pairing, not publisher authentication
481
+ or hostile filesystem replacement between inspection and loading. Signing is
482
+ a separate release gate. Zip import is unsupported. The installer chooses a
483
+ wheel's OS/ISA tag; the connector does not probe OS capabilities to select one.
484
+ Core reports actual runtime capabilities/defaults after load. Old platform /
485
+ versioned-name normalization helpers are removed from the 3.0.0 API.
486
+
487
+ Each platform wheel pairs the bundled Core with its Python adapter.
488
+ Current matching-host qualification covers these GIL-enabled CPython builds:
489
+
490
+ | Distribution target | Wheel tag | Qualified host and interpreter |
491
+ | --- | --- | --- |
492
+ | macOS ARM64 | `cp311-abi3-macosx_13_0_arm64` | macOS ARM64, CPython 3.11.15 |
493
+ | Linux ARM64 | `cp311-abi3-manylinux_2_36_aarch64` | Raspberry Pi 5, CPython 3.11.15 and 3.13.5 |
494
+ | Linux x86-64 | `cp311-abi3-manylinux_2_36_x86_64` | WSL2 Linux on physical Windows, CPython 3.11.18 |
495
+ | Windows ARM64 | `cp311-abi3-win_arm64` | Windows 11 ARM64 VM, CPython 3.11.9 and 3.12.10 ARM64 |
496
+ | Windows x86-64 | `cp311-abi3-win_amd64` | Physical Windows, CPython 3.11.9 x64 |
497
+
498
+ A platform-specific execution result does not imply execution on another
499
+ packaged target or on the minimum OS encoded by its tag. The ABI tag is an
500
+ installer compatibility contract, not execution evidence for every interpreter
501
+ version. PyPy and free-threaded Python are outside this qualification. Use
502
+ [common troubleshooting](https://github.com/phuong-tran/coakka-samples/blob/main/docs/coakka-runtime/operations/troubleshooting.md)
503
+ for OS/CPU selection, loader dependencies, digests, Gatekeeper, Authenticode,
504
+ and the explicitly documented absence of publisher signing.
505
+
506
+ ## File Lane
507
+
508
+ In this release, File and Stream snapshot terminal flags come
509
+ from Core's terminal transition timestamp, not the numeric ordering of states.
510
+ File `PAUSED` is retryable and nonterminal; cancel can make it terminal. Success
511
+ also requires a recognized completed/ended state and an `OK` result. Core may
512
+ allow forgetting an inactive paused transfer separately: that permission does
513
+ not make `PAUSED` terminal. Do not wait for a paused transfer to complete without
514
+ choosing resume, cancel, or another Core-supported action.
515
+
516
+ `FileLane.open(...)` is a context-managed independent native bulk-transfer
517
+ lane. Its waits are blocking and `close()` stops the lane before draining
518
+ active calls. See the shared [file-lane contract](https://github.com/phuong-tran/coakka-samples/blob/main/docs/coakka-runtime/guides/runtime-file-transfer.md).
519
+
520
+ In this release, File/Stream `open(...)` and `open_owned(...)` prepare
521
+ Python bookkeeping before creating a native owner. A Python exception after
522
+ actual native create, failed handle publication or start stops that
523
+ unpublished owner before destruction, then propagates the
524
+ original failure. Native create refusals retain their numeric status; a
525
+ successful create without an owner is a separate contract error, not an
526
+ inferred allocation failure. This does not change Core configuration or lane
527
+ admission policy. Replacement-wheel qualification remains a separate gate.
528
+
529
+ Stream callback references are prepared before Core admission. A returned Core
530
+ refusal restores the previous callback; an outcome lost to a Python exception
531
+ retains both references until successful forget or lane destruction. Retrying
532
+ that unresolved session registration is refused locally until explicit
533
+ cancel/forget or close; this is not an inferred native session state.
534
+ Registration and forget serialize callback-reference handoff, without holding
535
+ that lock during callbacks or native stop. Session IDs use the same builtin
536
+ UTF-8 identity as the native spec; embedded NUL is rejected rather than aliasing
537
+ another C-string identity.
538
+
539
+ Python's callback-reference slots are bounded to the actual capacity read once
540
+ from Core, not an input/default table. A slot can retain two callbacks when an
541
+ admission outcome is unknown. Core's automatic record pruning is not a receipt
542
+ permitting Python to release a borrowed callback. Explicitly cancel/wait and
543
+ forget terminal sessions before admitting more distinct sessions. If references
544
+ fill the Python allocation bound, admission raises `MemoryError` before calling
545
+ Core; it does not fabricate a Core queue-full status or silently forget work.
546
+ Successful forget or lane destruction releases references. If Core already
547
+ pruned a record and forget refuses, references remain conservatively until
548
+ lane close. The bound is on Python FFI roots, not the size of application object
549
+ graphs those callbacks reference. Native session policy and decisions stay in
550
+ Core; this exception exists because Python owns its GC/FFI references.
551
+
552
+ If copying a newly issued grant fails, the connector requests Core cancellation
553
+ and forget. It releases the callback only after successful forget. An active
554
+ publisher may not yet be forgettable: the original Python publication exception
555
+ then includes Core's actual cleanup refusal as its cause, and the callback stays
556
+ rooted for explicit cleanup or close. No wait/retry timeout is added.
557
+ Call Stream `close()` from an external application owner, never from a native
558
+ callback or a reentrant admitted API call. Such close attempts raise
559
+ `RuntimeError` before changing state or invoking native stop. A native stop
560
+ refusal preserves the owner and callback references for an external retry;
561
+ only successful stop, admitted-call drain and destroy retire them.
562
+
563
+ File/Stream startup configuration submits intent directly to Core. The private
564
+ candidate removes `FileLaneConfig.require_valid()`,
565
+ `StreamLaneConfig.require_valid()` and `LaneOwnerConfig.require_valid()` rather
566
+ than retaining a second policy validator. Flags, worker limits, capacity
567
+ clamping, frame/window and pressure policy, security modes and owner identity
568
+ rules are decided by native create. Representable invalid intent raises the
569
+ lane's error with Core's numeric status and create operation; it is not changed
570
+ to a local validation error. Zero selectors remain zero for Core to resolve,
571
+ and capacity inspection reports Core's actual accepted capacity.
572
+
573
+ Startup FFI projection checks only integer type and ABI width, actual builtin
574
+ string storage, UTF-8/C-string representation and absence of embedded NUL.
575
+ Numeric fields require integers, not booleans or floating-point values.
576
+ Subclass conversion/comparison/truthiness hooks do not change submitted values.
577
+ Security's omitted pointer stays omitted; explicit empty optional text projects
578
+ to native null, while actual nonempty text is retained even for false-truthy
579
+ string subclasses. Core decides how that material applies to the selected
580
+ security mode. Config text and security storage remain owned through the
581
+ synchronous create call. Per-session/transfer values and reconstructed grants
582
+ are not covered by this startup-only qualification.
583
+
584
+ File transfer, digest and control-call inputs now use the same actual-value
585
+ projection. Numeric widths are checked before native conversion; Core decides
586
+ whether a representable port, size, identity, path or digest is acceptable.
587
+ The fixed 32-byte digest is copied from actual bytes storage, not an overridden
588
+ length or conversion hook. File paths pass through Python's path-value protocol
589
+ and filesystem encoding after builtin normalization; this performs no Python
590
+ stat/open/hash operation on the transfer file. Core owns those I/O operations.
591
+ Embedded NUL is rejected rather than truncating the native path/identity.
592
+
593
+ File `close()` refuses a reentrant admitted-call close before state changes.
594
+ A native stop refusal preserves the handle and wakes concurrent closers for an
595
+ external retry; no destroy is issued until stop succeeds and admitted calls
596
+ drain. Pointer-wrapper allocation failure does not mark a call or close gate.
597
+
598
+ File grant-copy errors deliberately differ from Stream compensation. File
599
+ prepare can re-adopt existing/resumable receive state; success does not prove
600
+ this call created a new record. If Python cannot copy the accepted grant, the
601
+ original error propagates and Core's bounded record remains available for
602
+ explicit inspect/retry with the same transfer ID, or cancel/wait/forget.
603
+ The connector does not automatically cancel a record it cannot prove is new.
604
+ This call is not an all-or-nothing transaction across Core admission and Python
605
+ allocation. Native stop/destroy still retires the lane; storage/resume behavior
606
+ remains Core-owned.
607
+
608
+ Stream session/control values likewise use actual builtin strings and exact
609
+ integer widths before native admission. Core owns session/token/format/frame /
610
+ window/endpoint policy and reports its own refusals; Python only checks
611
+ representation, callable type and the returned frame's actual borrowed-buffer
612
+ capacity. Source results must be `StreamSourceFrame` or `StreamSourceSignal`;
613
+ consumer results must be `StreamConsumerDecision` or `None` (continue).
614
+ Plain integers, booleans or arbitrary equality hooks do not stand in for those
615
+ signal/decision types in the new candidate.
616
+
617
+ Frame scalar values are copied once, normalized and width-checked before any
618
+ C-field assignment. Callback roots retain the application callable, not the
619
+ whole spec/authorization. The passed source/consumer view is released when the
620
+ application callback returns, including on exception. This retires that exact
621
+ view only: derived aliases cannot be revoked, and applications must not retain
622
+ any borrowed view. Copy bytes inside the callback if later ownership is needed.
623
+ Core still owns framing, credit, scheduling and final source/consumer outcomes.
624
+
625
+ The root bound is a slot-count bound, not a byte bound on arbitrary malformed
626
+ request text. Normally accepted session identities obey Core's limits. If a
627
+ call's status is lost to a Python exception, its original key can remain pinned
628
+ even if Core actually refused it. A missing record is not a release receipt;
629
+ unresolved roots stay count-bounded until successful forget or lane close.
630
+ Whole-host input/heap-byte pressure remains private qualification work.
631
+
632
+ `LaneOwnerEndpoint`, `FileReceiveGrant` and `StreamPublishGrant` are frozen
633
+ value containers, not local semantic validators. Version 3.0.0 does not
634
+ impose a second token alphabet or duplicate Core's owner/format/frame policy in
635
+ their constructors. Core-issued opaque UTF-8 tokens, including spaces and
636
+ Unicode, survive issuance and reconstruction unchanged. ABI type/width/NUL
637
+ and fixed-digest safety still apply when intent crosses into Native; Core owns
638
+ semantic admission and its original refusal status.
639
+
640
+ A reconstructed value is not proof of authentication, issuer provenance,
641
+ native admission or current owner liveness. The application must obtain grants
642
+ through its authenticated control plane and preserve the exact owner endpoint;
643
+ it must not treat successful dataclass construction as trust validation. Issued
644
+ values copy Core facts at issuance, not a promise that the owner remains alive.
645
+
646
+ Owner-grant discovery uses the shared Core information view. A failed native
647
+ inspection raises `CoreCallError` with its numeric status and
648
+ `runtime_get_info` operation; it is not reclassified as unavailable. Only a
649
+ successful inspection reporting the feature absent raises
650
+ `LaneOwnerGrantUnavailableError`. An advertised feature with missing required
651
+ symbols is an artifact-contract `RuntimeError`, not a guessed unsupported state.
652
+
653
+ ## Stream Lane
654
+
655
+ Use the [streaming contract](https://github.com/phuong-tran/coakka-samples/blob/main/docs/coakka-runtime/guides/runtime-streaming.md).
656
+ For replicas, use `FileLane.open_owned(...).prepare_receive_grant(...)` or
657
+ `StreamLane.open_owned(...).prepare_publish_grant(...)`, then reconstruct the
658
+ dataclass from the authenticated response and call `to_send_spec(...)` or
659
+ `to_subscribe_spec(...)`. See the
660
+ [owner-grant ONE/ALL sample](https://github.com/phuong-tran/coakka-samples/blob/main/docs/coakka-runtime/reference/runtime-lane-owner-grants.md).
661
+
662
+ ## AI-Assisted Integration
663
+
664
+ Before generating application code, use the selected connector README together
665
+ with the public [AI-assisted integration guide](https://github.com/phuong-tran/coakka-samples/blob/main/docs/coakka-runtime/guides/ai-assisted-integration.md).
666
+ It requires an exact package coordinate, platform evidence, the runnable
667
+ language sample, and the feature-specific lifecycle contract. Do not translate
668
+ API identifiers from another language by analogy.
669
+
670
+
671
+ ## License
672
+
673
+ **Free for application use, including commercial and production use.**
674
+
675
+ Connector source, generated bindings, type declarations, examples, and package
676
+ documentation use the [Apache License, Version 2.0](https://github.com/phuong-tran/coakka-samples/blob/main/LICENSE).
677
+ Bundled Native Core files use the [CoAkka Native Artifact License 1.2](https://github.com/phuong-tran/coakka-samples/blob/main/NATIVE-LICENSE.md).
678
+ Those native terms permit ordinary application and SaaS use but require a
679
+ separate agreement to sell or offer CoAkka itself as managed runtime or
680
+ infrastructure.
681
+
682
+ See [CoAkka Package Licensing](https://github.com/phuong-tran/coakka-samples/blob/main/docs/common/package-licensing.md)
683
+ for the file-scope map. The package also carries offline `LICENSE`,
684
+ `NATIVE-LICENSE.md`, `PACKAGE-LICENSE.md`, and `NOTICE` copies.
@@ -0,0 +1,7 @@
1
+ coakka_runtime_python-3.3.1.dist-info/METADATA,sha256=RCHuWubzW1v0ed3RONGSILpkVB_ihxNEReoy1tB7Chs,38115
2
+ coakka_runtime_python-3.3.1.dist-info/WHEEL,sha256=JdFwb68riT4CtlJuxZYguUCV87jIBFA7Tv_YEduuUvI,102
3
+ coakka_runtime_python-3.3.1.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
4
+ coakka_runtime_python-3.3.1.dist-info/licenses/NATIVE-LICENSE.md,sha256=CJ_5TPJbFweuPn0Du4Hw3fuE6H-3R29f6n69LNLwGSU,6482
5
+ coakka_runtime_python-3.3.1.dist-info/licenses/NOTICE,sha256=YNwSgXll_BM-0JeBGdm43FI4AB38_ODjAFFispjMXJg,730
6
+ coakka_runtime_python-3.3.1.dist-info/licenses/PACKAGE-LICENSE.md,sha256=govWmjrbj0sTVKI6Um9XCCias1ZcbISE3FURRYNWSbg,1427
7
+ coakka_runtime_python-3.3.1.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: CoAkka offline package producer
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,138 @@
1
+ # CoAkka Native Artifact License 1.2
2
+
3
+ Effective: 2026-08-20
4
+
5
+ This license applies only to CoAkka Native Artifacts that include or explicitly
6
+ reference version 1.2 of these terms. It does not replace the terms shipped
7
+ with an older release unless that release explicitly adopts version 1.2.
8
+
9
+ This is a public-use native artifact license, not an OSI-approved open source
10
+ license. Connector source, generated language bindings, type declarations,
11
+ sample source, package documentation, and public documentation may be provided
12
+ separately under the Apache License, Version 2.0. A package can therefore be a
13
+ file-scoped multi-license distribution: Apache-2.0 for its language-level
14
+ material and this license for its bundled Native Artifacts.
15
+
16
+ ## Definitions
17
+
18
+ `Licensor` means the copyright owner or entity authorized to distribute the
19
+ Native Artifacts under this license.
20
+
21
+ `Native Artifacts` means compiled CoAkka native libraries and executables,
22
+ native headers required to consume them, native symbol or debug files, and
23
+ native-only provenance, manifest, checksum, or signature material that includes
24
+ or explicitly references this license. Connector source, generated language
25
+ bindings, type declarations, examples, and documentation are not Native
26
+ Artifacts merely because they are distributed in the same package.
27
+
28
+ `Application` means a product or service that uses the Native Artifacts as an
29
+ internal component to provide functionality independent from CoAkka. CoAkka is
30
+ not the primary or substantial product offered to the application's users, and
31
+ those users are not given a hosted CoAkka runtime or substantially equivalent
32
+ CoAkka service.
33
+
34
+ `Managed CoAkka Service` means a product or service offered to third parties
35
+ whose primary or substantial value is providing hosted access to CoAkka's
36
+ runtime, connector, routing, delivery, management, or substantially equivalent
37
+ functionality. This includes a hosted CoAkka runtime, a CoAkka control plane, a
38
+ service through which customers deploy or operate workloads directly against
39
+ CoAkka, and an appliance or cloud image whose primary purpose is to provide
40
+ CoAkka functionality.
41
+
42
+ ## Free Application Use
43
+
44
+ Subject to this license, the Licensor grants you a non-exclusive, worldwide,
45
+ royalty-free license to download, copy, and use the Native Artifacts, and to
46
+ redistribute unmodified Native Artifacts as part of an Application.
47
+
48
+ You may, without a separate agreement:
49
+
50
+ - use every capability included in a Native Artifact in development, test, CI,
51
+ evaluation, proof-of-concept, and production environments
52
+ - use the Native Artifacts for internal business operations and commercial workloads
53
+ - build, operate, sell, and distribute Applications that use or bundle
54
+ unmodified Native Artifacts
55
+ - operate a SaaS, hosted application, or customer-facing service that uses the
56
+ Native Artifacts as an internal component, provided the offering is not a
57
+ Managed CoAkka Service
58
+ - reproduce and cache unmodified Native Artifacts inside your organization and
59
+ its controlled build, deployment, and support environments
60
+ - run and internally cache official CoAkka sample images
61
+ - provide integration, consulting, and support services for Applications that
62
+ use CoAkka, provided those services do not offer a Managed CoAkka Service
63
+
64
+ These permissions apply equally to individuals and organizations regardless of
65
+ their size or industry. A cloud provider or other infrastructure company may
66
+ use CoAkka internally and in its independent Applications on the same terms as
67
+ any other user. The restriction below is based on what is offered to third
68
+ parties, not on the identity of the user.
69
+
70
+ When redistributing a Native Artifact with an Application, you must preserve
71
+ the applicable copyright, license, trademark, checksum, and provenance notices
72
+ and make a copy of this license available with the redistributed Native
73
+ Artifact.
74
+
75
+ ## Reserved Uses
76
+
77
+ The following uses require a separate written agreement with the Licensor:
78
+
79
+ - selling, hosting, or offering a Managed CoAkka Service
80
+ - selling, licensing, renting, or redistributing the Native Artifacts as a
81
+ standalone product or where they provide the primary or substantial value of
82
+ the offering
83
+ - publishing an appliance, container image, cloud image, runtime platform, or
84
+ marketplace offering whose primary purpose is to provide CoAkka functionality
85
+ - presenting modified, repackaged, or third-party artifacts as official CoAkka
86
+ Native Artifacts
87
+
88
+ You may not:
89
+
90
+ - remove or obscure copyright, license, trademark, checksum, or provenance
91
+ notices
92
+ - reverse engineer or modify the Native Artifacts except where that restriction
93
+ is prohibited by applicable law
94
+ - use the CoAkka name, package names, artifact names, image names, or other
95
+ project identifiers in a way that implies endorsement of an unofficial fork,
96
+ hosted service, or product
97
+
98
+ ## No Runtime Activation Gate
99
+
100
+ This license states legal permissions and restrictions; it is not a runtime
101
+ activation mechanism. Publisher signing, platform trust, checksums, release
102
+ receipts, capability introspection, and runtime license-status fields do not
103
+ create an additional feature or production-use fee for a Native Artifact
104
+ distributed under this license. Local operating-system or organization
105
+ security policy may still require its own signing, integrity, or admission
106
+ checks.
107
+
108
+ ## No Warranty
109
+
110
+ The Native Artifacts are provided as-is, without warranties or conditions of
111
+ any kind, to the maximum extent permitted by applicable law.
112
+
113
+ ## Limitation Of Liability
114
+
115
+ To the maximum extent permitted by applicable law, the project contributors
116
+ and artifact publishers are not liable for any direct, indirect, incidental,
117
+ special, consequential, exemplary, or other damages arising from use of the
118
+ Native Artifacts.
119
+
120
+ ## No Patent Or Trademark Grant
121
+
122
+ These terms do not grant patent rights, trademark ownership, or rights to use
123
+ the CoAkka name beyond truthful reference to the project, compatible
124
+ integrations, and unmodified official Native Artifacts. Trademark use is
125
+ governed by the CoAkka trademark guidance distributed with the applicable
126
+ package or public documentation.
127
+
128
+ ## Questions
129
+
130
+ For questions about whether an offering is a Managed CoAkka Service or requires
131
+ a separate agreement, use the public support path in the `coakka-samples`
132
+ repository.
133
+
134
+ ## Legal Notice
135
+
136
+ This file is not legal advice. If intended use depends on legal interpretation
137
+ of these terms, consult qualified counsel or request a separate written
138
+ agreement.
@@ -0,0 +1,16 @@
1
+ CoAkka Packages
2
+ Copyright 2026 Phuong Tran and contributors.
3
+
4
+ Connector source, generated bindings, type declarations, package metadata,
5
+ examples, and package documentation are licensed under the Apache License,
6
+ Version 2.0.
7
+
8
+ Bundled CoAkka native libraries or executables, native headers, symbol files,
9
+ and native-only provenance are licensed under the CoAkka Native Artifact
10
+ License 1.2.
11
+
12
+ See PACKAGE-LICENSE.md for the file-scope map, LICENSE for Apache-2.0, and
13
+ NATIVE-LICENSE.md for the native terms. CoAkka packages are free to use in
14
+ applications, including commercial and production applications. Selling or
15
+ offering CoAkka itself as managed runtime or infrastructure requires a separate
16
+ agreement under the native terms.
@@ -0,0 +1,31 @@
1
+ # CoAkka Package License Map
2
+
3
+ This package is free to use in applications, including commercial and
4
+ production applications. Its licenses apply by file scope; they apply
5
+ simultaneously to their respective files and are not alternative licenses for
6
+ the package as a whole.
7
+
8
+ ## Connector Material: Apache-2.0
9
+
10
+ Language-level connector source, generated bindings, type declarations,
11
+ package metadata, examples, and package documentation are licensed under the
12
+ Apache License, Version 2.0. The full terms are in `LICENSE`.
13
+
14
+ ## Native Material: CoAkka Native Artifact License 1.2
15
+
16
+ Compiled CoAkka native libraries or executables, native headers, native symbol
17
+ files, and native-only provenance are licensed under the CoAkka Native Artifact
18
+ License 1.2. The full terms are in `NATIVE-LICENSE.md`.
19
+
20
+ The Native Artifact License permits ordinary internal, production, commercial,
21
+ application, and SaaS use. A separate agreement is required to sell or offer
22
+ CoAkka itself as a managed runtime, control plane, appliance, cloud image, or
23
+ substantially equivalent infrastructure service.
24
+
25
+ ## Aggregate Notice
26
+
27
+ `NOTICE` records the package identity and summarizes this file-scoped mapping.
28
+ It does not replace either license.
29
+
30
+ Public guidance and stable links are available in the
31
+ [CoAkka package licensing guide](https://github.com/phuong-tran/coakka-samples/blob/83c4dd7de7290df064e79fcbbca1f470458142a0/docs/common/package-licensing.md).