Skip to content

feat(pipeline): three-chain identity series, integration branch (ITL-1559) - #635

Closed
eywalker wants to merge 58 commits into
mainfrom
eywalker/itl-1559-three-chain
Closed

eywalker wants to merge 58 commits into
mainfrom
eywalker/itl-1559-three-chain

Conversation

@eywalker

Copy link
Copy Markdown
Contributor

Integration base

ITL-1559, ITL-1565, and ITL-1469. This branch supersedes #613 and carries its slot naming from captured labels, as_slot(), label-keyed bind() and job.nodes, and ordered inputs in saved jobs. It merges current main and #577, including the prepare phase, source registration, and the guard against binding to a stream that depends on a slot. #577 will merge to main independently.

The integration moves the non-source leaf error into capture, before the invocation is recorded. Individual node runs use the same distinct-slot-binding check as job runs.

Current refusals

Refusal on this branch Three-chain design verdict
Two different source objects with the same source identity (#577) Keep one object per source identity. One object can eventually fill several slots.
One source ID with different Arrow schemas or key columns (#577) Lift for readings with distinct slot names. Keep for readings that would share a slot name.
Capture after a slot is rebound or unbound (#577) Lift once graph keys are stable across binding changes.
A prebuilt stream over a slot from the same job (#577) Lift only if Q2 gives plain streams and jobs matching slot identities.
Capturing a standalone or another job’s mutable slot (#577) Keep the ownership boundary. The receiving job can declare its own slot.
Binding a slot to a stream that depends on any bindable slot (#577) Keep. A bound source needs an identity independent of job slots.
Two slots reading one live source identity, including capture and individual runs (#613) Lift when the graph can distinguish two slots that share a source.
Renaming a captured slot (#613) Keep for now. A future explicit rename operation would re-key the affected graph.
Duplicate slot labels or an explicit step label that matches a slot label (#613) Keep. Slot names contribute to graph identity.
A non-source leaf, such as a raw, joined, or narrowed stream (#613) Keep. Use a source or capture the producing step inside the job.

#608 separately guards capture and recompilation on a loaded job. The design keeps that guard while loaded jobs lack recorded invocations. See the design’s section 6.

Follow-up branches

The three-chain implementation, graph keys, saved files, approved content-hash switch, and support for two slots on one source will stack on this draft.

Merge resolutions

Verification

  • Checked tests/test_pipeline, tests/test_core/nodes, tests/test_core/sources, and tests/test_hashing on Python 3.13. The initial run passed 16,549 cases and identified 18 tests that needed fixture updates. The subsequent run passed all 890 tests in the updated files, including all 18 cases. The initial run also recorded 146 skips and 116 expected failures.
  • The golden hash generator’s --check passed, and the checked-in golden files and data-context manifests match main.
  • Ruff lint and formatting checks passed. The changelog validator accepts the two inherited fragments, ITL-1469 and ITL-1565.

eywalker and others added 30 commits November 25, 2026 13:51
…mns differ

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A source id names a dataset; key columns only name its rows. Fixed sources
with different key columns are compared as a multiset of tags and data, and
the slot-name refusal claims they differ only in key columns only when every
source is fixed. Adds RootSource.key_columns.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… slots

Developer decision (2026-11-26): until ITL-1506, sources sharing a source id
and schema with different key columns are refused at capture, bind, load and
run, by require_consistent_sources. Fixed sources with equal rows are reported
as differing only in key columns; a source read later is not compared.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…hecks

Every pair of fixed sources is compared by its own rule, so the diagnosis no
longer follows slot order; unknown key columns neither cause nor hide a
key-column refusal; a job node's run() checks the sources it reads as
job.run() does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
RootSource.holds_fixed_rows answers without a digest; the consistency check
memoizes the exact and multiset digests a pair needs; in-memory tables hold
their digests. Documents InconsistentSourceError on side-effect run().

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Drops the lifetime digest cache on in-memory tables, which can share memory
with a caller's frame or array; a check digests each underlying source (a
bound proxy as its delegate) at most once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… run on several columns

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…compared

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 28, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@eywalker

eywalker commented Dec 2, 2026

Copy link
Copy Markdown
Contributor Author

Superseded. This integration branch of the three-chain series is replaced by smaller steps, each carried by a Linear issue: the design ITL-1559; step 3, the compiled graph keyed by node hash (ITL-1848); the downstream reset after a rebind, rename or rewire (ITL-1847); step 4, saved jobs keyed by node hash with the three hashes and ordered inputs (ITL-1864); step 6, lifting the two-slot refusals (ITL-1865); and slot names that come from labels (ITL-1565). The branch is kept for reference.

Posted by a Claude Code agent on behalf of @eywalker.

@eywalker eywalker closed this Dec 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant