You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
docs(hashing): refresh content hash reference after the switch - #670
Follow-up to ITL-1559 (the content-hash switch, PR #659) and to CodeRabbit's note on PR #615: 'The hashing reference table also still shows old content-hash labels'.
Changes in docs/reference/hashing.md
Lines 20, 315, 639–650, 679–692. The index and identity explanation previously described one structure-based content hash. They now explain the labelled (pipeline_hash, source_chain) preimage for streams, invocations and bound nodes, and distinguish its cache from the structure-based hash cache.
Lines 55 and 705. The plain derived source ID example changes from derived_v1:semantic_v1:<hex> to derived_v1:content_hash_v1:<hex> because it carries the origin node's labelled hash. The source itself hashes a one-element tuple containing that hash. tags_as_data still requires an explicit source name.
Lines 95, 376–377, 410 and 422. The label table and producer inventory now identify the chain algorithm and the combined hash labels. The stored node hash and operator cache input explicitly carry content_hash_v1.
Lines 452–454, 1315 and 1538. The text now distinguishes the source record-id system tag (a row identifier) from the pipeline record id (an Arrow hash whose preimage includes the labelled node content hash, the instance id and the result id).
Line 520. Give the page's side-effect pod the same explicit audit_logger name as the audit script so both reproduce the existing invocation hashes.
Lines 550–552. The equality explanation now follows the standalone pod's identical identity inputs down to the function URI. The bound node adds the source chain.
Lines 561–584. The worked source ID changes from scores_v1 to dict_v1:scores_v1 because the framework adds the kind. The schema digest and system-tag column names use the recomputed bare source pipeline hashes above. The join positions change from scores/attendance to attendance/scores because the Join orders by those digests.
Lines 618–619. The output schema digest in the grade URI changes from 6dfe7b63d41fec2df9e9fe6e7581428678c88866f4927b45dd48a44df73dfe3d to f935107356f3d83024f0cd7aa336a9ab0d1ce39d9f427f0d8c9880f50bc57003 to match current output.
Lines 703 and 731–735. The raw-stream text now identifies the canonical table structure digest as a source-chain input. The public hash also incorporates the pipeline hash.
Lines 1282–1285 and 2022–2026. The provenance and Arrow-hasher sections now describe source-info tokens in operator records and raw-stream identity tables. The Arrow table hash contributes to the raw stream’s source chain, and the public stream hash combines that chain with its pipeline hash.
Recomputed the page's examples in their shared namespace and checked the schema names, entry and instance IDs, invocation hashes, stored node hash and snapshot. The values in #615 for the instance IDs and their preimage match current main. The published docs and README contain no other stale semantic_v1:<hex> stream or node content examples.
The existing changelog.d/ITL-1559.md covers the unreleased behavior. This documentation correction adds no release-note item. The checker validates existing fragments and rejects suffixed names such as ITL-1559-docs.md.
Verification
Hashing page samples, site content tests and hash site inventory
Changelog validation
Ruff lint and format checks
Summary by CodeRabbit
Documentation
Clarified how content-based and structure-based hashes apply to streams, invocations, and bound nodes, including labelled inputs and root-source identity.
Distinguished row identifiers from pipeline record hashes and clarified how provenance and merged source information affect record hashes and raw-stream identity.
Updated the worked example and hash inventory to include raw-stream identity tables and distinguish them from tables hashed as values.
No actionable comments were generated in the recent review.
Walkthrough
The hashing reference updates its descriptions of hash algorithms, identity inputs, stored hash fields, and row identifiers. It also revises worked hash and provenance examples, including the treatment of raw-stream identity tables and source-info columns.
Changes: Hashing Reference
Layer / File(s)
Summary
Hash identity and source rules docs/reference/hashing.md
The reference distinguishes structure-based semantic_v1 hashes from content_hash_v1 hashes built from labelled pipeline hashes and source chains. It updates descriptions of hash producers, stored values, source identity rules, raw-stream hashing, and source-info inputs.
Identifiers and worked examples docs/reference/hashing.md
The reference distinguishes source record-ID system tags from pipeline record IDs. It updates worked hash and provenance examples and specifies content_hash_v1 as a record-ID input.
This documentation-only update aligns the hashing reference with the current content-hash behavior. No code behavior changes and no outstanding issues were found, so it is ready to merge.
Architecture risk: Low · up to 566c6
The change affects 1 source area.
Changed areas:docs
Review details
Systems and components
observed — 1 changed file mapped to docs.
Pre-merge checks: 4
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Title check
The title "docs(hashing): refresh content hash reference after the switch" matches the changeset, which updates docs/reference/hashing.md to reflect the content-hash switch (content_hash_v1, the label…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title "docs(hashing): refresh content hash reference after the switch" matches the changeset, which updates docs/reference/hashing.md to reflect the content-hash switch (content_hash_v1, the labelled (pipeline_hash, source_chain) preimage, source IDs, examples, and raw-stream identity). It is concise, specific to the primary change, and follows a conventional commit style. Minor vagueness in "after the switch" is acceptable because the objectives identify the switch as ITL-1559 / PR #659.
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
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.
Reviewing files that changed from the base of the PR and between db2ad26 and 566c631.
Files selected for processing: 1
docs/reference/hashing.md
Limit details: You’ve used the included review currently available. Your 100 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.
Recent review details
Context from checks skipped due to timeout: 1
GitHub Check: CodeRabbit
Additional context used
Code guidelines: 1
CLAUDE.md — auto-discovered
Path-based instructions: 3
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/reference/hashing.md
Source excerpt: Every place that produces or reads a digest is listed, with its class (into a hash, stored value, in a name, row identifier, id from a recipe, display only), in the "Hash site inventory" of `docs/reference/hashing.md`.
CodeRabbit inference engine (CLAUDE.md)
Files:
docs/reference/hashing.md
Source excerpt: Documents written during development are kept in the repository, under `docs/dev/` (developer, November 16, 2026; ITL-1169): Never put them in the published documentation (`docs/` outside `docs/dev/`) or at the top level of...
CodeRabbit inference engine (CLAUDE.md)
Files:
docs/reference/hashing.md
Learnings: 1
Learning: 2026-11-16T11:51:15.583Z
Learnt from: eywalker
Repo: metamorphic-labs/orcapod-python PR: 406
File: :0-0
Timestamp: 2026-11-16T11:51:15.583Z
Learning: Within repository "metamorphic-labs/orcapod-python": In orcapod-python, hash-based default source IDs are names formatted as `<kind>:<label>:<hex>` and are built by `hash_source_id` in `src/orcapod/core/sources/source_ids.py`. Do not apply the bare-hex rule for digests embedded in paths, column names, and URIs to these source IDs.
Applied to files:
docs/reference/hashing.md
Additional comments: 1
docs/reference/hashing.md: 1
732-733: Functional Correctness
The pipeline hash does not depend on column order.
The raw-stream pipeline identity is built from the tag and data Arrow schemas. The repository documents the schema digest as ignoring column order, and the public content hash combines that pipeline hash with the source chain. Reordering data columns therefore leaves the pipeline hash, and the content hash, unchanged, as the page states at lines 731-733.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to ITL-1559 (the content-hash switch, PR #659) and to CodeRabbit's note on PR #615: 'The hashing reference table also still shows old content-hash labels'.
Changes in
docs/reference/hashing.md(pipeline_hash, source_chain)preimage for streams, invocations and bound nodes, and distinguish its cache from the structure-based hash cache.derived_v1:semantic_v1:<hex>toderived_v1:content_hash_v1:<hex>because it carries the origin node's labelled hash. The source itself hashes a one-element tuple containing that hash.tags_as_datastill requires an explicit source name.content_hash_v1.audit_loggername as the audit script so both reproduce the existing invocation hashes.joinedandnode.scoressemantic_v1:80462569849407b33efc33ecc0381cd0858643c31d9349a350eb5fbc71e9208f→semantic_v1:d01d850d9a633a442002b2daaebbac769017556f46c9e7e76f9887756934dc08semantic_v1:a19744e791fb1f4c5431daad4380327d8c45f52d4f9353ce944b287265097650→semantic_v1:688307229b8767cfe17f3ff62c25989e5b46cda1880abda1f0b2472eb4e584c9attendancesemantic_v1:48795b2977ca4fb5cadc4d8f57436a593555a36d69d1b39126b8a6f177847106→semantic_v1:c8371b8f502cbe216edff849888afd45b5c2443e61d1e28fd1df4cb0c691b7cesemantic_v1:eb2bdc439e8a48f8246b2ea8d52227418571f43c998be577b5a1c0794ca4d749→semantic_v1:062f29c1d89ef4b9f15accca3b34ef4e94b095e87622b533a701564dad44d0f6joinedsemantic_v1:792d218f5fcbceab6d8012bf35ef49c663c04b4e04e8c06d34e5879150a04964→content_hash_v1:afa34eaa506b72ce9b989c3a2fd81c861985f0fe706b3a531d922a79647a3e95semantic_v1:a308714c9fb11116c31a493dd1a09be8b43654b8b8e07acbfbd9fbfb72998571→semantic_v1:2dd307380419f27651b228a5fa265bbf460c1e23f697ccaef6cd1c43db0bea59podsemantic_v1:781abfcf2b8637daa3393e0e94e4b9b5b9709c7869cf44049819a2946f9d18ec→semantic_v1:21a97bd0500b2102b6ebe9053683a5e24b6f88968cdc4cb28f23c19a11d7e85anodesemantic_v1:e51bb0b27c83974fa4bd5f92d2144036e4ccb71f40448bec72f0edced01391d7→content_hash_v1:dbe31ec84089ba65bb87851182777a8aa270ceae904f92b0126877ca7839454bsemantic_v1:0ae6bcf82d5a5e52b4ba8de2bc389335d448ad5dc2703ab8e3149199b77c2ba0→semantic_v1:549c8952a63f106e3b1e2718ac26c6483a645c0727f51ea2715fdbcc6255b2d7Lines 550–552. The equality explanation now follows the standalone pod's identical identity inputs down to the function URI. The bound node adds the source chain.
Lines 561–584. The worked source ID changes from
scores_v1todict_v1:scores_v1because the framework adds the kind. The schema digest and system-tag column names use the recomputed bare source pipeline hashes above. The join positions change from scores/attendance to attendance/scores because the Join orders by those digests.Lines 618–619. The output schema digest in the
gradeURI changes from6dfe7b63d41fec2df9e9fe6e7581428678c88866f4927b45dd48a44df73dfe3dtof935107356f3d83024f0cd7aa336a9ab0d1ce39d9f427f0d8c9880f50bc57003to match current output.Lines 703 and 731–735. The raw-stream text now identifies the canonical table structure digest as a source-chain input. The public hash also incorporates the pipeline hash.
Lines 1282–1285 and 2022–2026. The provenance and Arrow-hasher sections now describe source-info tokens in operator records and raw-stream identity tables. The Arrow table hash contributes to the raw stream’s source chain, and the public stream hash combines that chain with its pipeline hash.
Recomputed the page's examples in their shared namespace and checked the schema names, entry and instance IDs, invocation hashes, stored node hash and snapshot. The values in #615 for the instance IDs and their preimage match current main. The published docs and README contain no other stale
semantic_v1:<hex>stream or node content examples.The existing
changelog.d/ITL-1559.mdcovers the unreleased behavior. This documentation correction adds no release-note item. The checker validates existing fragments and rejects suffixed names such asITL-1559-docs.md.Verification
Summary by CodeRabbit