Skip to content

fix: run camsnap live proof without pnpm setup - #1246

Merged
vincentkoc merged 2 commits into
mainfrom
fix/camsnap-pnpm-path
Aug 25, 2026
Merged

vincentkoc merged 2 commits into
mainfrom
fix/camsnap-pnpm-path

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes an issue where live proof for steipete/camsnap stopped 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 to PATH.

Why This Change Was Made

The live-proof runner now follows pnpm's current PNPM_HOME/bin installer 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.md and docs/target-repositories.md. Their contract remains accurate: repository-specific behavior is configured in config/target-repositories.json, and live proof installs or selects the configured package manager. No documentation update is needed.

Evidence

Source revision: 932b03921191e286ed0f6f8eb584184bc9e57aaa

  • node --test --test-name-pattern='live-proof resolves pnpm from the configured PNPM_HOME bin directory' test/live-proof.test.ts — passed
  • node --test --test-name-pattern='camsnap uses its Go-native review-only live-proof profile' test/repository-profiles.test.ts — passed
  • node --test --test-name-pattern='resolveTargetRepoToolchain uses the explicit camsnap no-validation profile' test/repair/target-validation.test.ts — passed
  • node_modules/.bin/tsc -p tsconfig.json --pretty false — passed
  • node_modules/.bin/tsc -p tsconfig.repair.json --pretty false — passed
  • targeted oxfmt --check and git diff --check — passed
  • committed codex review --base origin/main — no actionable correctness issues
  • full test/repair/target-validation.test.ts local 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.
  • local pnpm check was not run because this isolated GWT uses a managed node_modules symlink 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.sh ran with an isolated HOME and PNPM_HOME; the resulting PNPM_HOME/bin was prepended to PATH. The Go fixture then ran with the resolved camsnap profile and reviewLiveProofGoEnvironment.

Observed result: the installer created executable mode 755 commands under PNPM_HOME/bin; command -v pnpm resolved that isolated path and reported pnpm 11.10.0. The camsnap profile resolved package_manager=npm, setup=[], empty close rules, and go run . printed camsnap-go-proof. Neither run produced EACCES.

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); its finally cleanup removed the scratch tree. Hosted Linux CI and exact-head ClawSweeper review remain required before merge.

@clawsweeper

clawsweeper Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@vincentkoc
vincentkoc marked this pull request as ready for review August 25, 2026 19:13
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper

clawsweeper Bot commented Aug 25, 2026

Copy link
Copy Markdown
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.

@vincentkoc
vincentkoc merged commit afe9762 into main Aug 25, 2026
13 checks passed
@vincentkoc
vincentkoc deleted the fix/camsnap-pnpm-path branch August 25, 2026 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant