Skip to content

refactor(transaction): build Txn V2 actions through constructors - #10803

Closed
wjones127 wants to merge 206 commits into
lance-format:will/transaction-v2-remaining-actionsfrom
wjones127:will/transaction-v2-action-constructors
Closed

wjones127 wants to merge 206 commits into
lance-format:will/transaction-v2-remaining-actionsfrom
wjones127:will/transaction-v2-action-constructors

Conversation

@wjones127

Copy link
Copy Markdown
Contributor

Stacked on #8646.

Summary

Txn V2 actions had public fields, so nothing showed which ones make claims about storage that apply cannot check. This PR makes every field private and builds actions through constructors:

  • Safe actions (ConfigUpdate, AddField, DropIndex, ReserveRowIds, ...) get new / try_new and builders.
  • Actions that make storage claims get try_new_unchecked / new_unchecked, whose # Contract doc lists what the caller certifies. For example, AddDataFile: the file exists, is a valid Lance file, holds the fragment's physical rows, and holds the declared fields. Most callers are expected to go through a higher-level writer API instead.
  • Wide actions (AddFragment, AddIndexSegment, AdjustIndexCoverage) take a public-field *Parts struct, so changing one field means certifying again: AddFragment::new_unchecked(AddFragmentParts { physical_rows: n, ..add.parts().clone() }).
let file = AddDataFile::try_new_unchecked(
    Ref::Local(0), data_file, vec![FieldRef::Committed(0)], None, true,
)?;
let config = ConfigUpdate::default().with_config(updates);

Checks that need only the action itself moved from apply into the constructors, and decoding goes through the constructors too. Checks against the table stay in apply. Changes in behavior:

  • SetDeletionFile is split into a safe clear(fragment) and try_new_unchecked(..). Decoding now rejects a cleared deletion file that names a base or has data_change = false.
  • AddOverlays no longer has a data_change field, since apply already required it to be true. Decoding rejects false.
  • Actions built in Rust now get the duplicate-fragment checks on row selections, which used to run only when decoding.
  • These are now rejected at construction instead of at apply:
    • empty index names;
    • unset coverage on an index other than MemWAL;
    • empty key-column or SSTable lists;
    • a fragment-reuse transition without sources or destinations;
    • a locally minted field in a read assertion.

Evidence

Tests that relied on states that can no longer be built became constructor or decode tests. No coverage was dropped.

Merge Risk

Door: two-way. lance-table API only; the transaction wire format is unchanged.
Blast Radius: transaction (Txn V2 actions, which are experimental).

🤖 Generated with Claude Code

wjones127 and others added 30 commits November 3, 2026 00:24
…ction V2)

Draft the full action vocabulary for action-based transactions (Transaction
V2) directly in canonical `transaction.proto`, so it can drive the OSS-1529
squash/merge spike and the OSS-757 PMC vote.

A `UserOperation` (a new `Transaction.operation` oneof arm, field 116) is an
ordered list of `UserAction` steps, each expanding to granular `Action`
deltas. Actions record the *change* to the manifest (not a post-image), which
is what makes compound commits and branch merge fall out uniformly. Minted
identifiers (field/fragment/base ids) carry a `Local` token via a single
`Ref { committed | local }` so they relocate on merge/rebase; reference-stable
changes key off stable coordinates. Computed conflict footprints and large
derivable row-level deltas stay off the wire.

Library support is intentionally READ-side fail-closed only: a transaction
carrying a `UserOperation` is rejected on load with a clear "not supported"
error, and there is no write path, no `apply`, no translation, and no conflict
resolution yet. This keeps older writers safe (a concurrent V2 commit in the
conflict window aborts an in-flight commit rather than being silently skipped).

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…tory

Reorganize the action-based transaction (Transaction V2) wire draft into its
own files under protos/transaction/ so the design reads clearly and the shared
building blocks have a proper home:

