Repository navigation
quest: replace grant-cost with stale route demotion and moq-auth boundary - #9724
Merged
Merged
Conversation
kixelated
marked this pull request as ready for review
November 26, 2026 20:32
Contributor
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 39 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
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.
Problem
quest/m1/grant-cost.md(and moq-dev/moq#9696) proposed adding routing cost (Grant::cost) and live repricing (Lease::update) tomoq-auth. That pulls routing controls into the authorization contract whenmoq-netalready has a verified, reversibledrainingrank that propagates across multi-hoplite-07meshes.Approach
quest/m1/grant-cost.md(and its back-link inquest/m1/js-session-cost.md).quest/m1/stale-route-demotion.md([M]inm1, requiring/quest/m1/keep-alive.md, which is in flight in moq-dev/moq#9698) scoping:drainingdemotion onStalesessions inmoq-net(Peer.stale: boolfeedingOffer.drainingonlite-07withoutMsg::Drain, plus reversible live updates onlite-05/06andmoq-transport),RouteInfo::draining(&self) -> boolinmoq-netand its@moq/netcounterpart,keep_alive(soft,hard) config onmoq_tokio::quic::Config([quic]) andmoq-relay's[limits.peer.quic].rs/moq-auth/AGENTS.mddocumenting themoq-auth::Grantboundary rule.Decisions
Recorded from the 2026-11-26 maintainer
/quest-planinterview:quest/m1/grant-cost.mdand close moq-dev/moq#9696; replace with automatic reversibledrainingdemotion onStalesessions inmoq-net(rejected:Grant::cost+Lease::update; localSession::price()+moq-relay::Admissionhandle).lite-07, track per-link reversiblePeer.stale: boolfeedingOffer.drainingwithout emittingMsg::Drain { node }(rejected:Msg::Drain, which permanently poisons all paths throughnodefor GOAWAY).lite-05/06andmoq-transport, live-updatedrainingreversibly onStale/Livealong the existinggoing_awaypath.pub fn draining(&self) -> boolonmoq_net::origin::RouteInfoand its@moq/netcounterpart (rejected: keepingRouteInfo.drainingcrate-private).keep_alive(soft,hard) config onmoq_tokio::quic::Config([quic]) andmoq-relay's[limits.peer.quic](rejected: LAN-only config; forcing probing on all[quic]sessions including local clients; smugglingkeep_aliveintomoq-auth::Grant).moq-auth::Grantfields as-is for the0.22/lite-07cut (link, flattier/label+Refusal.tier,Access.rate,Grant.mounts), and record theGrantboundary inrs/moq-auth/AGENTS.md.Impact
Alternatives
Grant::cost+Lease::updaterepricing (moq-dev/moq#9696) or adding a localSession::price()handle; rejected in favor ofmoq-net's existing reversibledrainingrank.Validation
quest check: passed (The quest log is in order: 560 documents checked.).Follow-ups
quest/m1/stale-route-demotion.mdonce/quest/m1/keep-alive.md(moq-dev/moq#9698) lands.Models
Size: S
Implementer: Antigravity, gemini-4-neon, high effort
(Written by Gemini 4 Neon with high)
Review
Rewritten by
quest reviewafter each round.Nothing can break for users or peers: the diff only deletes one quest plan (quest/m1/grant-cost.md), adds another (quest/m1/stale-route-demotion.md), drops one link line from a plan, and adds a documentation AGENTS.md under rs/moq-auth, with no code, wire, API, or auth-behavior change; a revert fully undoes it in one commit.a1f17370-531a-43d5-94f9-978b45cd738e