fix(deploy): harden CLI provenance and transient preflight#284
Conversation
|
Warning Review limit reached
Next review available in: 37 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (13)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Code Review
This pull request introduces wrapper validation to prefer newer project-local agentworkforce installations over older global ones, adds transient network retry logic for idempotent cloud integration GET requests, and improves deploy failure reporting. The review feedback highlights several robustness improvements: handling ERR_PACKAGE_PATH_NOT_EXPORTED during package resolution to prevent unexpected crashes, wrapping synchronous file reading in formatDeployFailure with a try-catch block to avoid masking original errors, and making the HTTP method check case-insensitive when determining retry eligibility.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
939bfa4 to
faf4e9b
Compare
#163 deploy provenance hardening
Builds on the bundled dependency provenance landed in #280.
Closes #163.
What changed
agentworkforcewrapper; validate and select the local pair only when its wrapper is newer, otherwise validate the invoked pair, and import the exact CLI entry whose version was checked.--modereaches cloud mode.#163 acceptance audit
Boundaries
An already-running pre-fix 4.1.25 wrapper cannot use this new resolver and must first be updated or reinstalled. The fixed wrapper performs no registry/latest lookup, so a coherently stale install with no newer discoverable local candidate cannot know about a future release.
Verification
pnpm --filter agentworkforce test— 14 passedpnpm --filter @agentworkforce/deploy test— 249 passednode --test packages/runtime/dist/runner.test.js— 14 passedpnpm run build,pnpm run lint, andpnpm run typecheck— passedThe unfiltered CLI suite reaches an invoke replay test that also fails unchanged on the exact main baseline under this host's Node 25.8.1. The repository CI runs the patched Node 26 baseline and is required before merge.