RFC-64 M1 1/2: make Edge CG sync explicitly on-demand - #2011
Open
branarakic wants to merge 11 commits into
Open
Conversation
This was referenced Aug 2, 2026
This was referenced Aug 2, 2026
branarakic
force-pushed
the
codex/rfc64-m1-edge-selection
branch
from
August 2, 2026 11:20
739a9a5 to
9cad49e
Compare
added 11 commits
August 5, 2026 00:22
branarakic
force-pushed
the
codex/rfc64-m1-edge-selection
branch
from
August 4, 2026 22:29
9471694 to
d946ff8
Compare
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.
M1 stack
This is PR 1 of 2 in the RFC-64 M1 activation stack.
on-demandvsalways-on)#2076 remains an independent public-SWM convergence fix. Once it is final, this two-PR stack will be restacked on its exact
testnet-canaryhead and validated together before canary deployment.Exact stack provenance
testnet-canaryat84c2d1bb8e7ad812092648e36adde05ec7365e82d946ff89cefe47b7edd32f8b0fa21cd519d560f1User impact
Edge browsing is selective by default:
dkg subscribe <cg>is on demand;dkg subscribe <cg> --saveis always on.This prevents ordinary browsing from turning every graph ever opened into permanent background work without breaking durable authoring and membership flows.
Operator and compatibility impact
always-onand rehydrate as before.always-onexplicitly rather than relying on an ambiguous omitted mode.POST /api/context-graph/subscribeand legacyPOST /api/subscribeacceptsyncMode: "on-demand" | "always-on"and return the mode actually applied by the agent.Before
Previously every successful subscribe request became restart-durable, including a graph opened for one UI session.
sequenceDiagram actor User participant Client as UI or CLI participant Agent participant Store as Subscription store User->>Client: Open public CG A Client->>Agent: Subscribe(CG A) Agent->>Store: Persist active member record Agent-->>Client: Catch-up queued Note over Agent,Store: Node restarts Agent->>Store: Restore CG A Agent->>Agent: Resume background synchronizationAfter
Browsing stays process-local, while authoring, membership, and explicit operator choices remain durable. Core hosting is persisted independently from Edge-style member intent.
sequenceDiagram actor User participant Client as UI or CLI participant Agent participant Store as Subscription store alt Browse or open CG User->>Client: Open public CG A Client->>Agent: Subscribe(CG A, on-demand) Agent-->>Client: Applied mode = on-demand Note over Agent,Store: No durable member record else Create, register, publish, join, or explicit save User->>Client: Perform durable graph operation Client->>Agent: Subscribe(CG A, always-on) Agent->>Store: Persist active member record Agent-->>Client: Applied mode = always-on end opt Core signs StorageACK Agent->>Store: Persist independent host-only record end Note over Agent,Store: Node restarts Agent->>Store: Restore durable records onlyImplementation notes
ContextGraphSyncModeis public runtime state; persistence-row presence continues to mean always on.ContextGraphSubscriptionRecorddirectly from actual state and policy.Non-goals
Validation
git diff --check: pass.Review focus