Repository navigation
fix: run camsnap live proof without pnpm setup - #1246
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
vincentkoc
marked this pull request as ready for review
August 25, 2026 19:13
Member
Author
|
@clawsweeper re-review |
Contributor
|
🦞👀 Re-review progress:
|
Contributor
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: fix: run camsnap live proof without pnpm setup This is item 1/1 in the current shard. Shard 0/1. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
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.
What Problem This Solves
Fixes an issue where live proof for
steipete/camsnapstopped before the requested Go command because the generic repository profile selected pnpm, and the pnpm installer placed its executable below a directory that was not added toPATH.Why This Change Was Made
The live-proof runner now follows pnpm's current
PNPM_HOME/bininstaller layout. Camsnap also has an explicit review-only Go repository profile that uses the runner's existing npm toolchain, skips package setup and validation commands, and preserves empty auto-close rules.This deliberately does not add a package-manager enum, chmod/retry fallback, or validation policy for camsnap.
User Impact
Camsnap review live proofs can reach their selected Go command instead of failing during unrelated pnpm setup. Review and close policy remains maintainer-only.
OpenClaw Bay Impact
OpenClaw Bay is unaffected. This changes target toolchain selection and live-proof executable resolution, not lifecycle publication, queue state, status telemetry, or dashboard contracts.
Documentation Impact
Reviewed
docs/live-proof.mdanddocs/target-repositories.md. Their contract remains accurate: repository-specific behavior is configured inconfig/target-repositories.json, and live proof installs or selects the configured package manager. No documentation update is needed.Evidence
Source revision:
932b03921191e286ed0f6f8eb584184bc9e57aaanode --test --test-name-pattern='live-proof resolves pnpm from the configured PNPM_HOME bin directory' test/live-proof.test.ts— passednode --test --test-name-pattern='camsnap uses its Go-native review-only live-proof profile' test/repository-profiles.test.ts— passednode --test --test-name-pattern='resolveTargetRepoToolchain uses the explicit camsnap no-validation profile' test/repair/target-validation.test.ts— passednode_modules/.bin/tsc -p tsconfig.json --pretty false— passednode_modules/.bin/tsc -p tsconfig.repair.json --pretty false— passedoxfmt --checkandgit diff --check— passedcodex review --base origin/main— no actionable correctness issuestest/repair/target-validation.test.tslocal run: 196 passed, 7 failed, 3 skipped; all seven failures were the existing offline package-mirror error resolving[email protected]. The new camsnap test passed.pnpm checkwas not run because this isolated GWT uses a managednode_modulessymlink and pnpm attempted dependency reconciliation/removal. Hosted CI is the authoritative full check.Production delta: +22/-1 lines. Tests: +65 lines. The production growth is the repository-owned camsnap profile; the shared runtime change is the two-line pnpm installer-path correction.
Real Behavior Proof
Claim: live proof can resolve a freshly installed pnpm from its isolated profile, and the camsnap profile reaches a Go command without package setup.
Exercised surface: the official pnpm installer layout, repository profile resolution, sanitized Go live-proof environment, and command execution.
Scenario or fixture: two controlled temporary fixtures were used: an isolated pnpm profile and a generated local Go module selected through
repositoryProfileFor("steipete/camsnap"). No contributor code was executed.Command and environment: the official
https://get.pnpm.io/install.shran with an isolatedHOMEandPNPM_HOME; the resultingPNPM_HOME/binwas prepended toPATH. The Go fixture then ran with the resolved camsnap profile andreviewLiveProofGoEnvironment.Observed result: the installer created executable mode
755commands underPNPM_HOME/bin;command -v pnpmresolved that isolated path and reported pnpm11.10.0. The camsnap profile resolvedpackage_manager=npm,setup=[], empty close rules, andgo run .printedcamsnap-go-proof. Neither run producedEACCES.Artifact or trace: terminal traces recorded the resolved pnpm path/version/mode, exact camsnap profile fields, and
camsnap-go-proof. Both temporary fixture roots were confirmed absent after cleanup.Limits: a full local review-wrapper attempt reached a pre-existing macOS tmux pane-capture race (
no such window); itsfinallycleanup removed the scratch tree. Hosted Linux CI and exact-head ClawSweeper review remain required before merge.