Repository navigation
Open
Description
Context
Sub-roadmap under #565 (paired with vcspull#517 under vcspull#592) focused on src/libvcs/ (especially src/libvcs/cmd/git.py), sync contracts, and machine-readable metadata.
Goal
Improve module maintainability and machine-facing contracts without losing libvcs command flexibility.
Shipped in 0.47.0 (2026-11-28) and merged on master for 0.48.0
- Frozen partial-clone filter models (
BlobNone,BlobLimit,TreeDepth,ObjectType,SparseOid,Auto,Combine) insrc/libvcs/cmd/git_filter.pyexposing.kind,.to_spec(), andstr()(git(feat[filter]): Add partial-clone filter models #560, git(feat[filter]): Support partial-clone filters #561). - Offline
WorkingCopyPosition(get_position()) and frozenGitOptions/HgOptions/SvnOptionsbackend models acrossGitSync,HgSync, andSvnSync(sync(feat): Add positions and backend options #562). - Explicit
SyncTarget,SyncPolicy, andSyncResultsync and dirty-recovery contracts (list_recoveries(),recover_changes(),release_changes()) plus lockedGitSync.create_worktree()(sync(feat): Retain dirty checkouts for recovery #563, sync(feat): Create linked Git worktrees under lock #555). - Structured
Git.version()/Git.build_options()parsing (git initcompatibility,Git.version()#491, cb94c18) and narrowedSubprocessCommand,run(),shortcuts.is_vcs(), andGitconfig parameter annotations onmaster(refactor(typing): Tighten type annotations across internal modules and cmd/git #508, 072cfd0). - Typed sync/async
FileLockandatomic_init/async_atomic_init(feat(_internal): Add typed, asyncio-friendly file locking module #501, tests(_internal): Add async tests for file_lock module #505; 3114eb6, a7bd3f2),copytree_reflink(feat(_internal): Add copytree_reflink for CoW-optimized directory copying #503, 3555330), XDG persistentRepoFixtureResultpytestcache (feat(pytest_plugin): Add XDG persistent cache and fixture optimization #502, 968636a), and CodSpeed simulation benchmarks (ci(tests[benchmarks]) Add CodSpeed performance benchmarks #525, 52c5aa7) onmaster.
Low-lift ideas
- Document stable imports in
libvcs.__init__and enforce them with public-export contract tests. - Standardize a typed command result model (
cmd,returncode,stdout,stderr,timing; coordinate with bytes-preserving execution in Git.run() corrupts non-UTF-8 output — backslashreplace decode is unrecoverable #541 and run(errors=...) crashes — non-None errors flips Popen into text mode under the bytes pipeline #542). - Add an agent quickstart guide covering
WorkingCopyPosition,SyncTarget,SyncPolicy, andSyncResultflows.
Medium-lift ideas
- Decompose
src/libvcs/cmd/git.pyinto concern-scoped submodules (clone,fetch,worktree,remote,submodule,stash, etc.) with sans-I/OCommandSpecbuilders while keepinglibvcs.cmd.gitimports backwards-compatible (land cmd,sync(refactor[API]): Rename_allparameters and addget_prefix to remote getters #507 parameter/getter renames first). - Centralize subprocess execution, tracing hooks, and an
AsyncExecutortransport seam overCommandSpec(run: Move libvcs to newSubprocessCommand, document + test overriding #340, Allow injectingExecutorclass to control how commands are made / ran #383; supersedes closed feat: Add async/await support for VCS operations #504, see #504 (comment)). - Add subsystem-specific contract tests to narrow regression blast radius.
High-lift ideas
- Publish a machine-readable capability matrix covering Git, Mercurial, and Subversion feature support (partial clones, shallow depth, recovery primitives, worktrees; pairs with forge-provider capability metadata in vcspull#517).
- Add a side-effect-free planning mode that emits intended VCS operations before execution (feeds per-repository
--dry-runaction graphs in vcspull#517).
Done when
- Core command modules are split into navigable concerns without breaking public imports.
- Command and sync output/error contracts are typed and tested.
- External tooling and agents can query backend capabilities without inspecting
_internalmodules.
References
- Parent release roadmaps:
0.46.xand beyond Roadmap #565, vcspull#592 - Companion downstream Agentic DX roadmap: vcspull#517
0.48.xunreleased changelog onmaster(968636a):CHANGESv0.47.0changelog (12a40cd):CHANGES
Metadata
Metadata
Assignees
Labels
No labels
Activity