Skip to content

feat(contract): declare producer partition watermark scope - #678

Merged
zzylol merged 1 commit into
mainfrom
feat/producer-partition-roster
Sep 11, 2026
Merged

zzylol merged 1 commit into
mainfrom
feat/producer-partition-roster

Conversation

@zzylol

@zzylol zzylol commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Completion barriers need an installed producer/partition scope; Remote Write samples and observed timestamps do not establish that authority.

This adds optional partition_ids to the existing ProducerContract and a PrecomputePlan::validate_watermark_scope helper using the existing SummaryWatermarkBarrier. Before, producer bindings named no authoritative partition roster. Now callers can check full catalog generation, plan envelope, materialization, producer and partition membership. Empty legacy rosters preserve the old serialized form and authorize no completion claims.

Verification: the focused shared regression passed on clean dependency checkouts. It covers legacy wire equality, deterministic roster roundtrip, valid scope, missing roster, wrong producer/partition/materialization/catalog snapshot/version/envelope, malformed epoch/sequence and empty partition names. Independent bounded source review passed; no new wire DTO was introduced.

This does not add an HTTP barrier endpoint, producer authentication, durable progress or continuous scheduling. Runtime integration must still enforce those and protect new populations against writes behind a closed watermark. Full-plan validation is deliberate at this prerequisite layer; runtime may validate/cache installed contracts separately.

@zzylol
zzylol marked this pull request as ready for review September 11, 2026 20:45
@zzylol
zzylol merged commit 89f408c into main Sep 11, 2026
1 check passed
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