Skip to content

feat(table): predecessor-conditioned publication for external manifest stores - #8800

Merged
Xuanwo merged 3 commits into
lance-format:mainfrom
wkalt:ticket/ent-1961/predecessor-conditioned-publication
Sep 2, 2026
Merged

Xuanwo merged 3 commits into
lance-format:mainfrom
wkalt:ticket/ent-1961/predecessor-conditioned-publication

Conversation

@wkalt

@wkalt wkalt commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

Conflict detection only sees versions newer than a handle's, so a dataset
dropped and recreated at the same path accepts a stale writer's commit,
and no check made before the commit can prevent it. The store that
reserves versions has to decide.

ExternalManifestStore::put_if_predecessor reserves a version only if the
store's record for the predecessor still carries the identity the writer
observed; CommitHandler::commit_after publishes on that condition and
refuses with PrerequisiteFailed. The manifest is written once, at a
staging path that listing never discovers, and the reservation records it
as final: such a store is the dataset's history (list_versions backs the
conflict scan and cleanup, and cleanup retires each record it removes
through forget_version), and the canonical path a recreated dataset
would share is never written. A write cancelled before its reservation
leaves an orphan, as a retained staging manifest does today. No built-in
store implements the contract; nothing changes for unconditioned commits.

@wkalt
wkalt requested a review from lancedb-robot August 26, 2026 15:29
@wkalt
wkalt marked this pull request as ready for review August 26, 2026 17:48
lance-gatekeeper[bot]

This comment was marked as outdated.

@lance-gatekeeper lance-gatekeeper Bot added the K-changes Latest Gatekeeper recommendation requests changes. label Aug 26, 2026
@wkalt
wkalt force-pushed the ticket/ent-1961/predecessor-conditioned-publication branch from 76891f9 to 2d6f91f Compare August 26, 2026 18:31
@github-actions github-actions Bot added the enhancement New feature or request label Aug 26, 2026
@lance-gatekeeper lance-gatekeeper Bot removed the K-changes Latest Gatekeeper recommendation requests changes. label Aug 26, 2026
lance-gatekeeper[bot]

This comment was marked as outdated.

@lance-gatekeeper lance-gatekeeper Bot added the K-changes Latest Gatekeeper recommendation requests changes. label Aug 26, 2026
@wkalt
wkalt force-pushed the ticket/ent-1961/predecessor-conditioned-publication branch from 2d6f91f to 673de02 Compare August 26, 2026 19:06
@lance-gatekeeper lance-gatekeeper Bot removed the K-changes Latest Gatekeeper recommendation requests changes. label Aug 26, 2026
lance-gatekeeper[bot]

This comment was marked as outdated.

@lance-gatekeeper lance-gatekeeper Bot added the K-changes Latest Gatekeeper recommendation requests changes. label Aug 26, 2026
@wkalt
wkalt force-pushed the ticket/ent-1961/predecessor-conditioned-publication branch from 673de02 to 2fdd8f3 Compare August 26, 2026 19:35
@lance-gatekeeper lance-gatekeeper Bot removed the K-changes Latest Gatekeeper recommendation requests changes. label Aug 26, 2026
lance-gatekeeper[bot]

This comment was marked as outdated.

@lance-gatekeeper lance-gatekeeper Bot added the K-changes Latest Gatekeeper recommendation requests changes. label Aug 26, 2026
…t stores

Conflict detection only sees versions newer than a handle's, so a dataset
dropped and recreated at the same path accepts a stale writer's commit,
and no check made before the commit can prevent it. The store that
reserves versions has to decide.

`ExternalManifestStore::put_if_predecessor` reserves a version only if the
store's record for the predecessor still carries the identity the writer
observed; `CommitHandler::commit_after` publishes on that condition and
refuses with `PrerequisiteFailed`. The manifest is written once, at a
staging path that listing never discovers, and the reservation records it
as final: such a store is the dataset's history (`list_versions` backs the
conflict scan and cleanup, and cleanup retires each record it removes
through `forget_version`), and the canonical path a recreated dataset
would share is never written. A write cancelled before its reservation
leaves an orphan, as a retained staging manifest does today. No built-in
store implements the contract; nothing changes for unconditioned commits.

Co-Authored-By: Claude Fable 5 <[email protected]>
@wkalt
wkalt force-pushed the ticket/ent-1961/predecessor-conditioned-publication branch from 2fdd8f3 to 893f0c1 Compare August 26, 2026 20:14
@lance-gatekeeper lance-gatekeeper Bot removed the K-changes Latest Gatekeeper recommendation requests changes. label Aug 26, 2026
lance-gatekeeper[bot]

This comment was marked as outdated.

@lance-gatekeeper lance-gatekeeper Bot added the K-approved Latest Gatekeeper recommendation permits acceptance. label Aug 26, 2026
@lance-gatekeeper
lance-gatekeeper Bot removed the request for review from lancedb-robot August 27, 2026 06:08
@lance-gatekeeper lance-gatekeeper Bot added K-approved Latest Gatekeeper recommendation permits acceptance. and removed K-approved Latest Gatekeeper recommendation permits acceptance. labels Aug 27, 2026
@lance-gatekeeper lance-gatekeeper Bot removed the K-approved Latest Gatekeeper recommendation permits acceptance. label Sep 2, 2026
lance-gatekeeper[bot]

This comment was marked as outdated.

@lance-gatekeeper lance-gatekeeper Bot added the K-approved Latest Gatekeeper recommendation permits acceptance. label Sep 2, 2026
@lance-gatekeeper lance-gatekeeper Bot removed the K-approved Latest Gatekeeper recommendation permits acceptance. label Sep 2, 2026

@lance-gatekeeper lance-gatekeeper Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Gate recommendation: approve.

The latest base merge leaves the predecessor-conditioned publication patch unchanged and does not overlap its commit, external-store, or cleanup paths. Reservation, committed-history discovery, identity-aware retirement, branch retention, and retry behavior retain the previously verified contract.

@lance-gatekeeper lance-gatekeeper Bot added the K-approved Latest Gatekeeper recommendation permits acceptance. label Sep 2, 2026
@Xuanwo
Xuanwo merged commit e7fecb9 into lance-format:main Sep 2, 2026
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking-change enhancement New feature or request K-approved Latest Gatekeeper recommendation permits acceptance.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants