Repository navigation
fix(#1196): worktree provisioning, pip install, merge-check skip non-Node repos - #1212
Merged
admarble merged 4 commits intoSep 29, 2026
Conversation
Entire-Checkpoint: 89e8cad3ab21
Entire-Checkpoint: 895a5b2c3645
…Node repos - installWorktreeDeps skips (and logs why) when no manifest exists for the resolved package manager, instead of always attempting npm ci - resolvePackageManagerConfig names pip's requirements*.txt file, or skips, instead of running the bare failing no-op pip install -q - combined-branch-test's test/build steps skip with an info finding, not a severity:error BLOCKED, when the repo defines no such script - reinstallIfLockfileChanged gets the same pip skip-sentinel guard, defensively - fixed the integration fixture manifest that lacked test/build scripts Entire-Checkpoint: 9332d54d9a01
…tree-ts-provisioning-runs-npm-ci-pip-insta
admarble
deleted the
feature/1196-fix-worktree-ts-provisioning-runs-npm-ci-pip-insta
branch
September 29, 2026 03:00
This was referenced Sep 29, 2026
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
installWorktreeDepsskips (and logs why) when no manifest exists for the resolved package manager, instead of always attemptingnpm ci. Root cause: a non-Node worktree has nonode_modules, soensureWorktree's guard was always true, andresolvePackageManager's fallback (detectPackageManagerSync) is JS-lockfile-only.resolvePackageManagerConfignames pip'srequirements*.txtfile (pip install -q -r <file>) or resolves to a skip sentinel — never the bare, failing no-oppip install -q.reinstallIfLockfileChangedgets the same skip-sentinel check, defensively (currently unreachable in practice — its lockfile list is JS-only).combined-branch-test's test/build steps now skip with aninfofinding, not aseverity: errorBLOCKED, when the repo defines no such script (hasScriptreadspackage.json).Pre-PR AC Verification
hasManifestForPackageManager(src/lib/stacks.ts), gated ininstallWorktreeDeps(src/lib/workflow/worktree-manager.ts)pip install -qresolvePackageManagerConfig's pip branch +CI_INSTALL_SKIPsentinel (src/lib/stacks.ts)hasScriptgating insrc/lib/merge-check/combined-branch-test.tsTest plan
npx vitest run src/lib/stacks.test.ts— 136 passed (AC-1, AC-2 evidence)npx vitest run src/lib/workflow/worktree-manager.test.ts— 7 passed (AC-1 evidence, includes new fix(worktree): TS provisioning runsnpm ci/pip install -qin repos with no manifest to install from — the shell path guards, TS doesn't #1196 tests)npx vitest run src/lib/workflow/worktree-manager.frozen-install.test.ts— 14 passed (updated fixtures for the new manifest gate)npx vitest run src/lib/merge-check/combined-branch-test.test.ts— 28 passed (AC-3 evidence)npx vitest run src/lib/merge-check/combined-branch-test.integration.test.ts— 8 passed (real-git integration; fixture manifest updated withtest/buildscripts)npx vitest run src/commands/run.test.ts— 143 passednpx tsc --noEmit -p .npm run lintnpm run buildMutation records
Notes
/spec: no new stack/PM types, no change tonew-feature.sh(already guards onpackage.jsonper new-feature.sh hardcodes npm ci while the TS path is package-manager aware — pnpm/yarn/bun provisioning fails misleadingly #847), no change to non-Python stacks.reinstallIfLockfileChanged's pip guard is cheap insurance, not exercised by a dedicated test — itsLOCKFILESlist is JS-only, so it can never resolvepipthrough detection; called out per/spec's design notes rather than claimed as covered.combined-branch-test.integration.test.ts's baseline manifest fixture had noscripts.test/scripts.build, so AC-3's fix (correctly) would have skipped those steps there. Added the scripts to the fixture.Closes #1196
🤖 Generated with Claude Code