Skip to content

refactor(function_pod)!: rename the call keyword strict to strict_columns (ITL-1585) - #621

Merged
eywalker merged 4 commits into
mainfrom
eywalker/itl-1585-rename-the-function-pod-call-keyword
Nov 28, 2026
Merged

eywalker merged 4 commits into
mainfrom
eywalker/itl-1585-rename-the-function-pod-call-keyword

Conversation

@eywalker

@eywalker eywalker commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Fixes ITL-1585

Rename the function pod call keyword to strict_columns before 0.4.0 so callers can tell it validates input column names. Use pod(a, b, strict_columns=True) to reject extra data columns. The default still drops extra data columns with one automatic select. The old keyword raises Python's unexpected-keyword TypeError. Pod identity, hashes, and stored data are unaffected.

Updated the diagnostic, docs, examples, and tests for direct, wrapped, cached, and decorator-created pods. The migration is recorded in changelog.d/ITL-1585.md.

Audit of strict in src/orcapod

Location relative to src/orcapod Meaning Result
core/function_pod.py — _FunctionPodBase.__call__, FunctionPod.__call__, and the data-tag diagnostic Reject input data columns the function does not take. Wrapped, fall-through, and cached pods inherit the base implementation. Renamed to strict_columns
core/operators/column_selection.py SelectTagColumns, SelectDataColumns, SelectColumns, DropTagColumns, DropDataColumns, and DropColumns reject missing names or names outside the selected role. strict is a config key and part of operator identity. Retained
core/operators/mappers.py, pipeline/provenance.py (mapper planning docs) MapTags, MapData, and MapColumns reject mapping keys that do not exist in the expected role. strict is a config key and part of operator identity. Retained
core/streams/base.py, protocols/core_protocols/streams.py Stream methods expose and forward the select, drop, and map operators' setting, including the reserved rename option. Retained
core/function_pod.py, core/nodes/{function_node,operator_node,source_node}.py, core/operators/{add_tags,group_by,static_output_pod}.py, core/sources/{display_names,spiraldb_table_source}.py, core/streams/{base,view}.py, databases/_row_index.py, logical_types/{numpy_type,torch_type}.py Python's zip(strict=True) checks that its iterables have equal lengths. Retained
config.py, errors.py, semantic_types/universal_converter.py The "strict" time-zone policy rejects naive datetimes. Retained
hashing/versioned_hashers.py, hashing/semantic_hashing/{semantic_hasher,content_identifiable_mixin,encoded,builtin_handlers}.py Strict semantic hashing raises for unsupported Python types. Retained
hashing/{arrow_hashers,orcapod_table,pandas_value_hash,starfix_digest}.py, hashing/semantic_hashing/{builtin_handlers,torch_handler}.py, logical_types/{numpy_type,polars_type,torch_type}.py, pipeline/provenance.py (value comparisons), protocols/hashing_protocols.py, contexts/data/v1.json Strict value digests and comparisons, including the Arrow hasher API and hash label. Retained
hashing/semantic_hashing/polars_expr.py Polars cast and string-matching options in expression identity, and the parser's rejection of unsupported expression shapes. Retained
utils/arrow_utils.py Strict Arrow schema compatibility checks for extra input fields. Retained
core/nodes/source_node.py (bind docs) Source binding rejects column role differences. Retained
logical_types/registry.py Exact equality for logical storage types outside the canonical large-variant path. Retained

The test-only xfail(strict=True) markers are unchanged.

Verification

  • Ruff lint and format checks
  • basedpyright
  • Golden hash check for semantic, schema, Arrow, datagram, pipeline, and torch values
  • Changelog fragment and design issue checks
  • Function pod, data-tag, newcomer error, and documentation sample tests

Review follow-up

  • Corrected the call example in the existing unreleased ITL-1023 fragment so the 0.4.0 release notes use strict_columns=True. Checked all fragments for stale function pod call examples and verified that uv run python scripts/assemble_changelog.py --check passed.
  • Restored the original ITL-807 implementation plan and added a one-line note about the rename.

Summary by CodeRabbit

  • Changes
    • Renamed the function-pod call option from strict to strict_columns. Use strict_columns=True to reject extra input columns; by default, unused columns are automatically dropped.
    • Updated examples and guidance to reflect the renamed option and clarify that .process() uses an exact column contract.

…umns (ITL-1585)

BREAKING CHANGE: use strict_columns=True for exact function pod input columns.
@coderabbitai

