fix: harden auto-salvage gates#130
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (6)
📝 WalkthroughWalkthroughThis PR introduces GitHub PR detection in auto-salvage when local worktrees are missing, normalizes Target repo metadata values, and refactors workflow gate generation from inline shell commands to dedicated Node-based helpers that validate implementation changes via repository diff evidence. ChangesAuto-salvage PR detection and metadata
Workflow gate evidence generation
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint skipped: no ESLint configuration detected in root package.json. To enable, add 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 |
Ricky Eval ReviewRun: Passed: 10 | Needs human: 44 | Reviewable: 44 | Missing output: 0 | Failed: 1 | Skipped: 0 Blocking CasesFAIL
|
Summary
Target repometadata before auto-salvage opens GitHub PRsalready-shippedwhen a declared worktree path is gone but an open PR already exists for the target branchtest -for generic source-shape grep checksWhy
The cloud
pr-09/pr-10/pr-11rerun on Ricky 0.1.73 produced implementation branches but all three blocked atpost-implementation-file-gate. Auto-salvage also skipped PR-09 because the worktree record was prunable even though PR #724 already existed, and PR-11 tried to create a PR for the malformed repo nameAgentWorkforce/\cloud` (mainly) + `relaycast` docs`.Test plan
NODE_OPTIONS=... npx vitest run src/local/auto-salvage/spec-metadata.test.ts src/local/auto-salvage/run-auto-salvage.test.ts src/product/generation/pipeline.test.tsNODE_OPTIONS=... npx vitest run test/generated-workflow-reliability-contract.test.ts src/local/auto-salvage/integration-smoke.test.tsnpx tsc --noEmit --pretty false --target ES2022 --module NodeNext --moduleResolution NodeNext --types node src/local/auto-salvage/spec-metadata.ts src/local/auto-salvage/run-auto-salvage.ts src/product/generation/template-renderer.tsKnown local typecheck note
Full
npm run typecheck -- --pretty falseis still blocked in this checkout by the existing missing@agent-relay/agentdependency insrc/scheduled-agent.ts.