Skip to content

docs(dev): assess the identity of a commutative pod that counts repeated operands (ITL-1511) - #600

Draft
eywalker wants to merge 1 commit into
mainfrom
eywalker/itl-1511-allow-a-commutative-operator-to-take-one
Draft

eywalker wants to merge 1 commit into
mainfrom
eywalker/itl-1511-allow-a-commutative-operator-to-take-one

Conversation

@eywalker

Copy link
Copy Markdown
Contributor

Assessment for ITL-1511: a spec for the developer to decide from. Nothing is implemented, and no golden file is written or edited. Related: ITL-1419 (PR #587), whose refusal of a repeated operand this would lift.

What the spec holds

docs/dev/specs/itl-1511-multiset-identity.md:

  1. Where the operand set is formed today (argument_symmetry, stream equality by content hash, the structure hasher's frozenset form, PR 587's operand_set, graph edges, saved and loaded jobs), sync and async.
  2. Five candidate identity forms that count repeats, each measured by computing the hashes on an experimental patch (not in this PR).
  3. The golden entries each candidate moves, from generate_golden_hashes.py --check.
  4. What else must change to lift the refusal, tried on PR 587's branch with the refusal lifted.
  5. A test case list, including a self-join over a source with two rows equal in every tag.
  6. A recommendation and seven open questions.

Findings

  • The structure hasher already writes a frozenset as a sorted list of its items' hashes with equal items kept; the pipeline chain does so today for a join of two sources of one schema. Only the Python frozenset in front of it drops a repeated operand.
  • Recommended form (B2): keep today's hashed form and stop dropping repeats before it. Every identity without a repeated operand is byte for byte what it is today (44 of 44 measured values), and 0 golden entries move.
  • A second form used only on a repeat moves 0 golden entries, but either gives one schema and topology two pipeline hashes (A1) or moves the pipeline hash of an existing join of two sources of one schema, which no golden entry pins (A2).
  • A new tag or a counted form for all cases (B1, B3) moves 116 golden entries: 18 in pipeline-02.json, 98 provisional.
  • With the recommended form on PR 587's branch, a plain stream, a sync job, an async job and a saved and loaded job agree on Join(d, d). Downstream, the two cross pairings of a self-join are equal in every column and share one entry id, so the complete-repeat toggle (decided 2026-11-27) has to ship with the lift.

No changelog fragment: the PR adds a development document only.

🤖 Generated with Claude Code

…ted operands (ITL-1511)

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 27, 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

@codecov

codecov Bot commented Nov 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
see 2 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.

This branch has not been deployed

No deployments
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