- protos/transaction/actions.proto: the V2 vocabulary (Ref, UserOperation,
  UserAction, Action + action messages), as top-level messages. The design
  rationale is summarized in an in-tree file header (deltas vs post-images,
  minting vs reference-stable, Ref/Local resolution, field-level schema,
  index segments, what stays off the wire) so it stands on its own.
- protos/transaction/common.proto: UpdateMap/UpdateMapEntry and
  KeyExistenceFilter/ExactKeySetFilter/BloomFilter, promoted from nested
  Transaction messages to top-level so both the legacy operations and the V2
  actions can reference them without a circular import. Wire-compatible: field
  numbers unchanged and none of these types are Any-packed, so the
  fully-qualified name change is invisible on the wire.
- protos/transaction.proto moves to protos/transaction/transaction.proto and
  keeps only the Transaction envelope, legacy operations, and the
  user_operation oneof arm.

actions.proto and common.proto declare `package lance.transaction`, apart
from the table messages in `lance.table` (where `AddDataFile` is already a
fragment-tree mutation). Their generated code is `format::pb_transaction`.

Comments use block style for IDE folding. Rust references to the promoted types
are repointed from pb::transaction::X to pb_transaction::X (mechanical, compiler-checked);
the hand-written dataset::transaction domain types are unaffected.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Refinements to the Transaction V2 wire draft (protos/transaction/actions.proto),
no behavior change:

- AddFragment / SetDeletionFile: resolve a contradiction. AddFragment's doc
  implied a freshly-minted (Local) fragment could take a deletion file via
  SetDeletionFile, but SetDeletionFile.fragment is a committed-only uint64.
  Clarify that a new fragment has no deletion vector and deletions arrive in a
  later operation once the id is committed, and document why SetDeletionFile
  takes no Ref.
- data_change: document the marker on every carrier (previously only on
  AddFragment), cross-referencing the canonical definition. Spell out its
  non-obvious meaning on AddIndexSegment / RemoveIndexSegment, where it refers
  to the indexed data rather than table rows.
- AssertUniqueKeys: note that key_fields is authoritative and the embedded
  filter.field_ids (an artifact of the shared KeyExistenceFilter type) is
  ignored.
- AdjustIndexCoverage: rename bare add / remove fields to add_fragments /
  remove_fragments for self-documentation and consistency with
  AddIndexSegment.covered_fragments.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Brings the drafted protos to the shape the implementation settled on, so the
whole format lands in one PR and one vote:

- `UserOperation` becomes `CompositeOperation`, which names what distinguishes
  it from the other operations -- a composite of granular actions committed
  atomically -- and loses its `description`, since the per-step
  `UserAction.description` is what keeps history readable. `UserAction` keeps
  its name: it is the grouping a user recognizes.
- The field actions reference fields by `Ref`, so an action can name a field
  the same operation is minting.
- `AddIndexSegment`, `RemoveIndexSegment`, `AdjustIndexCoverage` and
  `UpdateCompactedSsTables` join the action set.
- The index actions carry the name of the logical index the segment belongs
  to, which is what conflict detection compares.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
`ReserveFragmentIds` documents that "fragments written against a reserved
range reference those ids as Committed", but `AddFragment` carried only a
`local` token, so nothing could name a reserved id and the reservation was
unreachable from the action vocabulary.

Widen `AddFragment.local` into `Ref id`, which spans both forms. A writer
that has to know a fragment's id before it commits -- because it bakes row
addresses into an index it writes in the same commit -- takes the id from a
reservation and names it as `Committed`.

Field 1 changes type rather than being deprecated in place. The actions
schema is used exclusively by the draft Transaction V2 format, which is
read-side fail-closed with no write path, so there are no encoded messages
to stay compatible with.
The counterpart of `ReserveFragmentIds` for the row id space. Reserving a
fragment id fixes the high half of a row address, which is enough for a
dataset without stable row ids; with them, an index records row ids instead,
and those come off their own counter with no way to reserve from it.

