Posture: experimental (pre-1.0 zero-dependency Python library for Git, Mercurial, and Subversion URLs, command wrappers, and checkout synchronization; repair asymmetric or leaky contracts at the owning module and update callers, docs, and CHANGES in the same diff).
Posture defines experimental, stable and private.
Review the complete change against <base>, including untracked files. Report all findings in one pass without editing files. Writing conventions · Contributing gates · AI policy.
| Layer | Modules | Owns | Must not own |
|---|---|---|---|
| Sync orchestration | src/libvcs/sync/* (base.py, git.py, hg.py, svn.py) |
Checkout lifecycle (obtain, update_repo, remote/branch sync), dirty-tree guards, and repository state inspection |
Raw subprocess spawning bypassing cmd/* or vcspull manifest schemas |
| Typed CLI wrappers | src/libvcs/cmd/* (git.py, git_filter.py, hg.py, svn.py) |
Flag construction, command invocation over _internal/run.py, and structured vcs_* log fields |
URL scheme detection or multi-repo workspace orchestration |
| URL grammar and registry | src/libvcs/url/* (base.py, registry.py, git.py, hg.py, svn.py) |
Pure URL parsing, explicit/implicit rule matching, SCP-like syntax, and scheme normalization | Subprocess execution, filesystem probes, or network I/O |
| Internal runtime and locks | src/libvcs/_internal/*, exc.py |
Subprocess runner (run.py, subprocess.py), QueryList, file locks (file_lock.py), and working-tree preservation (preservation.py, svn_preservation.py) |
Serving as an undocumented cross-package API for vcspull when a public export is warranted |
| Test fixtures | src/libvcs/pytest_plugin.py |
Isolated $HOME, VCS config fixtures, and disposable git/hg/svn repositories |
Mutating the host user's $HOME, ~/.gitconfig, or SSH agent |
Do not BLOCK against <base>:REVIEW.md's prior owner row when a pull request migrates an invariant cleanly to a single owner, updates callers, tests, and REVIEW.md in the same diff, and states the old and new owner in the pull request description.
- Adapter versus duplicated rule:
sync/*orchestrates repository state overcmd/*andurl/*, andpytest_plugin.pyadapts temporary repositories for tests. Block whensync/*re-parses URLs with ad-hoc regexes instead oflibvcs.url, spawns VCS binaries directly instead of routing throughcmd/*, or forces downstreamvcspullcallers to importlibvcs._internalfor a capability that belongs on the public API. - Zero-import format leaks: Check dependency direction even when imports stay clean. Block
url/*,cmd/*, orsync/*modules that parsevcspullYAML/JSON workspace structures, snapshot.ambrheaders, orPYTEST_CURRENT_TESTenvironment state, or attach test-only attributes to sync objects.
- Asymmetric behavior across
git,hg, andsvnsiblings: When changing URL rule precedence,obtain/update_repocontracts, or structuredvcs_*log fields, checkgit,hg, andsvnmodules together and document backend-specific differences explicitly. - Boundary-blind URL regexes: Test positive and negative boundary inputs on
libvcs.urlrules (scheme spoofing, ports, credentials, SCP colons, Unicode paths, and control characters). - Silent partial multi-step state or data loss: Multi-step sync, remote-update, and
preservation.py/svn_preservation.pybackup-and-restore flows must preserve uncommitted work and surface partial state clearly if stepNfails mid-flight. - Runtime dependencies or import-time side effects: Keep
dependencies = []inpyproject.toml, and never configure logging handlers or spawn VCS binaries at module import. - Unpinned VCS tool workarounds: Track version-specific
git,hg, orsvnquirks in.github/workarounds.toml(issue_only = truewithreason_no_lockand an upstream issue URL) verified by the sharedcheck-workaroundsaction in CI.
- For bug fixes and behavioral changes, reproduce the failure on
<base>(or on<pre_fix_head>when fixing a defect introduced earlier in the same open pull request) through the publiclibvcs.url,libvcs.cmd, orlibvcs.syncAPI. - Verify the production-only revert check fails the new test inside the real owner call (for behavioral changes), then run
uv run ruff check .,uv run ruff format . --check,uv run ty check,uv run pytest, and the sharedlibtmux/.github/actions/check-workaroundsaction, which CI runs. - Emit
BLOCKorNO FINDINGS(plus optional non-blockingNOTEitems). Before emittingBLOCKon placement, weigh any boundary-adapter or ownership-transfer counter-case and state a concrete test, command, or code observation that would prove the finding wrong.
These rules decide which findings block.
- Base run: A finding that code misbehaves shows its check run on
<base>and on the change, with one line of output from each. - Existing and separate: Behavior
<base>already has does not block. Report it as aNOTE, unless the change adds a promise the behavior breaks; then the broken promise is the finding. - Unverified: A gate nobody ran is unverified. Name the command that would run it. It holds the merge until someone runs it, and it does not make the verdict
BLOCK. - Behavior defects: A behavior defect blocks when a caller can reach it in a supported environment, or when it breaks a promise in the pull request description, a docstring, help text or the changelog. Otherwise it is a
NOTE. - Checks and claims: A weakened check, a rule written in a second place and a behavior claimed as tested with no test that bites block whether or not a caller reaches them.