fix(review): materialize the provider intended-untracked selection exactly once before native START - #1271
Conversation
…actly once before native START Pi omitted intendedUntracked when the provider selected none, so the candidate view was first materialized with the legacy include-all behavior and only conditionally retried with [] when its candidate tree differed. A stable provider STATUS could then be rejected with candidate-target-projection-drift before native START (Gentleman- Programming/gentle-ai#2700). The provider projection is now forwarded verbatim on the first and only candidate creation, including the empty array, and the fail-closed binding assertion is unchanged. Regression: an unrelated untracked file with an excluded selection creates exactly one candidate view with [] and reaches native START exactly once.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughThe change always passes ChangesCandidate admission
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Medium Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 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 |
Fixes Gentleman-Programming/gentle-ai#2700
PR Type
Summary
intendedUntrackedprojection to the candidate view on the first and only materialization, including an explicit empty selection.[]retry, which could reject a stable provider target withcandidate-target-projection-driftbefore native START (reported with full occurrences in bug(review): pre-START candidate view drifts before native admission gentle-ai#2700).assertNativeStartCandidateBindingsafety boundary is unchanged.Changes
extensions/gentle-ai.tstarget.projection.intendedUntrackedverbatim toCandidateViewRegistry.createOrReuse; drop the implicit-selection retry.tests/review-controller-native-routing.test.ts[]and reaches native START exactly once.Test Plan
node --experimental-strip-types --test tests/review-controller-native-routing.test.ts— 72 passed, 0 failed (writer), independently re-verified 72 passed, 0 failed; named regression spot check 1 passed.pnpm run typecheck— no regressions against the recorded baseline.Contributor Checklist
status:approved)type:*labelCo-Authored-BytrailersSummary by CodeRabbit
Bug Fixes
Tests