feat(review): upgrade inlineComments + fixHandoff to full config-as-code substitutes - #4116
Conversation
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-08 01:43:54 UTC
⏸️ Suggested Action - Manual Review
Nits — 2 non-blocking
Linked issue satisfactionAddressed Review context
Contributor next steps
Signal definitions
🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4116 +/- ##
=======================================
Coverage 93.64% 93.65%
=======================================
Files 384 384
Lines 35856 35860 +4
Branches 13159 13159
=======================================
+ Hits 33579 33583 +4
Misses 1618 1618
Partials 659 659
🚀 New features to boost your workflow:
|
…ode substitutes An explicit review.inlineComments/fixHandoff: true|false in .gittensory.yml now fully controls each feature, bypassing the GITTENSORY_REVIEW_REPOS cutover allowlist entirely. Unset stays byte-identical to before (the allowlist alone was never sufficient on its own for either feature). The operator's env flag remains an absolute master kill-switch either way. Closes #4099.
…switch docs - Revert the unnecessary boolean|null tri-state on shouldRequestInlineFindings and resolveReviewPromptOverrides's inlineComments field -- the function only ever checks '=== true', so null and undefined were functionally identical; collapsing back to a strict boolean (matching every sibling field) removes complexity that served no purpose, per gittensory-orb review feedback. - Make shouldEmitFixHandoff match shouldRequestInlineFindings exactly (both boolean | undefined, same shape) instead of drifting to boolean | null. - Clarify in both doc comments that the operator's env flag is an ABSOLUTE kill-switch never bypassable by per-repo config, consistent with every other converged feature (resolveConvergedFeature) -- addresses a linked- issue-satisfaction flag about apparent scope drift from the issue text.
4a08a92 to
7218186
Compare
Summary
shouldRequestInlineFindings(src/review/inline-comments.ts) andshouldEmitFixHandoff(src/review/fix-handoff.ts) previously requiredmanifestToggle === true && envFlag && isConvergenceRepoAllowed(...)— ALL THREE — so a repo could restrict via config but never fully enable either feature without also being on theGITTENSORY_REVIEW_REPOScutover allowlist.resolveConvergedFeature); (2) an explicitreview.inlineComments/review.fixHandoff: true|falsein.gittensory.ymlnow FULLY controls the feature by itself, bypassing the cutover allowlist entirely; (3) unset stays byte-identical to today (the allowlist alone was never sufficient on its own for either feature — a real, deliberate departure fromrag/reputation/safety/unifiedComment/grounding, which already fall back to the allowlist when unset).Update after gittensory-orb review feedback: the bot correctly flagged two things, both now fixed:
resolveReviewPromptOverrides'sinlineCommentsfield to aboolean | nulltri-state, but neither gate function ever consumed the distinction (both only check=== true) — reverted to a plain collapsed boolean, matching every sibling field on that object. Simpler, same behavior.shouldEmitFixHandoff's type had drifted toboolean | undefinedwhileshouldRequestInlineFindingshad gainedboolean | null | undefined— both now have the identicalboolean | undefinedshape, true parity.resolveConvergedFeature's established design for every other converged feature, and an operator-level kill-switch should not be overridable by lower-trust, repo-level config. The issue text was imprecise on this point; corrected there directly.Scope
CONTRIBUTING.md.Validation
git diff --checknpm run typecheck— clean.test/unit/focus-manifest.test.ts,test/unit/config-templates.test.ts,test/unit/inline-comments.test.ts,test/unit/review-fix-handoff.test.ts,test/unit/fix-handoff-collapsible.test.ts,test/unit/fix-handoff-render.test.ts,test/unit/signals-coverage.test.ts,test/unit/visual-config-wiring.test.ts— all green (661 tests).test/unit/queue.test.tsintegration suite — green (697 tests).src/review/inline-comments.ts,src/review/fix-handoff.ts) — 100% line and branch coverage confirmed via lcov BRDA records;src/signals/focus-manifest.tsdiff is comment-only after the simplification.npm audit --audit-level=moderate— 0 vulnerabilities.Safety