Repository navigation
Conversation
…-sources-with-one-source_id-and
…-sources-with-one-source_id-and
…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>
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
|
Codecov Report✅ All modified and coverable lines are covered by tests.
... and 3 files with indirect coverage changes 🚀 New features to boost your workflow:
|
This branch has not been deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Stacked on #577 (merge that first)
Mentions ITL-1560
Mentions ITL-1559
What changed and why
PipelineJob.loadrestores compiled nodes without the recorded invocations that built them. Capture could replace the restored graph with a new branch, and recompilation could erase it. As a release stopgap, the job and its cached blueprint raiseRuntimeErroron capture or recompilation before changing the graph. Build the job from its pipeline to change the graph. Source binding, load-only runs, stored views, and saving again remain supported.PipelineJobexposes noregistermethod. Thefrom_invocationsclassmethod constructs a separate job even when accessed through a loaded instance. The stopgap uses #577's existing prepare phase, so all active trackers validate a step before any records it. The loaded-job refusal runs before source checks on that tracker. Full support for editing a loaded graph is tracked by ITL-1559.Review findings and tests
test_loaded_job_refusal_leaves_every_active_job_unchangedexercises function, operator, and side-effect recording with both registration orders. In each case, the live job retains its original graph and the loaded job refuses the step.test_loaded_job_refuses_graph_changesverifies ITL-1560 takes precedence over foreign-slot validation, and checks graph and binding identity, held results, and sync and async follow-up runs.test_loaded_job_blueprint_refuses_edits_and_preserves_saved_graphexercises compile, context capture, and direct recording onloaded.pipeline, then saves and reloads the graph and verifies its load-only results. The shared guard protects the exact objectsave()serializes, including thecompiled_pipelinealias. Keeping that blueprint intact also keeps its existing serialization behavior for saved schemas and node metadata.test_recompiling_a_loaded_job_preserves_its_sources_mappingexpected compilation to succeed and checked only the bindings. Renamed it totest_refusing_to_recompile_a_loaded_job_preserves_its_sources_mappingand verified the refusal preserves its nodes and bindings.test_loaded_job_can_still_bind_sourcescovers both binding paths followed by load-only runs.loaded.as_pipeline()and a loaded function node'sas_node()can raiseAttributeErrorbecause the saved job has no function pod. These pre-existing limitations are unchanged.The stopgap is documented in both saving and loading sections, both agent instruction files, the ITL-1560 known-limitations fragment, and the existing design log entry (
LJ5).Validation
The targeted suite passed with 1,183 tests and one expected failure, including the API-reference check after #614, the SpiralDB range tests from #577, and the data-function type tests after syncing main. Ruff lint and format checks passed, basedpyright exited 0, and all golden hashes matched. The ITL-1560 diff matched exactly after merging the updated stack and syncing main.