Repository navigation
Mirrored sources sync with separate quotas and resumable permission reads - #732
Merged
Merged
Conversation
zlareb1
force-pushed
the
feat/mirror-pass-schedule
branch
from
November 16, 2026 20:58
806d135 to
1a8a2c9
Compare
…ir state under the mirror and read their lists on from a cursor Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…nd a turn's record is written by one helper Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…uest waits its turn among the mirrored sources Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…reat model say what the code does Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…he leg is the pass budget's own phase Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
… share, and the tests pin the worker identity and the dropped N-1 fields Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
… and the state row is parsed once Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…t retires gone files and keeps the full interval Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
zlareb1
force-pushed
the
feat/mirror-pass-schedule
branch
from
November 17, 2026 19:50
1a8a2c9 to
654cddc
Compare
Signed-off-by: zlareb1 <[email protected]>
9 tasks done
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.
Changelog category (leave one):
Changelog entry (one or two sentences a user of Loom can read without the diff; the release pull request collects these into the release notes):
None. Mirrored sources cannot be created through the public operations yet.
Why
Mirrored sources must refresh permission lists without consuming the document quota of namespace sources. They also need to resume permission reads across turns without treating a partially checked cycle as fresh.
This implements the pass scheduling and sync-state parts of the document sources design. Mirrored sources run first under a separate document quota and start window. A cursor resumes permission reads, and the completed cycle records when its first turn began. Detailed sync state stays under the mirror and source id.
Scope and risk
LOOM_KNOWLEDGE_SOURCE_MIRROR_DOCUMENTS_PER_PASS. Sources run in order of their last sync; a retained sync request cannot starve the others.Compatibility, rollout and rollback
Tests
AI assistance in the code (leave one; writing this description with AI is fine):
AI-generated (an agent wrote most of the diff); checked against the document sources design and sync invariants.
I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist
make format-check,make lint,make typecheckandmake test-unitpass; the integration suite passes if server behaviour changed.