pipekit's skill shelf: operators, recipes and cycles, with no skill to start from
Design · the skill tree for the library at the recipe rung
1Decision¶
Recommended: pipekit’s shelf is 21 use skills over nine units; two skills are listed, compose-and-run-pipelines for the core package and cycles-training-and-evaluation for the packages built on it; and a dependent that subclasses Operator receives the operator card whatever its name count.
Alternative: one listed skill per package, seven in all, which matches how pipekit is installed and lists five skills most sessions never use.
Status: open, 12 Nov 2026.
What does not change: pipekit’s packages and their public API. pipekit has no use skill and no contributor skill today, so everything on this page is new. This page follows the pattern of gaussx’s shelf and says only where pipekit differs.
At the pin (f2b3522) the core package still imports as pipekit.
Its rename to pipekit_ops (jejjohnson/pipekit#232) changes the module names in the script’s configuration, not the units.
2Motivation¶
pipekit is seven packages with seven different jobs, and nine packages in the stack build on it.
Table 1:pipekit’s public names by unit, at the submodule pin, over its seven packages.
| Unit | Rungs | Home band | Subpackages | Names |
|---|---|---|---|---|
| Operators and composition | ⑤ ⑥ | geoscience, data | pipekit_ops.operators 43, pipekit_ops.carriers 23, pipekit_ops.core 21, pipekit_ops.testing 2 | 89 |
| Control and execution | ⑥ | data | pipekit_ops.execution 11, pipekit_ops.observe 9 | 20 |
| Recipes as data | ⑥ | data | pipekit_ops.saving 15 | 15 |
| Named arrays | ⓪ ① ⑤ | geoscience, ML | pipekit_array.named 43, pipekit_array.arrays 31, pipekit_array.operators 29, pipekit_array.testing 28, pipekit_array.bridges 9, pipekit_array.kernels 7, pipekit_array 1 | 148 |
| Cycles | ⑥ | ML, geoscience | pipekit_cycle.protocols 14, pipekit_cycle.cycles 13, pipekit_cycle.components 7, pipekit_cycle.assimilation 4 | 38 |
| JAX bridge | ⑤ ⑥ | ML | pipekit_jax.cycle 3, pipekit_jax 2, pipekit_jax.model_op 1, pipekit_jax.operator 1 | 7 |
| Training | ⑥ | ML | pipekit_train.backends 20, pipekit_train.loop 9, pipekit_train.data 6, pipekit_train.losses 6, pipekit_train.sweep 4 | 45 |
| Evaluation | ⑥ | ML | pipekit_evaluate.benchmark 16, pipekit_evaluate.scoring 12, pipekit_evaluate.reports 3, pipekit_evaluate 1 | 32 |
| Experiments and registries | orchestration | data | pipekit_experiment.registry 3, pipekit_experiment.run 3, pipekit_experiment.artifacts 2, pipekit_experiment.protocols 2 | 10 |
| All | 404 |
Table 2:Which part of pipekit each dependent package uses.
| Dependent package | Names used | Operators and composition | Control and execution | Recipes as data | Named arrays | Cycles | JAX bridge | Training | Evaluation | Experiments and registries |
|---|---|---|---|---|---|---|---|---|---|---|
| geotoolz-ops | 32 | 20 | 3 | 2 | 7 | 0 | 0 | 0 | 0 | 0 |
| gridax | 23 | 8 | 0 | 0 | 14 | 0 | 1 | 0 | 0 | 0 |
| geotoolz-array | 22 | 8 | 0 | 0 | 14 | 0 | 0 | 0 | 0 | 0 |
| sesmax-experiment | 12 | 8 | 1 | 2 | 0 | 1 | 0 | 0 | 0 | 0 |
| xrtoolz-ops | 11 | 6 | 0 | 0 | 4 | 0 | 0 | 0 | 1 | 0 |
| radiomax | 8 | 0 | 0 | 0 | 8 | 0 | 0 | 0 | 0 | 0 |
| vardax | 8 | 1 | 0 | 0 | 0 | 7 | 0 | 0 | 0 | 0 |
| geophysix | 6 | 0 | 0 | 0 | 6 | 0 | 0 | 0 | 0 | 0 |
| geotoolz-patcher | 6 | 2 | 0 | 0 | 1 | 0 | 0 | 3 | 0 | 0 |
| plumax | 6 | 2 | 0 | 0 | 3 | 0 | 0 | 1 | 0 | 0 |
| sesmax-core | 4 | 2 | 0 | 0 | 0 | 0 | 2 | 0 | 0 | 0 |
| geotoolz-products | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| radtrax | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| tracerax | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 |
The dependents split cleanly by package. geotoolz-ops and geotoolz-array take operators and named arrays, vardax takes the cycle protocols, and sesmax-core takes the JAX bridge. Training and evaluation are each touched by one package, for a single name: they are used from scripts.
3The shelf¶
Most of pipekit sits at ⑥, so its shelf is where the recipe and orchestration files of role-ladder are used most.
Table 3:pipekit’s shelf. Each use skill is one file. pipekit has no contributor skills, so the extend rows are proposals.
| Role | Skill | Covers | Package |
|---|---|---|---|
| ⓪ structure | Named arrays | DimArray, its adapter, Padded batches, row layouts | pipekit_array |
| ⓪ structure | Signatures and adapters | Signature, Carrier, the named-array adapter registry | pipekit |
| ① primitive | Functions on dims | sel, isel, reduce, concat, stack, transpose, map_over, take_along | pipekit_array |
| ② strategy | Adjoints for a cycle | direct, backsolve, recursive-checkpoint, truncated and implicit adjoints | pipekit_cycle, pipekit_jax |
| ② strategy | Losses | MSE, NLL, KL, Composite | pipekit_train |
| ③ model | The cycle protocols | ForwardModel, ObservationOperator, AnalysisStep and the other contracts a model implements | pipekit_cycle |
| ⑤ step | Writing an Operator | Operator, its config, its signature, state, Predictor and FittableTransformer | pipekit |
| ⑤ step | Building blocks | Identity, Const, Lambda, Sink, compose, pipe, juxt | pipekit |
| ⑤ step | Operators on named arrays | Sel, Reduce, MapOver, Transpose, KernelOp | pipekit_array |
| ⑤ step | A JAX model as a step | JaxOperator, JaxModelOp, JaxKernelOp, to_jax | pipekit_jax |
| ⑤ step | add-operator, add-adapter | extend, proposed | |
| ⑥ recipe | Composing | Sequential, Graph, Input, Node, Fanout | pipekit |
| ⑥ recipe | Control flow | Branch, Switch, Try, Retry, Coalesce | pipekit |
| ⑥ recipe | Parallel maps and caching | ThreadMap, ProcessMap, AsyncMap, BatchedMap, Cache, Memoize | pipekit |
| ⑥ recipe | Checks and observation | the Assert* checks, Quarantine, Tap, Snapshot, Profile, ShapeTrace | pipekit |
| ⑥ recipe | Recipes as data | dumps, loads, loads_sandboxed, register, pipeline_hash | pipekit |
| ⑥ recipe | Cycles | Cycle, WindowedCycle, EnsembleCycle, Recurrence | pipekit_cycle |
| ⑥ recipe | Data-assimilation cycles | DACycle, EnsembleDACycle, SmootherCycle, the observation and forward wrappers | pipekit_cycle |
| ⑥ recipe | Scan cycles in JAX | ScanCycle, EnsembleScanCycle, Rollout, DiffraxForwardModel | pipekit_jax |
| ⑥ recipe | Training loops | TrainingLoop, datasets, callbacks, HyperSweep | pipekit_train |
| ⑥ recipe | Benchmarks and evaluation | Benchmark, Scorer, Oracle, evaluate, reports | pipekit_evaluate |
| ⑥ recipe | add-cycle-template, add-scorer | extend, proposed | |
| orchestration | Experiments and registries | Run, its artifacts and metrics, local and S3 model registries, trackers | pipekit_experiment |
That is two structures, one primitive, two strategies, one model, four steps, ten recipes and one orchestration skill.
4Units and cards¶
Table 4:The cards each dependent package would receive from pipekit: a unit it uses three names of, or subclasses a name of.
| Dependent package | Cards | Also uses |
|---|---|---|
| geotoolz-ops | Operators and composition (subclasses Operator, Sequential); Control and execution; Named arrays | Recipes as data (2) |
| gridax | Operators and composition; Named arrays; JAX bridge (subclasses JaxOperator) | |
| geotoolz-array | Operators and composition; Named arrays | |
| sesmax-experiment | Operators and composition (subclasses Operator, StatefulOperator) | Control and execution (1); Recipes as data (2); Cycles (1) |
| xrtoolz-ops | Operators and composition (subclasses Operator); Named arrays | Evaluation (1) |
| radiomax | Named arrays | |
| vardax | Operators and composition (subclasses Operator); Cycles (subclasses CallableObs, LinearObs) | |
| geophysix | Named arrays | |
| geotoolz-patcher | Operators and composition (subclasses Operator); Training (subclasses TrainingDataset) | Named arrays (1) |
| plumax | Operators and composition (subclasses Operator); Named arrays | Training (1) |
| sesmax-core | Operators and composition (subclasses Operator); JAX bridge (subclasses JaxOperator) | |
| geotoolz-products | none | Operators and composition (1) |
| radtrax | Operators and composition (subclasses Operator) | |
| tracerax | none | Named arrays (1) |
By name count alone, four packages would receive no card: geotoolz-patcher, somax, geotoolz-products and plumax each take one or two names from the operator unit, and the name is Operator.
geotoolz-patcher, somax and plumax subclass it, and a package that subclasses a base class needs the whole contract, however few names it imports.
So the threshold counts calls, and a subclass always earns the card.
The script reads the bases of every class in a dependent package, and the table names the base that earned each card.
Six packages receive the operator card that way, and vardax and sesmax-core gain it beside the card they already had.
geotoolz-products is the one package left without a card: it imports Operator and subclasses nothing.
A class that matches a protocol’s shape without naming the protocol as a base is not found.
5Listed skills¶
Table 5:The listed use skills. Line budgets are proposals.
| Skill | Band | Units | Asked for as |
|---|---|---|---|
compose-and-run-pipelines, the front door, at most 150 lines | geoscience, data | operators and composition; control and execution; recipes as data; named arrays | “chain these steps”, “retry and cache this”, “save the pipeline as JSON” |
cycles-training-and-evaluation, at most 150 lines | ML | cycles; the JAX bridge; training; evaluation; experiments and registries | “run a data-assimilation cycle”, “train this model”, “benchmark these estimators” |
6What pipekit needs from below¶
pipekit is at tier 0 of GeoStack and imports no other library of the stack. Its floor is third party, and only for the packages built on the core.
| From | Surfaces to a caller | Card in |
|---|---|---|
| equinox, jax | yes, in pipekit-jax: a JaxOperator is also a Module | the JAX bridge |
| diffrax | yes, in pipekit-jax: DiffraxForwardModel and the adjoint conversion | the JAX bridge; adjoints for a cycle |
| xarray | yes, in pipekit-array, as a named array with no CRS | named arrays |
7Where pipekit bends the pattern¶
A contract is not a name count. Subclassing
Operatoris one import and the whole contract. The card rule is “subclasses a name” beside “uses at least three names”, and it does not yet cover a protocol implemented by shape.The shelf is mostly ⑥. Ten of 21 entries are recipes.
role-ladder’s recipe and orchestration files carry the general rules, and pipekit’s entries say only what each combinator or template does.Nothing exists yet. With no skill and no contributor skill to start from, the skeleton came from the packages and their subpackages alone, and the four extend skills are proposals.
Units are packages. Each package above the core is one unit, because each has one job and its own dependents.
8Gates¶
Gates GX-0 to GX-6 of gaussx’s shelf apply with pipekit’s names, and one is added.
| Gate | Passes when |
|---|---|
| PK-1 Contracts | every package that subclasses pipekit.Operator or implements a pipekit_cycle protocol receives that unit’s card; the subclass half is generated into Table 4, the protocol half is not checked |
9Risks¶
The rename lands mid-way. The pin predates
pipekit_ops. Fallback: the units are named by job, so only the module patterns inscripts/skill_shelf.pychange, and the test fails until they do.Two listed skills are too few for seven packages. Someone installing only pipekit-train gets a front door about the core. Fallback: list
cycles-training-and-evaluationfrom the plugin of each package it covers.
10Follow-up reports¶
feat(scripts): give a dependent that subclasses a unit's base class that unit's card— gate PK-1, subclass halffeat(scripts): give a dependent that implements a unit's protocol by shape that unit's card— gate PK-1, protocol half
11Relationships¶
Parent: jejjohnson/geostack#150
Related: jejjohnson/geostack#151 (the design), jejjohnson/geostack#155 (pipekit is first in its order)
Related: jejjohnson/pipekit#232 (the rename to pipekit-ops)
Related: skill tree, gaussx’s shelf, geotoolz’s shelf