Block boundary¶
A reusable capability block runs in its own cell, and the edge of that cell is the block boundary. Everything that crosses it is carried by the kernel: a call's arguments going in, and its result coming out, whether the caller is a workflow step, an agent or another block.
The kernel carries data in a fixed set of forms. Each form means the same thing in any cell, on any library version and in any language:
- Typed values. Scalars, lists, maps, records and variants, encoded canonically.
- Buffers. Bulk data in sealed memory, with a declared kind and layout.
- Streams. Items that arrive over time, with back-pressure.
- Artifacts. Content-addressed durable bytes.
- Handles. A caller's right to use a live resource that stays in its owner cell.
The kernel also carries faults and evidence references as the outcome of a call.
A block's interface declares each method's parameters and result in these forms, and the kernel carries a call only in the forms its interface declares.
Choosing the form¶
For a library value a method needs to pass, the form follows from what the value is:
| The value is | It crosses as |
|---|---|
| Small structured data | A typed value: a record, list or map |
| A large byte payload | A raw-bytes buffer |
| A table or dataframe | A columnar buffer in Arrow IPC form |
| A CPU array or tensor | A tensor buffer with a declared layout |
| Accelerator memory | A device-memory buffer, on certified GPU extensions |
| Remote or durable bulk data | A stream or an artifact |
| A live object: a loaded model, an open connection, a session | A handle to a resource in the owner cell |
The receiving cell builds its own library object from what arrives. A table sent as Arrow IPC becomes a DataFrame in a pandas block and a table in a Polars block, each on its own version.
Local views stay local¶
Arrow C Data pointers, Arrow C Stream pointers and DLPack capsules are views into one process's memory. A provider may use them inside its cell, after a buffer has arrived, to hand the data to a framework without copying. The buffer crosses, and each side builds its own view over it.
Where the rules come from¶
Each method's parameters and result are declared in the block's interface, and the cell monitor on each side validates what crosses against it. See Records, variants, resources, and streams for how the forms are declared, and Cells for the path a value takes between cells.