Skip to content

feat(dafny): Add bucket beacon support#1943

Merged
rishav-karanjit merged 169 commits into
mainfrom
ajewell/buckets
Jun 16, 2026
Merged

feat(dafny): Add bucket beacon support#1943
rishav-karanjit merged 169 commits into
mainfrom
ajewell/buckets

Conversation

@ajewellamz

Copy link
Copy Markdown
Contributor

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@ajewellamz
ajewellamz requested a review from a team as a code owner June 19, 2025 18:56
lucasmcdonald3
lucasmcdonald3 previously approved these changes May 12, 2026

@lucasmcdonald3 lucasmcdonald3 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.

Approving on Jose's behalf to unblock merge, I haven't reviewed these changes

@github-actions

Copy link
Copy Markdown

@ajewellamz and @lucasmcdonald3, I noticed you are updating the smithy model files.
Does this update need new or updated javadoc trait documentation?
Are you adding constraints inside list, map or union? Do you know about this issue: smithy-lang/smithy-dafny#491?

@josecorella josecorella 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.

@mahnushm I also see that there are no rust examples, are we merging those after this PR lands but before launch?

var keyId :- Filter.GetBeaconKeyId(search.value.curr(), req.KeyConditionExpression, req.FilterExpression, req.ExpressionAttributeValues, req.ExpressionAttributeNames);
var oldContext := Filter.ExprContext(req.KeyConditionExpression, req.FilterExpression, req.ExpressionAttributeValues, req.ExpressionAttributeNames);
var newContext :- Filter.Beaconize(search.value.curr(), oldContext, keyId);
var foo :- ExtractPartition(search.value.curr(), req.FilterExpression, req.KeyConditionExpression, req.ExpressionAttributeNames, req.ExpressionAttributeValues, actions);

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.

@rishav-karanjit, did you resolve this? does it need to be addressed before merging?

for i : uint64 := 0 to |values| as uint64
invariant result <= bv.numPartitions
{
var partitions := values[i].0.getNumQueries(bv.numPartitions, values[0].1);

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.

did this get answered?

Comment on lines +88 to +99
structure GetNumberOfQueriesInput {
@required
input: QueryInput
}

//= specification/dynamodb-encryption-client/ddb-get-number-of-queries.md#input
//= type=implication
//# This operation MUST return the number of queries necessary.
structure GetNumberOfQueriesOutput {
@required
numberOfQueries: PartitionCount
}

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.

these dont have javadocs

@github-actions

Copy link
Copy Markdown

@ajewellamz and @josecorella, I noticed you are updating the smithy model files.
Does this update need new or updated javadoc trait documentation?
Are you adding constraints inside list, map or union? Do you know about this issue: smithy-lang/smithy-dafny#491?

@github-actions

Copy link
Copy Markdown

@ajewellamz and @rishav-karanjit, I noticed you are updating the smithy model files.
Does this update need new or updated javadoc trait documentation?
Are you adding constraints inside list, map or union? Do you know about this issue: smithy-lang/smithy-dafny#491?

1 similar comment
@github-actions

Copy link
Copy Markdown

@ajewellamz and @rishav-karanjit, I noticed you are updating the smithy model files.
Does this update need new or updated javadoc trait documentation?
Are you adding constraints inside list, map or union? Do you know about this issue: smithy-lang/smithy-dafny#491?

@rishav-karanjit rishav-karanjit left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@github-actions

Copy link
Copy Markdown

@ajewellamz and @rishav-karanjit, I noticed you are updating the smithy model files.
Does this update need new or updated javadoc trait documentation?
Are you adding constraints inside list, map or union? Do you know about this issue: smithy-lang/smithy-dafny#491?

Comment thread DynamoDbEncryption/dafny/DynamoDbEncryption/src/DDBSupport.dfy Outdated
Comment thread DynamoDbEncryption/dafny/DynamoDbEncryption/src/DDBSupport.dfy Outdated
Comment thread DynamoDbEncryption/dafny/DynamoDbEncryption/src/FilterExpr.dfy Outdated
@github-actions

Copy link
Copy Markdown

@ajewellamz and @rishav-karanjit, I noticed you are updating the smithy model files.
Does this update need new or updated javadoc trait documentation?
Are you adding constraints inside list, map or union? Do you know about this issue: smithy-lang/smithy-dafny#491?

Co-authored-by: Rishav karanjit <karanjitrishav4@gmail.com>
@mahnushm
mahnushm dismissed stale reviews from josecorella and lucasmcdonald3 via a94e9e4 June 11, 2026 18:45
mahnushm and others added 2 commits June 11, 2026 11:46
Co-authored-by: Rishav karanjit <karanjitrishav4@gmail.com>
Co-authored-by: Rishav karanjit <karanjitrishav4@gmail.com>

@rishav-karanjit rishav-karanjit left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@github-actions

Copy link
Copy Markdown

@ajewellamz and @rishav-karanjit, I noticed you are updating the smithy model files.
Does this update need new or updated javadoc trait documentation?
Are you adding constraints inside list, map or union? Do you know about this issue: smithy-lang/smithy-dafny#491?

Comment thread DynamoDbEncryption/dafny/DynamoDbEncryption/test/BeaconPartition.dfy Outdated
@github-actions

Copy link
Copy Markdown

@ajewellamz and @rishav-karanjit, I noticed you are updating the smithy model files.
Does this update need new or updated javadoc trait documentation?
Are you adding constraints inside list, map or union? Do you know about this issue: smithy-lang/smithy-dafny#491?

Co-authored-by: Rishav karanjit <karanjitrishav4@gmail.com>
@github-actions

Copy link
Copy Markdown

@ajewellamz and @mahnushm, I noticed you are updating the smithy model files.
Does this update need new or updated javadoc trait documentation?
Are you adding constraints inside list, map or union? Do you know about this issue: smithy-lang/smithy-dafny#491?

@github-actions

Copy link
Copy Markdown

@ajewellamz and @rishav-karanjit, I noticed you are updating the smithy model files.
Does this update need new or updated javadoc trait documentation?
Are you adding constraints inside list, map or union? Do you know about this issue: smithy-lang/smithy-dafny#491?

@rishav-karanjit
rishav-karanjit merged commit 5c53d59 into main Jun 16, 2026
68 checks 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.

7 participants