From 6ce50790dd330fee36a6636ad067f9b0b4962254 Mon Sep 17 00:00:00 2001 From: "Edgar Y. Walker" Date: Thu, 3 Dec 2026 23:20:29 -0800 Subject: [PATCH 1/5] docs(pipeline): specify source-only job loading --- docs/dev/specs/itl-1966-source-only-load.md | 68 +++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 docs/dev/specs/itl-1966-source-only-load.md diff --git a/docs/dev/specs/itl-1966-source-only-load.md b/docs/dev/specs/itl-1966-source-only-load.md new file mode 100644 index 000000000..9d5d0cbd4 --- /dev/null +++ b/docs/dev/specs/itl-1966-source-only-load.md @@ -0,0 +1,68 @@ +# Load a saved pipeline job as sources (ITL-1966) + +`PipelineJob.load(path, database=None, *, result_database=None, mode="job")` +keeps the existing `PipelineJob` return type. With `mode="source_only"` it returns +a `SourceOnlyPipelineJob`, exported alongside `PipelineJob`. Literal overloads +describe both return types. An unknown mode raises `ValueError` naming the value +and the two supported modes. + +The view exposes `name` as the saved job's name tuple and `nodes` as a read-only +`Mapping[str, DerivedSource]`. Iterating the mapping lists every saved job node +label, including labels without results. `view.nodes[label]` reads and caches +that label's derived source on first access. An unknown label raises +`KeyError(label)`. An existing label without readable stored rows raises +`RuntimeError` with `Node '