Skip to content

docs(tutorial): correct Part 8 provenance guidance - #528

Merged
eywalker merged 2 commits into
mainfrom
eywalker/itl-1434-tutorial-part-8-correct-the-record-id
Nov 24, 2026
Merged

eywalker merged 2 commits into
mainfrom
eywalker/itl-1434-tutorial-part-8-correct-the-record-id

Conversation

@eywalker

@eywalker eywalker commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Fixes ITL-1434

Documentation only. Brought up to date with main (#525, #529, #530 and #531).

  • Record ids (Part 8). feat(pipeline): node.trace(), node.why_missing() and diagram highlight (ITL-1432) #530 already replaced the "compact binary identifiers" sentence. This PR adds an executed sample that prints row_5, and says that a source with key columns has a JSON object of those columns, in declared order, as its record id.
  • Source-info tokens (Part 8). On the units source a token holds the source id (kind and version included, feat(sources): every source id names its kind and implementation version; the class name leaves the source identity (ITL-1425) #525), the row's record id and the column.
  • "Not yet" box (Part 8) and the same passage in docs/concepts/sources.md. Both gave as the reason that the rows of as_source() carry the system tags of every joined source. They do not: the rows hold no system tags. The refusal comes from the declared schema, which is the node's and has one pair of system tags per joined source. Only a node downstream of a Join or MergeJoin of two sources is affected; as_source() of a node fed by one source was bound and run in a new job to confirm it. The earlier version of this PR said every plain as_source() is refused; that is corrected.
  • A changelog fragment.

Verified locally: tests/test_docs and the changelog fragment tests (183 passed), the site build (all internal links valid), ruff check and format, basedpyright (0 errors), golden --check (no value moves). Both bind outcomes were checked by running them.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Clarified how source rows are identified, including the default row_<position> format and the JSON format used when record ID columns are configured.
    • Explained that nodes downstream of a Join or MergeJoin cannot be rebound as a new pipeline source, and documented how joined-source tags are represented.
    • Updated tracing examples to describe source IDs, record positions, and the system-tag values present in stored rows.

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The documentation now specifies source-info values and record ID formats. It also describes why nodes downstream of Join or MergeJoin cannot be rebound as inputs to a new PipelineJob.

Changes: Source documentation

Layer / File(s) Summary
Source info and record IDs
docs/tutorial/08-inspecting-and-tracing.md
The tutorial specifies that source-info values include the source ID, zero-based record position, and column. It documents default row-position IDs and JSON-object IDs when record_id_columns are configured.
Joined-source rebinding limits
docs/concepts/sources.md, docs/tutorial/08-inspecting-and-tracing.md, changelog.d/ITL-1434.md
The documentation describes the system-tag mismatch for nodes downstream of Join or MergeJoin, the resulting SourceSpecMismatchError, and the stored-row source-info behavior. The changelog records the restriction and record ID formats.

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Other

Merge Risk: Minimal · up to 83b74

This PR only updates documentation and adds a changelog entry, and it does not change runtime behavior. The new text on rebinding limits matches the bind-time validation, so it carries minimal merge risk.

Architecture risk: Low · up to 83b74

The change affects 2 systems.

Changed systems: docs, changelog.d

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — docs (service) was modified; 2 changed files map to changed impact.
  • observed — changelog.d (service) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in changelog.d/ITL-1434.md: Adds an ITL-1434 changelog entry documenting record ID formats and the stated refusal of downstream-of-join as_source() values as input to a new PipelineJob.
  • observed — Modified behavior in docs/concepts/sources.md: The documentation now limits the rebinding restriction to nodes downstream of a Join or MergeJoin of two sources. It replaces the broader claim that any downstream join is unsupported because rows carry every joined source’s system tags with the specific mismatch: the node schema declares a pair of system tags per joined source, but binding accepts exactly one pair and refuses the source with SourceSpecMismatchError.
  • observed — Modified behavior in docs/tutorial/08-inspecting-and-tracing.md: The source-info description now specifies that a source’s companion column contains its source ID, zero-based record position, and column, replacing the previous description of source name and row number.
  • observed — Modified behavior in docs/tutorial/08-inspecting-and-tracing.md: The record-ID documentation now says IDs are text and default to the zero-based row position, demonstrates reading row_5, and specifies that sources with record_id_columns use a JSON object of declared keys and values in declaration order. This replaces the brief description of row_5 or key-column values.
Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "docs(tutorial): correct Part 8 provenance guidance" matches the main change. The PR corrects Part 8 of the tutorial and docs/concepts/sources.md on provenance, record IDs, and the as_source…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "docs(tutorial): correct Part 8 provenance guidance" matches the main change. The PR corrects Part 8 of the tutorial and docs/concepts/sources.md on provenance, record IDs, and the as_source() refusal guidance. The title is short, specific, and uses the conventional docs(scope) format.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Usage-based review receipt

Note

This review was completed with usage-based billing: files reviewed beyond your plan's included limits are billed at $0.25/file. View usage-based billing.

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 4d55ad7 and 83b7401.

Files selected for processing: 3

  • changelog.d/ITL-1434.md
  • docs/concepts/sources.md
  • docs/tutorial/08-inspecting-and-tracing.md

Limit details: You’ve used the included review currently available. Your 106 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Recent review details

Additional context used

Code guidelines: 1

CLAUDE.md — auto-discovered
Path-based instructions: 5

Source excerpt: Every fenced `python` block in `README.md`, `docs/index.md`, `docs/getting-started.md`, `docs/troubleshooting.md`, `docs/concepts/`, `docs/reference/` and `docs/tutorial/` is executed by `tests/test_docs/test_doc_samples.py`...

CodeRabbit inference engine (CLAUDE.md)

Files:

  • docs/concepts/sources.md
  • docs/tutorial/08-inspecting-and-tracing.md
Source excerpt: `docs/` is the only source.

CodeRabbit inference engine (CLAUDE.md)

Files:

  • docs/concepts/sources.md
  • docs/tutorial/08-inspecting-and-tracing.md
Source excerpt: A pull request never edits `CHANGELOG.md` (developer, November 11, 2026; ITL-961).

CodeRabbit inference engine (CLAUDE.md)

Files:

  • changelog.d/ITL-1434.md
Source excerpt: The file holds only the text that would have gone under the release heading in `CHANGELOG.md`: the same category headings `CHANGELOG.md` uses (`### Breaking changes and migration`, `### Added`, `### Changed`, `### Fixed`, `#...

CodeRabbit inference engine (CLAUDE.md)

Files:

  • changelog.d/ITL-1434.md
Source excerpt: Write pages as before: a `# <title>` first line, mkdocs-style admonitions (`!!!

CodeRabbit inference engine (CLAUDE.md)

Files:

  • docs/concepts/sources.md
  • docs/tutorial/08-inspecting-and-tracing.md

@codecov

codecov Bot commented Nov 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
see 5 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

…wording (ITL-1434)

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

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

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

@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@eywalker
eywalker merged commit 9a4385b into main Nov 24, 2026
16 checks passed
@eywalker
eywalker deleted the eywalker/itl-1434-tutorial-part-8-correct-the-record-id branch November 24, 2026 09:02
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