Skip to content

[DAP-18] Replace PartialBatchSelector with aggregation job extensions - #4824

Merged
jcjones merged 2 commits into
mainfrom
jcj/jcj/4784-short_descriptor
Aug 26, 2026
Merged

[DAP-18] Replace PartialBatchSelector with aggregation job extensions#4824
jcjones merged 2 commits into
mainfrom
jcj/jcj/4784-short_descriptor

Conversation

@jcjones

@jcjones jcjones commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Fixes #4784

Per DAP PR #762, replaces the PartialBatchSelector in AggregationJobInitializeReq with an AggregationJobExtension list.

  • New AggregationJobExtension + AggregationJobExtensionType registry (n.b. leader_selected_batch_id = 0x0001).
  • Leader-selected batch ID now travels as an extension; the message is no longer generic over batch mode.
  • Helper enforcement: unknown type becomes unsupportedExtension; out-of-order or missing/malformed batch-id becomes invalidMessage.

Fixes #4784

Per [DAP PR #762](ietf-wg-ppm/draft-ietf-ppm-dap#762), replaces the
`PartialBatchSelector` in `AggregationJobInitializeReq` with an `AggregationJobExtension`
list.

- New `AggregationJobExtension` + `AggregationJobExtensionType` registry
  (n.b. `leader_selected_batch_id` = 0x0001).
- Leader-selected batch ID now travels as an extension; the message is no longer generic over
  batch mode.
- Helper enforcement: unknown type becomes `unsupportedExtension`; out-of-order or
  missing/malformed batch-id becomes `invalidMessage`.
@jcjones
jcjones marked this pull request as ready for review August 25, 2026 18:32
@jcjones
jcjones requested a review from a team as a code owner August 25, 2026 18:33
Comment thread aggregator/src/aggregator/aggregation_job_init.rs
Comment thread aggregator/src/aggregator.rs Outdated
The helper now rejects a leader_selected_batch_id aggregation job extension on time-interval
tasks. Adds a `aggregation_job_init_unexpected_batch_id_extension` test.
@jcjones
jcjones requested a review from divergentdave August 25, 2026 23:57
@jcjones
jcjones merged commit 487b59c into main Aug 26, 2026
8 checks passed
@jcjones
jcjones deleted the jcj/jcj/4784-short_descriptor branch August 26, 2026 17:08
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.

Replace PartialBatchSelector with aggregation job extensions

3 participants