Repository navigation
feat(engine): add opt-in soft-close extension on leader/price-changing void - #59
Merged
Merged
Conversation
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
Adds an opt-in
extension.extend_on_voidconfiguration flag (boolean, defaultfalse) so an operatorvoid_bidthat changes the lot's leader or standing price inside the soft-close trigger window extendscloses_atusing the same rule as an accepted bid.Closes #58
Changes
specification/configuration/timed-proxy.schema.json: added optionalextend_on_voidboolean property (defaultfalse) to$defs.extension.rfcs/0001-timed-online-proxy-bidding.md: documentedextension.extend_on_voidunder Timed closing and extensions.ruby/engine/lib/rbbb/configuration.rb: parses and validatesextension.extend_on_void(defaults tofalse, raisesRBBB::InvalidConfigurationon non-boolean values).ruby/engine/lib/rbbb/engine.rb: whenconfiguration.extension["extend_on_void"]istrue,build_void_decisioncomputescloses_atviaextended_closing_time(state, effective_at, public_result_changed)wherepublic_result_changedis true iffstanding_minor_unitsorleader_idchanged, records the updatedcloses_aton the privilegedbid_voidedtransition event, and emits a publicclosing_time_changedevent whencloses_atadvances. Withextend_on_voidomitted orfalse, behavior and emitted events are byte-identical to prior behavior.conformance/fixtures/usd-soft-close-extend-on-void.yamland scenarioconformance/scenarios/timed-proxy/044-void-extends-soft-close-when-configured.yaml.ruby/engine/test/bid_void_test.rbcovering: default-off byte identity, non-boolean validation, leader+price change, price-only change, leader-only change, voiding the sole bid, no-op void (neither leader nor price changed), outside-window void, short-duration non-shortening invariant, and full event/command replay + checkpoint restore.Verification
ruby scripts/validate_documents.rb: Validated 21 JSON Schemas, 44 conformance scenarios, and the OpenAPI/AsyncAPI documents.cd ruby/engine && bundle exec rake:402 runs, 357271 assertions, 0 failures, 0 errors, 0 skips+package:verify(rbbb-0.2.0.pre.1.gemverified).