fix(review): defang impact map prompt context#3958
Conversation
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-07 07:56:46 UTC
⏸️ Suggested Action - Manual Review
Review summary Nits — 4 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.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3958 +/- ##
=======================================
Coverage 93.66% 93.66%
=======================================
Files 372 372
Lines 34856 34857 +1
Branches 12743 12744 +1
=======================================
+ Hits 32649 32650 +1
Misses 1588 1588
Partials 619 619
🚀 New features to boost your workflow:
|
Motivation
Description
SafetyReviewInputto includeimpactMapContextand updatedefangReviewInputto neutralize it vianeutralizePromptInjectionbefore it reaches the model (file:src/review/safety.ts).impactMapContextis redacted whenGITTENSORY_REVIEW_SAFETYis enabled and remains byte-identical when the flag is off (file:test/unit/safety-wiring.test.ts).Testing
npx vitest run test/unit/safety-wiring.test.tsand all tests passed.npm run typecheckwhich completed with no type errors.git diff --checkproduced no whitespace/conflict issues.Codex Task