Repository navigation
Add immutable edge table (index-only, append + scan) - #434
Merged
Merged
Conversation
em3s
marked this pull request as draft
July 20, 2026 07:41
4 tasks
em3s
marked this pull request as ready for review
July 20, 2026 10:29
1 task done
em3s
force-pushed
the
feat/issue-433-immutable-edge
branch
from
July 20, 2026 10:42
18e87a0 to
c4faf71
Compare
Empty commit to open the PR for #433. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…ilder (#433) ImmutableEdge is structurally an Edge minus caches; the builder emits index (+group) records only and suppresses count records. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
… and API (#433) - V3TableDescriptor.create + LabelEntity materialize route IMMUTABLE_INDEXED through the INDEXED HBase label path (v3-only behavior). - V2BackedTableBinding: skip state Put, short-circuit read to initial, reject gets, and implement scanAndDelete deriving deletes from scanned index rows. - TableBinding gains a default-rejecting scanAndDelete. - Create/update API + V3MetadataConverter round-trip ImmutableEdge. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…433) Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…ests - Descope scan-and-delete out of #433 (removed the binding op + interface default). - Reject the `total` scan feature on immutable tables (no count records → would report 0). - Accept ImmutableEdge in the append event path (EdgeBulkMutationRequest.createEvent). - Place ImmutableEdge right after Edge across the parallel hierarchies (similar code adjacent). - Trim comments to one-liners. - Add ImmutableEdgeSpec on the HBase mini-cluster: append -> scan (index-only, no State), point get rejected, count suppressed. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Immutable edges are append-only; a DELETE/UPDATE mutation now fails fast with a clear error instead of being silently ignored. Covered by ImmutableEdgeSpec. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…on-INSERT rejected) Runs against the in-memory datastore backend; DatastoreIndexedLabel reuses the same V2BackedTableBinding as HBase, so the full HTTP surface is exercised. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…both rejected Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
em3s
force-pushed
the
feat/issue-433-immutable-edge
branch
from
July 20, 2026 10:45
c4faf71 to
9dfc424
Compare
1 task done
em3s
force-pushed
the
feat/issue-433-immutable-edge
branch
from
July 20, 2026 10:51
9dfc424 to
8fda6a1
Compare
Run spotlessApply to reorder imports and satisfy spotlessKotlinCheck. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Contributor
Author
|
Known limitation for future reference (not a blocker): Immutable edge tables lose group-count idempotency. Because |
This was referenced Jul 20, 2026
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.
Summary
Add a new immutable edge table kind — index-only, no edge
State. Append-oriented, read-via-scan. Maps to the existingLabelType.IMMUTABLE_INDEXED. First cut supports Index + Group only (no Count, no Cache); scan-and-delete is deferred to a follow-up. Needed as the storage primitive for queue/v1 (#428).Builds on the
KeyBasedstrategy refactor (#435) and pairs with the bulk-encoder fix (#436).Closes #433
Changes
ImmutableEdgethrough the v3 sealed hierarchies (ModelSchema,TableDescriptor,V3TableDescriptor,EdgeMutationStrategyas aKeyBasedobject), placed right afterEdge.Put, short-circuitreadto initial (append-only), rejectgetsand thetotalscan feature.IMMUTABLE_INDEXEDthrough the existingINDEXEDHBase label path; all immutable behavior lives in v3.ImmutableEdgein the append event path and the create/update API +V3MetadataConverterround-trip.How to Test
./gradlew build— full build incl. unit + HBase mini-cluster tests../gradlew :engine:test --tests "*ImmutableEdgeSpec"— append → scan reads edges from index rows only, point get / non-INSERT rejected, count suppressed (HBase mini-cluster)../gradlew :server:test --tests "*ImmutableEdgeE2ETest"— full HTTP surface: create → append → scan; point get and non-INSERT return 400 (in-memory datastore backend)../gradlew :core:test --tests "*EdgeMutationBuilderTest" --tests "*EdgeSchemaSerializationTest"— builder emits index+group only; schema round-trips under theimmutableEdgediscriminator.AI Assistance