fix(review): keep grounding bound to repo allowlist - #4137
Conversation
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4137 +/- ##
=======================================
Coverage 93.68% 93.68%
=======================================
Files 384 384
Lines 36007 36009 +2
Branches 13213 13214 +1
=======================================
+ Hits 33733 33735 +2
Misses 1618 1618
Partials 656 656
🚀 New features to boost your workflow:
|
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-08 07:36:51 UTC
⏸️ Suggested Action - Manual Review
Review summary Nits — 5 non-blocking
Concerns raised — review before merging
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.
|
Motivation
features.grounding: truecould previously bypass the operatorGITTENSORY_REVIEW_REPOSallowlist and enable grounding, which fetches full post-change file contents into AI prompts and is a sensitive operator-policy boundary.Description
resolveConvergedFeatureinsrc/review/feature-activation.tsto treatgroundingasymmetrically so grounding is only active when the repo is allowlisted and the manifest does not explicitly disable it.groundingalongside the existingsafetyexception.test/unit/feature-activation.test.tsthat assert a manifest cannot forcegroundingON outsideGITTENSORY_REVIEW_REPOSand that allowlisted repos retain default-on and per-repo force-off semantics.src/review/feature-activation.ts,test/unit/feature-activation.test.ts.Testing
npm test -- --run test/unit/feature-activation.test.ts, and the suite passed (14 tests).npm run typecheck, which succeeded.npm run test:ci; it progressed but stopped on an existing drift incf-typegen(worker-configuration.d.ts is stale; run npm run cf-typegen) andnpm audit --audit-level=moderatefailed due to the registry audit endpoint returning403 Forbidden.Codex Task