Repository navigation
Conversation
divarvel
force-pushed
the
clementd/make-stepbudget.step-throw-and-combinator-yield-result
branch
2 times, most recently
from
November 21, 2026 21:42
687a84a to
e2e3014
Compare
- carry the step counter in Authorizer - make it monotonous - check the current step counter against a budget that can be overriden at call sites - make step count `long` to align with the rust implementation and the protobuf representation
This removes the need for explicitly checking `StepBudget.exceeded()`
divarvel
force-pushed
the
clementd/make-stepbudget.step-throw-and-combinator-yield-result
branch
from
November 21, 2026 21:50
e2e3014 to
343a8b8
Compare
Korbik
deleted the
clementd/make-stepbudget.step-throw-and-combinator-yield-result
branch
November 21, 2026 21:57
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.
#153 was based on an earlier design of the rust implementation.
This PRs aligns biscuit-java with biscuit-rust:
Authorizercarries a monotonous step counterCombinatoryields an error when the step budget is exceededStepBudget.step()throws so that callers don’t need to manually check if budget is exceededlonginstead ofintfor steps since rust and protobuf expose anu64value