Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
177 commits
Select commit Hold shift + click to select a range
4205619
docs(plans): plan stage 1 of ITL-1466, three nested row ids (ITL-1471)
eywalker Nov 26, 2026
e64c73c
feat(nodes): define the entry, instance and record ids in one module …
eywalker Nov 26, 2026
f5cdbc8
feat(nodes)!: key rows by instance and record id; layouts pdb_v2, odb…
eywalker Nov 26, 2026
eba3220
test(golden): pin a pipeline table's instance ids; the approved golde…
eywalker Nov 26, 2026
01024ff
docs: the three row ids, the v2 layouts and the changelog fragment (I…
eywalker Nov 26, 2026
8308b01
docs: name the pipeline row key in two comments (ITL-1471)
eywalker Nov 26, 2026
756facb
test(pipeline): accept either async outcome for two copies of one inp…
eywalker Nov 26, 2026
b556376
docs: name ITL-1482 where the SQLite refusal of an operator cache is …
eywalker Nov 26, 2026
e45e75f
test: regression tests for the review findings on the row ids (ITL-1471)
eywalker Nov 26, 2026
941cf04
fix(nodes): a placeholder on the async route finds its result by the …
eywalker Nov 26, 2026
27b28ce
fix(provenance): a trace resolves a held row by its instance (ITL-1471)
eywalker Nov 26, 2026
8fe95b8
fix(datagrams): the instance id reads a row's typed token columns (IT…
eywalker Nov 26, 2026
a2803ea
docs: the Arrow hash summary names the three ids; rules for tokens, t…
eywalker Nov 26, 2026
2d8a6a8
test(pipeline): build the inactive pod through the decorator (ITL-1471)
eywalker Nov 26, 2026
086e70f
test(pipeline): a stored row recomputes its ids whatever its token co…
eywalker Nov 26, 2026
1f39198
fix(nodes): a pipeline row stores the token columns its instance id w…
eywalker Nov 26, 2026
6fe86ef
test, docs: ordinary rows keep their stored token columns; rows with …
eywalker Nov 26, 2026
f5a7bf0
fix(nodes): a row with no token stores no token column (ITL-1471)
eywalker Nov 26, 2026
5d1ebee
Merge branch 'main' into eywalker/itl-1471-three-nested-row-ids-v2-ta…
eywalker Nov 26, 2026
f3f6842
test(pipeline): name ITL-1491 on the tests that pin the held-rows dif…
eywalker Nov 26, 2026
df42f2d
test: regression tests for the second review of the row ids (ITL-1471)
eywalker Nov 26, 2026
fba3aec
fix(nodes): key the pipeline table by node content hash and record id…
eywalker Nov 26, 2026
ab58159
fix(provenance): select a held row's record by its instance id on eve…
eywalker Nov 26, 2026
2747f25
test, docs: the pipeline table's key, the trace by instance id and th…
eywalker Nov 26, 2026
69d8ec1
docs(hashing): list the pipeline table's key in the hash site invento…
eywalker Nov 26, 2026
5f8eba1
test: one canonical type per token value (ITL-1471)
eywalker Nov 26, 2026
296e877
fix(datagrams): one canonical type per token value; a clear refusal f…
eywalker Nov 26, 2026
4a916ec
fix(nodes): read the stored token types with the preflight's one sche…
eywalker Nov 26, 2026
fdd265c
test(pipeline): a fatal error in a placeholder's lookup gives the sam…
eywalker Nov 26, 2026
ddfc24b
fix(nodes): the async route reports the crash of a placeholder row be…
eywalker Nov 26, 2026
6607424
test(datagrams): a missing token is a null token; a kept token keeps …
eywalker Nov 26, 2026
e851695
fix(datagrams): a missing token is a null token, and a changed row ke…
eywalker Nov 26, 2026
027d908
docs(reference): where the row ids are read, when a new instance comp…
eywalker Nov 26, 2026
d72bc9d
test: review items of PR #583 (which record wins, several instance id…
eywalker Nov 26, 2026
20797df
test(pipeline): compare stored instance ids as a set, the async route…
eywalker Nov 26, 2026
3e90d4d
test(datagrams): a rename moves a column's token with it in every vie…
eywalker Nov 26, 2026
5edd6e3
fix(datagrams): a rename carries only the tokens of the columns the r…
eywalker Nov 26, 2026
03d7abe
test: a fall-through token has one type on both routes and from the s…
eywalker Nov 26, 2026
fd94fb7
fix(datagrams): a column taken from another row has its token typed f…
eywalker Nov 26, 2026
9b65574
test(datagrams): a rename of a placeholder keeps its sentinel tokens …
eywalker Nov 26, 2026
9361884
fix(datagrams): an empty rename returns the row itself, and a placeho…
eywalker Nov 26, 2026
52f2560
feat(row_ids)!: the record id covers the node's content hash and is t…
eywalker Nov 26, 2026
262a0cc
docs(datagrams): the re-typing of a fallen-through data-tag's token i…
eywalker Nov 27, 2026
3298bf5
docs(datagrams): state the token re-typing stopgap exactly, without o…
eywalker Nov 27, 2026
07ca350
test: source-info token columns keep the pipeline's type on the sync …
eywalker Nov 27, 2026
fb8c01e
fix: a source-info token column keeps the pipeline's type on every ro…
eywalker Nov 27, 2026
3577548
Merge branch 'eywalker/itl-1471-three-nested-row-ids-v2-table-layouts…
eywalker Nov 27, 2026
994e658
docs(datagrams): cut the token re-typing stopgap text down to what th…
eywalker Nov 27, 2026
ac1f269
Merge branch 'eywalker/itl-1471-three-nested-row-ids-v2-table-layouts…
eywalker Nov 27, 2026
2907816
test: the findings of the independent review of PR 601, failing befor…
eywalker Nov 27, 2026
d698ea9
fix: token types on the Join's async route, record batches, hand-buil…
eywalker Nov 27, 2026
749ddf5
docs: say only what holds for token types, and state when a refusal m…
eywalker Nov 27, 2026
65c1965
test: a Join never stores its pending marker in a merged token, faili…
eywalker Nov 27, 2026
47b146e
chore: types in the review fixes and tests (ITL-1491)
eywalker Nov 27, 2026
a13e53f
test: a source-info token's layers must be its data's outer layers, f…
eywalker Nov 27, 2026
81582a3
feat(streams): refuse a stream whose source-info token does not have …
eywalker Nov 27, 2026
891a089
test: Index gives the element the declared token type less one layer,…
eywalker Nov 27, 2026
584dbfa
fix(index): the element's token has the declared type less one layer,…
eywalker Nov 27, 2026
789222e
test: row-built form and rows-on-read fixtures give list tokens list …
eywalker Nov 27, 2026
6c61599
test: session and data-tag token fixtures follow the token-shape rule…
eywalker Nov 27, 2026
37beb11
test: stored-row and row-id token fixtures follow the token-shape rul…
eywalker Nov 27, 2026
f5685cd
fix(streaming joins): a batch is held to its stream's token type; fix…
eywalker Nov 27, 2026
b94dc7f
test: channel, record-batch and transport fixtures follow the token-s…
eywalker Nov 27, 2026
0d2f1c7
test: end-to-end and equivalence token fixtures follow the token-shap…
eywalker Nov 27, 2026
838f948
test: the review findings restated under the token-shape rule; the Jo…
eywalker Nov 27, 2026
94ae454
docs: the token-shape rule, two declarations of one token column, and…
eywalker Nov 27, 2026
dca30c9
chore: types in the token-shape test helpers (ITL-1491)
eywalker Nov 27, 2026
76f5398
test: the last hand-built token fixture follows the token-shape rule;…
eywalker Nov 27, 2026
5bd029e
test: the findings of the second review of PR 601, failing before the…
eywalker Nov 27, 2026
128c38a
fix: a string leaf in the token-shape rule, held rows on the async ro…
eywalker Nov 27, 2026
79fd36d
docs: token rules match what is checked and where; the ordinary-sourc…
eywalker Nov 27, 2026
04de92a
test: the findings of the third review of PR 601, failing before thei…
eywalker Nov 27, 2026
05b5ce8
fix: the held-row check reads one normalized form and a row's token l…
eywalker Nov 27, 2026
7b32524
test: a token's list is never null at any level; guards for input no …
eywalker Nov 27, 2026
6c1c9d6
fix: a token's list is never null at any level, checked where a strea…
eywalker Nov 27, 2026
159da25
test: the findings of the fourth review of PR 601, failing before the…
eywalker Nov 27, 2026
ab8a94b
fix: take the async held-row check out; the rule is checked where a s…
eywalker Nov 27, 2026
e4af3a2
docs: say which Index outcome the aside means; state the ITL-1534 lim…
eywalker Nov 27, 2026
ce0cc26
chore: merge main into ITL-1491
eywalker Nov 27, 2026
789c1a2
fix(arrow): declare Join system tags non-nullable and validate source…
eywalker Nov 27, 2026
08d2c67
fix(sources): reject missing custom system tag columns (ITL-1543)
eywalker Nov 27, 2026
969ed09
fix(arrow): honor Join field declarations and validate raw source rea…
eywalker Nov 27, 2026
705d60b
fix(streams): preserve declared system tag fields in rows (ITL-1543)
eywalker Nov 28, 2026
88fd5de
Merge remote-tracking branch 'origin/main' into eywalker/itl-1543-part-b
eywalker Nov 28, 2026
d74dd59
fix(streams): reconcile system tag fields across source and Join path…
eywalker Nov 28, 2026
5ac1301
Merge remote-tracking branch 'origin/main' into eywalker/itl-1543-part-b
eywalker Nov 28, 2026
376bdb6
fix(streams): declare source-info token fields nullable (ITL-1557)
eywalker Nov 28, 2026
0c9b2b8
chore(branch): merge ITL-1543 part B into ITL-1557
eywalker Nov 28, 2026
5d3f24b
fix(streams): validate replayed source tags and share tied Join sorti…
eywalker Nov 28, 2026
ab136d0
fix(sources): validate Arrow exporters before Polars conversion (ITL-…
eywalker Nov 28, 2026
4ca8850
fix(streams): use shared token fields for empty sinks
eywalker Nov 28, 2026
cc249b0
chore(branch): merge updated ITL-1543 part B
eywalker Nov 28, 2026
d902f4e
test(sources): expect refusal of integer system tags (ITL-1543)
eywalker Nov 28, 2026
1f210fd
Merge branch 'eywalker/itl-1543-a-row-must-take-exactly-its-streams-a…
eywalker Nov 28, 2026
5f518d8
test(datagrams): expect preserved Arrow system tag fields (ITL-1543)
eywalker Nov 28, 2026
ecb9ffb
fix(cache): store declared operator output fields (ITL-1562)
eywalker Nov 28, 2026
f624760
Merge remote-tracking branch 'origin/eywalker/itl-1543-part-b' into e…
eywalker Nov 28, 2026
c62f82a
fix(cache): preserve declared token fields on operator replay
eywalker Nov 28, 2026
4f2a63f
Merge remote-tracking branch 'origin/main' into eywalker/itl-1543-part-b
eywalker Nov 28, 2026
8083d19
Merge remote-tracking branch 'origin/main' into eywalker/itl-1543-part-b
eywalker Nov 28, 2026
403ff6f
fix(provenance): preserve declared types when replacing source tokens
eywalker Nov 28, 2026
a9a3794
chore: merge PR 606 into ITL-1491
eywalker Nov 28, 2026
f56575b
fix(function_node): preserve output provenance on stored reads (ITL-1…
eywalker Nov 28, 2026
709bf24
fix(function_node): namespace stored input provenance (ITL-1524)
eywalker Nov 28, 2026
2486c63
chore: merge main into ITL-1491 after API reference fix
eywalker Nov 28, 2026
7ecc2c4
fix(streams): merge declared token types into the provenance stack
eywalker Nov 28, 2026
42197e9
chore: merge main into the provenance stack
eywalker Nov 28, 2026
87a3b0f
test(cache): type list-valued provenance fixtures
eywalker Nov 28, 2026
bbf9c1b
chore(function_node): integrate provenance layout with PR 607 (ITL-1524)
eywalker Nov 28, 2026
7fbb5c1
test(function_node): align record checks with pdb_v3 (ITL-1524)
eywalker Nov 28, 2026
7091585
feat(identity): compute structure, source and name chains
eywalker Nov 28, 2026
a629f2b
Merge remote-tracking branch 'origin/main' into eywalker/itl-1559-thr…
eywalker Nov 28, 2026
4b21055
fix(identity): preserve chains across binding and persistence
eywalker Nov 28, 2026
5da977a
Merge remote-tracking branch 'origin/main' into eywalker/itl-1559-thr…
eywalker Nov 28, 2026
f393077
fix(identity): address three-chain review findings
eywalker Nov 28, 2026
bd7ac08
chore: merge origin/main into three-chain step 1
eywalker Nov 28, 2026
12c6d38
fix(identity): preserve saved job bytes and chain inputs
eywalker Nov 28, 2026
3bb81bf
fix(identity): reject combined hashes for collapsed symmetry
eywalker Nov 28, 2026
a3e9a92
fix(identity): resolve live bindings and canonical chain order
eywalker Nov 28, 2026
d7512fa
fix(identity): guard row reads and unbound derived origins
eywalker Nov 28, 2026
c49e36e
fix(identity): preserve safe polling and loaded Index chains
eywalker Nov 28, 2026
0d2bb9a
fix(identity): keep step-one chain reads callback-free
eywalker Nov 28, 2026
3e4f03e
fix(identity): reuse polling digests through source wrappers
eywalker Nov 28, 2026
060f54a
fix(identity): restore chains for saved single-input built-ins
eywalker Nov 28, 2026
6c4accb
docs(identity): clarify saved single-input operator chains
eywalker Nov 28, 2026
824f370
chore(pipeline): merge main into three-chain step 1
eywalker Nov 28, 2026
31136af
docs(identity): clarify step-one hash limits and review coverage
eywalker Nov 28, 2026
86a8a43
chore(pipeline): merge main after declared provenance fixes
eywalker Nov 28, 2026
f50dcf2
chore: merge main into ITL-1524
eywalker Nov 28, 2026
b3441ce
test(function_node): align merged provenance fixtures with pdb_v3
eywalker Nov 28, 2026
d575e91
fix(function_node): retain input provenance in joined records
eywalker Nov 28, 2026
54692cd
chore(pipeline): merge main after context hashing and job resave fixes
eywalker Nov 28, 2026
014d38d
test(function_node): check joined input token alignment
eywalker Nov 28, 2026
58b3c87
feat(identity): hash typed source and name entries at every node
eywalker Nov 29, 2026
1318293
chore(identity): merge main with the three-chain specification
eywalker Nov 29, 2026
558d3b5
docs(identity): record typed chain tree decisions
eywalker Nov 29, 2026
6767a6e
Merge remote-tracking branch 'origin/main' into eywalker/itl-1524-fun…
eywalker Nov 29, 2026
5db323d
fix(function_node): retain pdb_v2 for input provenance rename
eywalker Nov 29, 2026
560edb8
fix(identity): preserve explicit empty source slot names
eywalker Nov 29, 2026
ed48fa2
chore(identity): merge main after step one
eywalker Nov 29, 2026
60b4181
feat(identity)!: use the source chain for content hashes
eywalker Nov 29, 2026
0e30b95
fix(identity): handle graph declarations and refresh bound identity
eywalker Nov 29, 2026
0ebff08
test(identity): update content and record hash pins
eywalker Nov 29, 2026
ffaf537
fix(pipeline): reuse the captured key for active slots
eywalker Nov 29, 2026
7397e7e
fix(identity): handle unbound slot copies and partial job saves
eywalker Nov 29, 2026
9d32042
docs(hashing): inventory graph declarations and drop unused slot memo
eywalker Nov 29, 2026
d020746
test(identity): distinguish slot hashes in invocation transitions
eywalker Nov 29, 2026
d79971a
test(identity): align remaining hash callers and diagram examples
eywalker Nov 29, 2026
d6a7d3d
fix(identity): report source execution without a binding
eywalker Nov 29, 2026
7ccaf72
chore(identity): merge main and retain observer reporting
eywalker Nov 29, 2026
cc0ad6e
test(observers): compare attribution across content hash versions
eywalker Nov 29, 2026
b082d2e
chore: merge main into the content hash switch
eywalker Nov 29, 2026
792b284
fix(identity): keep main's behaviour for slot keys, repeated inputs a…
eywalker Nov 29, 2026
5a57972
chore: merge main into the content hash switch
eywalker Nov 29, 2026
2234f0d
test(pipeline): pin implicit slot names after the content hash switch
eywalker Nov 29, 2026
522b9f2
docs(pipeline): reference the follow-up for implicit slot names
eywalker Nov 29, 2026
3e35bcb
Merge remote-tracking branch 'origin/main' into eywalker/itl-1559-ste…
eywalker Nov 29, 2026
48babc7
test(golden): regenerate the approved content-hash entries (ITL-1559)
eywalker Nov 29, 2026
d7a7b41
chore(merge): integrate main into the content hash switch
eywalker Nov 29, 2026
30417cb
fix(identity): honor explicit hashers for raw stream leaves
eywalker Nov 29, 2026
fbff796
Merge remote-tracking branch 'origin/main' into eywalker/itl-1559-ste…
eywalker Nov 29, 2026
6e782ea
fix(pipeline): reject outputs from earlier slot bindings
eywalker Nov 29, 2026
f7ca95a
fix(streams): preserve reads without graph metadata
eywalker Nov 29, 2026
e1a1b19
chore: merge main into ITL-1524
eywalker Nov 29, 2026
b310a4e
chore: merge main into the content hash switch
eywalker Nov 29, 2026
5905fa0
chore: merge the content-hash switch into ITL-1524
eywalker Nov 29, 2026
ee9c586
test(function_node): update input provenance row ID pins
eywalker Nov 29, 2026
8ae657a
test(golden): add data-tag stream and job identity cases
eywalker Nov 29, 2026
9a40968
fix(pipeline): refresh rebound lazy streams and stored sources
eywalker Nov 29, 2026
790626b
chore: merge the latest content-hash switch into ITL-1524
eywalker Nov 29, 2026
c1ba18a
fix(sources): refresh direct cached reads after the origin reruns
eywalker Nov 29, 2026
dc56283
chore: merge the switch's cached-source refresh
eywalker Nov 29, 2026
b1a032d
test(pipeline): use stable identities to exercise proxy cycles
eywalker Nov 29, 2026
cd35670
chore: merge the switch's proxy cycle test fixes
eywalker Nov 29, 2026
a0aba59
docs: document function input provenance prefix
eywalker Nov 29, 2026
2f26daa
chore(merge): integrate main into the input provenance rename (ITL-1524)
eywalker Nov 29, 2026
22b2174
test(golden): regenerate the approved rename and data-tag entries (IT…
eywalker Nov 29, 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
25 changes: 16 additions & 9 deletions .zed/rules
Original file line number Diff line number Diff line change
Expand Up @@ -993,10 +993,12 @@ of its identity (GroupBy's member_order), never the input's column order.

### Column naming conventions

__ prefix — System metadata (ColumnConfig meta)
_source_ prefix — Source info provenance (ColumnConfig source)
_tag:: prefix — System tag (ColumnConfig system_tags)
_context_key — Data context (ColumnConfig context)
__ prefix — System metadata (ColumnConfig meta)
_source_ prefix — Source info provenance (ColumnConfig source)
_input_source_ prefix — Source-info provenance of an input data column as stored by a
function node, e.g. _input_source_age (ColumnConfig(source=True))
_tag:: prefix — System tag (ColumnConfig system_tags)
_context_key — Data context (ColumnConfig context)

Prefixes are computed from SystemConstant in system_constants.py.

Expand All @@ -1019,9 +1021,12 @@ are also provisional and will be designed alongside the side-effect log (ITL-947
- The layout version is the last component of a table path. Every layout marker started at v1
for the first release, 0.4.0 (developer, November 18, 2026, ITL-1259; 0.3.0 was withdrawn).
The pipeline, side-effect log and operator cache layouts moved to v2 before that release,
with the three row ids (developer, November 25, 2026, ITL-1471; below, "Row ids"). A change to the common bookkeeping columns of a table kind
moves its layout version, so the table gets a new path. Never add, rename or retype a stored
column without it.
with the three row ids (developer, November 25, 2026, ITL-1471; below, "Row ids").
Before the first release, changes to stored columns may keep the layout marker
(decision D33, November 29, 2026). Function pipeline tables keep `pdb_v2` when
their input-token columns become `_input_source_<column>` (ITL-1524). Once
released, a change to the common bookkeeping columns moves the layout version,
so the table gets a new path.
- A plain function's result table is at
<function>/<output schema hash>/v<function major>/python.function.v1/rev1/rdb_v1, three
components with three owners (docs/reference/data-function-types.md):
Expand Down Expand Up @@ -1263,8 +1268,10 @@ these preimages anywhere else.
metadata included); the first batch settles a token column's type only where the stream
declares none for it. A token column may carry metadata on a list's item field,
as its stream declares it.
- The instance id reads a row's tokens through `DataProtocol.source_info_table()`: the typed
columns the row carries, every field nullable; a null token is a `large_string` null, for
- The instance id and the pipeline table use the same `_input_source_<column>` fields from
`row_ids.input_source_info_table`. The helper takes the typed columns from
`DataProtocol.source_info_table()`. Result tables and streams use `_source_<column>`
(ITL-1524). Every field is nullable; a null token is a `large_string` null, for
the id and for the stored column (developer decision of November 26, 2026). A stream's
rows have a null token only in a `large_string` column (the token-shape rule); the
rewrite of a null in a column declared otherwise matters only for a `Data` built by hand
Expand Down
15 changes: 10 additions & 5 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -1020,6 +1020,7 @@ of its identity (GroupBy's `member_order`), never the input's column order.
|--------|---------|---------|---------------|
| `__` | System metadata | `__data_id`, `__pod_version` | `ColumnConfig(meta=True)` |
| `_source_` | Source info provenance | `_source_age` | `ColumnConfig(source=True)` |
| `_input_source_` | Source-info provenance of an input data column as stored by a function node | `_input_source_age` | `ColumnConfig(source=True)` |
| `_tag::` | System tag | `_tag::source:abc123` | `ColumnConfig(system_tags=True)` |
| `_context_key` | Data context | `_context_key` | `ColumnConfig(context=True)` |

Expand Down Expand Up @@ -1048,9 +1049,11 @@ are also provisional and will be designed alongside the side-effect log (ITL-947
- Every layout marker started at `v1` for the first release, 0.4.0 (developer, November 18,
2026, ITL-1259; 0.3.0 was withdrawn). The pipeline, side-effect log and operator cache
layouts moved to `v2` before that release, with the three row ids (developer, November 25,
2026, ITL-1471; below, "Row ids"). A change to the common
bookkeeping columns of a table kind moves its layout version, so the table gets a new path.
Never add, rename or retype a stored column without it.
2026, ITL-1471; below, "Row ids"). Before the first release, changes to stored
columns may keep the layout marker (decision D33, November 29, 2026). Function pipeline
tables keep `pdb_v2` when their input-token columns become `_input_source_<column>`
(ITL-1524). Once released, a change to the common bookkeeping columns moves the
layout version, so the table gets a new path.
- A plain function's result table is at
`<function>/<output schema hash>/v<function major>/python.function.v1/rev1/rdb_v1`, three
components with three owners (`docs/reference/data-function-types.md`):
Expand Down Expand Up @@ -1294,8 +1297,10 @@ are defined in one module, `core/row_ids.py`; never build one of these preimages
metadata included); the first batch settles a token column's type only where the stream
declares none for it. A token column may carry metadata on a list's item field,
as its stream declares it.
- The instance id reads a row's tokens through `DataProtocol.source_info_table()`: the typed
columns the row carries, every field nullable; a null token is a `large_string` null, for
- The instance id and the pipeline table use the same `_input_source_<column>` fields from
`row_ids.input_source_info_table`. The helper takes the typed columns from
`DataProtocol.source_info_table()`. Result tables and streams use `_source_<column>`
(ITL-1524). Every field is nullable; a null token is a `large_string` null, for
the id and for the stored column (developer decision of November 26, 2026). A stream's
rows have a null token only in a `large_string` column (the token-shape rule); the
rewrite of a null in a column declared otherwise matters only for a `Data` built by hand
Expand Down
15 changes: 15 additions & 0 deletions changelog.d/ITL-1524.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
### Breaking changes and migration

- Function pipeline tables store and hash input provenance under
`_input_source_<column>`, which changes the instance and record IDs for rows
with input tokens. Reading or appending to a pre-release `pdb_v2` table
with the older input-token names raises `StoredTableSchemaError` and
directs the caller to rebuild the pipeline table. The existing rows stay
in the store.

### Fixed

- Stored function outputs keep the function's provenance when their names match
input columns. Fall-through data-tags keep their input provenance. Joined
records expose the other input tokens under `_input_source_<column>` when
source info is requested.
1 change: 1 addition & 0 deletions docs/concepts/streams.md
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ shortcut) to control which column groups are included.
| `meta` | System metadata columns, when the stream has any | `__` |
| `system_tags` | System tag columns (provenance tracking) | `_tag_source_id::`, `_tag_record_id::` |
| `source` | Source-info columns (per-data provenance tokens) | `_source_` |
| `source` | Stored input data provenance in a function node's joined records, for example `_input_source_age` | `_input_source_` |
| `context` | Data context column | `_context_key` |
| `content_hash` | Content hash column | `_content_hash` |
| `sort_by_tags` | Sort rows by tag columns | (ordering only) |
Expand Down
18 changes: 18 additions & 0 deletions docs/dev/design_issues/ITL-1524-FN5.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
## `src/orcapod/core/nodes/function_node.py`

### FN5 — Stored function outputs could report the input's provenance
**Status:** resolved
**Severity:** high
**Issue:** ITL-1524

A function job node delivered its own token for an output that shared an input's
name. On readback, the joined table kept the original input's token under that
name and added a suffix to the result token. A downstream function could record
a second instance with the wrong provenance.

**Fix:** The `pdb_v2` pipeline table and the instance ID preimage use the same
`_input_source_<column>` fields. The joined read presents the result table's
`_source_<column>` fields for outputs and fall-through data-tags. When source
info is requested, the joined view also exposes other inputs' provenance under
`_input_source_<column>`. Plain `DerivedSource` token policy is being considered
with the identity work in ITL-1564.
5 changes: 4 additions & 1 deletion docs/reference/data-function-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ for the entry, including:

| Column | Arrow type | Nullable | Meaning |
|---|---|---|---|
| `_input_source_<column>` | the input token's Arrow type | yes | The token of an input data column. The instance id hashes these fields under their stored names. |
| `__pipeline_instance_id` | `large_binary` | yes | The row's instance id: the hash of its entry id (tags, system tags, input data hash) and the input's source-info tokens. The node looks a row up by it. |
| `__pipeline_record_id` | `large_binary` | yes | The row's record id: the hash of the node's content hash (`__node_content_hash`), its instance id and the id of its result. It is the table's key. |
| `__pipeline_run_id` | `large_string` | yes | The ID of the job run that recorded the entry. A node run outside a job stores null. |
Expand Down Expand Up @@ -263,7 +264,9 @@ print([name for name in joined.column_names if name.startswith("__pipeline_")])
```

Pipeline tables written by a release candidate before the three ids are at the
layout `pdb_v1`: they are reported as tables of another layout and are not read.
layout `pdb_v1`. Orcapod reports and preserves them. A pre-release `pdb_v2`
table with the older `_source_<column>` input-token names raises
`StoredTableSchemaError` and must be rebuilt with the current version.

## Where it is declared, and how a released declaration is kept

Expand Down
6 changes: 3 additions & 3 deletions docs/reference/hashing.md
Original file line number Diff line number Diff line change
Expand Up @@ -571,8 +571,8 @@ each suffix is the stream's `pipeline_hash()` (sites 1b and 6).
|------|-----|-------------|
| 7 | `alice` entry id | `6172726f775f76313a000002b2c4dab9ec35d8b2ca236985ab270eeea925894edb55ba37ce6a12321929667c` |
| 7 | `bob` entry id | `6172726f775f76313a0000029729ca8b7278a10b991bb9ca6d0cb5d0bf207da06fecc7130c3ae4d34a4d55ee` |
| 8 | `alice` instance id | `6172726f775f76313a0000025d309ba35bcfa8c47f96f8131b565fe3090f26873513d7aab4022192bd68c45a` |
| 8 | `bob` instance id | `6172726f775f76313a000002c2f60a9279aed09fcb0cfefd07639efbc231c0acc8dc269d9c47b4420910d774` |
| 8 | `alice` instance id | `6172726f775f76313a000002c62e6f147b21488bbb708df133ff0258d6be8d534996f197bbaf6a34f14d1348` |
| 8 | `bob` instance id | `6172726f775f76313a000002141ef1d422719784e62afb22beb02c57587c75f6dcb05e9e7e4cd7aaacc8166b` |

A record id (site 8b) is not shown: it holds the result id. A result computed anew has a new
id (a UUID), so its record id is new; a warm repeat that reuses the stored result reuses its
Expand Down Expand Up @@ -1347,7 +1347,7 @@ preimage = tag.as_table(columns={"system_tags": True})

| Field | Value |
|---|---|
| **Inputs** | `__pipeline_entry_id` (the entry id's labelled digest, `pa.large_binary()`), then the `_source_*` columns of the input data in name order (`data.source_info_table()`): one per data column, a data column with no token having a null token, each with the type the pipeline determines for it (below, "The type of a source-info token column"), a null token being a `large_string` null. A row built from values and the same row read from a table give the same columns when the values' own types are the table's (always for string and null tokens; a list token built by hand that shows fewer list levels than the table declares, such as `[[]]` in a three-level column, is typed from its value and gives another id). So the id is a function of the row alone, never of the order sessions ran in. The pipeline row stores this same table (`FunctionJobNode._add_pipeline_record`), so a stored row gives its instance id again from its own columns |
| **Inputs** | `__pipeline_entry_id` (the entry id's labelled digest, `pa.large_binary()`), then the `_input_source_*` columns of the input data in name order (`row_ids.input_source_info_table`, built from `data.source_info_table()`): one per data column, a data column with no token having a null token, each with the type the pipeline determines for it (below, "The type of a source-info token column"), a null token being a `large_string` null. A row built from values and the same row read from a table give the same columns when the values' own types are the table's (always for string and null tokens; a list token built by hand that shows fewer list levels than the table declares, such as `[[]]` in a three-level column, is typed from its value and gives another id). So the id is a function of the row alone, never of the order sessions ran in. The pipeline row stores this same table (`FunctionJobNode._add_pipeline_record`), so a stored row gives its instance id again from its own columns |
| **Algorithm** | `StarfixArrowHasher.hash_table(preimage)` |
| **Output format** | `ContentHash`; stored in `__pipeline_instance_id` as `b"{method}:{digest}"` |
| **Uniqueness guarantee** | Unique per `(entry, source-info tokens)`; the in-memory cache key and the lookup column of the pipeline table |
Expand Down
8 changes: 4 additions & 4 deletions src/orcapod/contexts/data/v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -250,19 +250,19 @@
"digest": "4d7e6efa1eb0e72175a18d6b40b933d61c6817b1499d590b10e7d016b642f6ba"
},
{
"date": "2026-11-28",
"date": "2026-11-29",
"release": null,
"added": {
"pipeline-02.json": "67a7ed65c5ad810d4ccbe5c01d543770c10a3596ac6eecd3b6796a79cd284d94"
"pipeline-02.json": "cca93cb45ed48622bc58e77d344f8e536a89ee1d5da63c6a8d0b121361c64b5f"
},
"previous": "4d7e6efa1eb0e72175a18d6b40b933d61c6817b1499d590b10e7d016b642f6ba",
"digest": "798829ea585e0749af187b6265f163c1ef871ab50967b3c22bf7b3217ca65b32"
"digest": "a900909f035bbec5eb67869b6b0c87648bcf3446171f2d16a862f5f3e672c437"
}
],
"provisional": {
"arrow.json": "02bcc0c62d70f002336a54976a8dccee7c61dffd66a29a7a74c9fb3178d7a1b1",
"datagram.json": "6dfd07810f954d7ba1a0e17db337643e6f5a1a579b982c3bc327a256e5e70665",
"pipeline.json": "48c29e9ed3658241324213506896744b9bf6f60249c8877a5fb935880ac0bde5",
"pipeline.json": "85d40b12b2beb5e33736bd6a025723469af8f25f960797e8a311c1fd722bee5f",
"schema.json": "470ad4ae62ebe6d47c1ed5b84c3b46b618eb0e8fb9b6bdf6400ad6cdb602c60f",
"semantic.json": "20bf56643b67baadb3fc62dd5d3c9f016bba5f642b3b69cb63d14561772a0dc5",
"torch.json": "cdfb873bb0c0404ff57a1cf085517c8610cb7b41f1c87ec045f3e27ea1cde451"
Expand Down
Loading
Loading