feat: add lazy thread sync#31
Merged
Merged
Conversation
739217c to
1a89b79
Compare
1a89b79 to
a9514a5
Compare
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.

Summary
0.3.0for the lazy sync feature releasedispatch lane attach <thread-id>metadata-only viathread/read(includeTurns:false)and add--syncfor optional quick indexingdispatch lane sync <lane>/--full, registry schema v2 sync tables, and sync state on lane get/list outputsjust checkclean stale local wheel/sdist artifacts before building so package inspection is deterministicVerification
uv run dispatch --version->dispatch 0.3.0uv run dispatch doctor --no-app-server --json | jq -r '.version'->0.3.0uv run pytest tests/core/test_sync.py tests/registry/test_store.py tests/core/test_handlers.py tests/daemon/test_supervisor.py tests/client/test_models.py tests/surfaces/test_parity.py tests/surfaces/test_mcp_routing.py tests/test_doctor.py -q-> 76 passeduv run pytest tests/registry/test_store.py tests/core/test_handlers.py -q-> 49 passeduv run pytest tests/core/test_sync.py tests/core/test_handlers.py tests/registry/test_store.py -q-> 52 passeduv run dispatch schema "lane sync" | jq -r '.op, (.input.properties | keys | join(",")), .output.title'->sync,full,lane,LaneSyncResultDISPATCH_HOME=/tmp/dispatch-lazy-sync.qfYNZHsafe smoke:dispatch up,lane list --unmanaged,lane attach <id> --sync,lane get,lane list,lane sync,doctor --no-app-server,dispatch downpartial, no sync errordist/stale-review-loop.{whl,tar.gz}then ranjust check; it removed stale artifacts and left onlyoutfitter_dispatch-0.3.0wheel/sdistjust check-> ruff, format check, mypy, pytest167 passed / 8 deselected, buildoutfitter_dispatch-0.3.0, package contents checkReview loop
Fixed during final local review:
asyncio.to_threadjust checknow cleans wheel/sdist artifacts before buildNo unresolved P0/P1/P2 from local review.
Notes
lane sync --full