coderabbitai Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The function pod call keyword changes from strict to strict_columns. Tests, examples, instructions, and changelog entries use the new name. The call behavior and supported arguments for other pod types are also covered by updated tests.

Changes: Function pod option

Layer / File(s) Summary
Rename option and verify call behavior
src/orcapod/core/function_pod.py, tests/test_core/function_pod/*, tests/test_core/data_tags/*, tests/test_core/test_newcomer_papercuts.py
Function pod calls accept strict_columns instead of strict. Tests cover extra-column rejection and confirm that the former keyword is rejected. Tests also check that process, operators, and side-effect pods do not accept strict_columns.
Update usage guidance
.zed/rules, CLAUDE.md, README.md, changelog.d/*, docs/*
Documentation and changelog entries use strict_columns. They describe the default handling of extra columns and the strict call behavior.

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

Change: Refactor

Possibly related issues

  • Issue 264 describes a function pod input-column contract. This PR changes that contract by documenting the default dropping of unused columns and the strict_columns rejection option. It does not implement the issue’s warning or cut-before-join behavior.

Possibly related PRs

Merge Risk: Minimal · up to 76019

This renames the function pod keyword from strict to strict_columns, and callers still using the old name will now get a TypeError. The rename is intentional, documented in the changelog, and covered by tests, so merge-readiness risk is minimal.

Security architecture risk: Minimal · up to 76019

Existing callers that pass strict will get a TypeError until they update the keyword. Exact validation and default column selection are unchanged, and the rename does not introduce a new security boundary or require a stored-data migration.

Retained concerns
No architecture-level concerns identified.

Security review details

Trust Boundaries and Controls

  • observed — The renamed boolean selects the existing input-column validation path. It does not supply a caller identity or authority, and the old spelling cannot silently disable exact validation.
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 names the main change: the function pod call keyword strict is renamed to strict_columns, as the summaries, objectives, and changed files (function_pod.py, docs, tests, changelog) all co…
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 names the main change: the function pod call keyword strict is renamed to strict_columns, as the summaries, objectives, and changed files (function_pod.py, docs, tests, changelog) all confirm. It also follows the conventional-commit form and references ITL-1585. The title is a single sentence of 84 characters, which is acceptable.

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 4c08419 and 76019d0.

Files selected for processing: 17

  • .zed/rules
  • CLAUDE.md
  • README.md
  • changelog.d/ITL-1023.md
  • changelog.d/ITL-1585.md
  • docs/concepts/data-tags.md
  • docs/concepts/function-pods.md
  • docs/dev/design_issues/ITL-807-F16.md
  • docs/dev/plans/2026-11-12-itl-807-function-pod-auto-select.md
  • docs/getting-started.md
  • docs/troubleshooting.md
  • docs/tutorial/02-function-pods.md
  • src/orcapod/core/function_pod.py
  • tests/test_core/data_tags/test_error_messages.py
  • tests/test_core/data_tags/test_function_pods.py
  • tests/test_core/function_pod/test_function_pod_auto_select.py
  • tests/test_core/test_newcomer_papercuts.py

Limit details: You’ve used the included review currently available. Your 96 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: 2

  • GitHub Check: CodeRabbit
  • GitHub Check: Tests (3.13)
Additional context used

Code guidelines: 1

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

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:

  • README.md
  • docs/concepts/data-tags.md
  • docs/concepts/function-pods.md
  • docs/getting-started.md
  • docs/troubleshooting.md
  • docs/tutorial/02-function-pods.md
Source excerpt: `docs/dev/design_issues/` is the canonical log of known design problems, bugs, and code quality issues: one file per entry (developer, November 11, 2026; ITL-968).

CodeRabbit inference engine (CLAUDE.md)

Files:

  • docs/dev/design_issues/ITL-807-F16.md
Source excerpt: Respect the Arrow types the inputs already have, normalized to their large variants (developer, November 10, 2026: large and non-large variants hash identically, so always normalize to large for consistency).

CodeRabbit inference engine (CLAUDE.md)

Files:

  • src/orcapod/core/function_pod.py
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:

  • src/orcapod/core/function_pod.py
Source excerpt: Tests and golden fixtures that build a source with tag columns pass `tag_only_columns=True` unless the test is about the default (developer, November 16, 2026, ITL-1159).

CodeRabbit inference engine (CLAUDE.md)

Files:

  • tests/test_core/data_tags/test_error_messages.py
  • tests/test_core/data_tags/test_function_pods.py
  • tests/test_core/function_pod/test_function_pod_auto_select.py
  • tests/test_core/test_newcomer_papercuts.py
Source excerpt: A pull request never edits `CHANGELOG.md` (developer, November 11, 2026; ITL-961).

CodeRabbit inference engine (CLAUDE.md)

Files:

  • changelog.d/ITL-1023.md
  • changelog.d/ITL-1585.md
Source excerpt: Documents written during development are kept in the repository, under `docs/dev/` (developer, November 16, 2026; ITL-1169): Specs go in `docs/dev/specs/`, plans in `docs/dev/plans/`, and the scripts and evidence they cite i...

CodeRabbit inference engine (CLAUDE.md)

Files:

  • docs/dev/plans/2026-11-12-itl-807-function-pod-auto-select.md
Source excerpt: An entry is the file `docs/dev/design_issues/-.md` (e.g.

CodeRabbit inference engine (CLAUDE.md)

Files:

  • docs/dev/design_issues/ITL-807-F16.md
Source excerpt: When adding or changing any instruction, update BOTH: `CLAUDE.md` (for Claude Code) `.zed/rules` (for Zed AI)

CodeRabbit inference engine (CLAUDE.md)

Files:

  • .zed/rules
  • CLAUDE.md
Source excerpt: **Order never counts, except where you give it** (developer, November 18, 2026, ITL-1271): no operator result and no stream depends on the order of the tags or columns fed into it (declared `tag_columns`, table layout, which...

CodeRabbit inference engine (CLAUDE.md)

Files:

  • tests/test_core/data_tags/test_error_messages.py
  • tests/test_core/data_tags/test_function_pods.py
  • tests/test_core/function_pod/test_function_pod_auto_select.py
  • tests/test_core/test_newcomer_papercuts.py
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-1023.md
  • changelog.d/ITL-1585.md
Source excerpt: Tests use the **public interface** wherever possible (developer, November 10, 2026): drive an operator by calling it, `op(stream)`, and read the result through the stream's public methods.

CodeRabbit inference engine (CLAUDE.md)

Files:

  • tests/test_core/data_tags/test_error_messages.py
  • tests/test_core/data_tags/test_function_pods.py
  • tests/test_core/function_pod/test_function_pod_auto_select.py
  • tests/test_core/test_newcomer_papercuts.py
Source excerpt: Write pages as before: a `# <title>` first line, mkdocs-style admonitions (`!!!

CodeRabbit inference engine (CLAUDE.md)

Files:

  • docs/concepts/data-tags.md
  • docs/concepts/function-pods.md
  • docs/dev/design_issues/ITL-807-F16.md
  • docs/dev/plans/2026-11-12-itl-807-function-pod-auto-select.md
  • docs/getting-started.md
  • docs/troubleshooting.md
  • docs/tutorial/02-function-pods.md
Source excerpt: **Imports: direct, or `LazyModule` only for a module `import orcapod` does not load** (developer, November 22, 2026, ITL-1349).

CodeRabbit inference engine (CLAUDE.md)

Files:

  • src/orcapod/core/function_pod.py
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/concepts/data-tags.md
  • docs/concepts/function-pods.md
  • docs/dev/design_issues/ITL-807-F16.md
  • docs/dev/plans/2026-11-12-itl-807-function-pod-auto-select.md
  • docs/getting-started.md
  • docs/troubleshooting.md
  • docs/tutorial/02-function-pods.md
Source excerpt: What is published is decided in `scripts/docs_site_content.py` (`PUBLISHED_FILES`, `PUBLISHED_FOLDERS`, `EXCLUDED`).

CodeRabbit inference engine (CLAUDE.md)

Files:

  • docs/getting-started.md
  • docs/troubleshooting.md
Source excerpt: Use [Google style](https://google.github.io/styleguide/pyguide.html#38-comments-and-docstrings) Python docstrings everywhere.

CodeRabbit inference engine (CLAUDE.md)

Files:

  • src/orcapod/core/function_pod.py
  • tests/test_core/data_tags/test_error_messages.py
  • tests/test_core/data_tags/test_function_pods.py
  • tests/test_core/function_pod/test_function_pod_auto_select.py
  • tests/test_core/test_newcomer_papercuts.py

@eywalker
eywalker merged commit 685c359 into main Nov 28, 2026
10 checks passed
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