add Epoch.start_block_height legacy data-plane bridge (ENGN-9039) - #973
Closed
zale144 wants to merge 45 commits into
Closed
add Epoch.start_block_height legacy data-plane bridge (ENGN-9039)#973zale144 wants to merge 45 commits into
zale144 wants to merge 45 commits into
Conversation
…ries-on-xscheduler' into feat/scheduler-module-base
…heduler-epoch-fsm Port epoch FSM/scheduler wiring onto the refactored emissions keeper and multi-label store prefixes. Co-authored-by: Cursor <cursoragent@cursor.com>
Wire AllocateNextEpochNonce into StartEpoch and round-trip the last-nonce map through genesis so epochs stay unique across restarts. Co-authored-by: Cursor <cursoragent@cursor.com>
Open the worker window immediately, schedule later transitions, apply ExtraLag to reputer windows, and start/stop a per-topic periodic task when topics activate or inactivate. Co-authored-by: Cursor <cursoragent@cursor.com>
Record the block height at StartNewEpoch and expose LegacyNonce so FSM side effects can call height-keyed APIs without coercing NonceV2. Co-authored-by: Cursor <cursoragent@cursor.com>
|
The latest Buf updates on your PR. Results from workflow Buf Linter / buf (pull_request).
|
Contributor
Author
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.
Purpose of Changes and their Description
Transitional identity bridge for scheduler epochs: record
Epoch.start_block_heightatStartNewEpochand exposeEpoch.LegacyNonce()so FSM side effects can call the existing BlockHeight-keyed submission/inference/reward APIs without coercingNonceV2.Payload()to a height. Canonical epoch id remainsNonceV2.This branch also carries the stacked scheduler epoch work behind it (module/FSM scaffold + ENGN-8910/8911) relative to
dev.Link(s) to Ticket(s) or Issue(s) resolved by this PR
Are these changes tested and documented?
TestEpochLegacyNonce,TestStartNewEpochRecordsStartBlockHeightBridge, and existing StartNewEpoch / activate / inactivate schedule tests.Unreleasedsection ofCHANGELOG.md?Still Left Todo
Fill this out if this is a Draft PR so others can help.
devreview strategy (this PR is large because base isdev; focused bridge-only review may prefer add Epoch.start_block_height legacy data-plane bridge (ENGN-9039) #972 stacked on wire StartNewEpoch + periodic NewEpochHandler (ENGN-8911) #971)start_block_heightwhen epoch genesis is addedMade with Cursor
Summary by cubic
Adds a legacy block-height bridge for scheduler epochs by recording
Epoch.start_block_heightatStartNewEpochand exposingEpoch.LegacyNonce()so side effects can use existing height-keyed APIs whileNonceV2stays canonical. Connects epoch FSM tox/schedulerwith events and RPC/CLI queries to support transitions (Linear ENGN-9039).x/emissions: IntroduceNonceV2and persist per-topic last nonce in genesis.Epoch: Add FSM-backed type,start_block_height, andLegacyNonce()helper.StartNewEpoch: Open worker window immediately; schedule close/open transitions and completion; apply ExtraLag to reputer windows.StartNewEpochtask on activation/inactivation.x/scheduler: Emit task events; add RPC and CLI queries for tasks, scheduled tasks, and handlers.Written for commit 558bf83. Summary will update on new commits.