Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
4938378
fix(pipeline): reject conflicting fixed source rows (ITL-1469)
eywalker Nov 25, 2026
18abc8e
fix(pipeline): name the function step in projection conflicts
eywalker Nov 25, 2026
4f1526b
Merge remote-tracking branch 'origin/main' into eywalker/itl-1469-two…
eywalker Nov 26, 2026
51acf6d
fix(pipeline): validate refreshed and rebound source rows
eywalker Nov 26, 2026
4bfcc2c
fix(pipeline): compare a bound proxy using its live schema
eywalker Nov 26, 2026
1e181e8
Merge remote-tracking branch 'origin/main' into eywalker/itl-1469-two…
eywalker Nov 26, 2026
2f44c80
test(pipeline): cover the shared source ID key-column stopgap
eywalker Nov 27, 2026
3e8544f
fix(pipeline): explain the temporary key-column slot collision
eywalker Nov 27, 2026
f2dfb38
test(pipeline): compare readings of one dataset by rows when key colu…
eywalker Nov 27, 2026
cad47d9
fix(pipeline): compare one dataset's readings by rows, not record ids
eywalker Nov 27, 2026
b197756
fix(pipeline): refuse one source id with different key columns in any…
eywalker Nov 27, 2026
2addf67
test(pipeline): unknown keys, three-way order and node run source checks
eywalker Nov 27, 2026
3c17de4
fix(pipeline): order-free source checks, unknown keys, and node run c…
eywalker Nov 27, 2026
8e21ee2
test(pipeline): count fixed-row digests per consistency check
eywalker Nov 27, 2026
08bb410
perf(pipeline): compute each fixed-row digest at most once per check
eywalker Nov 27, 2026
9d32705
test(pipeline): digest per check, proxies once, mutated frames rechecked
eywalker Nov 27, 2026
98a8ed9
fix(pipeline): memoize fixed-row digests per check by underlying source
eywalker Nov 27, 2026
aa8b0ff
docs(sources): holds_fixed_rows does not assume constant values
eywalker Nov 27, 2026
38b2537
test(pipeline): capture-time refusals, two-copy derived sources, node…
eywalker Nov 27, 2026
a40296c
fix(pipeline): claim key-only differences only when every source was …
eywalker Nov 27, 2026
0312a9e
refactor(sources): keep source consistency properties private
eywalker Nov 27, 2026
c6d9f72
fix(pipeline): require one source object per content hash
eywalker Nov 27, 2026
990d595
fix(pipeline): preserve source registration across slot changes
eywalker Nov 28, 2026
4830aca
fix(pipeline): validate captures against live source slots
eywalker Nov 28, 2026
9971756
fix(pipeline): block capture until source bindings are restored
eywalker Nov 28, 2026
244f5b6
fix(pipeline): make slot capture stable and atomic
eywalker Nov 28, 2026
1031834
fix(pipeline): refuse foreign bindable source slots
eywalker Nov 28, 2026
a31fd56
test(pipeline): cover explicit foreign slot registration
eywalker Nov 28, 2026
47257e5
fix(pipeline): follow live inputs through source wrappers
eywalker Nov 28, 2026
fcdaa54
feat(pipeline): derive source slot names from labels
eywalker Nov 28, 2026
91eead8
chore: merge main into the source registration branch
eywalker Nov 28, 2026
778c387
test(pipeline): migrate fixtures and docs to slot labels
eywalker Nov 28, 2026
acf4b01
chore(pipeline): merge updated source registration branch
eywalker Nov 28, 2026
7ec4fb4
chore: merge the upstream API reference fix
eywalker Nov 28, 2026
d2587b9
test(pipeline): label warning fixtures and reserve slot suffixes
eywalker Nov 28, 2026
1811001
docs(pipeline): qualify legacy shared-slot support
eywalker Nov 28, 2026
3857c77
test(spiraldb): expect source registration to reject distinct windows
eywalker Nov 28, 2026
a564f04
chore(pipeline): merge upstream API reference fix
eywalker Nov 28, 2026
726258b
test(pipeline): update remaining fixtures for slot label keys
eywalker Nov 28, 2026
d4311f4
test(pipeline): name slots in connector and execution fixtures
eywalker Nov 28, 2026
6487e91
chore(pipeline): merge current main into slot naming branch
eywalker Nov 28, 2026
2e721c8
fix(pipeline): address source registration review findings
eywalker Nov 28, 2026
fc245fb
chore: merge main with the async operator updates
eywalker Nov 28, 2026
e8f38d1
fix(pipeline): reject cyclic source slot bindings
eywalker Nov 28, 2026
7414f6c
Merge remote-tracking branch 'origin/main' into eywalker/pr577-private
eywalker Nov 28, 2026
8b7d1d9
test(pipeline): type the slot cycle regressions
eywalker Nov 28, 2026
13ad734
fix(pipeline): compare live derived schemas and clarify source conflicts
eywalker Nov 28, 2026
d3b98ce
fix(pipeline): refuse bindings that depend on source slots
eywalker Nov 28, 2026
8f6ad30
Merge remote-tracking branch 'origin/main' into eywalker/pr577-private
eywalker Nov 28, 2026
50efa4d
test(pipeline): exercise restriction refusal with a concrete source
eywalker Nov 28, 2026
089db90
Merge remote-tracking branch 'origin/main' into eywalker/pr577-private
eywalker Nov 28, 2026
66523e5
chore(pipeline): merge main into the three-chain integration branch
eywalker Nov 28, 2026
ff8e35e
chore(pipeline): merge source consistency into the integration branch
eywalker Nov 28, 2026
b206f6f
fix(pipeline): validate captured leaves and node run bindings
eywalker Nov 28, 2026
922011f
test(pipeline): migrate source checks to captured slot labels
eywalker Nov 28, 2026
ac2cabc
chore(pipeline): merge main into the three-chain integration branch
eywalker Nov 28, 2026
e548590
chore(pipeline): merge the latest main logging fix
eywalker Nov 28, 2026
42fa3a1
fix(pipeline): preserve configuration when copying a source slot
eywalker Nov 28, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 15 additions & 9 deletions .zed/rules
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ algorithm produced it.**
preimage table or digest input, feed `to_prefixed_digest()` (binary) or `to_string()`
(text), never `.digest` or `to_hex()`. A logical-type cell is
`<identifier>::<label>:<digest>`. Renaming a label moves every hash it feeds.
- A hash inside a name (path component, column name, `uri`, slot name, run URI) is the bare
- A hash inside a name (path component, column name, `uri`, run URI) is the bare
hex digest: `to_hex()`. A name later fed into a hash (the function `uri` in a pod's
identity, system-tag column names in an entry-id table) is still a name.
- Source ids: every source id is `<kind>_v<N>:<name>` (ITL-1425). A default name built from
Expand Down Expand Up @@ -1459,10 +1459,19 @@ data. The rules:
Arrow type, and the remedy is declaring the slot from the source or in Arrow. A source whose system-tag columns
are not exactly one source-id and one record-id column (a joined or merged stream, a raw
stream with none) is refused by the same check (developer, November 14, 2026, ITL-1126);
binding one properly is ITL-1127. That includes a pipeline's input: Pipeline.compile
binds each leaf through SourceJobNode.from_stream, so a pipeline built directly over a
raw ArrowTableStream is refused (developer, November 14, 2026; wrap the table as a
source). Never pass a bound stream's own system tags through.
binding one properly is ITL-1127. A raw ArrowTableStream is refused as a pipeline
leaf at capture (wrap the table as a source). Never pass a bound stream's own system
tags through.
- A job's source slot uses its captured label as its name (ITL-1565). The source's
assigned label or class name is the default. Use source.as_slot(name) to label only
the slot. Two slots sharing a name are refused, and slot labels are reserved before
generated step labels. A graph-owned slot cannot be renamed (ITL-1559). Dataset IDs,
system tags and source tokens use the source's identity. A bound slot takes the
content identity of its source, and the pipeline identity uses its Arrow schema.
For now, jobs refuse multiple slots with one live source identity at capture, bind,
and before job.run(), run_async() or a job node's run() (ITL-1559).
Non-source leaves are refused during capture, before the invocation is recorded.
Capture the step within the job or pass node.as_source().
- A source id is the source's name (developer, November 11, 2026; ITL-957; every source,
November 15, 2026, ITL-1154), and every source id is <kind>_v<N>:<name> (developer,
November 23, 2026, ITL-1425). The kind part names the kind and implementation version that
Expand All @@ -1480,10 +1489,7 @@ data. The rules:
source_name, source_name_given (given or default: read back, never guessed, by
RootSource._from_saved_name) and source_version apart (the kind is source_type); loaded where the class
declares another version, the source has the installed version's id
(SourceVersionWarning), never a rewritten one. A slot (a job.nodes and bind key) is named
by the source's name, not its full id, and two different sources with one name are
refused in a job (SourceSlotNameCollisionError,
pipeline/base._refuse_sources_sharing_a_slot_name). A CachedSource presents its wrapped
(SourceVersionWarning), never a rewritten one. A CachedSource presents its wrapped
source's id and refuses, when the cache is first read or checked and before the wrapped
source is checked or read, a cache table whose rows name another
id (CachedSourceIdMismatchError; once found, no wrapped row is read or returned and nothing
Expand Down
24 changes: 15 additions & 9 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ algorithm produced it.**
preimage table or digest input, feed `to_prefixed_digest()` (binary) or `to_string()`
(text), never `.digest` or `to_hex()`. A logical-type cell is
`<identifier>::<label>:<digest>`. Renaming a label moves every hash it feeds.
- A hash inside a name (path component, column name, `uri`, slot name, run URI) is the bare
- A hash inside a name (path component, column name, `uri`, run URI) is the bare
hex digest: `to_hex()`. A name later fed into a hash (the function `uri` in a pod's
identity, system-tag column names in an entry-id table) is still a name.
- Source ids: every source id is `<kind>_v<N>:<name>` (ITL-1425). A default name built from
Expand Down Expand Up @@ -1507,10 +1507,19 @@ data. The rules:
Arrow type, and the remedy is declaring the slot from the source or in Arrow. A source whose system-tag columns
are not exactly one source-id and one record-id column (a joined or merged stream, a raw
stream with none) is refused by the same check (developer, November 14, 2026, ITL-1126);
binding one properly is ITL-1127. That includes a pipeline's input: `Pipeline.compile`
binds each leaf through `SourceJobNode.from_stream`, so a pipeline built directly over a
raw `ArrowTableStream` is refused (developer, November 14, 2026; wrap the table as a
source). Never pass a bound stream's own system tags through.
binding one properly is ITL-1127. A raw `ArrowTableStream` is refused as a pipeline
leaf at capture (wrap the table as a source). Never pass a bound stream's own system
tags through.
- A job's source slot uses its captured label as its name (ITL-1565). The source's
assigned label or class name is the default. Use source.as_slot(name) to label only
the slot. Two slots sharing a name are refused, and slot labels are reserved before
generated step labels. A graph-owned slot cannot be renamed (ITL-1559). Dataset IDs,
system tags and source tokens use the source's identity. A bound slot takes the
content identity of its source, and the pipeline identity uses its Arrow schema.
For now, jobs refuse multiple slots with one live source identity at capture, bind,
and before `job.run()`, `run_async()` or a job node's `run()` (ITL-1559).
Non-source leaves are refused during capture, before the invocation is recorded.
Capture the step within the job or pass `node.as_source()`.
- A source id is the source's name (developer, November 11, 2026; ITL-957; every source,
November 15, 2026, ITL-1154), and every source id is `<kind>_v<N>:<name>` (developer,
November 23, 2026, ITL-1425). The kind part names the kind and implementation version that
Expand All @@ -1528,10 +1537,7 @@ data. The rules:
id). A saved config holds `source_name`, `source_name_given` (given or default:
read back, never guessed, by `RootSource._from_saved_name`) and `source_version` apart (the kind is
`source_type`); loaded where the class declares another version, the source has the
installed version's id (`SourceVersionWarning`), never a rewritten one. A slot (a
`job.nodes` and `bind` key) is named by the source's name, not its full id, and two
different sources with one name are refused in a job (`SourceSlotNameCollisionError`,
`pipeline/base._refuse_sources_sharing_a_slot_name`). A `CachedSource` presents its
installed version's id (`SourceVersionWarning`), never a rewritten one. A `CachedSource` presents its
wrapped source's id and refuses, when the cache is first read or checked and before the
wrapped source is checked or read, a cache table whose rows name
another id (`CachedSourceIdMismatchError`; once found, no wrapped row is read or returned
Expand Down
22 changes: 22 additions & 0 deletions changelog.d/ITL-1565.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
### Breaking changes and migration

- Source slots take their names from source labels rather than dataset IDs. An
unlabelled source defaults to its class name. Use the slot label as the key in
`job.bind(sources=...)`, `job.nodes`, and `job.sources`. Newly saved jobs
record these slot names. Existing coherent job files keep their recorded names.
- Distinct inputs with the same slot label are refused. Assign a label or use
`source.as_slot("role")` to give the input a unique name.

### Known limitations

- A job refuses two slots that would hold the same live source identity
(ITL-1559). Older jobs with shared bindings can be loaded, saved, and
inspected directly when the slots feed different function pods. Saved slots
sharing a source and feeding the same function pod still fail to load
(ITL-1554). Running jobs with shared bindings requires distinct sources,
including in load-only mode.
- A graph's slot labels are captured when its steps are recorded. To change one,
rebuild the graph (ITL-1559).
- Capture a computation inside its job or use `node.as_source()` to read another
job's stored results. A prebuilt non-source stream cannot be captured as a
job input (ITL-1559).
2 changes: 2 additions & 0 deletions docs/api/sources.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,5 @@ source id and hashes are not frozen with data context v1 (`PROVISIONAL_SOURCES`)
::: orcapod.core.sources.SourceRegistry

::: orcapod.core.sources.RootSource

::: orcapod.core.sources.RootSource.as_slot
22 changes: 11 additions & 11 deletions docs/concepts/function-pods.md
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ db = InMemoryArrowDatabase()

job = PipelineJob(name="bmi_demo", database=db)
with job:
source = DictSource(data=mice, tag_columns=["subject_id"], tag_only_columns=True, source_id="mice")
source = DictSource(data=mice, tag_columns=["subject_id"], tag_only_columns=True, source_id="mice", label="mice")
compute_bmi.pod(source, label="bmi")

job.run()
Expand Down Expand Up @@ -478,7 +478,7 @@ mice.append({"subject_id": "mouse_03", "weight": 27.8, "height": 0.11})

job = PipelineJob(name="bmi_demo", database=db)
with job:
source = DictSource(data=mice, tag_columns=["subject_id"], tag_only_columns=True, source_id="mice")
source = DictSource(data=mice, tag_columns=["subject_id"], tag_only_columns=True, source_id="mice", label="mice")
compute_bmi.pod(source, label="bmi")

job.run()
Expand Down Expand Up @@ -550,7 +550,7 @@ from orcapod.pipeline import AsyncPipelineOrchestrator

job = PipelineJob(name="bmi_async", database=InMemoryArrowDatabase())
with job:
source = DictSource(data=mice, tag_columns=["subject_id"], tag_only_columns=True, source_id="mice")
source = DictSource(data=mice, tag_columns=["subject_id"], tag_only_columns=True, source_id="mice", label="mice")
compute_bmi.pod(source, label="bmi")

job.run(orchestrator=AsyncPipelineOrchestrator())
Expand Down Expand Up @@ -589,7 +589,7 @@ import asyncio

job = PipelineJob(name="bmi_awaited", database=InMemoryArrowDatabase())
with job:
source = DictSource(data=mice, tag_columns=["subject_id"], tag_only_columns=True, source_id="mice")
source = DictSource(data=mice, tag_columns=["subject_id"], tag_only_columns=True, source_id="mice", label="mice")
compute_bmi.pod(source, label="bmi")


Expand Down Expand Up @@ -665,7 +665,7 @@ Running the same job again computes nothing new, and the summary says so:
```python
job = PipelineJob(name="bmi_demo", database=db)
with job:
source = DictSource(data=mice, tag_columns=["subject_id"], tag_only_columns=True, source_id="mice")
source = DictSource(data=mice, tag_columns=["subject_id"], tag_only_columns=True, source_id="mice", label="mice")
compute_bmi.pod(source, label="bmi")

summary = job.run()
Expand All @@ -687,7 +687,7 @@ def careless_bmi(weight: float, height: float) -> float:

job = PipelineJob(name="bmi_typo", database=InMemoryArrowDatabase())
with job:
source = DictSource(data=mice, tag_columns=["subject_id"], tag_only_columns=True, source_id="mice")
source = DictSource(data=mice, tag_columns=["subject_id"], tag_only_columns=True, source_id="mice", label="mice")
careless_bmi.pod(source, label="bmi")

summary = job.run()
Expand Down Expand Up @@ -730,7 +730,7 @@ more_mice = mice + [{"subject_id": "mouse_04", "weight": 30.0, "height": 0.12}]

load_job = PipelineJob(name="bmi_demo", database=db)
with load_job:
source = DictSource(data=more_mice, tag_columns=["subject_id"], tag_only_columns=True, source_id="mice")
source = DictSource(data=more_mice, tag_columns=["subject_id"], tag_only_columns=True, source_id="mice", label="mice")
compute_bmi.pod(source, label="bmi")

print(load_job.nodes["bmi"].as_table().num_rows) # not run in this process: empty
Expand Down Expand Up @@ -831,7 +831,7 @@ from orcapod.pipeline import AsyncPipelineOrchestrator, SyncPipelineOrchestrator
for orchestrator in (SyncPipelineOrchestrator, AsyncPipelineOrchestrator):
job = PipelineJob(name="bmi_typo_fast", database=InMemoryArrowDatabase())
with job:
source = DictSource(data=mice, tag_columns=["subject_id"], tag_only_columns=True, source_id="mice")
source = DictSource(data=mice, tag_columns=["subject_id"], tag_only_columns=True, source_id="mice", label="mice")
careless_bmi.pod(source, label="bmi")
try:
job.run(orchestrator=orchestrator(error_policy="fail_fast"))
Expand Down Expand Up @@ -1037,7 +1037,7 @@ def notify(ctx, weight: float, height: float) -> None:

notify_job = PipelineJob(name="notify_demo", database=InMemoryArrowDatabase())
with notify_job:
mice_source = DictSource(data=mice, tag_columns=["subject_id"], tag_only_columns=True, source_id="mice")
mice_source = DictSource(data=mice, tag_columns=["subject_id"], tag_only_columns=True, source_id="mice", label="mice")
SideEffectPod(notify)(mice_source, label="notify")

notify_job.run()
Expand Down Expand Up @@ -1089,7 +1089,7 @@ workdir = Path(tempfile.mkdtemp()) # any directory you keep

job = PipelineJob(name="bmi_demo", database=DeltaTableDatabase(workdir / "store"))
with job:
source = DictSource(data=mice, tag_columns=["subject_id"], tag_only_columns=True, source_id="mice")
source = DictSource(data=mice, tag_columns=["subject_id"], tag_only_columns=True, source_id="mice", label="mice")
compute_bmi.pod(source, label="bmi")

job.run()
Expand All @@ -1115,7 +1115,7 @@ the results stored for those inputs. Nodes below a source that is not available
`node.run(load_only=True)` does the same for one node and what it depends on.

```python
loaded.bind(sources={"mice": DictSource(data=mice, tag_columns=["subject_id"], tag_only_columns=True, source_id="mice")})
loaded.bind(sources={"mice": DictSource(data=mice, tag_columns=["subject_id"], tag_only_columns=True, source_id="mice", label="mice")})
summary = loaded.run(load_only=True)
print(loaded.nodes["bmi"].as_table().num_rows, summary.nodes["bmi"].not_stored)
# 3 0
Expand Down
4 changes: 4 additions & 0 deletions docs/concepts/identity.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ pipeline hash, regardless of their data; an input slot declared with Python type
one Arrow type per Python type (`int` is `int64`, `datetime` is `timestamp[us, tz=UTC]`), and
a slot can also be declared with Arrow schemas.

A captured source slot has a label that identifies the role in the job. Its label
enters the content identity while the slot is unbound. A bound slot takes its
content identity from the dataset that fills it.

### Recursive case: downstream elements

Each downstream element (operator, function pod, or node) computes its pipeline hash from:
Expand Down
6 changes: 3 additions & 3 deletions docs/concepts/notebooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ data_dir = make_dataset()
sessions = CSVSource(
str(data_dir / "sessions.csv"),
tag_columns=["subject_id", "session"], tag_only_columns=True,
source_id="sessions",
source_id="sessions", label="sessions",
)
units = CSVSource(
str(data_dir / "units.csv"),
tag_columns=["subject_id", "session", "probe", "unit"], tag_only_columns=True,
source_id="units",
source_id="units", label="units",
)


Expand Down Expand Up @@ -127,7 +127,7 @@ units_by_probe = CSVSource(
str(data_dir / "units.csv"),
tag_columns=["subject_id", "session", "probe", "unit"],
tag_only_columns=["subject_id", "session"],
source_id="units",
source_id="units", label="units",
)
print(units_by_probe.head(2))
# CSVSource[units] — first 2 of 64 rows
Expand Down
41 changes: 23 additions & 18 deletions docs/concepts/pipeline-job.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def compute_bmi(weight: float, height: float) -> float:


def mice(rows):
return DictSource(data=rows, tag_columns=["subject_id"], tag_only_columns=True, source_id="mice")
return DictSource(data=rows, tag_columns=["subject_id"], tag_only_columns=True, source_id="mice", label="mice")


cohort_a = [
Expand Down Expand Up @@ -83,7 +83,7 @@ node:

| Kind of step | Name in `job.nodes` |
|---|---|
| Source | Its `source_id` |
| Source slot | Its captured label, which defaults to the source's class name |
| Function pod | The `label=` passed when it was applied; otherwise the function's name |
| Operator | The operator's class name (`Join`, `GroupBy`), numbered when there are several (`SelectDataColumns_1`) |

Expand Down Expand Up @@ -117,10 +117,10 @@ bindable source slots (`SourceJobNode`). The same restriction applies to
standalone `SourceJobNode` objects, even when unbound. Pass the source itself to
record a new chain, or use `node.as_source()` to read the stored results of an
earlier job. A job can pass its own slots directly into new steps while their
original bindings are in place. The ITL-1559 stopgap refuses streams built
outside the job over one of its own slots. Build the step from the slot inside
the job, or pass the source itself. A schema-only `SourceNode` declares an
independent slot for each job.
original bindings are in place. The ITL-1559 stopgap refuses a prebuilt stream
over one of the job's slots and any non-source stream used as a job leaf.
Record the step inside the job to include it in the graph, or pass the source
itself. A schema-only `SourceNode` declares an independent slot for each job.

## The database

Expand Down Expand Up @@ -372,8 +372,19 @@ print(job_a.nodes["bmi"].as_table().num_rows, job_b.nodes["bmi"].as_table().num_
# 3 1
```

`sources` maps a source slot's name (the `source_id` used when the blueprint was recorded)
to the source to use. A source bound to a slot must have the slot's tag and data columns
`sources` maps each slot's captured label to the source to use. The same label
is the slot's key in `job.nodes` and `job.sources`. Set `label=` on a source
before capture, or pass `source.as_slot("role")` to a step to name just that slot.
Two inputs claiming the same label raise `SourceSlotNameCollisionError`. Rebuild
the graph to rename a captured slot (ITL-1559).

A graph uses a single slot for each live source identity for now (ITL-1559).
An older saved job with shared bindings can be loaded, saved and read directly
when the slots feed different function pods. Saved slots that shared a source
and fed the same function pod still fail to load (ITL-1554). Running a job with
shared bindings, including in load-only mode, requires distinct bindings.

A source bound to a slot must have the slot's tag and data columns
with the same Arrow types (a column the slot declares nullable also accepts a non-null one);
any other source raises `SourceSpecMismatchError`, and an unknown slot name raises
`ValueError`. A slot made from a source keeps that source's Arrow types, so an `int32`
Expand Down Expand Up @@ -478,16 +489,10 @@ function of a function pod, the class of a bound source), and for a job its stat

A selected node also shows the row counts of the job's last run (`job.last_run`).

A source bound with a label (`DictSource(..., label="mice")`, `SpiralDBTableSource(...,
label="units")`) is shown in a job's diagram, in its node's preview, and in
`RestrictedAggregationWarning` by that label; the diagram's details (`source id`) and the
warning give its full source id. `explain()` and `trace()` name it by its id. Two sources with one
label, or a label that is another node's name, are shown as `label (part)`: a SpiralDB
table's dataset, else its project, else the source's name. A single node's preview shows the label
alone. This is display only: the slot
keeps its name, the one `job.nodes[...]` and `bind` take. In a diagram, a source without a label is shown
by its slot's name, as is every source of a `Pipeline` (which binds none) and of a loaded
job (a source's label is not saved).
The diagram, node preview, `explain()` and restriction warnings name a slot
by its captured label and show the bound dataset's full source ID when available.
A source's own label can be changed before it is captured. Rebinding a slot
keeps the slot label.

The options:

Expand Down
2 changes: 1 addition & 1 deletion docs/concepts/provenance.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ trials = DictSource(
],
tag_columns=["animal", "trial"],
tag_only_columns=True,
source_id="trials",
source_id="trials", label="trials",
record_id_columns=["animal", "trial"],
)

Expand Down
Loading
Loading