Close 5 adversarial review gaps from test failure analysis - #100
Open
devin-ai-integration[bot] wants to merge 3 commits into
Open
Close 5 adversarial review gaps from test failure analysis#100devin-ai-integration[bot] wants to merge 3 commits into
devin-ai-integration[bot] wants to merge 3 commits into
Conversation
Fix 1 (P0): Add §7 Review-system integrity scope to supply-chain agent - Covers all .github/agents/ files (specs, contract, skills, registry) - Five finding-classes: policy-weakened, bypass-added, triage-weakened, rogue-agent, disguised-change — all must-fix severity - Updates surfaces emission table, worked examples, coverage invariant - Updates agent-registry.yml scope_summary and review-contract surfaces Fix 2 (P1): Broaden prompt-injection pattern matching - Add semantic/intent-based detection guidance to supply-chain §6 - Add fuzzy/partial/semantic matching algorithm to precheck skill §2a - Covers variants with inserted qualifiers, omitted words, and professional-sounding language that weakens review coverage Fix 3 (P2): Extend design-review scope for title-washing attacks - Add scope note to §1 (design-intent-mismatch): applies to ALL file types, not just F Prime component files - Add title-washing detection to §4 (scope-creep): trivial-title + substantive-diff is a must-fix signal Fix 4 (P3): Agent-registry integrity check (included in §7) - New agent files without registry entries flagged as rogue-agent - Checks for instructions to skip findings or fabricate verdicts Fix 5 (P1): Ensure commit messages are actually scanned - Add surfaces_scanned verification to precheck skill §3d - Orchestrator must confirm all surfaces scanned before accepting clean - Missing surfaces force error verdict, not silent clean Co-Authored-By: michael.d.starch <michael.d.starch@jpl.nasa.gov>
Author
Original prompt from michael.d.starch
|
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Co-Authored-By: michael.d.starch <michael.d.starch@jpl.nasa.gov>
Co-Authored-By: michael.d.starch <michael.d.starch@jpl.nasa.gov>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change Description
Implements 5 fixes from the adversarial test failure analysis to close security gaps in the multi-agent PR review system. These changes address the root causes of 8 attacks that passed undetected during testing.
Fix 1 (P0) — Self-integrity scope (closes 6/8 failures):
supply-chain-review.agent.md.github/agents/files with 5 finding-classes, all**must fix**severityagent-registry.ymlscope_summary,review-contract.mdsurfaces block, andreview-summary.agent.mdtable referencesFix 2 (P1) — Semantic prompt-injection detection (closes PR #66):
prompt-injection-precheck.skill.md§2aFix 3 (P2) — Title-washing detection (closes PR #64):
Fix 4 (P3) — Rogue agent detection (hardens PR #81):
self-integrity-rogue-agentFix 5 (P1) — Surface coverage verification (closes PR #66):
surfaces_scannedconfirmationcleanverdicterrorverdict, not silentcleanRationale
23 adversarial test PRs were run against the review system. 8 attacks passed undetected. Root cause analysis revealed:
.github/agents/**filesThese spec changes close all identified gaps without requiring code changes.
Testing/Review Recommendations
Future Work
AI Usage (see policy)
AI was used to analyze the 8 adversarial test failures, determine root causes, draft remediation wording, and implement the spec changes across 7 agent files.
IAMAI
Link to Devin session: https://nasa-jpl-demo.devinenterprise.com/sessions/f2ab06ffa5204925a3ddc147e1515898