Repository navigation
fix(lane D intake): close entries the validator judged final (verdict sync) - #1066
Merged
Merged
Conversation
… sync) close() had no caller, so every judged entry stayed `revealed` and the hotkey's next submit was refused 409 hotkey_entry_open: one lane D submission per hotkey, for life. - New `--validator-lane-d-state PATH` (default off): every refresh tick and once at startup the intake reads the validator's local lane_d_state.json (read-only, outside the request lock, only when the file changed) and closes an open entry whose (hotkey, digest) has a final status (crowned / lost / closed = the validator's non-open statuses; pending / hold stay open). closed_reason = the validator's reason. Missing / partial / foreign file: warning, nothing closed, never raises. - A resubmit keeps the replaced closed row under the queue file's `retired` key: the judged digest stays owned (digest_owned for others, entry_closed for the same hotkey), and the VaultGetGrants prefetch and the king-publish licence lookup fall back to it, so a crowned king stays fetchable after its hotkey submits again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BMT4D7f8wd5dXsASyWUBwe
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
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.
Bug
LaneDIntake.close()had no caller on main or the release. Judged entries stayedrevealed(an OPEN_STATE) forever, so a hotkey's next submit got409 hotkey_entry_open, making each lane D hotkey one-submission-for-life. Live: 14 intake entries allrevealed, while the validator state shows 10 lost and 2 crowned.Fix (owner defaults)
--validator-lane-d-state PATH(default off, so other operators are unaffected). On every refresh tick ([lane_d_ops] queue_poll_seconds, 60 s live) and once at startup (app.tick()), the intake reads the validator's locallane_d_state.jsonread-only. It closes each open entry whose (hotkey, digest) has a final status, reusingclose(), and setsclosed_reasonto the validator's reason (lost_duel,crowned, ...).crowned,lost,closed. These are the validator'sENTRY_STATUSESminusOPEN_STATUSES(pending,hold), and no validator path moves a final entry back. A test pins this equality.lane_d_intake_unavailable verdict source ...warning and closes nothing. It never raises.retiredkey in the queue file. Older readers ignore the key because they check onlyschemaandentries. This does three things:digest_owned, and the same hotkey getsentry_closed. Without this, a resubmitted judged digest would never be judged again.VaultGetGrants(eval host prefetch) andops_jobs._licence(king publish) fall back toretired, so a crowned king's checkpoint stays fetchable after its hotkey submits again.state: closed.closed_reasonstays out of the public row, as before.No consensus, signed-format, or chain changes. Satellites never read the intake.
Tests
tests/accept/w3/test_w3_verdict_sync.pyhas 9 tests:Local runs:
test_w3_published_sourceswas skipped because it uses torch)🤖 Generated with Claude Code