Drafted only here -- the apply side lands with the action implementation.
The multi-line comment style landed with its own pre-commit hook (lance-format#8991)
while this draft was out for review, and these files predate it. No wording
changes; the hook did the rewrite.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
`protos/transaction.proto` became `protos/transaction/`, and two globs in the
area labeler still name the old path. One of them drives the format-spec vote
gate, so a glob that matches nothing would let a change to these protos land
without the PMC vote the gate exists to require. Both now match the directory,
which covers the split files and any later sibling.

The spec doc's link to the same path is repointed at the directory for the
same reason: it names three files now.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
`test_only_persisted_protos_are_format_changes` compared the raw config
entries against a flat `protos/*.proto` glob, so moving the transaction
protos into `protos/transaction/` broke it two ways at once: the gated
entry became a glob rather than a path, and the files it covers stopped
being visible to the non-recursive listing.

Resolve both sides to concrete files before comparing. The test now
states what it always meant -- every persisted proto is gated, and
nothing else is -- and keeps holding as protos move between directories.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The operation's uuid was a string while every other uuid in the action
protos -- and in `table.proto` generally -- is the `UUID` message. A
string leaves the encoding unstated and costs 36 bytes where 16 will do.

Addresses review feedback on the draft wire format. Transaction V2 is a
pre-vote draft with no compatibility contract, so the field changes type
in place rather than being deprecated alongside a replacement.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The file-level comment ran to 810 words, which is more than a reader
needs before the first message. Cut to under 300 by dropping the
section headings, the points that only restated the message comments
below them (relocation by watermark, index-segment duplication), and
the STATUS/ADDITIVE-SAFETY prose, keeping the five reasons the wire
shape is not obvious from the messages themselves.

Also drops the TODO over `message Action` asking whether `data_change`
belongs per-action or per-UserAction: per-action is the answer.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Transaction V2 was labelled a DRAFT, which is not a status the project
recognizes. The governance vote on experimental specification features
passed on 2026-08-27 (discussion lance-format#8305), so use that status instead:
EXPERIMENTAL, with the two commitments a reader needs stated where the
label appears -- breaking changes without a separate vote, and removal
if the stabilization vote does not pass.

The process also requires the feature to be marked in the documentation,
and `CompositeOperation` was not described in docs/src/format at all.
Adds a section to the transaction specification covering the two-level
CompositeOperation/UserAction shape, why actions are deltas with local
id placeholders, and what the feature asks of a reader that does not
implement it: reject a transaction it cannot decode rather than skip it,
and tolerate an undecodable inline transaction when opening a table.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Review raised that the compatibility cost was understated, and the
backports that would remove it are unlikely: several downstream packages
bake Lance into size-constrained binaries, so older release lines will
not pick up lance-format#7740.

That makes this durable rather than transitional, so say so where a
writer will see it. Committing a CompositeOperation does not merely make
the transaction unreadable as history -- it makes that table version
unopenable by Lance before v12.0.0, because those releases decode the
manifest's inline transaction while opening the table and propagate the
failure (lance-format#9454).

Room in the actions.proto header, which is budgeted at under 300 words,
comes from dropping the point about index actions targeting a segment;
AddIndexSegment's own comment already says it.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Review found the message could not represent IndexMetadata's
covering_fields at all, so a covering index was not expressible as an
action. Adds the field where the message is defined.

Targets the contract in lance-format#9159 rather than the one on main: `fields` is
the keyed columns only, `covering_fields` is an independent declaration
of the carried ones, and the dependency set is the union. A new action
has no historical encoding to stay compatible with, so it can take the
contract the format is moving to and avoid a field-number change later.

lance-format#9159 leaves FLAG_INDEPENDENT_COVERING_FIELDS unimplemented, so a
manifest cannot yet express a column that is both keyed and carried.
The overlapping form is therefore rejected at apply, and a disjoint one
lowers to the legacy subset representation; both come out when the flag
is implemented, with no change to this message.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
CompositeOperation carried uuid and read_version, both copies of fields
the enclosing Transaction already has. Nothing read them back: the
to-wire path stamped them from the envelope and the read side dropped
them.

The stated purpose -- letting a squashed operation keep its provenance
-- is one the fields cannot serve where they sat. Squashing collapses
each original CompositeOperation into one UserAction, so the message
holding the identity is exactly the one squashing destroys. If per-step
provenance is wanted, it belongs on UserAction, and it can be added as
an optional field when squashing exists to need it.

Renumber actions to 1 rather than reserving 1 and 2: this message has
not shipped, and the file states that its field numbers are not a
stable contract.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
DataFragment no longer has `external_*` row lineage arms: a spilled
sequence is now a hidden column of one of the fragment's data files,
marked by a `RowLineageColumn` arm (lance-format#9253). AddFragment carries its
sequences exactly as DataFragment does, so its arms follow.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…sion comments

SetDeletionFile takes a committed id because the deletion file path embeds
it. AlterField.logical_type is rejected at apply; a cast is drop + add +
data. An explicit AddIndexSegment.dataset_version must equal the read
version for now. ResetTable discards the actions before it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A step holds actions; calling it an action too made the two levels hard to
tell apart. Field numbers are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Rename CompositeOperation.actions to steps and the Rust module
pb_transaction to pb_actions, drop AlterField.logical_type, and clarify
proto comments on Ref, AddField.parent, AddOverlays, DropField and
UserStep squashing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Field references become FieldRef { sint32 committed; uint32 local } so
AddDataFile can bind the reserved lineage ids; fragment and base refs stay
unsigned. AddDataFile and SetDeletionFile take an optional base Ref, and
the embedded file.fields / base_id must be left unset for apply to stamp.

Also documents: data_change as a per-action guarantee, reservations as
the one exception to in-order application, ResetTable never rewinding
counters, what RefreshRowVersionMetadata writes, and that
AssertUniqueKeys.filter.field_ids must be empty.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Without read assertions, footprint conflicts give snapshot isolation, so
UPDATE a=b and UPDATE b=a from one snapshot both commit. A writer whose
values depend on a read declares it with AssertCellsUnchanged, whose
RowSelection mirrors the legacy cell preconditions proposed in lance-format#9121.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Committed fragment, field, and base ids must exist at the read version.
AdjustIndexCoverage carries the segment's fields so its footprint can
require their data. DropIndex removes every segment of an index as they
stand at apply. DropField rejects a field with live children.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…eaning

Main's lance-format#9705 gave DataReplacement.data_change = false effects beyond change
data capture: index coverage is kept, overlays are left alone, and no row's
last-updated-at version moves. A V2 re-encode is TombstoneFieldData followed
by AddDataFile, so give a false tombstone the same meaning, and state what
makes the flag valid: every tombstoned field is re-bound by an AddDataFile
that is also false.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Add AppendFragReuseTransition (23) and TrimFragReuse (24). The history is
not an index on the V2 wire: the four index actions reject
`__lance_frag_reuse`, and the new actions never name its entry, uuid, or
index_version. A transition is merged onto the current history at every
attempt; apply derives its digests and validates it without IO.

Specify that whole-fragment removal does not conflict with an index
build's data requirement, and allow tagged histories on stable-row-id
tables as long as no row-id-domain index coexists with them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…prose

Since lance-format#9482 the inline transaction is in a manifest field older readers
ignore, so a CompositeOperation no longer prevents opening a table; only
readers before v14.0.0 decoding the transaction itself fail.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Narrow the isolation rule to changes that cannot both apply, say a re-encode trips the cell and key assertions, state that ResetTable clears the fragment reuse history, add the reverse stable-row-id rule for a tagged history, fix the committed-identifier rule for reserved ids, add the required-field rule apply enforces, and say an absent data_change means true.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Transaction V2 goes through the normal format vote rather than the
experimental process, so the spec no longer reserves the right to change
field numbers without a vote.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
wjones127 and others added 21 commits November 3, 2026 23:11
A re-encode with data_change false moves a field's values without changing
any, so an index segment built over them still describes them. Claim the
moved data as a new Mode::Moves, which collides with writes the way a write
does but not with a segment's requirement, matching main's lance-format#9705: a
concurrent index build no longer conflicts with a DataReplacement whose
data_change is false.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…nd builds to survive removal

The fragment reuse history is not an index on the action path, so the
four index actions must reject `__lance_frag_reuse`. And removal isn't
staleness: neither a compaction nor a whole-fragment deletion of a
covered fragment conflicts with an index build, while an in-place write
still does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…t builds survive removal

The four index actions reject `__lance_frag_reuse`: the fragment reuse
history is not an index on the action path, so an index action naming it
could only splice in a snapshot.

An index segment's requirement on the data it covers is now
Mode::RequiresUnlessRemoved. It collides with an in-place write, as
Requires does, and commutes with a re-encode, but a removal of the whole
fragment no longer breaks it: removal is visible in the metadata, so the
segment either translates through the reuse history or loses that
coverage. Neither a compaction nor a whole-fragment deletion conflicts
with an index build any more. Data written into a committed fragment
still collides with its removal, and AdjustIndexCoverage still requires
each fragment it adds to exist.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…sted fields

A build over s.x requires only the child's id, while a packed rewrite of s
writes the parent's, so a stale build over replaced child values commits.
Adds a no-op Footprint::with_field_ancestry for the unit tests to call.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ested fields

An index build required the data of its keyed and carried fields by id
alone. A packed struct is rewritten under the parent's id while an index
on a child records the child's, so a build staged before a packed parent
rewrite still committed after it and published coverage of replaced
values. Footprint::with_field_ancestry widens each build dependency to
the fields it is nested in or contains, and the resolver applies it with
the read and latest schemas. Only the dependency widens, so a re-encode
of a related field and a removal of the fragment still do not conflict.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Appends overlay files to a fragment, stamping each with the version the
commit produces and refreshing the covered rows' last-updated versions on
a stable row id table. Its footprint is a new partial-write mode: two
overlays commute, an overlay commutes with a re-encode of its column, and
it conflicts with a full rewrite of the column, a dropped field, or a
deletion write on the fragment (the row-moving update race). Coverage past
the fragment's row count is rejected.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Records MemWAL SSTable compaction progress against the table's existing
MemWAL index, rejecting progress against an index that was never built.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…actions

Two read-side assertions an action set can carry, with the shared
RowSelection type. AssertUniqueKeys asserts that no concurrent commit
inserted a key the set inserts: it conflicts with any write into a key
column and with an insert that does not prove, by a comparable filter over
the same columns, that its keys are disjoint. Only committed key columns
are matched, and a filter carrying field ids is rejected on decode.
AssertCellsUnchanged declares cells the set read, so a concurrent write,
redefinition, or removal of them conflicts. Both reject nested targets at
admission, and hold their fragments to the read version.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ngement

A fragment added with data_change = false keeps its rows' old versions
and records no inserted rows, so a value change in the same operation
(AddDataFile, TombstoneFieldData or AddOverlays with data_change) would
hide from incremental readers and concurrent key assertions. Reject it at
apply.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
AppendFragReuseTransition and TrimFragReuse apply onto the current
fragment reuse history at each commit attempt. A transition may only
consume fragments a compaction removed and only name destinations added
as rearrangements, so it cannot carry indices onto changed values. The
commit path reads an external history ahead of the build and spills one
that outgrows the inline limit; a trim keeps only what a usable index
segment still needs. Tagged histories are allowed on stable row id
tables, AddOverlays is refused on a table that carries one, and cleanup
collects a row map left by a failed action-based compaction once it ages
out.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Restamps the last-updated versions of a row selection, whole fragments or
offsets within one, with the version the commit produces. On a stable row
id table, a data change to a fragment the read version already held must
now carry a refresh covering it, checked once every action has applied.
This completes the specified vocabulary, so an action this build cannot
decode can only be empty or from a newer Lance, and is rejected as such.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
An action set is checked against concurrent commits by comparing
footprints, which needs every transaction in the window; replay alone
does not re-validate a read, key, or definition the set depends on. Fail
retryably when one of those transactions has been cleaned up.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… constructors

AddDataFile's fields are now private. It is built with
`try_new_unchecked`, whose caller certifies the claims about storage the
action cannot check: the file exists, has the fragment's row count, and
holds `field_ids` in column order. Checks on the action alone (empty
`file.fields`, unset `file.base_id`, column count, repeated bindings)
move from apply into the constructor.

ConfigUpdate is safe to build, so it gets `with_*` builders over
`Default` and read-only accessors.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
AddFragment now wraps a private AddFragmentParts, a plain struct holding
what used to be its fields. `new_unchecked(parts)` is where the caller
certifies the claims apply cannot check: the fragment's row count matches
its files, column-held lineage matches the bound files, and a non-data
change only moves existing rows with their lineage. `into_parts` lets a
caller change a field and certify the result again.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…nd TombstoneFieldData

These three are safe to build as data changes, so each gets a safe
constructor for that case. Saying `data_change = false` claims something
apply cannot check: the removed rows come back unchanged, the segment
holds no visible rows, or the tombstoned fields are re-bound with the
same values. That goes through an unchecked constructor whose docs state
the claim.

AddDataFile's `data_change()` getter becomes `is_data_change()`, matching
the other actions.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
AddBase, AddField, AlterField, DropField, DropIndex, ReserveFragmentIds,
ReserveRowIds, RefreshRowVersionMetadata and AssertCellsUnchanged make no
claim apply cannot check, so each gets a safe constructor, `with_*`
builders for its optional parts, and read-only accessors.

Checks on the action alone move into the constructors: a fragment
selected twice (previously caught only when decoding from protobuf), an
empty offsets selection to restamp, a minted field in a read assertion,
and an empty index name.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… unchecked constructors

SetDeletionFile, AddOverlays, UpdateCompactedSsTables, AssertUniqueKeys
and AppendFragReuseTransition each claim something about storage or data
that apply cannot check. Their fields are now private and each is built
through an unchecked constructor whose docs state the claim:

- SetDeletionFile: the file exists and names only the fragment's rows;
  clearing is a separate, safe `clear`.
- AddOverlays: each overlay holds values for the cells it covers. It
  takes no data_change, since it is always a data change.
- UpdateCompactedSsTables: the named SSTables' rows are in the base table.
- AssertUniqueKeys: the filter covers every key the operation inserts.
- AppendFragReuseTransition: the rows moved as the mapping says.

Checks on the action alone move into the constructors. A cleared deletion
file that names a base, or that is not a data change, and an overlay
that is not a data change can no longer be built, so they are rejected
when decoding instead.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
AddIndexSegment and AdjustIndexCoverage carry too many fields for a
positional constructor, so like AddFragment each now wraps a plain
`*Parts` struct and is built with `try_new_unchecked(parts)`, where the
caller certifies the segment's coverage: its files describe every row
of the fragments it covers, or, for an adjustment, of the fragments it
adds.

An empty index name and unset coverage on any index but MemWAL are now
rejected at construction instead of at apply.

Also fixes a dataset_transactions fixture that declared one field for a
two-column file, which the AddDataFile constructor now rejects, and
points `data_change` doc links at AddFragmentParts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@wjones127
wjones127 force-pushed the will/transaction-v2-remaining-actions branch 4 times, most recently from 5b18682 to 4d5c6e1 Compare November 12, 2026 19:19
@wjones127
wjones127 force-pushed the will/transaction-v2-remaining-actions branch 3 times, most recently from 25ec487 to 200d5c3 Compare November 17, 2026 19:45
@wjones127 wjones127 closed this Nov 17, 2026
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